key: cord-0168609-7rp1t905 authors: Liu, Dayang title: A Model-Based Architecture for Automatic Anesthesia Infusion date: 2021-12-28 journal: nan DOI: nan sha: ce9ea9b8daa944e5137609987a89eff515f9b287 doc_id: 168609 cord_uid: 7rp1t905 This paper presents a model-based control architecture. Based on the Medical Cyber-physical Systems (MCPS) concept, we construct a safe and reliable automatic anesthesia control closed-loop system. The control architecture uses the patient's propofol pharmacokinetic/pharmacodynamic model, using the calculated results as a feedback signal to correct the model's uncertainties. During anesthesia, the bispectral index (BIS) level is used as a control variable to control the depth of anesthesia. The proposed control architecture can automatically adjust the infusion rate of anesthesia drugs without concussion or overshoot. The system adaptively adjusts the drug infusion rate to maintain the BIS level at a stable target value. We utilized MATLAB-Simulink to verify the effectiveness of this method, and the robustness test was carried out by adding noise blocks. At last, we analyze the simulation result of the average patient. In general, the proposed method achieves a stable and fast induction period during the maintenance phase of anesthesia with a good disturbance rejection. Anesthesia management is prone to mistakes. During the period of anesthesia, the anesthetist will adjust the dose of anesthetics according to the operation situation and the patient's vital signs [1] . However, due to the complexity of the clinical environment and the patient's differences, even experienced anesthetists are not immune to cardiovascular or neurological damage due to over administration of drugs or inadequate administration of drugs leading to intraoperative awareness. Ira Dhawan [2] counted the reports of relevant anesthesia cases from 1998 to 2011 and pointed out that the incidence of drug administration errors was 0.078%-0.75%, with the two most significant categories of errors involving incorrect doses (20%) and incorrect drugs (20%). Infusion pumps and other systems have not established effective feedback mechanisms with patient monitoring systems, which is also a problem to be solved urgently. We hope that there will be a way to achieve some degree of improvement in terms of anesthesia optimization and patient risk reduction. The 4th Industrial Revolution has brought a new expansion called Health 4.0 [3] , in which Cyber-physical Systems (CPS) are the core technology. CPS integrates the physical world and the information world, forming a new structure combining hardware and software and becoming the core technology system to support and lead the transformation of the new generation of industry [4] . Medical cyber-physical systems (MCPS) are healthcare critical integration of a network of medical devices [5] . MCPS regards the traditional clinical scenario as a closed-loop system. The nursing staff is the controller, the medical equipment is the sensor and actuator, and the patient is the control object [6] . Analyzing healthcare-related data captured in real-time enables 2. Introduction to automatic anesthesia system Anesthesia includes three parts: unconsciousness, analgesia, and neuromuscular block (NMB) [8] . The introduction of monitoring technologies such as depth of consciousness monitor can timely detect complications and alarm, providing safe and predictable anesthesia and paving the way for the research of automatic closed-loop anesthesia systems. Fig.1 shows the anesthesia depth monitor equipment, hemodynamics, respiratory dynamics, etc., recommended in the anesthesia standard [8] . Anesthetists complement clinical observations to maintain the optimal infusion rate during anesthesia. The context-aware control system could free the anesthetist from repetitive assignments, allowing them to focus on other high-level tasks. In addition, it is necessary to address the particular hazardous factor associated with infected patients caused by the COVID-19 outbreak [9] . At present, the computer mainly controls the drug infusion through the open-loop TCI system to control a stable anesthesia drug delivery rate. The TCI system primarily uses the pharmacokinetics or the plasma concentration prescribed by medical practitioners to simulate the aimed effect-site [10] . Nevertheless, the anesthetist just simply selects the initial target dose or intervention and then adjusts it by assessing the status of patients during surgery. Clinicians hypothesize the drug's impact on the patient according to monitoring results or experience. In contrast, the proposed closed-loop control system uses direct measurements from the anesthesia depth monitor to automatically regulate the infusion rate. It is much more reliable than the subjective judgment of the anesthetist. It is unnecessary to categorize the anesthesia system into separate groups in a practical clinical setting. The solution can be to use a hybrid system that allows the controller to respond to the anesthetist's movements to avoid complications [11] . The system can support the anesthetist in clinical decision-making by reasoning, optimizing drug administration, and minimizing accident overdosage or under dosage. The technology could also bring professional guidance to under-resourced areas. The integrated closed-loop system is shown in Fig.2 . It integrates hand-operated clinical practice and automated control to achieve optimal drug infusion. The system adopts a multiple-input-multiple-output (MIMO) scheme, which considers common anesthetic drugs in clinical practice and their influence on individual output to avoid omission. In the system, an infusion pump is used to infuse various medications. The sensors relay information about the patient's physiological dynamics. Patients are systems with complex dynamics. The anesthetist can inject the patient directly when needed, creating interference in the control system. The controller estimates and adjusts the drug dosage based on the patient's current status. The model should be adaptive and optimized online to ensure real-time performance. Patient safety is the most crucial consideration in the system. 3 shows the infusion pump drive module for cyber-physical interaction (injecting drugs into the human body). The control system uses the output of the pharmacokinetic model as a feedback signal to maintain the level of drug concentration in the blood to be the same as the reference value. The control algorithm of the system takes the reference value and the predicted value together as input. It calculates the required infusion rate through the error of the two and predicts the future drug concentration level. High variability is the characteristic of patient modeling in the anesthesia infusion system. Pharmacokinetic (PK) -pharmacodynamic (PD) compartment model is generally used to predict drug effect, and drug effect is measured by nonlinear Hill curve [12] . The pharmacokinetics model explains the association between drug infusion and drug concentration in vivo, and pharmacodynamics is the effect of the central compartment drug concentration on the patient's body. Electroencephalogram (EEG) indicators could track Hypnosis-related changes caused by different drug concentrations. The Bispectral Index (BIS) is derived from EEG [13] , and it is a more accurate method to judge the sedation level and monitor the depth of anesthesia. When BIS is 0, there is no EEG activity at all. BIS value of 100 represents a fully awake state, 60-70 and 40-60 represent calm and modest anesthesia status, respectively [14] . Propofol is a common intravenous anesthetic, and the following formula [15] describe the PK-PD mathematical model of propofol: Eq.(1) is the PK model of propofol, which uses the three-compartment model to denote the drug kinetic characteristics. The three compartments include a central compartment equivalent to blood and two peripheral compartments with different intake and release rates. In the formula, c1 denotes the concentration of drug in the central compartment (representing plasma). The peripheral compartment with a faster rate of exchange with the central compartment is called the shallow compartment(e.g., muscles), and the peripheral compartment with a slow rate of drug exchange with the central compartment is called the deep compartment(e.g., fat). Their drug concentration is characterized by c2 and c3, respectively. U(t)[mg/min] is the infusion velocity of drugs into the central compartment. V1 is the volume of compartment 1, 4.27[L]. Ce is concentration in a hypothetical effect-site compartment, which is the site of drug action. As plasma is not the site of drug action, Schnider [19] et al. proposed the concept of effect compartment to explain the clinical phenomenon that the peak effect lags behind the peak plasma concentration. In clinical practice, the frequency drug transfer of propofol from the central compartment to the effect-site compartment is identified as the frequency of drug elimination from the effect-site compartment: ke0=k1e=0.456[min -1 ] [16] . Parameter kij (i ≠ j) represents the frequency of drug shift from compartment i from compartment j (ratio of the gap to volume). Kij relies on the patient's age, height, weight, and gender. The calculation method is shown as follow: Cl1 is the velocity of the drug removed from the human body and needs to be calculated using lean body mass(LBM). Cl2 depends on age, and Cl3 is a constant. They are the velocities of drug transfer from the middle compartment to the other two compartments through diffusion. Eq. (3) Eq.(4) is the PD model, also known as the Hill curve, which shows the correlation between BIS and concentration of effect-site Ce [17] . E0 represents the waking state without drug infusion. Emax represents the maximum effect achieved during infusion. Ce50 is the drug concentration at 50% of the maximal effect and means the patient's sensibility to the drug. γ determines the steepness of the curve. We selected the patient parameters used in [15] to assess the model's performance, and Table 1 shows the parameters. The 13 th patient was a fictitious individual whose parameters were calculated from the algebraic average of other patient parameters. Fig.4 is a simulation of all 13 patients, showing the correlation between BIS output and effect-site compartment concentration. In clinical practice, the BIS level between 40 and 60 indicates the patient is in a better state of anesthesia, and the corresponding effect-site concentration is around 3 to 9. According to the content depicted in the previous section, we propose a control architecture to transition the depth of anesthesia to the target BIS level and keep the BIS level at that stage. The control protocol sets the desired BIS at first. A BIS value between 40-60 is usually optimal in clinical practice, so we fix the BIS level at 50. Fig.5 shows the control architecture, where d(t) is the deviation between the target and calculated concentrations. The control action u(t) is the infusion speed of propofol, and the result of the patient linear model is the estimated effect-site concentration Ce(t) of the patient. The output y(t) is the BIS level with noise interference added. The innovation signal i(t) is used to complement the deviation between the calculated result and the target value. We add noise blocks to represent the common BIS signal noise to verify the scheme's robustness. Therefore, we added two filters to the control scheme to deal with noise. The architecture we put forward can integrate the patient model into the control architecture to provide exceptional and personalized drug infusion. The calculation result is used as a feedback signal to obtain an appropriate drug infusion rate. Other parameters (Ce50, γ , Emax) are usually unknown except E0 can be measured when calculating BIS level, so we use the average parameters in Table 2 , which are derived from [18] . Eq.(5) expresses the inverse of the Hill function in the control architecture. To study the robustness of the controller, we added mutational interference to the BIS measurement to simulate external nociceptive stimuli. Noise can degrade the property of the architecture; for instance, it may cause a risk of slow or unstable responses. To solve the noise problem, we use two linear filters. The F1 filter pre-filters the BIS signal with the primary purpose of eliminating the potential disturbance with no free of affecting the system. The F2 filter deal with the tradeoff between system and noise filtering for innovative signal i(t). We use second-order low-pass filters for both filters: Particularly, the integral absolute error (IAE) is taken as the fitness function: The filter time constant Tf1 is fixed at 0.1 empirically. We use the gain scheduling method [17] to tune filter F2. For Tf2, we calculated the IAE of each patient in Table.1 and compared it with the condition in the absence of disturbance to obtain the performance degradation ratio in the worst case: (8) In the formula, n represents the nth patient. IAEn,filter represents the integral absolute error calculated with Tf2. IAEn represents the value computed without a filter in the absence of noise. Fig.6 shows the result of tuning the filter in the sustaining stage. A proper performance degradation ratio index can be designated at 30%, corresponding to the balance between noise filtering and optimal regulation. Finally, we obtain Tf2=9.7871 corresponding to disturbance rejection. We simulated the proposed architecture in MATLAB-Simulink. In this section, we will analyze and discuss the simulation results. For observation purposes, we analyze the results of the 13th patient first to illustrate the reliability of the proposed system. The purpose of anesthesia induction is to achieve the desired depth of anesthesia as quickly as possible, usually within 4 minutes. We focused on how long it took patients to reach the target BIS value for the first time and how stable the injection rate was to maintain the BIS level. The simulation result of the 13 th patient are shown in Fig.7 : Target Ce(t) is a superior value figured by the inverse of the Hill function. Estimated Ce(t) is the estimated effect-site concentration, also the real effect-site. The curve of i(t) is used as an additional corrective action to correct possible errors in the calculation so that the stable target BIS level can be achieved. Fig.9 . Disturbance response for the 13th patient. Fig.9 (a) shows the disturbance encountered while maintaining the BIS level, and (b) shows the corresponding control actions. When the BIS level rises, control action increases the drug infusion rate to reduce the patient ' s BIS level to avoid the occurrence of intraoperative awareness. On the contrary, when the BIS level drops, the control action will lessen the injection volume in time to ensure patient safety. Control action will maintain a stable infusion rate after adjusting the infusion volume and BIS level to the desired level. A model-based automatic control architecture was brought up for anesthesia. The system integrates the patient model so that the proposed control architecture could design a proper dosing regimen for each patient. The simulation result of a proper patient was mainly presented to illustrate the rationality of the proposed architecture. The robustness of the control structure is verified by introducing noise to simulate the disturbance during anesthesia. The result shows that the control architecture could maintain the desired BIS level with disturbance rejection, meeting the clinical specifications. In the future, we hope this scheme could be applied to actual clinical settings, not just simulation. For this purpose, it may be necessary to consider patient variability or equipment failure in the future. It can be the next step in our efforts. The authors did not receive support from any organization for the submitted work. Effects of intravenous and inhalation anesthesia on blood glucose and complications in patients with type 2 diabetes mellitus: study protocol for a randomized controlled trial Medication errors in anesthesia: unacceptable or unavoidable Healthcare 4.0: A review of frontiers in digital health Specifying and Modeling Cloud Cyber Physical Systems Based on Medical cyber-physical systems: A survey Challenges and research directions in medical cyber-physical systems IEEE Proc Early modeling and validation of timed system requirements using Timed Use Case Maps World Health Organization-World Federation of Societies of Anaesthesiologists (WHO-WFSA) international standards for a safe practice of anesthesia SARS-CoV-2 inflames the heart. The importance of awareness of myocardial injury in COVID-19 patients Practicalities of total intravenous anesthesia and target-controlled infusion in children Hypnosis regulation in presence of saturation, surgical stimulation and additional bolus infusion Credibility evidence for computational patient models used in the development of physiological closed-loop controlled devices for critical care medicine The use of bispectral index to monitor barbiturate coma in severely brain-injured patients with refractory intracranial hypertension Drug dosing control in clinical pharmacology Measuring the predictive performance of computer-controlled infusion pumps The influence of age on propofol pharmacodynamics Optimized PID control of depth of hypnosis in anesthesia Spectral entropy as an electroencephalographic measure of anesthetic drug effect: a comparison with bispectral index and processed midlatency auditory evoked response Using the time of maximum effect site concentration to combine pharmacokinetics and pharmacodynamics