Fan device control method for ventilator, ventilator and readable medium

By adopting a fan device control method in the ventilator and adjusting the fan pressure and speed according to the channel pressure difference and the oscillation pressure ratio, the problem that the existing ventilator cannot automatically adjust the fan pressure and determine the type of apnea is solved, improving the user experience and Security.

CN115920185BActive Publication Date: 2024-10-22SHENZHEN VVFLY ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211715433.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-28
Publication Date
2024-10-22
Estimated Expiration
2042-12-28

AI Technical Summary

Technical Problem

Existing ventilators cannot automatically adjust the fan pressure according to the user's breathing status, causing the user to feel uncomfortable with the gas pressure when inhaling or exhaling, and cannot determine the type of apnea, affecting the user's safety and experience.

Method used

The fan device control method is used to obtain the pressure set detected by the first and second channel pressure detection devices, calculate the channel pressure difference, generate the target fan pressure and speed, determine the apnea type based on the oscillation pressure ratio, and adjust the fan pressure and speed to adapt to the user's breathing status.

Benefits of technology

It improves user experience and safety, reduces the probability of dyspnea and apnea, and enhances the therapeutic effect of the ventilator.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115920185B_ABST
    Figure CN115920185B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a control method for a fan device applied to a ventilator, a ventilator and a readable medium. A specific implementation of the method includes: obtaining a first channel pressure set and a second channel pressure set within a target time period. The absolute value of the difference between the second channel pressure corresponding to the first channel pressure in the first channel pressure and the second channel pressure set is determined as the channel pressure difference. The average of the obtained channel pressure differences is determined as the target channel pressure difference. The channel pressure difference that satisfies the preset current time condition among the obtained channel pressure differences is determined as the current channel pressure difference. According to the target channel pressure difference and the current channel pressure difference, a target fan pressure is generated. According to the target fan pressure and the current channel pressure difference, a target fan speed corresponding to the fan device is generated. The fan device is controlled to adjust the corresponding fan speed to the target fan speed. This implementation can improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the technical field of ventilators, and in particular to a method for controlling a fan device applied to a ventilator, a ventilator, and a readable medium. Background Art

[0002] A ventilator is a vital medical device that can prevent and treat respiratory failure, reduce complications, and save and prolong the life of patients. At present, the pressure of the blower in most ventilators is generally set in advance and cannot be automatically adjusted according to the user's breathing status during use.

[0003] However, the inventors have found that when the above-mentioned ventilator is used to treat a user, the following technical problems often occur:

[0004] First, the fan pressure cannot be automatically adjusted according to the user's breathing status during treatment. The gas pressure provided by the fan is the same when the user inhales or exhales. When the air pressure is low, the user has difficulty inhaling. When the air pressure is high, the gas delivered by the ventilator conflicts with the gas exhaled by the user, causing difficulty in exhaling. The user's breathing difficulty will wake the user from sleep, resulting in a poor user experience.

[0005] Second, when a user experiences apnea, it is impossible to determine the type of apnea the user has, so that it is impossible to provide treatment or alarm based on the type of apnea, resulting in poor user safety.

[0006] Third, the corresponding fan pressure of the ventilator was not adjusted according to the predicted breathing condition of the user, resulting in a high number of respiratory arrests for the user.

[0007] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention

[0008] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0009] Some embodiments of the present disclosure propose a fan device control method applied to a ventilator, a ventilator, and a computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.

[0010] In the first aspect, some embodiments of the present disclosure provide a method for controlling a fan device applied to a ventilator, wherein the ventilator comprises a first pressure detection device, a second pressure detection device and a fan device. The method comprises: obtaining 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 time period; for each first channel pressure in the first channel pressure set, determining the absolute value of the difference between the first channel pressure and the second channel pressure corresponding to the first channel pressure in the second channel pressure set as the channel pressure difference; determining the average of each obtained channel pressure difference as the target channel pressure difference; determining the channel pressure difference that satisfies the preset current time condition among each obtained channel pressure difference 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 the exhalation pressure or the inhalation pressure; generating a target fan speed corresponding to the fan device according to the target fan pressure and the current channel pressure difference; controlling the fan device to adjust the corresponding fan speed to the target fan speed.

[0011] Optionally, in response to the respiratory state information characterizing an apnea state, the fan pressure corresponding to the fan device is adjusted to a preset oscillation pressure; 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 are obtained; for each first oscillation pressure in the first oscillation pressure set, an absolute value of the difference between the first oscillation pressure and the second oscillation pressure corresponding to the first oscillation pressure in the second oscillation pressure set is determined as an oscillation channel pressure difference; deviation processing is performed on each obtained oscillation pressure difference to obtain an oscillation pressure deviation value corresponding to each of the above oscillation pressure differences; a ratio of the oscillation pressure deviation value to the historical pressure deviation value is determined as an oscillation pressure ratio; and the apnea type corresponding to the apnea state is determined based on the oscillation channel pressure and the preset oscillation pressure, wherein the apnea type characterizes a central apnea or an obstructive apnea stop; in response to the oscillation pressure ratio satisfying the preset oscillation end condition, adjusting the fan pressure corresponding to the fan device to the fan pressure corresponding to the current channel pressure difference; obtaining the first oscillation end pressure set detected by the first pressure detection device and the second oscillation end pressure set detected by the second pressure detection device; determining the oscillation end pressure deviation value corresponding to the first oscillation end pressure set and the second oscillation pressure set; determining the ratio of the oscillation end pressure deviation value to the historical pressure deviation value as the oscillation end pressure ratio; determining the apnea type corresponding to the apnea state according to the oscillation end pressure ratio; in response to the apnea type representing a central pause, controlling the associated alarm device to perform the alarm operation corresponding to the apnea state; generating apnea type confirmation information according to the apnea type; sending the apnea type confirmation information to the associated terminal device.

