Fan control method, ventilator and computer readable medium

Through the fan control method, the pre-trained fan revolution generation model is used to adjust the fan revolution of the ventilator, which solves the problem of poor stability of the ventilator output pressure and the lack of maximum output pressure duration in automatic adjustment mode, achieving higher ventilation and user experience.

CN116036427BActive Publication Date: 2025-05-20SHENZHEN VVFLY ELECTRONICS CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211701958.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-28
Publication Date
2025-05-20
Estimated Expiration
2042-12-28

AI Technical Summary

Technical Problem

When existing ventilators control the output pressure, the accuracy of gas flow regulation is low, resulting in poor stability of output pressure, reduced ventilation, and poor user experience. At the same time, the lack of maximum output pressure duration is reported in the automatic adjustment mode, which leads to frequent overshoot and affects the user's sleep.

Method used

The fan control method is adopted to determine the operating mode of the ventilator, obtain the preset ventilation pressure value and the target ventilation flow value, generate the target suction pressure value, and input the pre-trained fan rotation number generation model to obtain the fan rotation number to adjust the fan rotation number to ensure the stable output pressure.

Benefits of technology

It improves the ventilation and user experience of the ventilator, ensures the stability of output pressure, reduces the occurrence of overshoot, and improves the quality of users' sleep.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116036427B_ABST
    Figure CN116036427B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a fan control method, a ventilator, and a computer-readable medium. A specific implementation of the method includes: determining the operating mode of the target ventilator; obtaining the preset ventilation pressure value, the target ventilation flow value, and the output ventilation pressure value of the target ventilator; generating a target inspiratory pressure value according to the operating mode and the preset ventilation pressure value; generating a target pressure value according to the target inspiratory pressure value; inputting the target pressure value and the target ventilation flow value into a pre-trained fan speed generation model to obtain the fan speed as the first fan speed; generating a speed adjustment coefficient according to the target pressure value and the output ventilation pressure value; generating a second fan speed according to the first fan speed and the speed adjustment coefficient; and controlling the fan device associated with the target ventilator to perform a fan speed adjustment operation according to the second fan speed. This implementation can improve the ventilation of the ventilator and 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 field of medical devices, and particularly to a fan control method, a ventilator, and a computer-readable medium. Background Art

[0002] A ventilator assists patients with insufficient respiratory function or unable to breathe independently by outputting air at a certain pressure or flow rate. Currently, when controlling the output pressure of a ventilator, the commonly used method is to control the opening degree of a proportional valve in the main exhaust pipe of the ventilator to control the gas flow rate output by the ventilator, thereby controlling the output pressure of the ventilator. And each time it is used, the treatment pressure is set manually, and the treatment duration is reflected in the report generated in the pressure automatic adjustment mode.

[0003] However, the inventors have found that when controlling the pressure of a ventilator in the above manner, the following technical problems often exist:

[0004] First, the method of controlling the gas flow rate output by the ventilator by controlling the opening degree of the proportional valve in the main exhaust pipe of the ventilator has a low accuracy in adjusting the gas flow rate output by the ventilator, resulting in poor stability of the output pressure of the ventilator, reducing the ventilation performance of the ventilator and the user experience.

[0005] Second, the duration of the highest output pressure is not reflected in the report generated in the pressure automatic adjustment mode. When using the set treatment pressure as a reference data for the user to set the treatment pressure, the number of overshoot phenomena caused by the set treatment pressure is relatively large, affecting the user's sleep, thereby reducing the ventilation performance of the ventilator and the user experience.

[0006] Third, setting the treatment pressure manually has a low setting efficiency and a single setting method, thereby reducing the user experience.

[0007] Fourth, when a respiratory event occurs, a preset pressure value is set for adjustment according to the respiratory event. For different event types and event durations, the adjusted pressure value is the same. When the preset pressure value is large, when a hypoventilation event or an event with a short duration occurs, the number of overshoot phenomena generated is relatively large, affecting the user's sleep. When the preset pressure value is small, when an apnea event or an event with a long duration occurs, the ventilation performance of the ventilator is low, resulting in a poor user experience.

[0008] The above information disclosed in this background art section is only used to enhance the understanding of the background of the inventive concept, and thus, it may include information that does not form the prior art known to those of ordinary skill in the art in this country. Summary of the Invention

[0009] This disclosure is in part for introducing concepts in a concise form, which will be described in detail in the following detailed implementation section. This disclosure is not intended to identify the key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0010] Some embodiments of the present disclosure provide a fan control method, a ventilator, a computer-readable medium, and a program product to solve one or more of the technical problems mentioned in the above background art section.

[0011] In a first aspect, some embodiments of the present disclosure provide a fan control method applied to a target ventilator, where the target ventilator includes a fan device, and the method includes: determining the operating mode of the target ventilator; obtaining the preset ventilation pressure value, the target ventilation flow value, and the output ventilation pressure value of the target ventilator; generating a target inhalation pressure value according to the operating mode and the preset ventilation pressure value; generating a target pressure value according to the target inhalation pressure value; inputting the target pressure value and the target ventilation flow value into a pre-trained fan speed generation model to obtain the fan speed as the first fan speed, where the fan speed generation model is used to represent the correspondence between the target pressure value, the target ventilation flow value, and the fan speed; generating a speed adjustment coefficient according to the target pressure value and the output ventilation pressure value; generating a second fan speed according to the first fan speed and the speed adjustment coefficient; and controlling the fan device associated with the target ventilator to perform a fan speed adjustment operation according to the second fan speed.

[0012] In a second aspect, some embodiments of the present disclosure provide a ventilator, including: one or more processors; a storage device on which one or more programs are stored, and a fan device for delivering gas in a rotating state; when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the first aspect.

[0013] In a third aspect, some embodiments of the present disclosure provide a computer-readable medium on which a computer program is stored, where the program, when executed by a processor, implements the method described in any implementation manner of the first aspect.

