MATLAB/Simulink Medical Fluid Pump Model With A Flow PID Controller
MATLAB/Simulink Medical Fluid Pump Model With A Flow PID Controller
net/publication/348857418
CITATION READS
1 490
12 authors, including:
All content following this page was uploaded by Mohamad Abou Ali on 12 April 2024.
Abstract—Medical CO2 insufflator is used in a created by the CO2 insufflator; this area is called
minimally invasive surgery creating abdominal cavity pneumoperitoneum [2].
to provide surgeons with a direct view of internal Hybrid pneumatic-electronic laparoscopic insufflators
organs. In our previous work, MATLAB/Simulink consist of three parts: Pneumatic part (High Pressure
medical CO2 insufflator has been developed with only Unit, and Low Pressure Unit), electronic part, and
abdominal cavity’s pressure via a PID controller. This applied part (heated hose system, trocar…) [5]. Such a
work permits the simultaneous control of three device requires inclusive control of all compartments,
parameters pressure, flow and temperature through a parameters and variables.
PID controller. Then, an MPC controller has been Since 2017, Food & Drug Administration (FDA)
implemented to enhance the precision, accuracy, and strongly demands in-silico (computer) modeling to
the response time of the system. The results are accelerate and facilitate the costly long-time process of
promising due to the efficiency of MPC controller in getting an FDA approval. Because of what is mentioned,
multi-input/multi-output system over PID controller. In modeling is needed for any device before its launch in
the future work, high flow CO2 insufflator will be the market, that is to avoid expense of prototype trials as
developed. well as to supply more computerized accuracy and
precision, and MATLAB/SIMULINK is a great tool to
Keywords— Medical CO2 insufflator; computational attain the target. Furthermore, this offers abundance of
modeling; MATLAB/SIMULINK-Simscape; PID and time and economy before the hardware implementations.
MPC controllers. In the previous paper [3], the medical CO2 insufflator-
patient system is modeled and controlled via PID
I. INTRODUCTION controller using MATLAB/SIMULINK-Simscape tool
Minimally Invasive Surgery (MIS) utilizes an regarding only the pressure, which was insufficient since
endoscope to reach internal organs through very small there are many other variables than pressure to be
incisions [1]. Laparoscopic MIS is a platform that considered, to keep the device-patient system under full
permits operating within abdominal-pelvic parts [2]. safety. Moreover, a PID controlled- “proportional
Medical carbon dioxide (CO2) insufflator is widespread pressure regulator PPR” is utilized instead of a
involved in such surgeries, dilating the peritoneal cavity, traditional pressure regulator (pneumatic pressure
aiming to provide better and easier view as well as regulator; the knob).
workspace for surgeons [2]. This work is developed as According to what is recommended by FDA and the
an enhancement of the previous paper outcome, where rapid growth of modern technology, a fully integrated
only pressure variable was considered and controlled by control over the whole system is to be generated
PID controller [3]. including more variables (pressure, flow, temperature).
Since the dawn of medical and operational surgeries, System modeling via same tool is then developed adding
traditional surgeries were based on large cuttings to flow and temperature variables under the control of
visualize internal parts of the patient, followed by a long- PID(s). Later on, PID controllers are eventually replaced
term recovery. Today, MIS is excelled by tiny tools, by MPC controller to rule, monitor and regulate all what
cameras, and light sources which grant small incisions, is said above, since MPC controller is way better than
less hemorrhage, and short-term recovery [4]. PID regarding precision outcomes, short-term response,
Laparoscopic surgery, also known as MIS, is applied multi-input / multi-output signals… etc.
at the abdominal-pelvic site for diagnosis or treatment Literature review and system design are
purposes by the aid of medical insufflator, affording elaborated in sections II and III respectively. Results are
more room inside patient’s abdomen. Those medical analyzed and discussed in section IV. Finally, section V
insufflators use two major types of gases: CO2 and N2O; offers a brief conclusion and future work.
in this work, the medical CO2 insufflator is on the spot.
At the level of peritoneal cavity, a gas-filled space is
II. LITERATURE REVIEW to produce the most appropriate one attaining the highest
A fractional related work is published by World of safety and performance.
Medicine (WOM) Company, an endoscope-specialized
German company. “WOM Reduces Time-to-Market for
Surgical Device Control Software with Model-Based
Design”; yet, such work is not published [6]. A compact
description of this task is to be found exclusively in the
MathWorks Company website page. WOM Company
did promote medical CO2 insufflator, where WOM team
used measured input-output data to have a non-linear
abdominal cavity mathematical model developed using Figure 1: Medical CO2 Insufflator SIMULINK-
system identification tool in MATLAB. Besides, two Simscape Model.
cascaded PI controllers were involved; one for pressure
The system includes five fundamental parts: High
control and another for flow control “PI-PF”.
Pressure Unit HPU, Low Pressure Unit LPU,
This piece of work is proposing medical CO2
Proportional Pressure Regulator PPR, Trocar (subsystem
insufflator-patient system modeled by
of the applied part), and the abdominal cavity model.
MATLAB/SIMULINK-Simscape that must have
lookalike block diagrams. Whilst, our focus is going to A) PID-P Control System:
be on the application of PID-PQT (PID controller for In the preceding paper [3], the five fundamental parts
Pressure, Flow, and Temperature) & MPC-PQT (MPC (blocks) are modeled, and all detailed compartments are
controller for Pressure, Flow, and Temperature) illustrated with their specifications and parameters. The
controllers to boost the safety, efficiency, and PPR part includes PID controller driving a controllable
performance of the insufflator. Thus, additional pressure source and a pressure sensor, thus named PID-
parameters are to be added to reach the concept of P. Coming forward, it is reconsidered that controlling
“system-of-systems” in a standalone medical CO2 only the pressure is insufficient, so PID-PQT control
insufflator. On the top of that, a reality-imitating system comes to solve the issue.
simulation is to be tested by the addition of leakage on
the abdominal cavity model. B) PID-PQT Control System:
In the current paper, some variations exist where new
III. SYSTEM DESIGN compartments are added instead of others (i.e.; constant
For the modeling to be exemplary, we shall grasp the temperature sources are substituted by controllable
functionality of the real system, in addition to the basis temperature ones). Over and above, two PID controllers
of the existing models in the market. For that purpose, all are added to control CO2 temperature and CO2 gas flow,
prerequisite facts and documentations are compiled for hence called PID-PQT. So, two more parts are new to
the “40L HIGH FLOW INSUFFLATOR” model the system:
presented by STRYKER to be mimicked [7]. a) PID-T: Temperature Control Subsystem
For a well-polished model of the system, MATLAB
In Figure 2, the “constant temperature source”
tool turns up to execute the desired model.
prescribed in HPU previously is substituted with
MATLAB/SIMULINK is a very dominant tool to
“controllable temperature source”. As well, a PID
simulate various physical systems in real-time to obtain
controller and 2 temperature sensors are added to
the required results. In SIMULINK, blocks and
formulate a closed loop temperature control subsystem.
connections are used to model a problem, where
SIMULINK allows users to surpass the knowledge of
programming languages in order to model a physical
system in MATLAB and perform a real-time simulation.
More specifically, new library features (i.e.; SIMSCAPE
GAS SYSTEMS) are available in recent SIMULINK
versions. The MATLAB version used in this work
should be at least R2019b version in order to be able to
run the SIMULINK-Simscape built model.
Within model implementation, every compartment
must be calibrated and its parameters are to be
determined. Such parameters are gathered from several
resources and spreadsheets.
Figure 2: Temperature Control Subsystem
The medical CO2 insufflator-patient system
SIMULINK-Simscape Model
SIMULINK-Simscape model, which is made based on
the standard medical CO2 insufflator offered by b) PID-Q: Flow Control Subsystem
STRYKER, is shown in Figure 1. However, three control As previewed in Figure 3, a controllable volumetric
systems (PID-P, PID-PQT and MPC-PQT) will be used flow block with a volumetric flow sensor and PID
controller are added to the whole system to produce a
flow control subsystem. The block stated (-K) is only are connected to measured outputs port, 3 manipulated
utilized for unit’s conversion. variables connected to manipulated variables port and 3
references connected to references port. In addition, 3
components from the previous model are replaced with
new ones. The controllable temperature source is
replaced with variable thermal resistance, the
controllable pressure source is replaced with variable
local restriction, and the controllable volumetric flow
rate source is replaced with gate valve.