[0012] Optionally, the channel pressure difference greater than or equal to the target channel pressure difference among the above-mentioned channel pressure differences is determined as the inhalation channel pressure difference to obtain an inhalation channel pressure difference set; according to the time points corresponding to the respective inhalation channel pressure differences in the above-mentioned inhalation channel pressure difference set, the above-mentioned respective inhalation channel pressure differences are grouped and processed to obtain at least one inhalation channel pressure difference group; for each inhalation channel pressure difference group in the above-mentioned at least one inhalation channel pressure difference group, the following operations are performed: the inhalation channel pressure difference equal to the target channel pressure difference in the above-mentioned inhalation channel pressure difference group is determined as the target inhalation channel pressure difference, At least one target inhalation channel pressure difference is obtained; in response to the at least one target inhalation channel pressure difference including two target inhalation channel pressure differences, the inhalation channel pressure difference group is determined as a target inhalation channel pressure difference group; a target inhalation channel pressure difference whose corresponding time point among the two target inhalation channel pressure differences satisfies a preset starting time condition is determined as a starting inhalation channel pressure difference; a target inhalation channel pressure difference whose corresponding time point among the two target inhalation channel pressure differences satisfies a preset ending time condition is determined as a ending inhalation channel pressure difference; and a time point corresponding to the starting inhalation channel pressure difference is determined to be equal to a time point corresponding to the ending inhalation channel pressure difference. The time difference between the time points corresponding to the end and end inhalation channel pressure differences is determined as the inhalation duration; deviation processing is performed on each determined inhalation duration to obtain an inhalation duration deviation; in response to the inhalation duration deviation being less than a preset inhalation deviation threshold, for each inhalation channel pressure difference group in the at least one inhalation channel pressure difference group, the following steps are performed: determining the time point corresponding to the end inhalation channel pressure difference included in the inhalation channel pressure difference group as the end time point; according to the end time point, the start inhalation channel pressure difference included in the inhalation channel pressure difference group that meets the preset adjacent time condition in the at least one inhalation channel pressure difference group is determined as the end time point. The time point corresponding to the force difference is determined as the adjacent termination time point; the time difference between the above termination time point and the above adjacent termination time point is determined as the exhalation duration; the deviation processing is performed on each determined exhalation duration to obtain the exhalation duration deviation; in response to the above exhalation duration deviation being less than the preset exhalation deviation threshold, the fan pressure circulation mode information is generated according to the above inhalation duration and the above exhalation duration, wherein the above fan pressure circulation mode information includes the fan pressure circulation mode; in response to the above current channel pressure difference satisfying the preset circulation mode start condition, the above fan device is controlled to operate according to the above fan pressure circulation mode.

[0013] In a second aspect, some embodiments of the present disclosure provide a ventilator, comprising: one or more processors; a storage device on which one or more programs are stored; a fan device for delivering gas in a rotating state; a first pressure detection device and a second pressure detection device for detecting the pressure in the ventilator channel; when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any implementation method of the above-mentioned first aspect.

[0014] In a third aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any implementation manner of the first aspect is implemented.

[0015] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the fan device control method applied to the ventilator in some embodiments of the present disclosure, the user experience can be improved. Specifically, the reason for the poor user experience is that the pressure of the fan cannot be automatically adjusted according to the breathing state of the user during the treatment process. The gas pressure provided by the fan is the same when the user inhales or exhales. When the air pressure is small, the user has difficulty in inhaling. When the air pressure is large, the gas delivered by the ventilator conflicts with the gas exhaled by the user, causing the user to have difficulty in exhaling, and the user's breathing difficulty will cause the user to wake up from sleep. Based on this, the fan device control method applied to the ventilator in some embodiments of the present disclosure, first, obtain 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 time period. Secondly, for each first channel pressure in the first channel pressure set, the absolute value of the difference between the first channel pressure and the second channel pressure corresponding to the first channel pressure in the second channel pressure set is determined as the channel pressure difference. Thus, the channel pressure difference between each first channel pressure and the second channel pressure detected within the target time period can be determined. Then, the mean of the obtained pressure differences of each channel is determined as the target channel pressure difference. Thus, the average channel pressure difference within the target time period can be determined, so as to determine the user's breathing state according to the average channel pressure difference later. Afterwards, the channel pressure difference that satisfies the preset current time condition among the obtained channel pressure differences is determined as the current channel pressure difference. Then, according to the above-mentioned target channel pressure difference and the above-mentioned current channel pressure difference, a target fan pressure is generated, wherein the above-mentioned target fan pressure represents the exhalation pressure or the inhalation pressure. Thus, according to the target channel pressure difference and the above-mentioned current channel pressure difference, the current breathing state can be generated, and the fan pressure to be adjusted can be determined according to the current breathing state. Then, according to the above-mentioned target fan pressure and the above-mentioned current channel pressure difference, the target fan speed corresponding to the above-mentioned fan device is generated. Thus, the fan speed to be adjusted when the above-mentioned fan device is adjusted to the target fan pressure can be determined. Finally, the above-mentioned fan device is controlled to adjust the corresponding fan speed to the above-mentioned target fan speed. Therefore, by adjusting the corresponding fan speed of the above-mentioned fan device to the above-mentioned target fan speed, the pressure of the gas output by the fan device can be made to correspond to the user's breathing state, thereby improving the user experience. Because the target fan pressure is generated according to the above-mentioned target channel pressure difference and the above-mentioned current channel pressure difference, the current breathing state can be determined, and the fan pressure that needs to be adjusted can be determined according to the current breathing state. Also, because the fan speed that needs to be adjusted when the above-mentioned fan device is adjusted to the target fan pressure can be determined, and the above-mentioned fan device can be controlled to adjust the corresponding fan speed to the above-mentioned target fan speed, the pressure of the gas output by the fan device can be made to adapt to the user's breathing state, reducing the probability of the user experiencing breathing difficulties, thereby improving the treatment effect. In this way, the user experience can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0017] Figure 1 is a flow chart of some embodiments of a method for controlling a blower device applied to a ventilator according to the present disclosure;

[0018] Figure 2 is a schematic diagram of the structure of a ventilator suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0020] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0021] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0022] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0023] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0024] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0025] refer to Figure 1, shows a process 100 of some embodiments of the fan device control method applied to a ventilator according to the present disclosure. The fan device control method applied to a ventilator comprises the following steps:

[0026] Step 101 : obtaining 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 within a target time period.

[0027] In some embodiments, the execution subject (e.g., ventilator) of the control method for the fan device of a ventilator can obtain 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 time period. The ventilator may include a first pressure detection device, a second pressure detection device, and a fan device. The ventilator may be an instrument for detecting the breathing state of a user. Both the first pressure detection device and the second pressure detection device may be devices for detecting pressure. For example, the first pressure detection device and the second pressure detection device may be pressure sensors. The target time period may be a time period from the historical time to the current time. The duration from the historical time to the current time may be a preset duration. The first channel pressure set may be a set of pressures detected by the first pressure detection device within the target time period. The second channel pressure set may be a set of pressures detected by the second pressure detection device within the target time period.

[0028] Step 102 : for each first channel pressure in the first channel pressure set, determine the absolute value of the difference between the first channel pressure and the second channel pressure corresponding to the first channel pressure in the second channel pressure set as the channel pressure difference.

[0029] In some embodiments, for each first channel pressure in the first channel pressure set, the execution entity may determine the absolute value of the difference between the first channel pressure and the second channel pressure corresponding to the first channel pressure in the second channel pressure set as the channel pressure difference. In practice, the execution entity may select the second channel pressure whose corresponding detection time is the same as the detection time of the first channel pressure from the second channel pressure set. Then, the execution entity may determine the absolute value of the difference between the first channel pressure and the selected second channel pressure as the channel pressure difference. Thus, the pressure difference between each first channel pressure and the second channel pressure detected within the target time period may be determined.

[0030] Step 103: determine the average of the obtained pressure differences of each channel as the target channel pressure difference.