[0014] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: Through the fan control method of some embodiments of the present disclosure, the ventilation performance of the ventilator and the user experience can be improved. Specifically, the reasons for the poor stability of the output pressure of the ventilator, which reduces the ventilation performance of the ventilator and the user experience, are as follows: The method of controlling the output gas flow of the ventilator by controlling the opening degree of the proportional valve in the main exhaust pipe of the ventilator has a low accuracy in adjusting the output gas flow of the ventilator, resulting in poor stability of the output pressure of the ventilator and reducing the ventilation performance of the ventilator and the user experience. Based on this, the fan control method of some embodiments of the present disclosure is applied to a target ventilator, where the above-mentioned target ventilator includes a fan device. First, determine the operating mode of the above-mentioned target ventilator. Second, obtain the preset ventilation pressure value, target ventilation flow value, and output ventilation pressure value of the above-mentioned target ventilator. Thus, the basic settings of the user for the above-mentioned target ventilator and the ventilation situation at the current time can be obtained, which can be used to determine the fan speed. Then, generate a target inhalation pressure value according to the above-mentioned operating mode and the above-mentioned preset ventilation pressure value. After that, generate a target pressure value according to the above-mentioned target inhalation pressure value. Thus, the pressure value that needs to be output in the exhaust pipe of the above-mentioned target ventilator can be obtained, which can be used to determine the fan speed. Subsequently, input the above-mentioned target pressure value and the above-mentioned target ventilation flow value into a pre-trained fan speed generation model to obtain the fan speed as the first fan speed. Among them, the above-mentioned fan speed generation model is used to represent the corresponding relationship between the target pressure value, the target ventilation flow value, and the fan speed. Thus, the required fan speed can be obtained, which can be used to control the pressure value in the exhaust pipe of the above-mentioned target ventilator to remain stable by adjusting the fan speed. Then, generate a speed adjustment coefficient according to the above-mentioned target pressure value and the above-mentioned output ventilation pressure value. Thus, the coefficient for adjusting the fan speed can be obtained, which can assist the fan device in making adjustments to enable the target ventilator to quickly reach the target pressure value and shorten the response time of the target pressure value. Immediately afterwards, generate a second fan speed according to the above-mentioned first fan speed and the above-mentioned speed adjustment coefficient. Thus, the actually required second fan speed can be obtained, which can be used to control the fan device associated with the above-mentioned target ventilator to perform a fan speed adjustment operation. Finally, control the fan device associated with the above-mentioned target ventilator to perform a fan speed adjustment operation according to the above-mentioned second fan speed. Thus, the output pressure value of the above-mentioned target ventilator can be controlled to remain stable by controlling the fan device associated with the above-mentioned target ventilator. Also, because when controlling the output pressure value of the above-mentioned target ventilator to remain stable, not only can the accuracy of adjusting the output gas flow of the ventilator be improved by adjusting the fan speed, but also considering that adjusting the fan speed requires a response time, the coefficient of adjusting the fan speed can be increased to shorten the time difference between the fan speed and the output pressure adjustment, thereby improving the stability of the output pressure of the ventilator.Thus, the ventilation performance of the ventilator and the user experience can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0016] Figure 1 is a flowchart of some embodiments of a fan control method according to the present disclosure;

[0017] Figure 2 is a schematic structural diagram of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0018] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Instead, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0019] It should also be noted that, for the sake of convenience of description, only parts related to the relevant invention are shown in the drawings. Without conflict, the embodiments in the present disclosure and the features in the embodiments can be combined with each other.

[0020] 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 intended to limit the order or interdependence of the functions performed by these devices, modules, or units.

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

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

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

[0024] Figure 1Flow 100 of some embodiments of the fan control method according to the present disclosure is shown. The fan control method includes the following steps:

[0025] Step 101, determining the operating mode of the target ventilator.

[0026] In some embodiments, the execution subject (e.g., ventilator) of the fan control method can determine the operating mode of the target ventilator in various ways. Among them, the above-mentioned target ventilator can be a ventilator in operation. The above-mentioned operating mode can characterize that the pressure output by the above-mentioned target ventilator during operation and during the user's inhalation cycle is constant or automatically adjusted. The above-mentioned operating mode can be, but is not limited to, one of the following: continuous positive pressure single-level output mode, pressure automatic adjustment mode.

[0027] In some alternative implementation manners of some embodiments, the execution subject can determine the operating mode of the target ventilator through the following steps:

[0028] In the first step, in response to determining that the operating state of the above-mentioned target ventilator is the machine-on state, control the associated display device to display a treatment interface. Among them, the above-mentioned machine-on state can indicate that the above-mentioned target ventilator has started running. The above-mentioned treatment interface can include, but is not limited to, at least one of the following: a treatment mode control, a basic setting control, and a setting control. The above-mentioned treatment mode control can be used to jump to a treatment mode interface. The above-mentioned treatment mode interface can be used to display relevant parameter information during the treatment process. The above-mentioned parameter information can include, but is not limited to, at least one of the following: sleep duration, breathing frequency, and mask tightness. The above-mentioned basic setting control can be used to jump to a basic setting interface. The above-mentioned basic setting interface can be used to display controls for setting the operating functions of the above-mentioned target ventilator. The above-mentioned basic setting interface can include, but is not limited to, at least one of the following: a treatment mode control, a ramp control, a pressure relief control, a smart start control, and a smart stop control. The above-mentioned treatment mode control can be used to jump to a treatment mode window. The above-mentioned treatment mode window can be used to receive a user's mode input operation. The above-mentioned mode input operation can be an operation of inputting a treatment mode. The above-mentioned treatment mode can indicate whether the output pressure value during the user's inhalation in the treatment process of the above-mentioned target ventilator is fixed or automatically adjusted. The above-mentioned output pressure value can be the pressure value in the exhaust pipe when the above-mentioned target ventilator is running. The above-mentioned ramp control is used to receive a user's time selection operation. The above-mentioned time selection operation can be an operation of selecting the time interval when the above-mentioned target ventilator gradually increases the pressure when it is turned on. The above-mentioned pressure relief control is used to determine whether to reduce the pressure value of the ventilator intake by a preset reduction value when the user exhales. The above-mentioned preset reduction value can be the value of how much the pressure needs to be reduced that is preset in advance. The above-mentioned smart start control can be used to select whether to turn on the automatic start function. The above-mentioned smart stop control can be used to select whether to turn on the automatic stop function. The above-mentioned setting control can be used to jump to a setting interface. The above-mentioned setting interface can be used to display controls for displaying treatment reports and related function settings for device management and applications. The above-mentioned display device can be a display screen connected to the above-mentioned target ventilator in a wired or wireless connection manner.

[0029] In the second step, in response to detecting a selection operation on the basic setting control displayed in the above-mentioned treatment interface, display the basic setting interface. Among them, the above-mentioned selection operation can be, but is not limited to, at least one of the following: click, hover, drag, slide.

[0030] Step 3: In response to detecting a selection operation on the treatment mode control displayed in the above basic setting interface, display a treatment mode window in the above basic setting interface. Among them, the above treatment mode window may include, but is not limited to, at least one of the following: a first mode control and a second mode control. The above first mode control can be used to select whether to turn on the continuous positive pressure single-level output mode. The above second mode control can be used to select whether to turn on the pressure automatic adjustment mode.

[0031] Step 4: In response to detecting a mode control selection operation on the mode control displayed in the above treatment mode window, determine the treatment mode corresponding to the above mode control selection operation as the operating mode of the above target ventilator. The above mode control selection operation can be, but is not limited to, at least one of the following: click, hover, drag, slide.

[0032] Optionally, before step 102, the above execution entity may further perform the following steps:

[0033] Step 1: Obtain each set of target inspiratory pressure values within the historical time period in the target operating mode as the historical target inspiratory pressure value set. Among them, the above historical time period can be a period of time in the past. For example, the above historical time period can be the past month. The above target operating mode can be the operating mode of the target ventilator determined in step 101. Each historical target inspiratory pressure value included in the above historical target inspiratory pressure value set corresponds to at least one historical target pressure time period. The historical target pressure time periods included in the above at least one historical target pressure time period can be the time periods when the output pressure value of the above target ventilator is the corresponding historical target inspiratory pressure value. In practice, the above execution entity can obtain each set of target inspiratory pressure values within the historical time period in the target operating mode as the historical target inspiratory pressure value set through a wired connection method or a wireless connection method from the server. It should be noted that the above 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 currently known or future-developed wireless connection methods.

[0034] Step 2: For each historical target inspiratory pressure value included in the above historical target inspiratory pressure value set, perform the following sub-steps:

