A user feature-based oxygen flow control method and system for a high-altitude oxygen generator
By identifying changes in the sleep stages of users of high-altitude oxygen concentrators and dynamically adjusting the oxygen supply parameter trajectory, the problem of high-altitude oxygen concentrators being unable to match in time before the arrival of peak oxygen demand has been solved. This has achieved precise matching and smooth transition of oxygen supply, thus improving the sleep quality of users.
Patent Information
- Application Number
- CN202611642308.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-22
- Publication Date
- 2026-11-20
AI Technical Summary
Existing high-altitude oxygen concentrators have limited oxygen flow rate adjustment rates when users switch from deep sleep to REM sleep, making it impossible to match the user's peak oxygen demand in time, resulting in delayed oxygen supply and affecting sleep quality.
By acquiring sleep physiological data from wearable devices, the system identifies the rapid rise in oxygen demand, generates a target oxygen supply parameter trajectory, and dynamically adjusts the upper limit of the oxygen concentrator's regulation rate to ensure that the target oxygen supply parameters are reached before the peak of oxygen demand. Combined with smoothing constraints, the system ensures the continuity of the regulation process.
It achieves precise matching of oxygen flow and concentration, taking into account both the smoothness of the adjustment process and the ability to track quickly, thereby improving the dynamic response of oxygen supply and user comfort.
Smart Images