[0031] In some embodiments, the execution subject may determine the average of the obtained pressure differences of each channel as the target channel pressure difference, thereby determining the average channel pressure difference within the target time period, so as to determine the user's breathing state according to the average channel pressure difference.

[0032] Step 104: determine the channel pressure difference that meets the preset current time condition among the obtained channel pressure differences as the current channel pressure difference.

[0033] In some embodiments, the execution subject may determine the channel pressure difference that satisfies the preset current time condition among the obtained channel pressure differences as the current channel pressure difference. 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.

[0034] Step 105: Generate a target fan pressure according to the target channel pressure difference and the current channel pressure difference.

[0035] In some embodiments, the execution subject may generate a 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 the user's breathing state. In practice, the execution subject may first obtain the current fan pressure of the fan device at the current time. The current fan pressure may be the fan pressure corresponding to the fan device at the current time point. Then, in response to the current channel pressure difference being greater than or equal to the target channel pressure difference, the execution subject may determine the sum of the current fan pressure and the preset pressure as the target fan pressure. Afterwards, in response to the current channel pressure difference being less than the target channel pressure difference, the execution subject may determine the absolute value of the difference between the current fan pressure and the preset pressure as the target fan pressure. Thus, it is possible to determine whether the user is in an inhalation state or an exhalation state according to the current channel pressure difference and the target channel pressure difference, and determine the fan pressure that meets the user's breathing state according to the user's breathing state.

[0036] In some optional implementations of some embodiments, the execution subject may determine the target fan pressure through the following steps:

[0037] In the first step, in response to the target channel pressure difference and the current channel pressure difference satisfying the preset air intake condition, the preset air intake pressure is determined as the target fan pressure corresponding to the fan device. The preset air intake condition may be that the target channel pressure difference is greater than or equal to the current channel pressure difference. The preset air intake pressure may be the fan pressure that the fan device needs to adjust under the preset user air intake state.

[0038] In the second step, in response to the target channel pressure difference and the current channel pressure difference satisfying the preset exhalation condition, the preset exhalation pressure is determined as the target blower pressure corresponding to the blower device. The preset exhalation condition may be that the target channel pressure difference is less than the current channel pressure difference. The preset exhalation pressure may be the blower pressure that the blower device needs to adjust in the user's exhalation state.

[0039] Step 106: Generate a target fan speed corresponding to the fan device according to the target fan pressure and the current channel pressure difference.

[0040] In some embodiments, the execution entity may generate a target fan 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 that can adjust the fan pressure corresponding to the fan device to the target fan pressure. In practice, the execution entity may generate a target fan speed corresponding to the fan device according to the target fan pressure and the current channel pressure difference in various ways. Thus, the fan speed that needs to be adjusted when the fan device is adjusted to the target fan pressure can be determined.

[0041] In some optional implementations of some embodiments, the above-mentioned execution subject may also determine the target fan speed corresponding to the fan device by executing the following steps:

[0042] In the first step, the ratio of the target fan pressure to the current channel pressure difference is determined as a deviation ratio.

[0043] The second step is to generate a target speed corresponding to the target fan pressure according to the target fan pressure and the current channel pressure difference. The target speed may be the fan speed corresponding to the fan device when the fan device is constantly at the target fan pressure. In practice, the execution subject may first determine the sum of the product of the target fan pressure and the first preset coefficient and the product of the current channel pressure difference and the second preset coefficient as the first speed. Then, the absolute value of the difference between the first speed and the third preset coefficient is determined, and then the product of the absolute value of the difference and the fourth preset coefficient is determined as the target speed. The first preset coefficient, the second preset coefficient, the third preset coefficient and the fourth preset coefficient are all obtained by fitting algorithms based on the target fan pressure sample, the current channel pressure difference sample and the target speed sample. Specifically, the target fan pressure sample and the current channel pressure difference sample can be used as independent variables, and the target speed sample can be used as a dependent variable for fitting processing 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.

[0044] The third step is to generate a target fan speed corresponding to the fan device according to the deviation ratio and the target speed. In practice, the execution subject may determine the target fan speed corresponding to the fan device as the product of the square of the deviation ratio and the target speed.

[0045] Therefore, the fan speed corresponding to the time when the above-mentioned fan device reaches the above-mentioned target fan pressure faster can be further obtained through the ratio of the above-mentioned target fan pressure and the above-mentioned current channel pressure difference, so that the pressure of the gas output by the fan device can correspond to the user's breathing state, thereby reducing the probability of the user experiencing sleep apnea.

[0046] In some optional implementations of some embodiments, the execution entity may also determine the target speed as a target fan speed corresponding to the fan device.

[0047] Step 107, controlling the fan device to adjust the corresponding fan speed to the target fan speed.

[0048] In some embodiments, the execution subject may control the fan device to adjust the corresponding fan speed to the target fan speed. Thus, by adjusting the corresponding fan speed to the target fan speed, the pressure of the gas output by the fan device may be made consistent with the user's breathing state, thereby improving the user's experience.

[0049] Optionally, the above execution entity may further perform the following steps:

[0050] The first step is to obtain the current fan pressure corresponding to the above-mentioned fan device, as well as the standard first pressure detected by the above-mentioned first pressure detection device and the standard second pressure detected by the above-mentioned second pressure detection device. The above-mentioned standard first pressure may be the pressure detected by the above-mentioned first pressure detection device when the above-mentioned fan device is not running under standard atmospheric pressure. The above-mentioned standard second pressure may be the pressure detected by the above-mentioned second pressure detection device when the above-mentioned fan device is not running under standard atmospheric pressure. In practice, the above-mentioned execution subject may obtain the current fan pressure corresponding to the above-mentioned fan device, as well as the standard first pressure detected by the above-mentioned first pressure detection device and the standard second pressure detected by the above-mentioned second pressure detection device from the storage device included in the previous execution subject.

[0051] In the second step, the absolute value of the difference between the above-mentioned standard first pressure and the above-mentioned standard second pressure is determined as the pressure compensation value.

[0052] The third step is to generate 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 the wearing state of the ventilator. In practice, the execution subject may first determine the ratio of the current fan pressure to the preset fifth coefficient as the pressure ratio. Then, the execution subject may determine the sum of the pressure ratio, the pressure compensation value and the preset sixth coefficient as the target pressure value. The preset fifth coefficient and the preset sixth coefficient may be coefficients obtained by fitting the pressure compensation value sample, the current fan pressure sample and the target pressure value sample. Specifically, the pressure compensation value sample and the current fan pressure sample may be used as independent variables, and the target pressure value sample may be used as the dependent variable for fitting to obtain the preset fifth coefficient and the preset sixth coefficient. As an example, the preset fifth coefficient may be 8. The preset sixth coefficient may be 150.

[0053] In the fourth step, according to the target pressure value, the preset wearing state configuration information in the preset wearing state configuration information set that satisfies the preset pressure value condition is determined as the 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 the preset pressure value range included in the preset wearing state configuration information.