[0035] The first sub-step: Determine the first historical time period set for each historical target pressure time period corresponding to the above historical target inspiratory pressure value.

[0036] The second sub-step: Determine the duration corresponding to each first historical time period in the above first historical time period set as the first historical duration, and obtain the first historical duration set.

[0037] In the third sub-step, determine the sum of each of the first historical durations included in the above-mentioned first historical duration set as the total historical duration.

[0038] In the third step, select at least one total historical duration that meets the preset historical duration condition from the determined total historical durations as the target historical duration set. Among them, the above-mentioned preset historical duration condition can be that the total historical duration is the maximum value among the above-mentioned total historical durations.

[0039] In the fourth step, generate a predicted set pressure value according to the above-mentioned target historical duration set. Among them, the above-mentioned predicted set pressure value can be the output pressure value automatically defaulted by the above-mentioned target ventilator. In practice, first, the above-mentioned execution entity can determine the number of each of the target historical durations included in the above-mentioned target historical duration set as the duration number. Secondly, in response to determining that the above-mentioned duration number is greater than 1, determine the historical target inhalation pressure value corresponding to each target historical duration in the above-mentioned target historical duration set as the historical pressure value to obtain a historical pressure value set. Then, determine the maximum value of the historical pressure values in the above-mentioned historical pressure value set as the predicted set pressure value. Finally, in response to determining that the above-mentioned duration number is equal to 1, determine the historical target inhalation pressure value corresponding to the target historical duration included in the above-mentioned target historical duration set as the predicted set pressure value.

[0040] In the fifth step, display a setting prompt window in the above-mentioned basic setting interface according to the above-mentioned predicted set pressure value. Among them, the above-mentioned setting prompt window can be a window for selecting whether to manually set the preset ventilation pressure value or the pressure value automatically recommended by the system. The above-mentioned setting prompt window can include but is not limited to at least one of the following: setting prompt information, acceptance selection control, and rejection selection control. The above-mentioned setting prompt information can be information for prompting to select the automatically recommended pressure value. The above-mentioned acceptance selection control can be a control for representing selection acceptance. The above-mentioned rejection selection control can be a control for representing selection rejection. In practice, the above-mentioned execution entity can combine the above-mentioned preset string and the predicted set pressure value to obtain the setting prompt information. Among them, the above-mentioned preset string can be "Do you accept setting the pressure value to". Then, display a setting prompt window in the above-mentioned basic setting interface.

[0041] In the sixth step, in response to detecting a selection operation on the acceptance selection control displayed in the above-mentioned setting prompt window, display the above-mentioned predicted set pressure value as the preset ventilation pressure value in the preset ventilation pressure value window in the above-mentioned basic setting interface. Among them, the above-mentioned preset ventilation pressure value window can be a window for displaying the preset ventilation pressure value.

[0042] The above technical solution and its related content, as an inventive point of the embodiments of the present disclosure, solve the third technical problem mentioned in the background art: "By manually setting the treatment pressure, the setting efficiency is low and the setting method is single, thus reducing the user experience." The factors that lead to the reduction of the user experience are often as follows: By manually setting the treatment pressure, the setting efficiency is low and the setting method is single, thus reducing the user experience. If the above factors are solved, the effect of improving the user experience can be achieved. To achieve this effect, in the fan control method of some embodiments of the present disclosure, first, obtain each set of target inhalation pressure values during a historical time period in a target operation mode as a historical target inhalation pressure value set. Among them, the above target operation mode matches the above operation mode, and each historical target inhalation pressure value included in the above historical target inhalation pressure value set corresponds to at least one historical target pressure time period. Thus, a set of historical target inhalation pressure values in the same mode can be obtained, so that historical data can be referred to for generating an automatically recommended pressure value, making the automatically recommended pressure value more suitable for users. Second, for each historical target inhalation pressure value included in the above historical target inhalation pressure value set, perform the following steps: Determine a first historical time period set for each historical target pressure time period corresponding to the above historical target inhalation pressure value; Determine the duration corresponding to each first historical time period in the above first historical time period set as a first historical duration to obtain a first historical duration set; Determine the sum of each first historical duration included in the above first historical duration set as the total historical duration. Thus, the total historical duration corresponding to each historical target inhalation pressure value can be obtained, which can be used to determine the automatically recommended pressure value. Then, select at least one total historical duration that meets the preset historical duration condition from the determined total historical durations as the target historical duration set. After that, generate a predicted set pressure value according to the above target historical duration set. Thus, an automatically recommended pressure value determined from the perspective of historical application duration can be obtained, which can improve the applicability of the automatically recommended treatment pressure value to users and improve the user experience during use. Subsequently, according to the above predicted set pressure value, a setting prompt window is displayed in the above basic setting interface. Among them, the above setting prompt window includes a setting prompt message, an acceptance selection control, and a rejection selection control. Thus, two ways can be provided to set the treatment pressure value, enabling the user to make an independent choice, thereby improving the user experience. Finally, in response to detecting a selection operation on the acceptance selection control displayed in the above setting prompt window, the above predicted set pressure value is displayed as the preset ventilation pressure value in the preset ventilation pressure value window in the above basic setting interface. Thus, automatic setting of the treatment pressure can be realized, improving the setting efficiency. Also, because when setting the treatment pressure value, the user can choose manual setting or directly use the automatically recommended treatment pressure, the user experience is improved. Thus, the user experience can be improved.

[0043] Step 102, obtain the preset ventilation pressure value, target ventilation flow value, and output ventilation pressure value of the target ventilator.

[0044] In some embodiments, the above-mentioned execution entity can obtain the preset ventilation pressure value, target ventilation flow value, and output ventilation pressure value of the target ventilator from the server through a wired connection method or a wireless connection method. Among them, the above-mentioned preset ventilation pressure value can be the pressure value in the exhaust pipeline when the target ventilator is running, which is preset by the user. The above-mentioned target ventilation flow value can be the flow value in the exhaust pipeline when the target ventilator is running at the current time. The above-mentioned output ventilation pressure value can be the pressure value in the exhaust pipeline when the target ventilator is running at the current time. The above-mentioned output ventilation pressure value can be the pressure value measured by a pressure sensor.

[0045] Step 103, generate a target inspiratory pressure value according to the operation mode and the preset ventilation pressure value.

[0046] In some embodiments, the above-mentioned execution entity can generate a target inspiratory pressure value according to the above-mentioned operation mode and the above-mentioned preset ventilation pressure value. Among them, the above-mentioned target inspiratory pressure value can be the pressure value that the user expects in the exhaust pipeline when the target ventilator is running during inspiration. In practice, the above-mentioned execution entity can, in response to determining that the operation mode of the target ventilator is the above-mentioned continuous positive pressure single-level output mode, determine the above-mentioned preset ventilation pressure value as the target inspiratory pressure value.

[0047] In some optional implementation manners of some embodiments, the above-mentioned execution entity can also generate a target inspiratory pressure value according to the above-mentioned operation mode and the above-mentioned preset ventilation pressure value through the following steps:

[0048] First step, in response to determining that the operation mode of the above-mentioned target ventilator is the above-mentioned pressure automatic adjustment mode, determine the above-mentioned preset ventilation pressure value as the initial inspiratory pressure value.