Figure CN123127518A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of high-altitude oxygen production technology, and more specifically, to a method and system for controlling oxygen flow in a high-altitude oxygen generator based on user characteristics. Background Technology
[0002] In the field of oxygen supply during nighttime sleep at high altitudes, to improve user comfort and achieve precise matching of oxygen supply parameters, existing technologies typically combine wearable health devices with high-altitude oxygen concentrators. Wearable devices continuously collect sleep data such as blood oxygen and pulse rate to construct user sleep profiles. Based on these sleep profiles, the system can predict changes in the user's oxygen demand in advance and adaptively control the oxygen concentrator to output target flow and concentration ahead of time. Simultaneously, to avoid discomfort caused by sudden increases or decreases in concentration, the oxygen concentrator controller usually sets a maximum adjustment rate limit within a unit control cycle, ensuring a smooth transition in actual output. In this conventional control process, the comparison and limiting between the slope of the predicted target curve generated based on sleep characteristics and the upper limit of the oxygen concentrator's adjustment rate directly determine whether the predicted advance can be effectively executed.
[0003] However, when users transition from deep sleep to REM sleep during high-altitude sleep, ventilation and blood oxygen regulation often change significantly, leading to a rapid increase in oxygen demand within a short period. At this time, the slope of the target flow rate or concentration change given by the predictive model based on sleep characteristics increases significantly. Once this target change rate exceeds the upper limit of the oxygen concentrator's preset smooth adjustment rate, the controller cannot directly rise along the predicted target curve and can only output gradually within the maximum allowable rate. In subsequent control cycles, the actual output curve of the oxygen concentrator will remain lower than the predicted target curve, and the time difference between the actual output and the predicted target will gradually widen. The advance time gained by early prediction is continuously consumed in the slow catch-up process. When the actual peak of physiological oxygen demand arrives, the oxygen concentrator's flow rate and concentration have not yet reached the required levels predicted based on sleep characteristics. Existing control methods, when dealing with this contradiction, often statically adhere to the upper limit of the adjustment rate to maintain smoothness, failing to dynamically identify the rapid changes in demand caused by the transition between physiological stages, and making it difficult to make a reasonable trade-off between smooth transition and rapid tracking. Therefore, during the rapid increase in oxygen demand during the transition from deep sleep to REM sleep, when the upper limit of the oxygen concentrator's flow rate and concentration adjustment rate is lower than the target change rate predicted based on the user's sleep characteristics, the controller can only execute at the maximum allowable rate and cannot track the predicted target curve in advance. This results in the actual flow rate and concentration not reaching the target value before the actual peak oxygen demand, thus affecting the advance matching of oxygen flow rate and concentration.
[0004] To address the aforementioned issues, existing technologies urgently need improvement. Summary of the Invention
[0005] The purpose of this invention is to provide a method and system for controlling oxygen flow in a high-altitude oxygen generator based on user characteristics. This invention aims to solve the technical problem that the oxygen flow rate adjustment rate is limited when switching from deep sleep to REM sleep during high-altitude sleep, resulting in the inability to match the user's peak oxygen demand in a timely manner. It can dynamically adjust the adjustment rate according to the oxygen demand status, effectively solve the problem of oxygen supply lag during rapid oxygen demand, and achieve a balance between smooth transition and rapid response.
[0006] In a first aspect, the present invention provides a method for controlling the oxygen flow of a high-altitude oxygen concentrator based on user characteristics, applied to a user-characteristic-based oxygen flow control system for a high-altitude oxygen concentrator, the system comprising a wearable device and an oxygen concentrator connected in communication; the method includes the following steps: S1. Acquire user sleep physiological data sent by the wearable device, and oxygen concentrator operating status data sent by the oxygen concentrator; S2. Based on the sleep physiological data, identify whether the user has entered a stage of rapid increase in oxygen demand as they switch from deep sleep to REM sleep. S3. After identifying the rapid increase in oxygen demand, based on the sleep physiological data, generate a target oxygen supply parameter trajectory with a time lead, and calculate the target change rate of the target oxygen supply parameter trajectory within a preset prediction time window. S4. By comparing the target rate of change with the currently set upper limit of the adjustment rate in the oxygen generator operating status data, the target mismatch section where the target rate of change exceeds the limit is determined; S5. Obtain the out-of-limit index of the target mismatch section; S6. Based on the exceeded index, assess the exceeded level of the target mismatch section, and adjust the upper limit of the adjustment rate of the oxygen generator in the target mismatch section according to the assessed exceeded level. At the same time, during the adjustment process, the continuity of the adjustment process is ensured by applying a preset smoothing constraint. S7. Based on the adjusted upper limit of the regulation rate, the oxygen supply control command is generated by limiting the target rate of change, and the oxygen generator is controlled to operate according to the oxygen supply control command so that the actual output of the oxygen generator reaches the corresponding value of the target oxygen supply parameter trajectory before the peak oxygen demand arrives.
[0007] The oxygen flow control method for high-altitude oxygen generators based on user characteristics provided by this invention has the advantages of being able to dynamically identify the rapid changes in demand caused by the switching of physiological stages, achieving accurate advance matching of oxygen flow and concentration before the arrival of peak oxygen demand, and taking into account both the smoothness of the adjustment process and the ability to quickly track.
[0008] Secondly, the present invention provides an oxygen flow control system for a high-altitude oxygen generator based on user characteristics. The system includes a wearable device and an oxygen generator connected via communication, and further includes: The first acquisition unit is used to acquire user sleep physiological data sent by the wearable device and oxygen concentrator operating status data sent by the oxygen concentrator. The identification unit is used to identify, based on the sleep physiological data, whether the user has entered the stage of rapid increase in oxygen demand during the transition from deep sleep to REM sleep. The calculation unit is used to generate a target oxygen supply parameter trajectory with a time advance based on the sleep physiological data after identifying the rapid rise in oxygen demand, and to calculate the target change rate of the target oxygen supply parameter trajectory within a preset prediction time window. The comparison unit is used to determine the target mismatch segment where the target rate of change exceeds the limit by comparing the target rate of change with the currently set upper limit of the adjustment rate in the oxygen generator operating status data; The second acquisition unit is used to acquire the out-of-limit index of the target mismatch section; The adjustment unit is used to assess the level of exceeding the limit of the target mismatch section according to the exceeding limit index, and adjust the upper limit of the adjustment rate of the oxygen generator in the target mismatch section according to the assessed level of exceeding the limit. At the same time, during the adjustment process, the continuity of the adjustment process is ensured by applying a preset smoothing constraint. The control unit is used to generate an oxygen supply control command by limiting the target rate of change based on the adjusted upper limit of the regulation rate, and to control the oxygen generator to operate according to the oxygen supply control command, so that the actual output of the oxygen generator reaches the corresponding value of the target oxygen supply parameter trajectory before the peak oxygen demand arrives.
[0009] As can be seen from the above, the oxygen flow control method for high-altitude oxygen concentrators based on user characteristics provided by this invention accurately identifies the rapid increase in oxygen demand during the transition from deep sleep to REM sleep by real-time monitoring of user sleep physiological data and utilizing a combination of multi-dimensional physiological indicators. The core advantage of this method lies in its ability to dynamically assess the level of over-limit by simulating the mismatch between the oxygen concentrator's output and the predicted target, and to implement a differentiated adjustment rate upper limit relaxation strategy based on the level. Compared to the static adherence to the adjustment upper limit in existing technologies, this invention can significantly shorten the lag between the actual output and the predicted target curve within a dynamic window that meets the urgent physiological needs, ensuring closed-loop matching of the oxygen supply target trajectory before the arrival of peak oxygen demand. Simultaneously, the S-curve constraint ensures the smoothness of the adjustment process, guaranteeing both the effectiveness of oxygen supply and user comfort.
[0010] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing embodiments of the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description and the accompanying drawings. Attached Figure Description
[0011] Figure 1 A flowchart of an oxygen flow control method for a high-altitude oxygen generator based on user characteristics, provided in an embodiment of the present invention.
[0012] Figure 2 This is a schematic diagram of a user-feature-based oxygen flow control system for a high-altitude oxygen generator, provided in an embodiment of the present invention.
[0013] Label Explanation: 100, First acquisition unit; 200, Identification unit; 300, Calculation unit; 400, Comparison unit; 500, Second acquisition unit; 600, Adjustment unit; 700, Control unit. Detailed Implementation
[0014] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0015] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this invention, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0016] During nighttime oxygen supply at high altitudes, current technologies typically combine wearable health devices with high-altitude oxygen concentrators. These devices collect sleep data such as blood oxygen and pulse rate to construct sleep characteristics and predict oxygen demand, adaptively controlling the concentrator's output. However, in practice, when a user transitions from deep sleep to REM sleep, ventilation and blood oxygen regulation change significantly, causing a rapid increase in oxygen demand within a short period. At this time, the slope of the target flow rate or concentration change given by the prediction model increases significantly. Once this rate of change exceeds the upper limit of the concentrator's preset smooth adjustment rate, the controller cannot rise along the predicted target curve and can only output at the maximum allowable rate. In subsequent control cycles, the actual output curve of the concentrator remains consistently lower than the predicted target curve, amplifying the time difference between the actual output and the predicted target. This means that the time gained through advance prediction is consumed during the catch-up process, resulting in the concentrator's flow rate and concentration not reaching the predicted required level when the actual physiological oxygen demand peaks, thus affecting the advance matching of oxygen flow rate and concentration.
[0017] For example, in high-altitude sleep monitoring scenarios, when a user is at the physiological transition point from deep sleep to REM sleep, wearable devices monitor fluctuations in blood oxygen saturation and characteristic changes in body acceleration signals. Based on this, the system infers and generates a target oxygen supply parameter trajectory with time lead. However, because the oxygen concentrator's internal controller adheres to a preset upper limit for smooth adjustment rate, when the upward slope of the target oxygen supply parameter trajectory exceeds this limit, the oxygen concentrator cannot achieve real-time tracking of the target trajectory. At this time, the actual output flow and concentration of the oxygen concentrator lag behind the target value, resulting in the oxygen supply parameters still being in the climbing phase when the user's oxygen demand reaches its peak, failing to meet the user's physiological oxygen demand in time. This oxygen supply lag directly weakens the significance of control based on sleep characteristics for early prediction.
[0018] If the aforementioned issues are not addressed, oxygen concentrators will continuously be in a reactive, catch-up state when responding to the rapid changes in demand caused by shifts in physiological stages, resulting in a significant discrepancy between oxygen supply parameters and the user's actual physiological needs. This discrepancy not only prevents the predictive mechanism from functioning effectively but may also cause fluctuations in blood oxygen levels during sleep due to insufficient oxygen supply, thereby affecting sleep quality. Therefore, in the field of high-altitude sleep oxygenation, breaking through the limitations of fixed adjustment rates and achieving precise matching of oxygen supply parameters has become crucial for improving system control performance.
[0019] For reference, see the appendix. Figure 1 This invention provides a user-feature-based oxygen flow control method for high-altitude oxygen concentrators, applied to a user-feature-based oxygen flow control system for high-altitude oxygen concentrators. The system includes a wearable device and an oxygen concentrator connected via communication. The method includes the following steps: S1. Acquire user sleep physiological data sent by wearable devices, and oxygen concentrator operating status data sent by the oxygen concentrator; user sleep physiological data includes blood oxygen saturation, pulse rate value, and body motion acceleration signal; S2. Based on sleep physiological data, identify whether the user has entered a stage of rapid increase in oxygen demand as they transition from deep sleep to REM sleep. S3. After identifying the phase of rapid increase in oxygen demand, based on sleep physiological data, a target oxygen supply parameter trajectory with time advance is generated, and the target change rate of the target oxygen supply parameter trajectory within the preset prediction time window is calculated; the target oxygen supply parameters include the target oxygen flow rate and the target oxygen concentration. S4. By comparing the target rate of change with the currently set upper limit of the adjustment rate in the oxygen generator operating status data, the target mismatch section where the target rate of change exceeds the limit is determined; S5. Obtain the out-of-limit indicators for the target mismatch section; the out-of-limit indicators include the out-of-limit difference, the expected amplitude gap, and the expected time lag; S6. Based on the exceedance index, assess the exceedance level of the target mismatch section, and adjust the upper limit of the adjustment rate of the oxygen concentrator in the target mismatch section according to the assessed exceedance level. At the same time, during the adjustment process, apply a preset smoothing constraint to ensure the continuity of the adjustment process. S7. Based on the adjusted upper limit of the regulation rate, the oxygen supply control command is generated by limiting the target change rate, and the oxygen generator is controlled to operate according to the oxygen supply control command so that the actual output of the oxygen generator reaches the corresponding value of the target oxygen supply parameter trajectory before the peak oxygen demand arrives.
[0020] For ease of understanding, the terminology used in this embodiment is explained below.
[0021] Wearable devices refer to portable electronic devices worn on the human body for the continuous collection of physiological signals. In this embodiment, the wearable device is configured to collect blood oxygen saturation, pulse rate, and body acceleration signals, and transmit the data to the oxygen concentrator controller via a wireless communication link.
[0022] An oxygen concentrator is a device that separates oxygen from ambient air and outputs oxygen-enriched gas through physical or chemical means. In this embodiment, the oxygen concentrator is configured to provide users with an output airflow with adjustable oxygen flow rate and concentration, and to report the oxygen concentrator's operating status data in real time.
[0023] Blood oxygen saturation represents the percentage of oxygenated hemoglobin in the total available hemoglobin in the blood, reflecting the oxygenation status of human tissues. Pulse rate represents the number of heartbeats per unit time. Body acceleration signal represents the amount of acceleration change caused by human activity.
[0024] The rapid increase in oxygen demand refers to the phase during sleep where oxygen demand increases rapidly due to physiological changes. In this embodiment, this phase corresponds to the transition period when the user switches from deep sleep to REM sleep.
[0025] The target oxygen supply parameter trajectory refers to the sequence of changes in the target oxygen flow rate and target oxygen concentration that the oxygen generator should output over time within a future predicted time window. This trajectory has a time lead time, which is used to adjust the oxygen supply output in advance before the arrival of peak oxygen demand.
[0026] The target change rate refers to the amount of change in the target oxygen supply parameter between adjacent control cycles in the target oxygen supply parameter trajectory, and is used to quantify how quickly the oxygen supply parameter needs to be adjusted.
[0027] The target mismatch segment refers to the set of control cycles in which the target change rate exceeds the upper limit of the current adjustment rate within the prediction time window. It represents the interval in which the oxygen generator cannot directly track the trajectory of the target oxygen supply parameters according to the original upper limit of the adjustment rate.
[0028] The over-limit index is used to quantify the extent to which the rate of change of the target exceeds the upper limit of the adjustment rate within the target mismatch section, including the over-limit difference, the expected amplitude gap, and the expected time lag.
[0029] The upper limit of the adjustment rate refers to the maximum allowable change in oxygen supply parameters of the oxygen generator within a unit control cycle. This upper limit is used to constrain the rate of change of the actual output.
[0030] Smoothing constraints refer to the continuity restrictions imposed during the adjustment of the upper limit of the adjustment rate, which are used to ensure that there are no abrupt changes in the upper limit of the adjustment rate.
[0031] The oxygen supply control command refers to the control signal generated after limiting the target rate of change based on the adjusted upper limit of the regulation rate. It is used to drive the oxygen generator actuator to operate according to the limited target rate of change.
[0032] The implementation environment of this embodiment includes a wearable device and an oxygen concentrator controller. Specifically, the synchronous acquisition and time-series preprocessing of multi-source sleep physiological data and device operating status are performed as follows: real-time blood oxygen saturation, pulse rate, and body acceleration signals from the wearable device are acquired; current output oxygen flow rate, current output oxygen concentration, currently set upper limit of smooth adjustment rate, real-time speed of the variable frequency compressor, current opening degree of the proportional mixing valve, and real-time pressure inside the system pipeline are acquired from the plateau oxygen concentrator; the wearable device and the oxygen concentrator controller establish a communication link and maintain heart rate packets through Bluetooth Low Energy protocol or local wireless network; physiological data are upsampled to a frequency matching the oxygen concentrator control cycle based on data packet timestamps and unified global clock alignment; a sliding window midpoint filter and motion artifact removal mechanism based on acceleration signals are used to maintain a 60-second historical state circular buffer, and blood oxygen data exceeding the physiological limit abrupt change threshold and accompanied by violent body movement are replaced with the historical median; a multi-dimensional time-series state vector containing the current absolute value and the historical fluctuation trajectory of the past 60 seconds is generated and written to the shared memory area.
[0033] The technical features of this embodiment will be described below in logical order.
[0034] The data acquisition process can be implemented in various ways. For example, wearable devices can collect and package blood oxygen saturation, pulse rate, and body acceleration signals at fixed sampling periods, and then send them. The oxygen concentrator controller reads the oxygen concentrator's operating status data through a serial port or wireless communication interface. In one implementation, the wearable device collects blood oxygen saturation using only a single blood oxygen probe and reports abnormal events to the oxygen concentrator using a simple threshold trigger. In another implementation, a wired communication link is used to transmit data between the wearable device and the oxygen concentrator. In yet another implementation, the wearable device and the oxygen concentrator use independent clocks, and data is directly stored in a buffer based on its local timestamp upon arrival.
[0035] In a preferred implementation, the wearable device and the oxygen concentrator controller establish a communication link and maintain heart rate packets via Bluetooth Low Energy protocol or local wireless network; based on data packet timestamps, a unified global clock alignment is used to upsample physiological data to a frequency that matches the oxygen concentrator control cycle; a sliding window midpoint filter and a motion artifact removal mechanism based on acceleration signals are used to maintain a 60-second historical state circular buffer, and blood oxygen data that exceeds the physiological limit threshold and is accompanied by violent body movement is replaced with the historical median; a multi-dimensional time-series state vector containing the absolute value of the current moment and the historical fluctuation trajectory of the past 60 seconds is generated and written to the shared memory area.
[0036] Regarding stage identification, identifying the rapid increase in oxygen demand based on sleep physiological data can be achieved in several ways. For example, it can be determined whether a user has entered a stage of increased oxygen demand simply by whether their blood oxygen saturation is below a preset threshold. In another approach, it can be determined whether a sleep stage transition has occurred based on whether the amplitude of the body motion acceleration signal exceeds a preset threshold. In yet another approach, a weighted sum of blood oxygen saturation and pulse rate values can be calculated and compared with a fixed threshold to output the stage identification result.
[0037] Regarding target trajectory generation, after identifying a phase of rapid increase in oxygen demand, a target oxygen supply parameter trajectory can be generated based on sleep physiological data. For example, the current oxygen supply parameters can be linearly extrapolated to multiple future control cycles with a fixed slope, forming target oxygen flow rate and target oxygen concentration curves. In another implementation, the oxygen supply parameters required for the user's blood oxygen to recover to a safe level in historical control cycles can be used as fixed target values and kept constant within the prediction time window. In yet another implementation, the current blood oxygen saturation can be mapped to target oxygen supply parameters for future control cycles based on an empirical lookup table.
[0038] Regarding the calculation of the rate of change, the target rate of change of the target oxygen supply parameter trajectory within the prediction time window can be obtained in several ways. For example, the average slope of the target oxygen supply parameter trajectory can be calculated to obtain the single target rate of change within the entire prediction time window. In another implementation, differential operations can be performed on the control cycles at fixed intervals in the target oxygen supply parameter trajectory. In yet another implementation, the derivative of the fitted curve can be obtained as the target rate of change after curve fitting of the target oxygen supply parameter trajectory.
[0039] As a preferred implementation, after identifying the phase of rapid increase in oxygen demand, a target oxygen supply parameter trajectory with a time lead is generated based on sleep physiological data, and the target change rate of the target oxygen supply parameter trajectory within a preset prediction time window is calculated.
[0040] Regarding the determination of mismatch segments, the target mismatch segment can be identified by comparing the target rate of change with the currently set upper limit of the adjustment rate. For example, the maximum value of the target rate of change within the prediction time window can be calculated and compared with the upper limit of the adjustment rate all at once; if the maximum value exceeds the upper limit, the entire prediction time window is marked as the target mismatch segment. In another implementation, the same upper limit of the adjustment rate can be set for the target oxygen flow rate change and the target oxygen concentration change rate, respectively, for comparison. In yet another implementation, the target rate of change can be compared with the upper limit of the adjustment rate in each control cycle, and the cycle interval that continuously exceeds the upper limit is marked as the target mismatch segment.
[0041] As a preferred implementation, the segmented matching and mismatch location of the predicted target change rate and the upper limit of the equipment smooth adjustment rate are performed as follows: read the predicted instruction sequence matrix and the upper limit of the flow smooth adjustment rate and the upper limit of the concentration smooth adjustment rate currently set by the oxygen generator; compare the target flow change rate with the upper limit of the flow adjustment rate and the target concentration change rate with the upper limit of the concentration adjustment rate in each cycle within the prediction time window; if the target change rate is less than or equal to the upper limit of the adjustment rate, mark the cycle as a normal smooth tracking segment; if the target change rate is strictly greater than the upper limit of the adjustment rate, mark the cycle as a critical rapid transition segment and determine it as the target mismatch segment.
[0042] Regarding the acquisition of exceedance indicators, the exceedance indicators for the target mismatch section can be obtained in several ways. For example, the exceedance difference can be calculated simply as the difference between the target rate of change and the upper limit of the adjustment rate. In another implementation, the cumulative deviation can be obtained as the expected amplitude gap by subtracting the endpoint value of the target oxygen supply parameter trajectory within the target mismatch section from the endpoint value reached by increasing the adjustment rate upper limit. In yet another implementation, the time interval between the moment when the target rate of change first exceeds the upper limit of the adjustment rate and the moment when the target oxygen supply parameter trajectory reaches the corresponding value can be recorded as the expected time lag.
[0043] Regarding level assessment and rate adjustment, assessing the exceedance level of the target mismatch segment based on exceedance indicators and adjusting the upper limit of the adjustment rate can be achieved in several ways. For example, a single threshold can be set; when the exceedance difference exceeds this threshold, it is assessed as an exceedance level, and the upper limit of the adjustment rate is uniformly adjusted to a fixed, larger value. In another implementation, the exceedance level can be divided into two grades based on the magnitude of the expected time lag, and the upper limit of the adjustment rate can be adjusted for each grade using a fixed proportional coefficient. Yet another implementation can directly adjust the upper limit of the adjustment rate to the maximum value allowed by the device hardware only when a target mismatch segment is detected.
[0044] Regarding the application of smooth constraints, the continuity of the adjustment process can be ensured in several ways. For example, when adjusting the upper limit of the adjustment rate, first-order linear interpolation can be used to gradually transition the upper limit values of the adjustment rate between adjacent control cycles. In another implementation, the change in the upper limit of the adjustment rate between adjacent control cycles can be limited to a fixed step size. In yet another implementation, the upper limit of the adjustment rate can be kept unchanged for at least several control cycles after adjustment before proceeding to the next adjustment stage.
[0045] Regarding the generation and execution of control commands, limiting the target rate of change based on the adjusted upper limit of the regulation rate and generating oxygen supply control commands can be achieved in several ways. For example, the limited target rate of change can be directly used as the adjustment amount for the oxygen concentrator motor speed. In another implementation, independent flow control commands and concentration control commands can be generated based on the target oxygen flow rate and target oxygen concentration, respectively. In yet another implementation, the oxygen supply control commands can be output to the oxygen concentrator actuator in the form of analog voltage signals.
[0046] As a preferred implementation, the instruction mapping of the underlying actuator and the global feedback update and anomaly recovery of the system status are performed as follows: the target change rate is limited according to the adjusted adjustment rate upper limit to generate the final actual executable instruction sequence; the flow target is converted into the pulse width modulation duty cycle signal of the brushless DC motor of the variable frequency compressor to control the total gas production; the concentration target is converted into the pulse sequence of the multi-way proportional mixing valve driven by the stepper motor to adjust the cross-sectional area of the oxygen and air mixing channel; the safety monitoring module continuously scans the hardware status, and if the pipeline pressure approaches the physical critical value of the safety relief valve or the physiological data stream of the wearable device is interrupted for a long time, the anomaly recovery branch is triggered, the remaining prediction advance is abandoned, the adjustment rate is restored to the fixed limit and the pressure reduction is started, and at the same time, an audible and visual alarm is output and the anomaly log is recorded; if the execution is normal, the final execution parameters, dynamic boundary relaxation coefficient, cumulative deviation value and sleep characteristic status of the current cycle are packaged and overwritten to the controller context storage area as the input of the next control cycle.
[0047] The above technical solution will be illustrated with specific examples below.
[0048] Assume user A is sleeping at an altitude of over 3,000 meters at location A in a high-altitude, overnight environment. User A wears a wearable device, and the oxygen concentrator controller maintains a communication link with the wearable device and monitors heart rate via Bluetooth Low Energy. The wearable device collects blood oxygen saturation, pulse rate, and body acceleration signals once per second, and aligns with the oxygen concentrator controller using a unified global clock based on the data packet timestamp, upsampling the physiological data to a frequency matching the oxygen concentrator's control cycle. The oxygen concentrator controller employs a sliding window midpoint filter and a motion artifact removal mechanism based on acceleration signals, maintaining a 60-second historical state circular buffer. Blood oxygen data exceeding physiological limit abrupt changes and accompanied by intense body movement is replaced with the historical median. A multi-dimensional temporal state vector containing the current absolute value and the historical fluctuation trajectory of the past 60 seconds is generated and written to a shared memory area.
[0049] In the first hour after falling asleep, User A entered deep sleep. At this time, blood oxygen saturation remained at baseline, pulse rate fluctuations were in the low range, and body acceleration signal amplitude was near zero. Subsequently, User A began to switch to REM sleep. Blood oxygen saturation showed a downward trend over the past thirty seconds, the fluctuation range of pulse rate differences between adjacent cycles increased, and body acceleration signal showed multiple energy exceedances in the high-frequency range.
[0050] The oxygen concentrator controller identifies user A's rapid increase in oxygen demand based on the aforementioned multi-dimensional time-series state vector. Furthermore, starting from the current control cycle, the controller extrapolates thirty control cycles into the future. Based on the current blood oxygen saturation gradient, current absolute blood oxygen saturation, and user A's historical basal metabolic parameters, it calculates the oxygen supply required to prevent further blood oxygen saturation drop and restore it to a safe baseline, according to the high-altitude hypoxia compensation physiological curve. This oxygen supply is mapped to target oxygen flow rate and target oxygen concentration for the thirty control cycles, forming a smoothly rising target oxygen flow rate curve and target oxygen concentration curve, serving as the target oxygen supply parameter trajectory.
[0051] By performing differential calculations on the target oxygen flow rate curve and the target oxygen concentration curve for adjacent control cycles, the target oxygen flow rate change rate and the target oxygen concentration change rate for each future discrete control cycle are obtained, and these are used as the target change rate.
[0052] The oxygen concentrator controller reads the current upper limit of the flow rate regulation rate and the upper limit of the concentration regulation rate from the oxygen concentrator's operating status data. Within the prediction time window, it compares the target flow rate change rate with the upper limit of the flow rate regulation rate and the target concentration change rate with the upper limit of the concentration regulation rate on a cycle-by-cycle basis. During the tenth to twentieth control cycles, if the target change rate is strictly greater than the upper limit of the regulation rate, the aforementioned tenth to twentieth control cycles are marked as a critical rapid transition period and identified as the target mismatch section.
[0053] For the target mismatch section, the oxygen generator controller calculates the difference between the target rate of change and the upper limit of the adjustment rate as the over-limit difference; it simulates the output curve of the oxygen generator running at the upper limit of the adjustment rate within the target mismatch section, and calculates the area difference between the simulated output curve and the target oxygen supply parameter trajectory through integral calculation as the expected amplitude gap; it calculates the additional number of cycles for the simulated output curve to reach the corresponding value of the target oxygen supply parameter trajectory, and compares it with the time within the prediction time window for the target oxygen supply parameter trajectory to reach the corresponding value to obtain the expected time lag.
[0054] When the expected time lag is greater than or equal to the physiologically tolerable time threshold, and the exceedance difference is within a moderate range, the target mismatch segment is assessed as a moderate exceedance level. The oxygen generator controller calculates a boundary relaxation factor greater than one based on the expected amplitude gap and adjusts the upper limit of the adjustment rate to the product of the original smooth adjustment rate upper limit and this boundary relaxation factor. During the adjustment process, a smooth transition function based on an S-curve is used to apply second derivative constraints to the increase and decrease of the upper limit of the adjustment rate, ensuring a continuous and smooth change in the upper limit of the adjustment rate.
[0055] Based on the adjusted upper limit of the regulation rate, the target change rate is limited to generate the final executable instruction sequence. The flow target is converted into a pulse width modulation duty cycle signal of the brushless DC motor of the variable frequency compressor to control the total gas production. The concentration target is converted into a pulse sequence of a stepper motor driving a multi-channel proportional mixing valve to adjust the cross-sectional area of the oxygen and air mixing channel. The safety monitoring module continuously scans the hardware status. If the pipeline pressure does not approach the physical critical value of the safety relief valve and the physiological data flow of the wearable device is not interrupted, the final execution parameters, dynamic boundary relaxation coefficient, cumulative deviation value, and sleep characteristic status of the current cycle are packaged and overwritten into the controller context storage area as input for the next control cycle.
[0056] Because the upper limit of the adjustment rate is dynamically relaxed within the target mismatch range and the change process is subject to smoothing constraints, the actual output of the oxygen generator increases along the target rate of change after the limit is set, and reaches the corresponding value of the target oxygen supply parameter trajectory before the peak oxygen demand of user A arrives, thus avoiding the continuous lag caused by adhering to the original upper limit of the adjustment rate.
[0057] As can be seen from the above examples, the technical solution of this application forms a closed loop from physiological data acquisition, stage identification, target trajectory generation, mismatch segment location, over-limit level assessment to dynamic rate adjustment and control command execution.
[0058] Existing technologies typically employ a fixed upper limit for the adjustment rate. When the target rate of change exceeds this limit, the oxygen generator can only gradually output oxygen at the maximum permissible rate, resulting in the actual output curve falling below the predicted target curve. Consequently, the oxygen supply parameters have not yet reached the target value when peak oxygen demand arrives. In contrast, this application improves oxygen supply tracking capability by identifying the rapid increase phase of oxygen demand and dynamically adjusting the upper limit of the adjustment rate, while ensuring smoothness.
[0059] Furthermore, by acquiring multi-dimensional over-limit indicators such as the over-limit difference, the expected amplitude gap, and the expected time lag, this application achieves a quantitative assessment of the severity of the mismatch segment, thereby enabling graded adjustment based on the assessment results and avoiding over-adjustment or under-adjustment problems caused by fixed threshold judgment.
[0060] In addition, by applying smoothing constraints, the process of raising and lowering the upper limit of the adjustment rate is restricted to continuous change, avoiding abrupt changes in oxygen supply parameters and balancing response speed and user comfort.
[0061] In summary, this application combines physiological stage recognition with dynamic rate boundary adjustment to achieve the execution of advance prediction in high-altitude sleep oxygen supply scenarios, thereby improving the matching degree between oxygen flow rate and concentration and oxygen demand.
[0062] In some embodiments, the specific steps in step S2 include: S21. By performing a first-order difference operation on the blood oxygen saturation sequence within a preset time period, multiple differences are obtained. Based on these multiple differences, the average slope is calculated to obtain the blood oxygen decline gradient characteristics that quantify the rate of blood oxygen level decay. S22. By calculating the root mean square of the difference between adjacent cycles in the pulse rate value sequence, the heart rate variability characteristics that characterize the activity of the autonomic nervous system are obtained; S23. By statistically analyzing the number of times the energy of the body acceleration signal exceeds the limit within a preset high-frequency band, the frequency characteristics of minute body movements that characterize the state of micro-awakening are obtained; S24. When the absolute value of the blood oxygen saturation gradient characteristic is greater than the preset stable sleep fluctuation threshold, and the heart rate variability characteristic shows a monotonically increasing trend in multiple consecutive control cycles, and the frequency characteristic of small body movements changes from zero to non-zero, it is determined that the user has entered the stage of rapid increase in oxygen demand; otherwise, it is determined that the user is in a stable sleep period, and the upper limit of the smooth adjustment rate originally set by the oxygen concentrator remains unchanged.
[0063] The blood oxygen saturation sequence refers to a continuous set of blood oxygen saturation values collected and uploaded by wearable devices at a fixed sampling period. Its time granularity is consistent with the oxygen concentrator's control cycle or aligned through upsampling. First-order difference operation involves calculating the difference between blood oxygen saturation values at adjacent sampling times, thus converting the original sequence into an incremental sequence reflecting the direction of blood oxygen change. The average slope refers to the representative rate of change obtained by averaging multiple first-order difference results. Its calculation can use either an arithmetic mean or a weighted average with higher weights for recent samples to improve sensitivity to current trends. The blood oxygen decline gradient feature is an indicator constructed using the aforementioned average slope to quantify the rate of blood oxygen level decay. This indicator reflects both the speed of blood oxygen decline and the direction of the trend through its positive or negative sign.
[0064] A pulse rate sequence refers to time-series data formed by periodically measuring a user's instantaneous pulse rate values using a wearable device. The difference between adjacent cycles refers to the change in pulse rate values between two adjacent control cycles. The heart rate variability feature obtained by calculating the root mean square of the difference between adjacent cycles is a time-domain heart rate variability indicator that reflects the regulatory activity of the autonomic nervous system on heart rhythm. In implementation, this feature can be obtained either by directly calculating the root mean square of the difference between adjacent cycles from the original pulse rate sequence, or by first converting the pulse rate values into a sequence of adjacent heartbeat intervals and then calculating the root mean square of the difference between adjacent intervals; both methods yield equivalent trend information.
[0065] Body motion acceleration signal refers to the analog or digital signal reflecting body movement state collected by the accelerometer built into the wearable device; the preset high-frequency band refers to the frequency range corresponding to micro-awakening or subtle limb movements, distinguished from low-frequency movements such as breathing and posture changes; the number of energy exceedances refers to the number of sampling windows that exceed the preset energy threshold after calculating the energy of the acceleration signal within this high-frequency band; the micro-body movement frequency characteristic is an index obtained by statistically analyzing the number of energy exceedances, used to characterize whether subtle movements caused by neural micro-awakening occur during sleep. The steady sleep fluctuation threshold is a threshold value used to distinguish between normal blood oxygen fluctuations and abnormal rates of decline during steady sleep. It can be adaptively determined based on the user's historical steady sleep data or preset based on the results of high-altitude sleep medicine statistics. The monotonically increasing trend refers to the gradual increase in heart rate variability over multiple consecutive control cycles. Its determination can be made by comparing the current value with the previous cycle value on a cycle-by-cycle basis, or by fitting a straight line to multiple consecutive values and judging whether the slope is significantly positive. The change from zero to non-zero in the frequency characteristic of micro-movements refers to the situation where no micro-movement energy exceeding the threshold was detected in the previous one or more control cycles, but a valid micro-movement count appears for the first time in the current control cycle.
[0066] This application's scheme establishes a multi-dimensional constraint-based sleep stage transition recognition mechanism by simultaneously monitoring three types of physiological signals: blood oxygen saturation gradient, heart rate variability, and micro-body movement frequency. The blood oxygen saturation gradient reflects whether the body is experiencing rapid decompensation from the perspective of oxygen supply and demand balance; heart rate variability reflects whether sleep structure is changing from the perspective of autonomic nervous system activity; and micro-body movement frequency reflects the presence of micro-arousals from the perspective of somatic micro-movements. Since these three physiological changes often occur simultaneously at the moment of transition from deep sleep to REM sleep, and a single abnormal signal can be caused by various factors such as changes in body position, sensor noise, or brief awakenings, only when all three simultaneously meet preset conditions is it identified as a stage of rapid increase in oxygen demand. Once the system determines that the user has entered this stage, subsequent steps S3 to S7 can generate a target oxygen supply parameter trajectory with a time lead based on the identification result. When the target change rate exceeds the original upper limit of the smooth adjustment rate, the upper limit of the adjustment rate will be adaptively adjusted to ensure that the actual output tracks the target trajectory before the peak oxygen demand arrives. If the system determines that the user is still in a stable sleep period, the original upper limit of the smooth adjustment rate will be maintained to avoid unnecessary concentration or flow fluctuations caused by misjudgment, thus balancing the smoothness of oxygen supply and user comfort.
[0067] In some embodiments, the specific steps in step S3 include: S31. Based on sleep physiological data, within the predicted time window extrapolated from the current control cycle to the future, calculate the amount of oxygen supply required to recover to the safe baseline based on the preset high-altitude hypoxia compensation physiological curve. S32. By mapping the oxygen supply to the target oxygen flow rate and target oxygen concentration corresponding to each discrete control cycle within the prediction time window, a smooth upward target oxygen flow rate curve and target oxygen concentration curve are formed, which serve as the target oxygen supply parameter trajectory. S33. By performing differential calculations on the target oxygen flow rate curve and the target oxygen concentration curve for adjacent control cycles, calculate the target oxygen flow rate change rate and the target oxygen concentration change rate for each future discrete control cycle, and use them as the target change rate.
[0068] The forecast time window refers to a set of discrete control cycles extending into the future from the current control cycle, used to anticipate future oxygen demand. It can be implemented by pre-setting a fixed number of cycles or by converting a fixed duration into the corresponding number of control cycles, thus balancing real-time computation with forward-looking forecasting.
[0069] The physiological curve of hypoxia compensation at high altitudes is an empirical or modeled curve describing the relationship between blood oxygen levels, metabolic rates, and required oxygen compensation in the human body under high-altitude conditions. It can be implemented either as a two-dimensional or multi-dimensional lookup table pre-stored in the controller's non-volatile memory, or as a parameterized function fitted based on high-altitude medical data.
[0070] A safety baseline refers to a target blood oxygen level or target oxygen supply threshold set to prevent further decline in a user's blood oxygen and maintain basic physiological homeostasis. This can be achieved through standard thresholds for the average high-altitude sleeper or personalized thresholds set based on long-term historical data or medical advice.
[0071] Oxygen supply refers to the total amount of oxygen required to restore and maintain blood oxygen levels at a safe baseline within the predicted time window. This can be achieved by integrating the blood oxygen deficit over time at each moment within the predicted time window, or by mapping the difference between the target blood oxygen recovery curve and the current blood oxygen prediction curve to oxygen volume or mass and then summing the results.
[0072] Mapping oxygen supply to target oxygen flow rate and target oxygen concentration curves refers to decomposing the total demand into combinations of flow rate and concentration over discrete control cycles according to a certain allocation strategy. This can be achieved by: distributing the supply over time and then overlaying a smoothing filter function to make the curve rise monotonically and smoothly; or by performing a non-uniform allocation based on the instantaneous demand weights given by the physiological curve of altitude hypoxia compensation, followed by interpolation or curve fitting of the allocation results.
[0073] The target change rate is a quantitative expression of how quickly the target oxygen supply parameter trajectory changes between adjacent control cycles. It can be achieved by backward difference of the target values between adjacent cycles, or by central difference or forward difference, thereby obtaining the target oxygen flow rate change rate and the target oxygen concentration change rate, respectively.
[0074] The solution in this application, through steps S31 to S33, transforms the sleep physiological data provided by the wearable device into a target oxygen supply parameter trajectory and target change rate that can be directly executed by the oxygen concentrator. Specifically, after step S1 completes the acquisition of multi-source data and step S2 identifies the rapid increase phase of oxygen demand, step S31 calculates the amount of oxygen supply required to restore the oxygen supply to the safe baseline within the prediction time window, taking the current control cycle as the starting point and combining the high-altitude hypoxia compensation physiological curve. This supply amount is no longer an abstract physiological demand, but a quantitative result with time and quantity dimensions. Based on this, step S32 maps this oxygen supply amount to the target oxygen flow rate and target oxygen concentration corresponding to each discrete control cycle within the prediction time window, forming a smoothly rising target oxygen flow rate curve and target oxygen concentration curve, thereby discretizing the continuous physiological compensation demand into the output target that the oxygen concentrator should achieve in each control cycle. Subsequently, step S33 performs differential calculations on the two curves for adjacent control cycles to obtain the target oxygen flow rate change rate and target oxygen concentration change rate corresponding to each future discrete control cycle. Through the above process, the system can not only plan future oxygen supply paths in advance, but also quantify the requirements of the oxygen generator's adjustment capacity for each future control cycle in the form of a rate of change. This provides a direct quantitative basis for subsequently determining whether the upper limit of the oxygen generator's adjustment rate is sufficient to track the predicted curve. Since the target oxygen supply parameter trajectory is generated after identifying the rapid increase in oxygen demand, and it starts before the actual peak demand, it can retain a time margin for early response in subsequent control. At the same time, the smoothness of the trajectory avoids causing sudden changes in oxygen flow or concentration to users.
[0075] In some embodiments, the specific steps in step S5 include: S51. The over-limit difference is obtained by calculating the difference between the target rate of change and the upper limit of the adjustment rate; S52. Simulate the output curve of the oxygen generator when it is running at the upper limit of the adjustment rate within the target mismatch section, and obtain the expected amplitude gap by calculating the amplitude difference between the simulated output curve and the target oxygen supply parameter trajectory. S53. Calculate the time required for the simulated output curve to reach the corresponding value of the target oxygen supply parameter trajectory, and obtain the expected time lag by comparing the required time with the time it takes for the target oxygen supply parameter trajectory to reach the corresponding value within the prediction time window.
[0076] Specifically, the over-limit difference is used to directly reflect the immediate extent to which the target rate of change exceeds the current upper limit of the adjustment rate. This indicator can be quantified by the arithmetic difference between the target rate of change and the upper limit of the adjustment rate, i.e., calculating the difference between the two for each control cycle and taking the absolute value; it can also be in the form of a relative ratio, such as dividing the portion of the target rate of change exceeding the upper limit of the adjustment rate by the upper limit of the adjustment rate and expressing it as a dimensionless percentage; or it can be used for the entire target mismatch section, taking the maximum value or the cumulative value of the over-limit difference over all control cycles as the overall over-limit intensity of that section.
[0077] The expected amplitude gap is used to characterize the cumulative amplitude deviation between the actual output of the oxygen generator and the target oxygen supply parameter trajectory while maintaining the existing upper limit of the adjustment rate. This indicator can be obtained by integrating the area difference between the simulated output curve and the target oxygen supply parameter trajectory within the target mismatch section, thus reflecting the total oxygen supply gap in the entire section; alternatively, it can be obtained by calculating the amplitude difference between corresponding points of the two curves on a cycle-by-cycle basis and accumulating or weighted summing these amplitude differences to highlight the deviation contribution at critical control cycles; or it can be calculated separately by combining the target oxygen flow rate and the target oxygen concentration, and then combined into a single amplitude gap indicator according to preset weights.
[0078] The expected time lag is used to assess, from a time perspective, the degree of delay in the actual output of an oxygen concentrator catching up with the target oxygen supply parameter trajectory. This indicator can be obtained by statistically analyzing the number of additional control cycles required for the simulated output curve to reach a certain corresponding value of the target oxygen supply parameter trajectory and comparing it with the number of control cycles required for the target oxygen supply parameter trajectory to reach that corresponding value; alternatively, it can be calculated using a continuous-time model to determine the actual time difference when two curves reach the same amplitude; or it can be measured by the time difference when a certain percentage threshold of the target value is reached to reflect the lag characteristics of different physiological response stages.
[0079] The proposed solution achieves refined quantification of the over-limit state in the target mismatch section through the coordinated use of the aforementioned three dimensions of over-limit indicators. Building upon steps S1 to S4, step S5 first utilizes the over-limit difference to reveal the immediate contradiction between the target rate of change and the current response capability of the oxygen generator from a rate perspective. Subsequently, by simulating the output curve formed by the oxygen generator operating at the current upper limit of the adjustment rate, and calculating the expected amplitude gap between it and the target oxygen supply parameter trajectory, the severity of insufficient oxygen supply is quantified in terms of energy or cumulative supply. Furthermore, the expected time lag is used to assess the delay in the actual output catching up with the target trajectory, directly relating to whether oxygen supply preparation can be completed before the peak oxygen demand arrives. Since these three indicators characterize the mismatch state from three complementary dimensions—rate, amplitude, and time—the system avoids the limitations of relying solely on a single threshold for coarse judgment. This provides a scientific and distinguishable decision-making basis for subsequent assessment of the over-limit level and dynamic adjustment of the upper limit of the adjustment rate, enabling the controller to adopt differentiated response strategies for different degrees of over-limit while ensuring smoothness.
[0080] In some embodiments, the specific steps in step S6 include: S61. When the expected time lag is less than the preset physiologically tolerable time threshold, it is assessed as a mild over-limit level, and the upper limit of the smooth adjustment rate originally set by the oxygen concentrator remains unchanged. S62. When the expected time lag is greater than or equal to the physiologically tolerable time threshold and the excess difference is within the preset medium range, it is assessed as a moderate excess level. A boundary relaxation coefficient greater than 1 is calculated based on the expected amplitude gap, and the upper limit of the oxygen concentrator's adjustment rate is adjusted to the product of the upper limit of the smooth adjustment rate and the boundary relaxation coefficient. S63. When the difference between the over-limit and the limit is greater than the preset severe threshold, it is assessed as a severe over-limit level, and the upper limit of the adjustment rate of the oxygen concentrator is adjusted to the maximum response speed allowed by the hardware physical safety limit of the oxygen concentrator. S64. When performing steps S62 and S63, during the adjustment of the upper limit of the adjustment rate, a second derivative constraint is applied to the adjustment process of the upper limit of the adjustment rate by a smooth transition function based on an S-shaped curve, so that the upper limit of the adjustment rate changes continuously and smoothly during the adjustment process.
[0081] The physiologically tolerable time threshold refers to the maximum acceptable lag time for the human body's physiological state between the imminent arrival of the actual peak oxygen demand and the actual output of the oxygen concentrator reaching the corresponding value of the target oxygen supply parameter trajectory. This threshold can be set as a fixed empirical value based on the statistical characteristics of sleep blood oxygen in high-altitude populations, or it can be dynamically adjusted in a personalized manner by combining the user's historical basal metabolic parameters, current absolute blood oxygen saturation, and blood oxygen reserve capacity.
[0082] Mild, moderate, and severe exceedance levels are categorized and quantified as a graded description of the degree to which the rate of change of the target within the target mismatch range exceeds the upper limit of the adjustment rate. This grading method can use a three-level threshold range, or it can be adjusted to two or more levels depending on the actual product positioning. The purpose is to match the severity of the exceedance with the response intensity of the oxygen concentrator, avoiding the uniform application of conservative or extreme adjustment strategies in all cases.
[0083] The boundary relaxation factor is a proportional factor used to moderately extend the upper limit of the original smooth adjustment rate when there is a moderate overshoot. This factor is greater than 1, and its value can be linearly mapped based on the ratio between the expected amplitude gap and the total increase amplitude of the target oxygen supply parameter trajectory, or it can be calculated using a non-monotonic function whose rate of increase gradually slows down as the gap increases. This avoids excessive acceleration when the gap is small and retains sufficient acceleration capacity when the gap is large.
[0084] The maximum permissible response speed of the hardware physical safety limit refers to the maximum unit cycle adjustment rate that the oxygen generator actuator can withstand without triggering safety protection mechanisms such as compressor overcurrent, pipeline overpressure, proportional mixing valve malfunction, or abnormal oxygen concentration sensor response. This limit value can be pre-written into the controller's non-volatile memory area through factory calibration experiments, or it can be estimated online using a safety monitoring model based on real-time collected compressor speed, pipeline pressure, and valve body temperature.
[0085] A smooth transition function based on an S-curve is a continuous function with bounded first and second derivatives. Typical forms include the S-shaped sigmoid function, the hyperbolic tangent function, and cubic splines or Hermite interpolation functions that satisfy endpoint value and endpoint derivative constraints. The second derivative constraint restricts the curvature of the transition function in the time domain, ensuring that the rate of change and acceleration of the adjustment rate are limited within a smooth range when switching from one steady-state value to another, thus preventing abrupt changes in the control command.
[0086] The proposed solution combines the aforementioned graded assessment with a smooth transition, preventing abrupt changes in the adjustment of the upper limit of the regulation rate. Specifically, after obtaining the exceedance index of the target mismatch segment, the expected time lag is first compared with the physiologically tolerable time threshold to determine whether the current mismatch is within the acceptable range for the human body. If it is within the acceptable range, the original smooth regulation rate upper limit is maintained, prioritizing the stability of the oxygen supply process. If the expected time lag exceeds the tolerable threshold and the exceedance difference is within a moderate range, a boundary relaxation coefficient is calculated based on the expected amplitude gap, and the upper limit of the regulation rate is moderately increased multiplicatively, enabling the oxygen concentrator to track the target oxygen supply parameter trajectory at a rate faster than originally set but under control. If the exceedance difference exceeds the severe threshold, the upper limit of the regulation rate is directly increased to the maximum response speed allowed by the hardware's physical safety limits to cope with emergency oxygen demand peaks. In the process of increasing the upper limit of the moderate and severe adjustment rates mentioned above, this application further introduces a smooth transition function based on the S-curve and applies a second derivative constraint to the adjustment process, so that the upper limit of the adjustment rate changes continuously during the switching period, ensuring a smooth transition of the oxygen supply control command after the amplitude limiting treatment.
[0087] Reference Appendix Figure 2 This invention provides a user-feature-based oxygen flow control system for a high-altitude oxygen concentrator (this user-feature-based oxygen flow control system for a high-altitude oxygen concentrator adopts the user-feature-based oxygen flow control method for a high-altitude oxygen concentrator described in the above embodiments; for specific processes, please refer to the corresponding steps above). The system includes a wearable device and an oxygen concentrator connected via communication, and further includes: The first acquisition unit 100 is used to acquire user sleep physiological data sent by the wearable device and oxygen concentrator operating status data sent by the oxygen concentrator. The identification unit 200 is used to identify, based on sleep physiological data, whether the user has entered a stage of rapid increase in oxygen demand as they switch from deep sleep to REM sleep. The calculation unit 300 is used to generate a target oxygen supply parameter trajectory with a time lead based on sleep physiological data after identifying the rapid rise in oxygen demand, and to calculate the target change rate of the target oxygen supply parameter trajectory within a preset prediction time window. The comparison unit 400 is used to determine the target mismatch section where the target rate of change exceeds the limit by comparing the target rate of change with the currently set upper limit of the adjustment rate in the oxygen generator operating status data; The second acquisition unit 500 is used to acquire the out-of-limit indicators of the target mismatch section; The adjustment unit 600 is used to assess the level of exceedance of the target mismatch section based on the exceedance index, and adjust the upper limit of the adjustment rate of the oxygen generator in the target mismatch section according to the assessed level of exceedance. At the same time, during the adjustment process, the continuity of the adjustment process is ensured by applying a preset smoothing constraint. The control unit 700 is used to generate an oxygen supply control command based on the adjusted upper limit of the regulation rate by limiting the target rate of change, and to control the oxygen generator to operate according to the oxygen supply control command so that the actual output of the oxygen generator reaches the corresponding value of the target oxygen supply parameter trajectory before the peak of oxygen demand arrives.
[0088] In this context, the units described as separate components may or may not be physically separate. Similarly, the components shown as units may or may not be physical units; they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0089] Furthermore, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0090] In this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying any such actual relationship or order between these entities or operations.
[0091] The above description is merely an embodiment of the present invention and is not intended to limit the scope of protection of the present invention. For those skilled in the art, the present invention can have various modifications and variations. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A user-feature-based oxygen flow control method for a high-altitude oxygen concentrator, applied to a user-feature-based oxygen flow control system for a high-altitude oxygen concentrator, the system comprising a wearable device and an oxygen concentrator connected in communication; characterized in that, The method includes the following steps: S1. Acquire user sleep physiological data sent by the wearable device, and oxygen concentrator operating status data sent by the oxygen concentrator; S2. Based on the sleep physiological data, identify whether the user has entered a stage of rapid increase in oxygen demand as they switch from deep sleep to REM sleep. S3. After identifying the rapid increase in oxygen demand, based on the sleep physiological data, generate a target oxygen supply parameter trajectory with a time lead, and calculate the target change rate of the target oxygen supply parameter trajectory within a preset prediction time window. S4. By comparing the target rate of change with the currently set upper limit of the adjustment rate in the oxygen generator operating status data, the target mismatch section where the target rate of change exceeds the limit is determined; S5. Obtain the out-of-limit index of the target mismatch section; S6. Based on the exceeded index, assess the exceeded level of the target mismatch section, and adjust the upper limit of the adjustment rate of the oxygen generator in the target mismatch section according to the assessed exceeded level. At the same time, during the adjustment process, the continuity of the adjustment process is ensured by applying a preset smoothing constraint. S7. Based on the adjusted upper limit of the regulation rate, the oxygen supply control command is generated by limiting the target rate of change, and the oxygen generator is controlled to operate according to the oxygen supply control command so that the actual output of the oxygen generator reaches the corresponding value of the target oxygen supply parameter trajectory before the peak oxygen demand arrives.
2. The oxygen flow control method for a high-altitude oxygen generator based on user characteristics according to claim 1, characterized in that, The user's sleep physiological data includes blood oxygen saturation, pulse rate, and body motion acceleration signal.
3. The oxygen flow control method for a high-altitude oxygen generator based on user characteristics according to claim 2, characterized in that, The specific steps in step S2 include: S21. By performing a first-order difference operation on the blood oxygen saturation sequence within a preset time period, multiple differences are obtained, and based on the multiple differences, the average slope is calculated to obtain the blood oxygen decline gradient feature that quantifies the rate of blood oxygen level decay. S22. By calculating the root mean square of the difference between adjacent cycles in the pulse rate value sequence, the heart rate variability characteristics that characterize the activity of the autonomic nervous system are obtained; S23. By statistically analyzing the number of times the energy of the body acceleration signal exceeds the limit within a preset high-frequency band, the frequency characteristics of minute body movements that characterize the state of micro-awakening are obtained; S24. When the absolute value of the blood oxygen decline gradient feature is greater than the preset stable sleep fluctuation threshold, and the heart rate variability feature shows a monotonically increasing trend in multiple consecutive control cycles, and the micro-body movement frequency feature changes from zero to non-zero, it is determined that the user has entered the rapid increase phase of oxygen demand.
4. The oxygen flow control method for a high-altitude oxygen generator based on user characteristics according to claim 1, characterized in that, The target oxygen supply parameters include the target oxygen flow rate and the target oxygen concentration.
5. The oxygen flow control method for a high-altitude oxygen generator based on user characteristics according to claim 4, characterized in that, The specific steps in step S3 include: S31. Based on the sleep physiological data, within the predicted time window extrapolated from the current control cycle to the future, calculate the amount of oxygen supply required to recover to the safe baseline based on the preset high-altitude hypoxia compensation physiological curve. S32. By mapping the oxygen supply to the target oxygen flow rate and target oxygen concentration corresponding to each discrete control cycle within the prediction time window, a smooth upward target oxygen flow rate curve and target oxygen concentration curve are formed, which are used as the trajectory of the target oxygen supply parameters. S33. By performing adjacent control cycle difference operations on the target oxygen flow rate curve and the target oxygen concentration curve respectively, the target oxygen flow rate change rate and the target oxygen concentration change rate corresponding to each future discrete control cycle are calculated and used as the target change rate.
6. The oxygen flow control method for a high-altitude oxygen generator based on user characteristics according to claim 1, characterized in that, The out-of-limit indicators include the out-of-limit difference, the expected amplitude gap, and the expected time lag.
7. The oxygen flow control method for a high-altitude oxygen generator based on user characteristics according to claim 6, characterized in that, The specific steps in step S5 include: S51. The over-limit difference is obtained by calculating the difference between the target rate of change and the upper limit of the adjustment rate; S52. Simulate the simulated output curve of the oxygen generator when it is running at the upper limit of the adjustment rate in the target mismatch section, and obtain the expected amplitude gap by calculating the amplitude difference between the simulated output curve and the target oxygen supply parameter trajectory; S53. Calculate the time required for the simulated output curve to reach the corresponding value of the target oxygen supply parameter trajectory, and obtain the expected time lag by comparing the required time with the time within the prediction time window for the target oxygen supply parameter trajectory to reach the corresponding value.
8. The oxygen flow control method for a high-altitude oxygen generator based on user characteristics according to claim 6, characterized in that, The specific steps in step S6 include: S61. When the expected time lag is less than the preset physiologically tolerable time threshold, it is assessed as a slight over-limit level, and the original upper limit of the smooth adjustment rate of the oxygen concentrator is maintained unchanged. S62. When the expected time lag is greater than or equal to the physiologically tolerable time threshold and the excess difference is within a preset medium range, it is assessed as a moderate excess level, and a boundary relaxation coefficient greater than 1 is calculated based on the expected amplitude gap, and the upper limit of the oxygen concentrator's adjustment rate is adjusted to the product of the upper limit of the smooth adjustment rate and the boundary relaxation coefficient. S63. When the difference in the over-limit is greater than the preset severe threshold, it is evaluated as a severe over-limit level, and the upper limit of the adjustment rate of the oxygen concentrator is adjusted to the maximum response speed allowed by the hardware physical safety limit of the oxygen concentrator.
9. The oxygen flow control method for a high-altitude oxygen generator based on user characteristics according to claim 8, characterized in that, The specific steps in step S6 also include: S64. When performing steps S62 and S63, during the process of adjusting the upper limit of the adjustment rate, a second derivative constraint is applied to the adjustment process of the upper limit of the adjustment rate by a smooth transition function based on an S-shaped curve, so that the upper limit of the adjustment rate changes continuously and smoothly during the adjustment process.
10. A user-feature-based oxygen flow control system for a high-altitude oxygen generator, the system comprising a wearable device and an oxygen generator with communication connectivity, characterized in that, Also includes: The first acquisition unit is used to acquire user sleep physiological data sent by the wearable device and oxygen concentrator operating status data sent by the oxygen concentrator. The identification unit is used to identify, based on the sleep physiological data, whether the user has entered the stage of rapid increase in oxygen demand during the transition from deep sleep to REM sleep. The calculation unit is used to generate a target oxygen supply parameter trajectory with a time advance based on the sleep physiological data after identifying the rapid rise in oxygen demand, and to calculate the target change rate of the target oxygen supply parameter trajectory within a preset prediction time window. The comparison unit is used to determine the target mismatch segment where the target rate of change exceeds the limit by comparing the target rate of change with the currently set upper limit of the adjustment rate in the oxygen generator operating status data; The second acquisition unit is used to acquire the out-of-limit index of the target mismatch section; The adjustment unit is used to assess the level of exceeding the limit of the target mismatch section according to the exceeding limit index, and adjust the upper limit of the adjustment rate of the oxygen generator in the target mismatch section according to the assessed level of exceeding the limit. At the same time, during the adjustment process, the continuity of the adjustment process is ensured by applying a preset smoothing constraint. The control unit is used to generate an oxygen supply control command by limiting the target rate of change based on the adjusted upper limit of the regulation rate, and to control the oxygen generator to operate according to the oxygen supply control command, so that the actual output of the oxygen generator reaches the corresponding value of the target oxygen supply parameter trajectory before the peak oxygen demand arrives.