[0054] The fifth step is to determine the preset wearing state included in the target wearing state configuration information as the wearing state corresponding to the ventilator. The wearing state represents one of the following: a dropped state, a leaking state, and a normal state. The dropped state can represent the state in which the ventilator drops. The leaking state can represent the state in which the ventilator leaks. The normal state can represent the state in which the user wears the ventilator normally without dropping or leaking.

[0055] Thus, the wearing status of the ventilator can be determined to determine whether the ventilator has fallen or is leaking.

[0056] Optionally, after determining the preset wearing state included in the target wearing state configuration information as the wearing state corresponding to the ventilator, the execution subject may further perform the following steps:

[0057] In the first step, in response to the above-mentioned wearing state representing the dropped state, the following steps are performed:

[0058] The first sub-step is to control the above-mentioned fan device to stop working.

[0059] The second sub-step is to generate a drop state prompt information according to the current time point corresponding to the above-mentioned wearing state and the above-mentioned current channel pressure difference. Among them, the above-mentioned drop state prompt information can be information used to prompt the user that the ventilator has fallen. In practice, first, the above-mentioned execution subject can obtain a preset drop state prompt template from the storage unit in response to the above-mentioned wearing state characterizing the drop state. Then, the current time point corresponding to the above-mentioned current channel pressure difference can be filled into the preset drop state prompt template to obtain the drop state prompt information. Among them, the above-mentioned preset drop state prompt template can be "The ventilator falls when". The horizontal line is used to fill in the current time point corresponding to the above-mentioned current channel pressure difference.

[0060] The third sub-step is to send the above-mentioned drop status prompt information to the associated terminal device. Among them, the above-mentioned associated terminal device can be a device for displaying the above-mentioned drop status prompt information. For example, the above-mentioned associated terminal device can be but not limited to any one of the following: a smart phone, a laptop computer, a display device. In practice, the above-mentioned execution entity can send the above-mentioned drop status prompt information to the associated terminal device via a wired connection or a wireless connection. It should be pointed out that the above-mentioned wireless connection method can include but is not limited to 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.

[0061] The fourth sub-step is to control the associated alarm device to perform an alarm operation corresponding to the above-mentioned drop status prompt information. The above-mentioned associated alarm device may be a device for performing an alarm operation. For example, the above-mentioned associated alarm device may be, but is not limited to, any of the following: a microphone, an indicator light. In practice, the above-mentioned execution subject may control the above-mentioned alarm device to emit a sound of "ventilator dropped".

[0062] In the second step, in response to the above wearing state characterizing the air leakage state, the following steps are performed:

[0063] The first sub-step is to generate leakage status prompt information according to the above-mentioned wearing status. Among them, the leakage status prompt information can be information used to prompt the user that the ventilator is leaking. In practice, first, the above-mentioned execution subject can obtain a preset leakage status prompt template from the storage unit in response to the leakage status characterized by the above-mentioned wearing status. Then, the current time point corresponding to the above-mentioned current channel pressure difference can be filled into the preset leakage status prompt template to obtain the leakage status prompt information. Among them, the above-mentioned preset leakage status prompt template can be "The ventilator leaks when". The horizontal line is used to fill in the current time point corresponding to the above-mentioned current channel pressure difference.

[0064] The second sub-step is to send the leakage status prompt information to the terminal device. In practice, the execution subject may send the leakage status prompt information to the terminal device via a wired connection or a wireless connection.

[0065] The third sub-step is to control the alarm device to perform an alarm operation corresponding to the air leakage status prompt information. In practice, the execution subject can control the alarm device to emit a sound of "ventilator leakage".

[0066] Therefore, when the ventilator falls or leaks, the corresponding prompt information can be sent to the terminal, and the corresponding alarm operation can be performed to remind the user.

[0067] Optionally, the above execution entity may further perform the following steps:

[0068] The first step is to obtain a set of historical channel pressure differences corresponding to the above-mentioned channel pressure differences. The above-mentioned set of historical channel pressure differences can be a set of channel pressure differences corresponding to a preset time period before the above-mentioned target time period. The above-mentioned preset time period can be 1 minute. In practice, the above-mentioned execution subject can obtain a set of historical channel pressure differences corresponding to the above-mentioned channel pressure differences from the above-mentioned storage unit.

[0069] The second step is to perform 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 the mean of the square differences of each historical channel pressure difference included in the historical channel pressure difference set as the historical pressure deviation value.

[0070] The third step is to perform deviation processing on the pressure differences of the above-mentioned channels to obtain pressure deviation values ​​corresponding to the pressure differences of the above-mentioned channels. In practice, the execution subject may determine the square difference of the pressure differences of the above-mentioned channels as the pressure deviation value.

[0071] In the fourth step, the ratio of the pressure deviation value to the historical pressure deviation value is determined as the pressure ratio.

[0072] The fifth step is to determine the respiratory state information corresponding to the current channel pressure difference according to the pressure ratio. The respiratory state information may be information characterizing the respiratory state of the user. For example, the respiratory state information may be "the user is breathing normally". The respiratory state information may characterize one of the following: normal state, apnea state, and hypoventilation state. The normal state may characterize the normal breathing of the user. The apnea state may characterize the apnea of ​​the user. The hypoventilation state may characterize the hypoventilation of the user. In practice, in response to the pressure ratio being greater than or equal to the first preset pressure ratio threshold, the execution subject may generate respiratory state information characterizing the normal state. In response to the pressure ratio being greater than or equal to the second preset pressure ratio threshold and less than the first preset pressure ratio threshold, the execution subject may generate respiratory state information characterizing the hypoventilation state. In response to the pressure ratio being less than the second preset pressure ratio threshold, the execution subject may generate respiratory state information characterizing the apnea state. As an example, the execution subject may select the preset respiratory state information corresponding to the pressure ratio from the preset respiratory state information set 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 pre-set pressure ratio thresholds. For example, the first preset pressure ratio threshold may be 60%, and the second preset pressure ratio threshold may be 30%.

[0073] Optionally, after determining the respiratory state information corresponding to the current channel pressure difference according to the pressure ratio, the execution subject may further perform the following steps:

[0074] The first step is to adjust the fan pressure corresponding to the above-mentioned fan device to a preset oscillation pressure in response to the above-mentioned respiratory state information characterizing the apnea state. The above-mentioned preset oscillation pressure can be a fan pressure with a larger preset pressure value. In practice, first, the above-mentioned execution subject can obtain the current fan speed corresponding to the above-mentioned fan device. Then, the sum of the above-mentioned current fan speed and the preset speed can be determined as the oscillating fan speed. As an example, the above-mentioned preset speed can be 250 rpm. Finally, the fan speed corresponding to the above-mentioned fan device can be adjusted to the oscillating fan speed to adjust the fan pressure corresponding to the above-mentioned fan device to the preset oscillation pressure.

