Personalized PEEP adjustment method based on reinforcement learning
By constructing a PEEP adjustment model based on reinforcement learning methods, the challenge of selecting appropriate PEEP values is solved, personalized PEEP levels are recommended, oxygenation indicators are improved and mortality is reduced, providing assistance for clinical decision-making.
Patent Information
- Application Number
- CN202110226923.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-01
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-03-01
AI Technical Summary
In the treatment of acute respiratory distress syndrome and acute lung injury, choosing an appropriate PEEP value should not only improve the oxygenation function of the lungs, but also avoid ventilator-induced lung injury. However, due to the heterogeneity of diseases and patients, existing The technology lacks a clear gold standard, resulting in challenges in PEEP adjustment in mechanically ventilated patients.
Adopting a personalized PEEP adjustment method based on reinforcement learning, by building a reinforcement learning model of physiological data, defining PEEP settings as actions, using the Markov decision problem framework and fitting Q iteration algorithm to learn the best PEEP strategy and recommend personalized PEEP levels to maximize patient long-term outcomes.
It achieves the recommendation of personalized PEEP levels based on the patient's physiological data, improves oxygenation indicators, reduces patient mortality, provides auxiliary decision-making for clinicians, and achieves good experimental verification results.
Smart Images

Figure CN113111907B
Abstract
Description
Technical Field
[0001] The present invention relates to a personalized PEEP adjustment method based on reinforcement learning, belonging to the technical field. Background Art
[0002] Positive end-expiratory pressure (PEEP) refers to the positive pressure generated by the ventilator during the inspiratory phase during mechanical ventilation, which presses the gas into the lungs. When the airway is open at the end of expiration, the airway pressure does not drop to 0, but still maintains a certain positive pressure level. The appropriate PEEP value can prevent alveolar collapse, expand trapped air bubbles and small airways, reduce alveolar and interstitial edema, and thus improve lung compliance and oxygenation function. It plays a relatively important role in the treatment of acute respiratory distress syndrome (ARDS) and acute lung injury (ALI). However, in contradiction with mechanical ventilation as a key means of supporting patients' lives, mechanical ventilation itself is harmful. Excessive mechanical ventilation can lead to ventilator-induced lung injury (VILI). This requires that the selection of the optimal PEEP should not only consider improving oxygenation, but also avoid the occurrence of VILI. However, the heterogeneity of diseases and patients has different responses to mechanical ventilation, which makes PEEP treatment patient-specific. At present, there is still no clear gold standard for how to select the optimal PEEP, and optimizing the PEEP of patients with mechanical ventilation is still a challenge for clinicians. Summary of the invention
[0003] The purpose of the present invention is to overcome the above-mentioned shortcomings and provide a personalized PEEP adjustment method based on reinforcement learning.
[0004] The object of the present invention is achieved in that:
[0005] A personalized PEEP adjustment method based on reinforcement learning, the method constructs a reinforcement learning model based on the patient's physiological data during the entire mechanical ventilation process, and the reinforcement learning model agent recommends the patient's personalized PEEP level in the next time period according to the physiological data of the patient to be adjusted to achieve personalized PEEP adjustment. The reinforcement learning model construction includes the following steps: S1, collecting the physiological data sequence of each patient during the entire mechanical ventilation process, including the patient's basic information, clinical score, ventilator setting value, vital sign value, blood gas value, etc. to construct a data set.
[0006] S2. Clean the clinical physiological data series of each patient to eliminate outliers, unify the time intervals of the time series data, interpolate missing values, and normalize the data.
[0007] S3. Construct a Markov framework to solve the problem of personalized PEEP adjustment for mechanically ventilated patients.
[0008] The Markov framework includes:
[0009] 1) Finite state space S: At time t, the patient will be in state s t ,s t Including the basic information of the patient after preprocessing in step S2, clinical score, ventilator setting value (excluding PEEP setting value), vital sign value, blood gas value, etc., as follows;
[0010] 2) Action space A: At time t, the agent takes PEEP setting action a t ∈A;
[0011] 3) Transfer equation P(s) t+1 |s t , a t ): Status s t Take action a t After that, transfer to state s t+1 probability;
[0012] 4) Reward and punishment function r(s) t , a t ,s t+1 ): In state s t+1 Rewards: If the patient survives: t = +10; if the patient eventually dies: r t =-10(e t-T ). Where T is the total ventilation time of the patient.
[0013] S4. A reinforcement learning model is constructed with the fitting Q-iteration algorithm as the core. The fitting Q-iteration algorithm uses a series of single-step transition tuples to learn the Q-values of state-action pairs and performs Q-value optimization by solving supervised learning problems.
[0014] Fitting. The Q-iterative fitting algorithm is to learn the best strategy in the continuous iterative fitting, specifically:
[0015] Extract all single-step transition tuples in the dataset based on the constructed Markov framework in are the patient's current state, PEEP setting action, patient's next state and reward obtained as described in S3, respectively. n represents the nth single-step transition tuple;
[0016] Initialize Q value Q0(s t , a t )=0 a t∈A; initialize the parameters of the extreme forest (etr); then train the extreme forest etr.train() until the specified number of rounds is reached, k = K; where, for the kth round, Q k (s t , a t )=r t+1 +γmax a′∈A (etr.predict( t+1 , a′>)), where etr.predict indicates the use of the extreme forest to predict the return of each action, γ indicates the discount rate, and a′ is each action in the predicted action space. The strategy learned by the final model is the action with the largest cumulative return, π * (s) = argmax a∈A Q K (s, a).
[0017] After the original physiological data of the mechanically ventilated patient is preprocessed in step S2, it is input into the reinforcement learning model, and the reinforcement learning model agent will recommend the personalized PEEP level of the patient in the next hour.
[0018] Furthermore, the physiological data sequence of patients in S2 during ventilation has problems such as high noise, different time granularity of different features, and serious data missing. In order to better learn the optimal strategy, each feature of the data needs to be cleaned to exclude outliers that exceed the range.
[0019] Furthermore, due to the different time granularities of different features, the time intervals of the time series features in all physiological data sequences are unified to 1 hour. The average value is used for multiple values within one hour.
[0020] Furthermore, for numerical data such as age and height in the patient's basic information, the average value is used to fill missing values; for categorical data such as gender and admission type, the most frequent value is used to fill missing values; for time series characteristics, the respiratory setting value is filled with the most recent non-empty value, and linear interpolation is used for vital signs and blood gas values.
[0021] Furthermore, all processed samples are subjected to min-max normalization.
[0022]
[0023] Among them, v t is the value of feature v at time t in each independent sample, T is the total ventilation time of the patient, and max and min are the maximum and minimum values of feature v in the entire sample space, respectively.
[0024] Furthermore, the empirical value of γ in S4 is usually 0.9.
[0025] In the method of the present invention, the physiological data of the patient to be adjusted is pre-processed in step S2 and then input into the reinforcement learning model. The reinforcement learning model agent will recommend the personalized PEEP level of the patient in the next hour. The recommended PEEP level will take oxygenation and outcome into consideration to obtain the maximum cumulative expectation.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] The present invention is a personalized PEEP adjustment method based on reinforcement learning. With the help of reinforcement learning, the PEEP setting value problem in the clinical respiratory treatment process is constructed as a Markov decision problem framework. In this framework, the action is defined as a discrete value of the PEEP setting, and the reward function is defined as a function related to the patient's final outcome, and then an iterative Q fitting method is adopted to learn the optimal strategy. The actual decision-making process of clinicians can only select a relatively appropriate PEEP value based on the patient's short-term physiological indicators. Different from this decision-making idea, the reinforcement learning agent recommends PEEP values with the goal of enabling patients to obtain better long-term outcomes. Therefore, the personalized PEEP adjustment method proposed in the present invention has achieved good results in experimental verification, enabling patients to obtain better oxygenation indicators, thereby reducing the patient's mortality rate, and providing better advice and assistance for doctors' clinical decision-making. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 The figure is a flow chart of a personalized PEEP adjustment method based on reinforcement learning according to the present invention.
[0029] Figure 2 This is a schematic diagram of the training of the fitting Q iteration algorithm adopted in the present invention.
[0030] Figure 3 This is a schematic diagram of the process of the personalized PEEP adjustment method adopted in the present invention.
[0031] Figure 4 This is the relationship between the Q-value prediction of the doctor's actual behavior and the patient's clinical indicators by the reinforcement learning agent proposed in the present invention. DETAILED DESCRIPTION
[0032] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.
[0033] like Figure 1 As shown, the present invention is a personalized PEEP adjustment method based on reinforcement learning, comprising the following steps:
[0034] S1, dataset acquisition;
[0035] Extract the physiological data sequence of the patient during the entire mechanical ventilation process, including the patient's basic information, clinical score, ventilator setting value, vital sign value, blood gas value, etc. as shown in Table 1:
[0036] Table 1 Physiological data
[0037]
[0038]
[0039] S2, pre-processing;
[0040] 1) Clean the extracted clinical physiological data sequence of the patient to exclude outliers: Due to the high noise of medical data, different feature granularity, and serious data missing, in order to better learn the best strategy, each feature of the data needs to be cleaned to exclude outliers that exceed the range;
[0041] 2) The time interval of time series data is unified into 1 hour, and the average value is used for multiple values within one hour;
[0042] 3) Missing value interpolation: For the numerical data such as age and height in the basic information of patients, the average value is used to fill the missing values; for the categorical data such as gender and admission type, the most frequent value is used to fill the missing values; for time series characteristics, the respiratory setting value is filled with the most recent non-empty value, and the vital signs and blood gas values are linearly interpolated;
[0043] 4) Data normalization: Perform min-max normalization on all processed patient sample data.
[0044]
[0045] Among them, v t is the value of feature v at time t in each independent patient sample, T is the total ventilation time of the patient, and max and min are the maximum and minimum values of feature v in the entire sample space, respectively.
[0046] Among them, the local patient clinical physiological data is divided into a training set and a test set at 80% and 20%, respectively. The training set is used for training the reinforcement learning model, and the test set is used for evaluating and analyzing the model performance.
[0047] S3. Building a Markov framework
[0048] For the problem of personalized PEEP adjustment for mechanically ventilated patients, a Markov framework is constructed to conceive a suitable action space and reward function. The Markov framework is shown as follows:
[0049] 1) Finite state space S: At time t, the environment (the patient in this case) will be in state st ; Status t It includes the basic information of the patient after preprocessing in step S2, clinical score, ventilator setting value (excluding PEEP setting value), vital sign value, blood gas value, etc.
[0050] 2) Action space A: At time t, the agent takes action a t ∈A (PEEP level in this problem), thus affecting the next state s t+1 ; The action space is the PEEP level. The continuous PEEP setting value will be discretized into 6 PEEP levels, as shown in the following table:
[0051]
[0052]
[0053] 3) Transfer equation P(s) t+1 |s t , a t ): Status s t Take action a t After that, transfer to state s t+1 probability;
[0054] 4) Reward and punishment function r(s) t , a t ,s t+1 ): In state s t+1 If the patient survives: t = +10; if the patient eventually dies: r t =-10(e t-T ). Where T is the total ventilation time of the patient.
[0055] S4. Constructing a reinforcement learning model with Q-iteration algorithm as the core
[0056] Unlike Q-learning, the Fit Q Iterative Algorithm uses a series of single-step transition tuples to learn the Q value of the state-action pair, and fits the Q value by solving a supervised learning problem. The Fit Q Iterative Algorithm is to learn the best strategy in the continuous iterative fitting. Figure 2 , mainly including the following steps:
[0057] S4-1. Extract all single-step transformation tuples in the training set where s t represents the patient's state at time t, a t represents the action at time t (selected PEEP value), s t+1 represents the state of the patient at time t+1; n represents the nth single-step transition tuple, and |F| is the length of F.
[0058] S4-2. Initialize Q value
[0059] S4-3, initialize the parameters of extreme forest (etr);
[0060] S4-4. For the kth round, Q k (s t , a t )=r t+1 +γmax a′∈A (etr.predict( t+1 , a′>)); where etr.predict indicates the use of extreme forest to predict the reward of each action, γ indicates the discount rate, and the empirical value of 0.9 is used in this embodiment, and a′ is each action in the predicted action space.
[0061] S4-5, training extreme forest etr.train();
[0062] S4-6, repeat step S4-4 until the specified number of rounds is reached, k = K;
[0063] The strategy learned by the final model is the action with the largest cumulative reward, such as Figure 3 , π * (s) = argmax a∈A Q K (s, a).
[0064] S5. After the original physiological data of the mechanically ventilated patient is preprocessed in step S2, it is input into the reinforcement learning model, and the reinforcement learning model agent will recommend the personalized PEEP level of the patient in the next hour. Figure 4 In order to input the actual behavior of the doctor (actually set PEEP) into the model on the test set, the model gave the relationship between the Q value predicted by the model for the actual behavior of the doctor and the patient's physiological indicators. The results showed that when the reward (Q value) of the doctor's behavior predicted by the model was higher, the oxygenation (oxygenation index, oxygen saturation, oxygen partial pressure) actually obtained by the patient was higher, the respiratory mechanics indicators (driving pressure, mechanical work) were lower, and the compliance of the lungs was better, which showed that the model was well trained and had a good prediction effect.
[0065] The present invention is a personalized PEEP adjustment method based on reinforcement learning. With the help of reinforcement learning, the PEEP setting value problem in the clinical respiratory treatment process is constructed as a Markov decision problem framework. In this framework, the action is defined as a discrete value of the PEEP setting, and the reward function is defined as a function related to the patient's final outcome, and then an iterative Q fitting method is adopted to learn the optimal strategy. The actual decision-making process of clinicians can only select a relatively appropriate PEEP value based on the patient's short-term physiological indicators. Different from this decision-making idea, the reinforcement learning agent can maximize long-term rewards. Therefore, the personalized PEEP adjustment method proposed in the present invention has achieved good results in experimental verification, enabling patients to obtain better oxygenation indicators, thereby reducing the patient's mortality rate, and providing better advice and assistance for doctors' clinical decision-making.
[0066] In the above embodiments, the present invention is only exemplarily described, but those skilled in the art may make various modifications to the present invention without departing from the spirit and scope of the present invention after reading this patent application.
Claims
1. A personalized PEEP adjustment method based on reinforcement learning, characterized in that: The method constructs a reinforcement learning model based on the patient's physiological data during the entire mechanical ventilation process. The reinforcement learning model agent recommends the patient's personalized PEEP level in the next period of time according to the patient's physiological data to achieve personalized PEEP adjustment; wherein the reinforcement learning model construction includes the following steps: S1. Collect the physiological data sequence of each patient during the entire mechanical ventilation process, including basic patient information, clinical scores, ventilator settings, vital signs, and blood gas values to construct a data set; S2. Clean the clinical physiological data series of each patient to eliminate outliers, unify the time intervals of the time series data, interpolate missing values, and normalize the data. S3. Construct a Markov framework, wherein the Markov framework includes: 1) Finite state space S: At time t, the patient will be in state s t ,s t Including the basic information of the patient after preprocessing in step S2, clinical score, ventilator setting value except PEEP setting value, vital sign value, blood gas value, as follows; 2) Action space A: At time t, the agent takes PEEP setting action a t ∈A; PEEP setting action a t Six PEEP levels were obtained by discretizing the continuous PEEP setting value: 3) Transfer equation P(s) t+1 |s t ,a t ): Status s t Take action a t After that, transfer to state s t+1 The probability of 4) Reward and punishment function r(s) t ,a t ,s t+1 ): In state s t+1 Rewards: If the patient survives: t = +10; if the patient eventually dies: r t =-10(e t-T ); where T is the total ventilation time of the patient; S4. Construct a reinforcement learning model with the Q-iterative algorithm as the core, specifically: Extract all single-step transition tuples in the dataset based on the constructed Markov framework in are the patient's current state, PEEP setting action, patient's next state and reward obtained as described in S3, respectively, and n represents the nth single-step transition tuple; Initialize Q value Initialize the parameters of Extreme Forest etr; then train Extreme Forest etr.train() until the specified number of rounds is reached, k = K; where, for the kth round, Q k (s t ,a t )=r t+1 +γmax a′∈A (etr.predict( t+1 ,a′>)), where etr.predict indicates the use of extreme forest to predict the return of each action, γ indicates the discount rate, and a′ is each action in the predicted action space; the strategy learned by the final model is the action with the largest cumulative return, π * (s) = argmax a∈A Q K (s,a). 2. A personalized PEEP adjustment method based on reinforcement learning according to claim 1, characterized in that: In step S2, the time intervals of the time series features in all physiological data sequences are unified into 1 hour, and the average value is adopted for multiple values within one hour.
3. According to the personalized PEEP adjustment method based on reinforcement learning as described in claim 1, it is characterized in that: The missing value interpolation in step S2 is specifically as follows: for the age and height numerical data in the patient's basic information, the average value is used to fill the missing values; for the gender and admission type categorical data, the most frequent value is used to fill the missing values; for time series characteristics, the respiratory setting value is filled with the most recent non-empty value, and the vital signs and blood gas values are linearly interpolated.
4. According to the personalized PEEP adjustment method based on reinforcement learning as described in claim 1, it is characterized in that: In step S2, all processed samples are subjected to min-max normalization processing; Among them, v t is the value of feature v at time t in each independent sample, T is the total ventilation time of the patient, and max and min are the maximum and minimum values of feature v in the entire sample space, respectively.