[0049] Second step, in response to detecting the occurrence of a respiratory event, generate respiratory event information. Among them, the above-mentioned respiratory event information can include the event type and event duration. The above-mentioned event type can be, but is not limited to, one of the following: apnea event, hypopnea event. The above-mentioned apnea event can be an event where the user experiences apnea during treatment. The above-mentioned hypopnea event can be an event where the user experiences hypopnea during treatment. The above-mentioned event duration can be the duration of the event of the event type that occurs at the current time. In practice, first, the above-mentioned execution entity can, in response to detecting the occurrence of a respiratory event, determine the event type and event duration of the respiratory event. Then, combine the above-mentioned event type and event duration to obtain respiratory event information. Among them, the above-mentioned combination method can be character splicing.

[0050] Step 3: Generate an adjusted pressure value according to the above-mentioned breathing event information. The adjusted pressure value can be the pressure value that the current output pressure value needs to increase or decrease. In practice, first, the execution entity can determine the event type included in the breathing event information. Then, determine the preset adjusted pressure value corresponding to the event type as the adjusted pressure value.

[0051] In some optional implementation manners of some embodiments, the execution entity can generate an adjusted pressure value according to the breathing event information through the following sub-steps:

[0052] The first sub-step: In response to determining that the event type included in the breathing event information is an apnea event, input the event duration included in the breathing event information into the first pressure adjustment model obtained by pre-training to obtain the first adjusted pressure value as the adjusted pressure value. The first pressure adjustment model can be used to represent the corresponding relationship between the event duration and the first adjusted pressure value. As an example, the first pressure adjustment model can be a correspondence table. The correspondence table can be a correspondence table of a large number of preset corresponding relationships between the event duration and the first adjusted pressure value. In practice, compare the input event duration with the multiple event durations in the correspondence table in sequence. If one of the event durations in the correspondence table is the same as the event duration or the duration difference is within the preset range, then use the first adjusted pressure value corresponding to the event duration in the correspondence table as the first adjusted pressure value indicated by the event duration.

[0053] The first pressure adjustment model can also be a neural network model with the event duration as the input and the first adjusted pressure value as the output. The first pressure adjustment model can be obtained by training according to a training sample set.

[0054] Optionally, the above training sample set includes sample event duration and sample first adjusted pressure value. In practice, the above first pressure adjustment model can be obtained by performing the following training steps based on the training sample set: inputting the sample event durations of at least one training sample in the training sample set into the initial machine learning model respectively to obtain the corresponding first adjusted pressure values; comparing the first adjusted pressure value corresponding to each sample event duration in the above at least one training sample with the corresponding sample first adjusted pressure value; determining the prediction accuracy rate of the above initial machine learning model according to the comparison result; determining whether the above prediction accuracy rate is greater than a preset accuracy rate threshold; in response to determining that the above accuracy rate is greater than the above preset accuracy rate threshold, determining the above initial machine learning model as the first pressure adjustment model that has completed training; in response to determining that the above accuracy rate is not greater than the above preset accuracy rate threshold, adjusting the parameters of the above initial machine learning model, and using the unused training samples to form a training sample set, using the adjusted initial machine learning model as the initial machine learning model, and performing the above training steps again. Among them. The above initial machine learning model can be a convolutional neural network model.

[0055] The second sub-step, in response to determining that the event type included in the above respiratory event information is a hypopnea event, inputting the event duration included in the above respiratory event information into the second pressure adjustment model pre-trained to obtain the second adjusted pressure value as the adjusted pressure value. Among them, the above second pressure adjustment model can be used to represent the corresponding relationship between the event duration and the second adjusted pressure value. As an example, the above second pressure adjustment model can be a correspondence table. Among them, the above correspondence table can be a correspondence table of a preset large number of corresponding relationships between event durations and second adjusted pressure values. In practice, comparing the input event duration with the multiple event durations in the correspondence table in sequence, if a certain event duration in the correspondence table is the same as this event duration or the duration difference is within the preset range, then using the second adjusted pressure value corresponding to the event duration in the correspondence table as the second adjusted pressure value indicated by this event duration.

[0056] The above second pressure adjustment model can be a neural network model with the event duration as the input and the second adjusted pressure value as the output. The above second pressure adjustment model can be trained according to the training sample set.

[0057] Optionally, the above training sample set includes sample event duration and sample second adjusted pressure value. In practice, the above second pressure adjustment model can be obtained by performing the following training steps based on the training sample set: inputting the sample event durations of at least one training sample in the training sample set into the initial machine learning model respectively to obtain the corresponding second adjusted pressure values; comparing the second adjusted pressure values corresponding to each sample event duration in the above at least one training sample with the corresponding sample second adjusted pressure values; determining the prediction accuracy of the above initial machine learning model according to the comparison results; determining whether the above prediction accuracy is greater than a preset accuracy threshold; in response to determining that the above accuracy is greater than the above preset accuracy threshold, determining the above initial machine learning model as the second pressure adjustment model that has completed training; in response to determining that the above accuracy is not greater than the above preset accuracy threshold, adjusting the parameters of the above initial machine learning model, and using the unused training samples to form a training sample set, using the adjusted initial machine learning model as the initial machine learning model, and performing the above training steps again. Among them. The above initial machine learning model can be a convolutional neural network model.

[0058] The relevant content of the above technical solution is an inventive point of an embodiment of the present disclosure, which solves the fourth technical problem mentioned in the background art: "When a respiratory event occurs, a preset pressure value is set for adjustment according to the respiratory event. For different event types and event durations, the adjusted pressure value is the same. When the preset pressure value is relatively large, when a hypopnea event or a short event duration occurs, the number of overshoot phenomena generated is relatively large, affecting the user's sleep. When the preset pressure value is relatively small, when an apnea event or a long event duration occurs, the ventilation of the ventilator is relatively low, resulting in a poor user experience." The factors that lead to a relatively large number of overshoot phenomena or relatively low ventilation of the ventilator, resulting in a poor user experience, are often as follows: When a respiratory event occurs, a preset pressure value is set for adjustment according to the respiratory event. For different event types and event durations, the adjusted pressure value is the same. When the preset pressure value is relatively large, when a hypopnea event or a short event duration occurs, the number of overshoot phenomena generated is relatively large, affecting the user's sleep. When the preset pressure value is relatively small, when an apnea event or a long event duration occurs, the ventilation of the ventilator is relatively low, resulting in a poor user experience. If the above factors are solved, the ventilation of the ventilator can be improved, the number of overshoot phenomena generated can be reduced, and the user experience can be improved. To achieve this effect, in the fan control method of some embodiments of the present disclosure, first, in response to determining that the event type included in the above respiratory event information is an apnea event, the event duration included in the above respiratory event information is input into a first pressure adjustment model obtained by pre-training to obtain a first adjusted pressure value as the adjusted pressure value. Among them, the above first pressure adjustment model is used to represent the corresponding relationship between the event duration and the first adjusted pressure value. Thus, when the event type included in the above respiratory event information is an apnea event, the amount of pressure value to be adjusted can be determined according to the duration of the apnea event, so that different pressure values can be adjusted for different durations of apnea events. Second, in response to determining that the event type included in the above respiratory event information is a hypopnea event, the event duration included in the above respiratory event information is input into a second pressure adjustment model obtained by pre-training to obtain a second adjusted pressure value as the adjusted pressure value. Among them, the above second pressure adjustment model is used to represent the corresponding relationship between the event duration and the second adjusted pressure value. Thus, when the event type included in the above respiratory event information is a hypopnea event, the amount of pressure value to be adjusted can be determined according to the duration of the hypopnea event, so that different pressure values can be adjusted for different durations of hypopnea events.Also, for different types of respiratory events, even for the same type of event with different event durations, the adjusted pressure values are different. Therefore, when a user uses a ventilator and a respiratory event occurs, the ventilator can automatically generate an adjusted pressure value suitable for the actual situation of the user according to the specific circumstances of the respiratory event. Thus, while improving the ventilation of the ventilator, the generation of overshoot phenomena can be reduced, thereby enhancing the user experience.