[0075] The second step is to obtain the first oscillation pressure set detected by the first pressure detection device and the 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 detection device when the fan pressure of the fan device is a preset oscillation pressure. The second oscillation pressure set may be a set of pressures detected by the second pressure detection device when the fan pressure of the fan device is a preset oscillation pressure. In practice, first, the execution subject may determine the time corresponding to when the fan pressure corresponding to the fan device is adjusted to the preset oscillation pressure as the oscillation start time. Then, the first oscillation pressure set detected by the first pressure detection device and the second oscillation pressure set detected by the second pressure detection device from the oscillation start time to the current time may be obtained.

[0076] In the third step, for each first oscillation pressure in the first oscillation pressure set, the absolute value of the difference between the first oscillation pressure and the second oscillation pressure corresponding to the first oscillation pressure in the second oscillation pressure set is determined as the oscillation channel pressure difference. In practice, the execution subject may select a second oscillation pressure having the same acquisition time as the first oscillation pressure from the second oscillation pressure set. Then, the execution subject may determine the absolute value of the difference between the first oscillation pressure and the selected second oscillation pressure as the oscillation pressure difference.

[0077] The fourth step is to perform deviation processing on each obtained oscillation pressure difference to obtain an oscillation pressure deviation value corresponding to each of the above oscillation pressure differences. In practice, the above execution subject may determine the square difference of each obtained oscillation pressure difference as the oscillation pressure deviation value.

[0078] In a fifth step, the ratio of the oscillation pressure deviation value to the historical pressure deviation value is determined as the oscillation pressure ratio.

[0079] Step 6: In response to the oscillation pressure ratio satisfying the preset oscillation end condition, the fan pressure corresponding to the fan device is adjusted to the fan pressure corresponding to the current channel pressure difference. The preset oscillation end 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.

[0080] The seventh step is to obtain the first oscillation end pressure set detected by the first pressure detection device and the second oscillation end pressure set detected by the second pressure detection device. The first oscillation end pressure can be the pressure detected by the first pressure detection device after the fan pressure corresponding to the fan device is adjusted to the fan pressure corresponding to the current channel pressure difference. The second oscillation end pressure can be the pressure detected by the second pressure detection device after the fan pressure corresponding to the fan device is adjusted to the fan pressure corresponding to the current channel pressure difference.

[0081] Step 8: Determine the oscillation end pressure deviation value corresponding to the first oscillation end pressure set and the second oscillation pressure set. The specific steps of determining the oscillation end pressure deviation value are the same as the steps of determining the oscillation pressure ratio in the third to fifth steps, and will not be repeated here.

[0082] In the ninth step, the ratio of the oscillation end pressure deviation value to the historical pressure deviation value is determined as the oscillation end pressure ratio.

[0083] The tenth step is to determine the apnea type corresponding to the apnea state according to the above-mentioned oscillation end pressure ratio. Among them, the above-mentioned apnea type can characterize a central apnea or an obstructive apnea. The above-mentioned central apnea can be a central sleep apnea. The above-mentioned obstructive apnea can be an obstructive sleep apnea. In practice, in response to the above-mentioned oscillation end pressure ratio being greater than or equal to the above-mentioned second preset pressure ratio threshold, the above-mentioned execution body can generate an apnea type characterizing obstructive sleep apnea. In response to the above-mentioned oscillation end pressure ratio being less than the above-mentioned second preset pressure ratio threshold, the above-mentioned execution body can generate an apnea type characterizing central sleep apnea.

[0084] In the eleventh step, in response to the apnea type representing a central apnea, the associated alarm device is controlled to perform an alarm operation corresponding to the apnea state.

[0085] Step 12, based on the above apnea type, generate apnea type prompt information. Among them, the above apnea type prompt information can be information used to prompt the user that the apnea type is central apnea or obstructive apnea. In practice, the above execution entity can fill the above apnea type into the preset apnea type prompt template to obtain the apnea type prompt information. Among them, the above preset apnea type prompt template can be "apnea type is". The horizontal line is used to fill in the above apnea type.

[0086] Step 13: Send the apnea type confirmation information to the associated terminal device. The associated terminal device may be a device for displaying the falling status prompt information. For example, the associated terminal device may be, but not limited to, any one of the following: a smart phone, a laptop computer, a display device. In practice, the execution subject may send the apnea type confirmation information to the associated terminal device via a wired connection or a wireless connection.

[0087] The above technical solution and its related contents, as an inventive point of the embodiments of the present disclosure, solve the second technical problem mentioned in the background technology, "When the user has apnea, it is impossible to determine the type of apnea of ​​the user, so that it is impossible to perform treatment or alarm according to the type of apnea, resulting in poor safety of the user". The factors that lead to poor safety of the user are often as follows: When the user has apnea, it is impossible to determine the type of apnea of ​​the user, so that it is impossible to perform treatment or alarm according to the type of apnea. If the above factors are solved, the effect of improving the user experience and safety can be achieved. In order to achieve this effect, some embodiments of the present disclosure are used in the control method of the fan device of the ventilator. First, when it is determined that apnea occurs, the fan pressure of the fan device can be adjusted to a preset oscillation pressure to perform gas oscillation on the user. And after the oscillation is completed, the apnea type corresponding to the apnea state is determined according to the oscillation end pressure ratio. And in response to the above apnea type representing central apnea, the associated alarm device is controlled to perform an alarm operation corresponding to the apnea state. Because the blower pressure corresponding to the blower device is adjusted to a preset oscillation pressure in response to the respiratory state information characterizing an apnea state, the oscillating gas can be used to oscillate the user's mouth and nose, so as to treat the user whose apnea type characterizes an obstructive apnea, thereby improving user safety. Also, because the apnea type characterizes a central apnea, the associated alarm device is controlled to perform an alarm operation corresponding to the apnea state, and then when the apnea type of the user's apnea state is characterized as central sleep apnea, the user can be reminded by the alarm device and a prompt message can be sent to the terminal, further improving user safety. Therefore, the blower device control method applied to a ventilator in some embodiments of the present disclosure can improve user safety.

[0088] Optionally, the above execution entity may further perform the following steps:

[0089] In the first step, the channel pressure difference among the above-mentioned channel pressure differences which is greater than or equal to the above-mentioned target channel pressure difference is determined as the intake channel pressure difference, so as to obtain an intake channel pressure difference set.

[0090] In the second step, according to each time point corresponding to each inhalation channel pressure difference in the inhalation channel pressure difference set, the above-mentioned inhalation channel pressure differences are grouped to obtain at least one inhalation channel pressure difference group, wherein the time points of each inhalation channel pressure difference in each inhalation channel pressure difference group are arranged in chronological order.

[0091] In the third step, for each of the at least one inhalation channel pressure difference group, perform the following operations:

[0092] In a first sub-step, the intake channel pressure difference in the intake channel pressure difference group that is equal to the target channel pressure difference is determined as the target intake channel pressure difference, to obtain at least one target intake channel pressure difference.