[0059] Fourth step, determine the first pressure value as the sum of the above-mentioned adjusted pressure value and the above-mentioned initial inhalation pressure value.

[0060] Fifth step, in response to determining that the above-mentioned first pressure value meets the preset first pressure condition, determine the above-mentioned first pressure value as the target inhalation pressure value. Among them, the above-mentioned preset first pressure condition can be that the above-mentioned first pressure value is less than or equal to the maximum value of the preset output pressure value.

[0061] In some other alternative implementation manners of some embodiments, the above-mentioned execution entity can also generate a target inhalation pressure value according to the above-mentioned operation mode and the above-mentioned preset ventilation pressure value through the following steps:

[0062] First step, in response to the current time meeting the preset interval duration condition, determine whether a respiratory event occurs within the first time period. Among them, the above-mentioned first time period is the time period from the historical time to the current time. The above-mentioned historical time can be the time when the last respiratory event occurred. The interval duration of the above-mentioned first time period is the preset interval duration corresponding to the above-mentioned preset interval duration condition. The above-mentioned preset interval duration condition can be that the time interval between the current time and the time when the last respiratory event occurred is the preset interval duration. The above-mentioned preset interval duration can be a preset interval duration. For example, the above-mentioned preset interval duration can be 10 minutes. In practice, first, the above-mentioned execution entity can, in response to the current time meeting the preset interval duration condition, determine the flow curve within the first time period. Among them, the above-mentioned flow curve can represent the gas flow values at each moment. Secondly, divide the above-mentioned flow curve into each flow curve segment according to the preset event interval duration. Among them, the above-mentioned preset event interval duration can be a preset interval duration for determining respiratory events. For example, the above-mentioned preset event interval duration can be 1 minute. Then, for each flow curve segment in the above-mentioned each flow curve segment, perform the following sub-steps:

[0063] First sub-step, compare the difference between the maximum flow value and the minimum flow value in the above-mentioned flow curve segment with a preset threshold value. Among them, the above-mentioned preset threshold value can be a preset threshold value.

[0064] Second sub-step, in response to determining that the difference between the maximum flow value and the minimum flow value in the above-mentioned flow curve segment is greater than the above-mentioned preset threshold value, determine that no respiratory event occurs within the time period corresponding to the above-mentioned flow curve segment.

[0065] In a third sub-step, in response to determining that the difference between the maximum flow rate and the minimum flow rate in the above flow rate curve segment is less than or equal to the above preset threshold, it is determined that a respiratory event occurs during the time period corresponding to the above flow rate curve segment.

[0066] After that, in response to determining that no respiratory event occurs in each time period corresponding to the above respective flow rate curve segments, it is determined that no respiratory event occurs in the above first time period.

[0067] Finally, in response to determining that a respiratory event occurs during the time period corresponding to any of the flow rate curve segments included in the above respective flow rate curve segments, it is determined that a respiratory event occurs in the above first time period.

[0068] In a second step, in response to determining that no respiratory event occurs in the above first time period, the above preset ventilation pressure value is determined as the target inhalation pressure value.

[0069] Step 104: Generate a target pressure value according to the target inhalation pressure value.

[0070] In some embodiments, the above execution entity may generate a target pressure value according to the above target inhalation pressure value. Wherein, the above target pressure value may be the pressure value expected in the exhaust pipeline when the above target ventilator operates. In practice, first, the above execution entity may determine whether the current time is within an exhalation cycle or an inhalation cycle. Secondly, in response to determining that the current time is within the exhalation cycle, it is determined that the user's respiratory type at the current time is exhalation. Then, in response to determining that the current time is within the inhalation cycle, it is determined that the user's respiratory type at the current time is inhalation. Finally, in response to determining that the user's respiratory type at the current time is inhalation, the above target inhalation pressure value is determined as the target pressure value.

[0071] In some alternative implementation manners of some embodiments, the above execution entity may generate a target pressure value according to the above target inhalation pressure value through the following steps:

[0072] In a first step, determine the user's respiratory type at the current time. Wherein, the above user's respiratory type is one of the following: exhalation, inhalation. In practice, first, the above execution entity may determine whether the current time is within an exhalation cycle or an inhalation cycle. Secondly, in response to determining that the current time is within the exhalation cycle, it is determined that the user's respiratory type at the current time is exhalation. Then, in response to determining that the current time is within the inhalation cycle, it is determined that the user's respiratory type at the current time is inhalation.

[0073] Second step, in response to determining that the user's breathing type at the current time is exhalation, determine whether the exhalation decompression mode is in the decompression-on state. Herein, the above-mentioned decompression-on state may indicate that the exhalation decompression mode has been turned on. In practice, the above-mentioned execution entity may, in response to determining that the user's breathing type at the current time is exhalation, and in response to detecting the decompression selection operation of the exhalation decompression mode control displayed in the above-mentioned basic setting interface, determine whether the exhalation decompression mode corresponding to the above-mentioned decompression selection operation is turned on. Secondly, in response to determining that the exhalation decompression mode corresponding to the above-mentioned decompression selection operation is turned on, determine that the exhalation decompression mode is in the decompression-on state.

[0074] Third step, in response to determining that the above-mentioned exhalation decompression mode is in the decompression-on state, determine the decompression gear type. In practice, the above-mentioned execution entity may, in response to determining that the above-mentioned exhalation decompression mode is in the decompression-on state, display a decompression mode window in the above-mentioned basic setting interface. Herein, the above-mentioned decompression mode window may be a window for selecting the decompression gear type. The above-mentioned decompression mode window may include at least one decompression gear control. The above-mentioned decompression gear control may be a control for selecting the decompression gear type. The above-mentioned decompression gear type corresponds to a pressure reduction value. The corresponding relationship between the above-mentioned decompression gear type and the above-mentioned pressure reduction value may be one-to-one. The above-mentioned pressure reduction value may be the pressure value that the current output pressure value needs to be reduced by.

[0075] Fourth step, determine the difference between the pressure reduction value corresponding to the above-mentioned decompression gear type and the above-mentioned target inhalation pressure value as the second pressure value.

[0076] Fifth step, in response to determining that the above-mentioned second pressure value meets the preset second pressure condition, determine the above-mentioned second pressure value as the target pressure value. Herein, the above-mentioned preset second pressure condition may be that the above-mentioned second pressure value is greater than the minimum value of the output pressure value preset by the user.

[0077] Optionally, the above-mentioned execution entity may, in response to determining that the above-mentioned second pressure value does not meet the above-mentioned preset second pressure condition, determine the minimum value of the output pressure value preset by the user as the target pressure value.