[0093] In a second sub-step, in response to the at least one target intake passage pressure difference including two target intake passage pressure differences, the intake passage pressure difference group is determined as a target intake passage pressure difference group.

[0094] In the third sub-step, the target inhalation channel pressure difference at the time point corresponding to the two target inhalation channel pressure differences that satisfies the preset starting time condition is determined as the starting inhalation channel pressure difference. The preset starting time condition may be that the time point corresponding to the target inhalation channel pressure difference is less than the time point corresponding to the other target inhalation channel pressure difference of the two target inhalation channel pressure differences.

[0095] In a fourth sub-step, the target inhalation channel pressure difference at the time point corresponding to the two target inhalation channel pressure differences that satisfies the preset termination time condition is determined as the termination inhalation channel pressure difference. The preset termination time condition may be that the time point corresponding to the target inhalation channel pressure difference is greater than the time point corresponding to the other target inhalation channel pressure difference of the two target inhalation channel pressure differences.

[0096] In a fifth sub-step, a time difference between a time point corresponding to the starting inhalation channel pressure difference and a time point corresponding to the ending inhalation channel pressure difference is determined as an inhalation duration.

[0097] The fourth step is to perform deviation processing on each determined inhalation duration to obtain an inhalation duration deviation. In practice, the execution subject may determine the square difference of each determined inhalation duration as the inhalation duration deviation.

[0098] Step 5: In response to the above-mentioned inhalation duration deviation being less than a preset inhalation deviation threshold, wherein the above-mentioned preset inhalation deviation threshold may be a preset threshold value less than the inhalation deviation threshold value indicating that the user's inhalation is regular. For each inhalation channel pressure difference group in the above-mentioned at least one inhalation channel pressure difference group, the following steps are performed:

[0099] In a first sub-step, a time point corresponding to the termination of the inhalation channel pressure difference included in the inhalation channel pressure difference group is determined as the termination time point.

[0100] In the second sub-step, according to the above-mentioned termination time point, the time point corresponding to the starting inhalation channel pressure difference included in the inhalation channel pressure difference group that meets the preset adjacent time condition in the above-mentioned at least one inhalation channel pressure difference group is determined as the adjacent termination time point. Among them, the above-mentioned preset adjacent time condition can be that the absolute value of the difference between the time point corresponding to the starting inhalation channel pressure difference included in the inhalation channel pressure difference group and the above-mentioned termination time point is equal to the preset time difference and is greater than the above-mentioned termination time point. The above-mentioned preset time difference can be the interval time length when the above-mentioned respiratory detector collects the first channel pressure.

[0101] In the third sub-step, the time difference between the above-mentioned end time point and the above-mentioned adjacent end time point is determined as the exhalation duration.

[0102] Step 6: Perform deviation processing on each determined exhalation time to obtain an exhalation time deviation. In practice, the execution subject may determine the square difference of each determined exhalation time as the exhalation time deviation.

[0103] In the seventh step, in response to the above-mentioned exhalation duration deviation being less than the preset exhalation deviation threshold, the fan pressure cycle mode information is generated according to the above-mentioned inhalation duration and the above-mentioned exhalation duration. Among them, the above-mentioned fan pressure cycle mode information may include the fan pressure cycle mode. The above-mentioned preset exhalation deviation threshold may be a threshold value that is pre-set and is less than the exhalation deviation threshold to characterize that the user's exhalation is regular. In practice, first, the above-mentioned execution subject may determine the mean of the above-mentioned various exhalation durations as the exhalation cycle duration. Then, the mean of the above-mentioned various inhalation durations may be determined as the inhalation cycle duration. Afterwards, the above-mentioned preset inhalation pressure may be determined as the inhalation cycle pressure corresponding to the inhalation cycle duration in the fan pressure cycle mode. Then, the above-mentioned 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 above-mentioned exhalation cycle duration, the above-mentioned inhalation cycle duration, the above-mentioned inhalation cycle pressure and the above-mentioned exhalation cycle pressure may be spliced ​​to obtain the fan pressure cycle mode as the fan pressure cycle mode information.

[0104] Step 8. In response to the above-mentioned current channel pressure difference satisfying the preset circulation mode start condition, the above-mentioned fan device is controlled to work according to the above-mentioned fan pressure circulation mode. Among them, the above-mentioned preset circulation mode start condition may be that the current channel pressure difference is the starting inhalation channel pressure difference. In practice, in response to the above-mentioned current channel pressure difference satisfying the preset circulation mode start condition, first, the above-mentioned execution subject may control the above-mentioned fan device to adjust the corresponding fan speed to the fan speed corresponding to the inhalation circulation pressure within the time length corresponding to the above-mentioned inhalation cycle time length. Afterwards, within the time length corresponding to the above-mentioned exhalation cycle time length, the above-mentioned fan device is controlled to adjust the corresponding fan speed to the fan speed corresponding to the exhalation circulation pressure. The cycle is performed in this way.

[0105] The above technical solution and its related contents, as an inventive point of the embodiments of the present disclosure, solve the technical problem three mentioned in the background technology, "the fan pressure corresponding to the ventilator is not adjusted according to the predicted breathing condition of the user, resulting in a large number of apnea in the user". The factors that cause the user to have a large number of apnea are often as follows: the fan pressure corresponding to the ventilator is not adjusted according to the predicted breathing condition of the user. If the above factors are solved, the effect of reducing the number of apnea in the user can be achieved. In order to achieve this effect, the fan device control method applied to the ventilator in some embodiments of the present disclosure, first, determines at least one inhalation channel pressure difference group according to the pressure difference. Secondly, determines the starting inhalation channel pressure difference and the ending inhalation channel pressure difference in each inhalation channel pressure difference group. Then, the inhalation duration is determined according to the time points corresponding to the starting inhalation channel pressure difference and the ending inhalation channel pressure difference. Afterwards, in response to the inhalation duration deviation being less than the preset inhalation deviation threshold, the exhalation duration is determined according to the time points corresponding to the starting inhalation channel pressure difference and the ending inhalation channel pressure difference. Then, in response to the exhalation time deviation being less than the preset exhalation deviation threshold, the fan pressure circulation mode information is generated according to the inhalation time and the exhalation time. Finally, in response to the current channel pressure difference satisfying the preset circulation mode start condition, the fan device is controlled to work according to the fan pressure circulation mode. Because in response to the inhalation time deviation being less than the preset inhalation deviation threshold and the exhalation time deviation being less than the preset exhalation deviation threshold, the fan pressure circulation mode information is generated according to the inhalation time and the exhalation time. Thus, it can be determined whether to generate the fan pressure circulation mode information according to the inhalation time deviation and the exhalation time deviation. Also because in response to the current channel pressure difference satisfying the preset circulation mode start condition, the fan device is controlled to work according to the fan pressure circulation mode, and then when the user's breathing is relatively stable, the fan device can be made to work according to the fan pressure circulation mode, that is, the fan pressure is adjusted according to the user's breathing state, the probability of the user's dyspnea is reduced, and the number of times the user has apnea is reduced. Therefore, the fan device control method applied to the ventilator in some embodiments of the present disclosure can reduce the number of times the user has apnea.