[0078] Step 105, input the target pressure value and the target ventilation flow value into a pre-trained fan speed generation model to obtain the fan speed as the first fan speed.

[0079] In some embodiments, the above-mentioned execution entity may input the above-mentioned target pressure value and the above-mentioned target ventilation flow rate value into a pre-trained fan speed generation model to obtain the fan speed as the first fan speed. Among them, the above-mentioned fan speed generation model is used to represent the corresponding relationship between the target pressure value, the target ventilation flow rate value, and the fan speed. As an example, the fan speed generation model may be a correspondence table that is pre-formulated based on the statistics of a large number of target pressure values, target ventilation flow rate values, and fan speeds and stores the corresponding relationships between multiple target pressure values, target ventilation flow rate values, and fan speeds.

[0080] Optionally, the above-mentioned fan speed generation model may also be a model trained based on a linear regression algorithm using a training sample set. Among them, the training samples in the above-mentioned training sample set include sample target pressure values, sample target ventilation flow rate values, and sample fan speeds.

[0081] Optionally, the above-mentioned fan speed generation model may also be a neural network model that takes the target pressure value and the target ventilation flow rate value as inputs and the fan speed as the output. The above-mentioned neural network model may be a convolutional neural network model.

[0082] Step 106: Generate a speed adjustment coefficient according to the target pressure value and the output ventilation pressure value.

[0083] In some embodiments, the above-mentioned execution entity may generate a speed adjustment coefficient according to the above-mentioned target pressure value and the above-mentioned output ventilation pressure value. Among them, the above-mentioned speed adjustment coefficient may be a coefficient used to adjust the fan speed. In practice, the above-mentioned execution entity may determine the square of the ratio of the above-mentioned target pressure value to the above-mentioned output ventilation pressure value as the speed adjustment coefficient.

[0084] Step 107: Generate a second fan speed according to the first fan speed and the speed adjustment coefficient;

[0085] In some embodiments, the above-mentioned execution entity may generate a second fan speed according to the above-mentioned first fan speed and the above-mentioned speed adjustment coefficient. Among them, the above-mentioned second fan speed may be the speed that the fan device needs to rotate to reach. In practice, the above-mentioned execution entity may determine the product of the above-mentioned first fan speed and the above-mentioned speed adjustment coefficient as the second fan speed.

[0086] Step 108: Control the fan device associated with the target ventilator to perform a fan speed adjustment operation according to the second fan speed.

[0087] In some embodiments, the above-mentioned execution entity may control the fan device associated with the above-mentioned target ventilator to perform a fan speed adjustment operation according to the above-mentioned second fan speed. Among them, the above-mentioned fan speed adjustment operation may be an operation of adjusting the fan speed. In practice, the above-mentioned execution entity may control the fan device associated with the above-mentioned target ventilator to rotate at the above-mentioned second fan speed to perform the fan speed adjustment operation.

[0088] Optionally, the above-mentioned execution entity may also perform the following steps:

[0089] First step, determine the operating state of the above-mentioned target ventilator. Among them, the above-mentioned operating state may be, but is not limited to, one of the following: machine-on state, machine-off state. The above-mentioned machine-off state may indicate that the above-mentioned target ventilator has stopped operating.

[0090] Second step, in response to determining that the operating state of the above-mentioned target ventilator is the machine-off state, determine the operating time period. In practice, the above-mentioned execution entity may determine the time period from the start of operation to the stop of operation of the above-mentioned target ventilator as the operating time period.

[0091] Third step, obtain a set of target inspiratory pressure values corresponding to the above-mentioned operating time period. Among them, each target inspiratory pressure value in the above-mentioned set of target inspiratory pressure values corresponds to a target pressure time period. Among them, the above-mentioned target pressure time period may be the time period when the user inhales with the corresponding target inspiratory pressure value as the output pressure value.

[0092] Fourth step, select a target inspiratory pressure value that meets the preset target pressure condition from the above-mentioned set of target inspiratory pressure values as the displayed target inspiratory pressure value. Among them, the above-mentioned preset target pressure condition may be that the target inspiratory pressure value is the maximum value in the above-mentioned set of target inspiratory pressure values.

[0093] Fifth step, select each target pressure time period corresponding to the above-mentioned displayed target inspiratory pressure value from the above-mentioned operating time period as the set of target time periods.

[0094] Sixth step, for each target time period in the above-mentioned set of target time periods, determine the duration corresponding to the above-mentioned target time period as the first duration.

[0095] Seventh step, determine the sum of the determined first durations as the target duration.

[0096] Step 8: Generate report information based on the above-mentioned target duration, the above-mentioned operation time period, and the above-mentioned displayed target inspiratory pressure value. Among them, the above-mentioned report information may include relevant parameters such as the duration of this treatment and the output pressure value. In practice, the above-mentioned execution entity determines the duration corresponding to the above-mentioned operation time period as the operation duration. Secondly, determine the ratio of the above-mentioned target duration to the above-mentioned operation duration as the duration ratio. Finally, fill the above-mentioned operation duration, the above-mentioned operation time period, the above-mentioned displayed target inspiratory pressure value, the above-mentioned target duration, and the above-mentioned duration ratio into the above-mentioned preset report information template to obtain the report information. The above-mentioned preset report information template may be "Duration of this treatment_____, Time period of this treatment____, Maximum pressure value____, Total operation duration of the maximum pressure value______, Ratio of the operation duration of the maximum pressure value_____". The underlined parts in the above-mentioned preset report information template may represent the parts to be filled. The first underlined part in the above-mentioned preset report information template may be used to fill the above-mentioned operation duration. The second underlined part in the above-mentioned preset report information template may be used to fill the above-mentioned operation time period. The third underlined part in the above-mentioned preset report information template may be used to fill the above-mentioned displayed target inspiratory pressure value. The fourth underlined part in the above-mentioned preset report information template may be used to fill the above-mentioned target duration. The fifth underlined part in the above-mentioned preset report information template may be used to fill the above-mentioned duration ratio.

[0097] As an example, the above-mentioned target duration may be 120 minutes, the above-mentioned operation time period may be 18:00 - 22:00, and the above-mentioned displayed target inspiratory pressure value may be 6 hPa. Then the above-mentioned operation duration is 240 minutes, and the above-mentioned duration ratio is 50%. Then the generated report information is "Duration of this treatment 240 minutes , Time period of this treatment 18:00-22:00 , Maximum pressure value Six hundred Pa , Total operation duration of the maximum pressure value 120 minutes , Ratio of the operation duration of the maximum pressure value 50% ".

[0098] Step 9: Control the associated sound playback device to play the above-mentioned report information. Among them, the above-mentioned sound playback device may be a speaker.