[0106] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the fan device control method applied to the ventilator in some embodiments of the present disclosure, the user experience can be improved. Specifically, the reason for the poor user experience is that the pressure of the fan cannot be automatically adjusted according to the breathing state of the user during the treatment process. The gas pressure provided by the fan is the same when the user inhales or exhales. When the air pressure is small, the user has difficulty in inhaling. When the air pressure is large, the gas delivered by the ventilator conflicts with the gas exhaled by the user, causing the user to have difficulty in exhaling, and the user's breathing difficulty will cause the user to wake up from sleep. Based on this, the fan device control method applied to the ventilator in some embodiments of the present disclosure, first, obtain 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 time period. Secondly, for each first channel pressure in the first channel pressure set, the absolute value of the difference between the first channel pressure and the second channel pressure corresponding to the first channel pressure in the second channel pressure set is determined as the channel pressure difference. Thus, the channel pressure difference between each first channel pressure and the second channel pressure detected within the target time period can be determined. Then, the mean of the obtained pressure differences of each channel is determined as the target channel pressure difference. Thus, the average channel pressure difference within the target time period can be determined, so as to determine the user's breathing state according to the average channel pressure difference later. Afterwards, the channel pressure difference that satisfies the preset current time condition among the obtained channel pressure differences is determined as the current channel pressure difference. Then, according to the above-mentioned target channel pressure difference and the above-mentioned current channel pressure difference, a target fan pressure is generated, wherein the above-mentioned target fan pressure represents the exhalation pressure or the inhalation pressure. Thus, according to the target channel pressure difference and the above-mentioned current channel pressure difference, the current breathing state can be generated, and the fan pressure to be adjusted can be determined according to the current breathing state. Then, according to the above-mentioned target fan pressure and the above-mentioned current channel pressure difference, the target fan speed corresponding to the above-mentioned fan device is generated. Thus, the fan speed to be adjusted when the above-mentioned fan device is adjusted to the target fan pressure can be determined. Finally, the above-mentioned fan device is controlled to adjust the corresponding fan speed to the above-mentioned target fan speed. Therefore, by adjusting the corresponding fan speed of the above-mentioned fan device to the above-mentioned target fan speed, the pressure of the gas output by the fan device can be made to correspond to the user's breathing state, thereby improving the user's experience. Because the target fan pressure is generated according to the above-mentioned target channel pressure difference and the above-mentioned current channel pressure difference, the current breathing state can be determined, and the fan pressure that needs to be adjusted can be determined according to the current breathing state. Also, because the fan speed that needs to be adjusted when the above-mentioned fan device is adjusted to the target fan pressure can be determined, and the above-mentioned fan device can be controlled to adjust the corresponding fan speed to the above-mentioned target fan speed, the pressure of the gas output by the fan device can be made to adapt to the user's breathing state, reducing the probability of the user experiencing breathing difficulties, thereby improving the treatment effect.Therefore, the fan device control method applied to a ventilator through some embodiments of the present disclosure can improve the user experience.

[0107] Further references Figure 2 , which shows a schematic structural diagram of a ventilator 200 suitable for implementing some embodiments of the present disclosure. Figure 2 The ventilator shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0108] like Figure 2 As shown, the ventilator 200 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 202 or a program loaded from a storage device 208 to a random access memory (RAM) 203. In the RAM 203, various programs and data required for the operation of the ventilator 200 are also stored. The processing device 201, the ROM 202, and the RAM 203 are connected to each other via a bus 204. An input / output (I / O) interface 205 is also connected to the bus 204.

[0109] Typically, the following devices can be connected to the I / O interface 205: input devices 206 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 207 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 208 including, for example, a magnetic tape, a hard disk, etc.; communication devices 209. The communication device 209 can allow the ventilator 200 to communicate with other devices wirelessly or by wire to exchange data; a blower device 210 including a fan, a vortex motor, etc.; and a first pressure detection device 211 and a second pressure detection device 212. Although Figure 2 The ventilator 200 is shown with various devices, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have instead. Figure 2 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0110] Optionally, the ventilator may further include a nasal mask and an air supply tube. The nasal mask may be detachably connected to the air supply tube. The air supply tube may be detachably connected to the air outlet provided on the fan device. The nasal mask may be worn on the nose or face of a user to supply air to the user. The air supply tube may be used to deliver air from the fan device to the nasal mask. The air outlet may be an opening through which the fan device delivers air to the air supply tube. The connection between the nasal mask and the air supply, and the connection between the air supply tube and the fan device may both be snap connections. As an example, a connecting buckle is provided on the air supply tube. The air supply tube is connected to the fan device via the connecting buckle. Furthermore, at least one anti-slip protrusion is provided on the connecting buckle to facilitate the user to pull out the air supply tube from the fan device.

[0111] Optionally, the air outlet may be provided with a double-hole tube. The double-hole tube may be a tube including two through holes. The first pressure detection device and the second pressure detection device may be respectively arranged in the two holes included in the double-hole tube. Specifically, the first pressure detection device may be fixed in any hole included in the double-hole tube. The second pressure detection device may be fixed in the other hole included in the double-hole tube.

[0112] Optionally, the fan device may further include a heating module, a temperature control module and a negative ion module. 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 thermostat. The negative ion module may be a module for ionizing the air. For example, the negative ion module may be a negative ion generator. Here, the specific positions of the heating module, the temperature control module and the negative ion module are not limited. As an example, the heating module, the temperature control module and the negative ion module may all be arranged at the air inlet of the fan device. As another example, the heating module and the temperature control module may be arranged at the air inlet of the fan device, and the negative ion module may be arranged at the air outlet of the fan device. Thus, the air outside the extracted device may be heated by the heating module and the temperature control module, and the air outside the extracted device may be purified by the negative ion module, thereby improving the user experience.

[0113] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 209, or installed from the storage device 208, or installed from the ROM 202. When the computer program is executed by the processing device 201, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0114] It should be noted that the computer-readable medium recorded 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 above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0115] In some embodiments, the client and the server 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"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0116] The computer-readable medium may be included in the ventilator; or it may exist independently without being assembled into the ventilator. The computer-readable medium carries one or more programs. When the one or more programs are executed by the ventilator, the ventilator: obtains 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 time period; for each first channel pressure in the first channel pressure set, determines the absolute value of the difference between the first channel pressure and the second channel pressure corresponding to the first channel pressure in the second channel pressure set as the channel pressure difference; determines the average of the obtained channel pressure differences as the target channel pressure difference; determines the channel pressure difference that meets the preset current time condition among the obtained channel pressure differences as the current channel pressure difference; generates a target fan pressure according to the target channel pressure difference and the current channel pressure difference, wherein the target fan pressure represents the exhalation pressure or the inhalation pressure; generates a target fan speed corresponding to the fan device according to the target fan pressure and the current channel pressure difference; controls the fan device to adjust the corresponding fan speed to the target fan speed.