[0099] The relevant content of the above technical solution is an inventive point of an embodiment of the present disclosure, which solves the second technical problem mentioned in the background art: "The duration of the highest output pressure is not reflected in the report generated in the pressure automatic adjustment mode. When using the highest output pressure as a reference data for the user to set the treatment pressure, the number of overshoot phenomena caused by the set treatment pressure is relatively large, which affects the user's sleep, thereby reducing the ventilation performance of the ventilator and the user experience." The factors that lead to the reduction of the ventilation performance of the ventilator and the user experience are often as follows: The duration of the highest output pressure is not reflected in the report generated in the pressure automatic adjustment mode. When using the highest output pressure as a reference data for the user to set the treatment pressure, the number of overshoot phenomena caused by the set treatment pressure is relatively large, which affects the user's sleep, thereby reducing the ventilation performance of the ventilator and the user experience. If the above factors are solved, the effect of improving the ventilation performance of the ventilator and the user experience can be achieved. To achieve this effect, the fan control method of some embodiments of the present disclosure first determines the operating state of the above target ventilator. Among them, the above operating state is one of the following: machine on state, machine off state. Thus, the operating state of the above target ventilator can be obtained, which can be used to determine whether to generate report information. Secondly, in response to determining that the operating state of the above target ventilator is the off state, the operating time period is determined. Thus, the operating time period can be obtained, and the operating duration can be determined. Then, the set of target inspiratory pressure values corresponding to the above operating time period is obtained. Among them, each target inspiratory pressure value in the above set of target inspiratory pressure values corresponds to a target pressure time period. After that, the target inspiratory pressure value that meets the preset target pressure condition is selected from the above set of target inspiratory pressure values as the displayed target inspiratory pressure value. Thus, the maximum value of the target inspiratory pressure values during the operating time period can be obtained, which can be used to generate report information to notify the user. Subsequently, each target pressure time period corresponding to the above displayed target inspiratory pressure value is selected from the above operating time period as the set of target time periods. Then, for each target time period in the above set of target time periods, the duration corresponding to the above target time period is determined as the first duration. Immediately afterwards, the sum of the determined first durations is determined as the target duration. Thus, the total duration during which the output pressure value of the above target ventilator is the maximum value of the target inspiratory pressure value during operation can be obtained, which can be used to generate report information to notify the user. Then, according to the above target duration, the above operating time period, and the above displayed target inspiratory pressure value, report information is generated. Thus, report information with multi-dimensional parameters can be obtained, which can be used for the user to understand the treatment process and provide data reference for setting the treatment pressure during the next treatment. Finally, the associated sound playback device is controlled to play the above report information. Thus, the voice information can be broadcast to the user, thereby improving the convenience for the user to obtain the report information.Also, when generating the report information, it reflects both the treatment duration, and at the same time, the maximum pressure value used during the operation and the usage duration, thus providing reference data for the user to set the treatment pressure, and further reducing the number of overshoot phenomena caused by the set treatment pressure, improving the user's sleep quality. Therefore, the ventilation of the ventilator and the user experience can be improved.

[0100] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: Through the fan control method of some embodiments of the present disclosure, the ventilation performance of the ventilator and the user experience can be improved. Specifically, the reasons for the poor stability of the output pressure of the ventilator, which reduces the ventilation performance of the ventilator and the user experience, are as follows: The method of controlling the output gas flow of the ventilator by controlling the opening of the proportional valve in the main exhaust pipe of the ventilator has a low accuracy in adjusting the output gas flow of the ventilator, resulting in poor stability of the output pressure of the ventilator and reducing the ventilation performance of the ventilator and the user experience. Based on this, the fan control method of some embodiments of the present disclosure is applied to a target ventilator, where the above-mentioned target ventilator includes a fan device. First, determine the operating mode of the above-mentioned target ventilator. Second, obtain the preset ventilation pressure value, target ventilation flow value, and output ventilation pressure value of the above-mentioned target ventilator. Thus, the basic settings of the user for the above-mentioned target ventilator and the ventilation situation at the current time can be obtained, which can be used to determine the fan speed. Then, generate a target inhalation pressure value according to the above-mentioned operating mode and the above-mentioned preset ventilation pressure value. After that, generate a target pressure value according to the above-mentioned target inhalation pressure value. Thus, the pressure value that needs to be output in the exhaust pipe of the above-mentioned target ventilator can be obtained, which can be used to determine the fan speed. Subsequently, input the above-mentioned target pressure value and the above-mentioned target ventilation flow value into a pre-trained fan speed generation model to obtain the fan speed as the first fan speed. Among them, the above-mentioned fan speed generation model is used to represent the corresponding relationship between the target pressure value, target ventilation flow value, and fan speed. Thus, the required fan speed can be obtained, which can be used to control the pressure value in the exhaust pipe of the above-mentioned target ventilator to remain stable by adjusting the fan speed. Then, generate a speed adjustment coefficient according to the above-mentioned target pressure value and the above-mentioned output ventilation pressure value. Thus, the coefficient for adjusting the fan speed can be obtained, which can assist the fan device in adjusting to enable the target ventilator to quickly reach the target pressure value and shorten the response time of the target pressure value. Immediately afterwards, generate a second fan speed according to the above-mentioned first fan speed and the above-mentioned speed adjustment coefficient. Thus, the actually required second fan speed can be obtained, which can be used to control the fan device associated with the above-mentioned target ventilator to perform a fan speed adjustment operation. Finally, control the fan device associated with the above-mentioned target ventilator to perform a fan speed adjustment operation according to the above-mentioned second fan speed. Thus, the output pressure value of the above-mentioned target ventilator can be controlled to remain stable by controlling the fan device associated with the above-mentioned target ventilator. Also, when controlling the output pressure value of the above-mentioned target ventilator to remain stable, not only can the accuracy of adjusting the output gas flow of the ventilator be improved by adjusting the fan speed, but also considering that adjusting the fan speed requires a response time, the coefficient of adjusting the fan speed can be increased to shorten the time difference between the fan speed and the output pressure adjustment, thereby improving the stability of the output pressure of the ventilator.Thus, the ventilation performance of the ventilator and the user experience can be improved.

[0101] Reference is made below to Figure 2 , which shows a schematic structural diagram of a ventilator 200 suitable for use in implementing some embodiments of the present disclosure. Figure 2 The ventilator shown is merely an example and should not impose any limitation on the functions and scope of use of the embodiments of the present disclosure.

[0102] As Figure 2 shown, the ventilator 200 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 201, which may 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 into 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 through a bus 204. An input / output (I / O) interface 205 is also connected to the bus 204.

[0103] Generally, the following devices may be connected to the I / O interface 205: an input device 206 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 207 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 208 including, for example, a magnetic tape, a hard disk, etc.; a communication device 209. The communication device 209 may allow the ventilator 200 to communicate with other devices wirelessly or wiredly to exchange data; and a blower device 210 including, for example, a fan, a vortex motor, etc. Although Figure 2 the ventilator 200 with various devices is shown, it should be understood that it is not required to implement or include all the shown devices. More or fewer devices may be alternatively implemented or included. Figure 2 Each block shown in

[0104] particular, according to some embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. 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 includes program codes for performing the methods shown in the flowcharts. In such some embodiments, the computer program may be downloaded and installed from a 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 methods of some embodiments of the present disclosure are performed.

[0105] It should be noted that the computer-readable media described in some embodiments of the present disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer 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, the computer-readable storage medium may be any tangible medium that contains or stores a program, which can be used by or in conjunction with an instruction execution system, apparatus, 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 computer-readable program code. Such a propagated data signal may take various 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 the computer-readable storage medium, which can 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 appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0106] 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 digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.