[0117] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0118] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0119] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor including 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 do not constitute limitations on the units themselves in certain circumstances, for example, the control unit may also be described as "a unit that controls the above-mentioned fan device to adjust the corresponding fan speed to the above-mentioned target fan speed".

[0120] 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: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0121] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A method for controlling a fan device used in a ventilator, in, The ventilator comprises a first pressure detection device, a second pressure detection device and a fan device, the fan device comprises an air outlet, the air outlet is provided with a double-hole tube, the first pressure detection device and the second pressure detection device are respectively arranged in two holes included in the double-hole tube, and the method comprises: 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 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; The average of the pressure differences of each channel obtained is determined as the target channel pressure difference; Determine the channel pressure difference that satisfies the preset current time condition among the obtained channel pressure differences as the current channel pressure difference; Generate a target blower pressure according to the target channel pressure difference and the current channel pressure difference, wherein the target blower pressure represents the exhalation pressure or the inhalation pressure; Generating a target fan speed corresponding to the fan device according to the target fan pressure and the current channel pressure difference, including: Determine the ratio of the target fan pressure to the current channel pressure difference as a deviation ratio; Generating a target speed corresponding to the target fan pressure according to the target fan pressure and the current channel pressure difference, including: determining the sum of the product of the target fan pressure and a first preset coefficient and the product of the current channel pressure difference and a second preset coefficient as a first speed, determining an absolute value of a difference between the first speed and a third preset coefficient, and determining the product of the absolute value of the difference and a fourth preset coefficient as the target speed; According to the deviation ratio and the target speed, a target fan speed corresponding to the fan device is generated, wherein the first preset coefficient, the second preset coefficient, the third preset coefficient and the fourth preset coefficient are all obtained by a fitting algorithm based on a target fan pressure sample, a current channel pressure difference sample and a target speed sample; The fan device is controlled to adjust the corresponding fan speed to the target fan speed.

2. The method according to claim 1, in, The step of generating a target fan pressure according to the target channel pressure difference and the current channel pressure difference comprises: In response to the target channel pressure difference and the current channel pressure difference satisfying a preset air intake condition, determining a preset air intake 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 exhalation condition, the preset exhalation pressure is determined as the target blower pressure corresponding to the blower device.

3. A method for controlling a fan device used in a ventilator, in, The ventilator comprises a first pressure detection device, a second pressure detection device and a fan device, the fan device comprises an air outlet, the air outlet is provided with a double-hole tube, the first pressure detection device and the second pressure detection device are respectively arranged in two holes included in the double-hole tube, the first pressure detection device detects the pressure of the first channel, and the second pressure detection device detects the pressure of the second channel, and the method comprises: Acquire a current fan pressure corresponding to the fan device, as well as a standard first pressure detected by the first pressure detection device and a standard second pressure detected by the second pressure detection device; determining an absolute value of a difference between the standard first pressure and the standard second pressure as a pressure compensation value; Generate a target pressure value according to the pressure compensation value and the current fan pressure, including: determining a ratio of the current fan pressure to a preset fifth coefficient as a pressure ratio, and determining a sum of the pressure ratio, the pressure compensation value and a preset sixth coefficient as a target pressure value, wherein the preset fifth coefficient and the preset sixth coefficient are coefficients obtained by fitting a pressure compensation value sample, a current fan pressure sample and a target pressure value sample; According to the target pressure value, the preset wearing state configuration information that satisfies the preset pressure value condition in the preset wearing state configuration information set is determined as the target wearing state configuration information, wherein the preset wearing state configuration information in the preset wearing state configuration information set includes a preset pressure value range and a preset wearing state, and the preset pressure value condition is that the target pressure value is within the preset pressure value range included in the preset wearing state configuration information; The preset wearing state included in the target wearing state configuration information is determined as the wearing state corresponding to the ventilator, wherein the wearing state represents one of the following: a falling state, an air leakage state, and a normal state.

4. The method according to claim 3, in, After determining the preset wearing state included in the target wearing state configuration information as the wearing state corresponding to the ventilator, the method further includes: In response to the wearing state indicating a dropped state, the following steps are performed: Controlling the fan device to stop working; Generate falling state prompt information according to the wearing state and the current time point corresponding to the current channel pressure difference; Sending the drop status prompt information to the associated terminal device; Controlling the associated alarm device to execute an alarm operation corresponding to the falling state prompt information; In response to the wearing state indicating a leakage state, the following steps are performed: Generate leakage status prompt information according to the wearing status; Sending the leakage status prompt information to the terminal device; The alarm device is controlled to execute an alarm operation corresponding to the gas leakage status prompt information.

5. A method for controlling a fan device used in a ventilator, in, The ventilator comprises a first pressure detection device, a second pressure detection device and a fan device, the fan device comprises an air outlet, the air outlet is provided with a double-hole tube, the first pressure detection device and the second pressure detection device are respectively arranged in two holes included in the double-hole tube, the first pressure detection device detects the pressure of the first channel, and the second pressure detection device detects the pressure of the second channel, and the method comprises: Obtain a historical channel pressure difference set corresponding to each channel pressure difference; 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, wherein the mean of the square differences of each historical channel pressure difference included in the historical channel pressure difference set is determined as the historical pressure deviation value; Performing deviation processing on the pressure differences of each channel to obtain a pressure deviation value corresponding to the pressure differences of each channel, wherein the square difference of the pressure differences of each channel is determined as the pressure deviation value; Determine a ratio of the pressure deviation value to the historical pressure deviation value as a pressure ratio; According to the pressure ratio, the respiratory state information corresponding to the current channel pressure difference is determined, wherein the respiratory state information represents one of the following: a normal state, an apnea state, and a hypoventilation state, wherein in response to the pressure ratio being greater than or equal to a first preset pressure ratio threshold, respiratory state information representing a normal state is generated, 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, respiratory state information representing a hypoventilation state is generated, and in response to the pressure ratio being less than the second preset pressure ratio threshold, respiratory state information representing an apnea state is generated.

6. A ventilator, include: one or more processors; a storage device having one or more programs stored thereon; A fan device for conveying gas in a rotating state; A first pressure detection device and a second pressure detection device are used to detect the pressure in the ventilator channel; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.

7. The ventilator according to claim 6, in, The ventilator also includes a nasal mask and an air delivery tube; The nasal mask is detachably connected to the air supply pipe, and the air supply pipe is detachably connected to the air outlet arranged on the fan device.

8. The ventilator according to claim 7, in, The air outlet is provided with a double-hole tube, and the first pressure detection device and the second pressure detection device are respectively arranged in two holes included in the double-hole tube.

9. The ventilator according to claim 6, in, The fan device also includes a heating module, a temperature control module and a negative ion module.

10. A computer readable medium having a computer program stored thereon, in, When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.