[0107] The above computer-readable medium may be included in the above ventilator; or it may exist independently and not be assembled into the ventilator. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by the ventilator, the ventilator is caused to: determine the operating mode of the above target ventilator; obtain the preset ventilation pressure value, target ventilation flow value and output ventilation pressure value of the above target ventilator; generate a target inhalation pressure value according to the above operating mode and the above preset ventilation pressure value; generate a target pressure value according to the above target inhalation pressure value; input the above target pressure value and the above target ventilation flow value into a pre-trained fan speed generation model to obtain a fan speed as the first fan speed, wherein the above fan speed generation model is used to represent the correspondence between the target pressure value, target ventilation flow value and fan speed; generate a speed adjustment coefficient according to the above target pressure value and the above output ventilation pressure value; generate a second fan speed according to the above first fan speed and the above speed adjustment coefficient; and control a fan device associated with the above target ventilator to perform a fan speed adjustment operation according to the above second fan speed.

[0108] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or combinations thereof. The above programming languages include object-oriented programming languages - such as Java, Smalltalk, C++; and also include conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network - including a local area network (LAN) or a wide area network (WAN) - or may be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).

[0109] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as combinations of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0110] The units described in some embodiments of the present disclosure can be implemented in software or in hardware. The described units can also be provided in a processor. For example, it can be described as: a processor includes a determination unit, an acquisition unit, a first generation unit, a second generation unit, an input unit, a third generation unit, a fourth generation unit, and a control unit. Among them, the names of these units do not constitute a limitation on the unit itself in some cases. For example, the determination unit can also be described as "the unit for determining the operating mode of the above-mentioned target ventilator".

[0111] The functions described above can be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that can be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chip (SOCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0112] The above description is only some preferred embodiments of the present disclosure and an explanation of the technical principles applied. 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 the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, technical solutions formed by mutually replacing the above features with technical features (but not limited to) having similar functions disclosed in the embodiments of the present disclosure.

Claims

1. A ventilator, comprising: one or more processors; a storage device having one or more programs stored thereon, A fan device for conveying gas in a rotating state; When the one or more programs are executed by the one or more processors, the one or more processors implement a wind turbine control method, wherein the wind turbine control method includes: determining an operating mode of the target ventilator; Obtaining a preset ventilation pressure value, a target ventilation flow value, and an output ventilation pressure value of the target ventilator, wherein the preset ventilation pressure value is obtained by the following steps: Acquire each target suction pressure value set within a historical time period under a target operation mode as a historical target suction pressure value set, wherein the target operation mode matches the operation mode, and each historical target suction pressure value included in the historical target suction pressure value set corresponds to at least one historical target pressure time period; For each historical target inspiratory pressure value included in the historical target inspiratory pressure value set, the following steps are performed: Determine a first historical time period set by using each historical target pressure time period corresponding to the historical target inspiratory pressure value; Determine the duration corresponding to each first historical time period in the first historical time period set as a first historical duration, to obtain a first historical duration set; Determine the sum of the first historical durations included in the first historical duration set as the total historical duration; Selecting at least one total historical duration satisfying a preset historical duration condition from the determined total historical durations as a target historical duration set; generating a predicted set pressure value according to the target historical duration set; According to the predicted set pressure value, a setting prompt window is displayed in the basic setting interface; In response to detecting a selection operation of an accept selection control displayed in the setting prompt window, displaying the predicted set pressure value as a preset ventilation pressure value in the preset ventilation pressure value window in the basic setting interface; generating a target inspiratory pressure value according to the operation mode and the preset ventilation pressure value; generating a target pressure value according to the target inspiratory pressure value; Inputting the target pressure value and the target ventilation flow value into a pre-trained fan speed generation model to obtain the fan speed as the first fan speed, wherein the fan speed generation model is used to characterize the corresponding relationship between the target pressure value, the target ventilation flow value and the fan speed; Generating a revolution adjustment coefficient according to the target pressure value and the output ventilation pressure value, wherein generating a revolution adjustment coefficient according to the target pressure value and the output ventilation pressure value comprises: Determine the square of the ratio of the target pressure value to the output ventilation pressure value as the speed adjustment coefficient; Generating a second fan speed according to the first fan speed and the speed adjustment coefficient, wherein generating the second fan speed according to the first fan speed and the speed adjustment coefficient includes: determining the product of the first fan speed and the speed adjustment coefficient as the second fan speed; According to the second fan speed, a fan device associated with the target ventilator is controlled to perform a fan speed adjustment operation.

2. The ventilator according to claim 1, wherein: The operation mode is one of the following: a continuous positive pressure single level output mode, a pressure automatic adjustment mode; and The one or more processors are further configured to generate a target inspiratory pressure value according to the operation mode and the preset ventilation pressure value by the following steps: In response to determining that the operating mode of the target ventilator is the automatic pressure adjustment mode, determining the preset ventilation pressure value as the initial inspiratory pressure value; In response to detecting the occurrence of a respiratory event, generating respiratory event information, wherein the respiratory event information includes an event type and an event duration, and the event type is one of the following: an apnea event and a hypopnea event; generating an adjusted pressure value according to the respiratory event information; Determine the sum of the adjusted pressure value and the initial inhalation pressure value as a first pressure value; In response to determining that the first pressure value satisfies a preset first pressure condition, the first pressure value is determined as a target inhalation pressure value.

3. A ventilator according to claim 2, wherein: The one or more processors are further configured to generate a target inspiratory pressure value according to the operation mode and the preset ventilation pressure value by the following steps: In response to the current time satisfying a preset interval duration condition, determining whether a respiratory event occurs within a first time period, wherein the first time period is a time period from a historical time to a current time; In response to determining that no respiratory event occurs within the first time period, the preset ventilation pressure value is determined as the target inspiratory pressure value.

4. A ventilator according to any one of claims 1 to 3, wherein: The one or more processors are further configured to generate a target pressure value according to the target inspiratory pressure value by the following steps: Determine a user's breathing type at a current time, wherein the user's breathing type is one of the following: exhalation and inhalation; In response to determining that the user's breathing type at the current time is exhalation, determining whether the exhalation decompression mode is in a decompression on state; In response to determining that the exhalation decompression mode is in the decompression on state, determining a decompression gear type; Determine the difference between the pressure reduction value corresponding to the decompression gear type and the target inhalation pressure value as a second pressure value; In response to determining that the second pressure value satisfies a preset second pressure condition, the second pressure value is determined as a target pressure value.

5. The ventilator according to claim 1, wherein: The one or more processors are further configured to determine the operating mode of the target ventilator by: In response to determining that the operating state of the target ventilator is a machine-on state, controlling an associated display device to display a treatment interface; In response to detecting a selection operation of a basic setting control displayed in the treatment interface, displaying a basic setting interface; In response to detecting a selection operation of a treatment mode control displayed in the basic settings interface, displaying a treatment mode window in the basic settings interface; In response to detecting a mode control selection operation of a mode control displayed in the treatment mode window, a treatment mode corresponding to the mode control selection operation is determined as an operating mode of the target ventilator.

6. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by the processor, the fan control method of the ventilator as described in any one of claims 1-5 is implemented.

Citation Information

Patent Citations

  • Open-loop control method and system of fan of breathing machine

    CN105944197A

  • Method for adjusting pressure of draught fan of respirator

    CN105999490A

  • Pregnant woman ventilation control method and device, breathing machine, system and storage medium

    CN109045429A

  • Breathing machine air pressure adjusting and monitoring system and application thereof

    CN114028677A