The artificial pancreas is composed of a continuous glucose sensor that senses the user's sugar level, an insulin infusion pump that secretes insulin into the user's body when required; and an algorithm that regulates the insulin based on the glucose levels obtained from the sensor. In order to minimize cost and time to build and verify such a complex system, one must first model and simulate the system. This methodology in turn provides risk-free testing environments and can also be tested with different scenarios.
This thesis will focus on modelling and simulating the artificial pancreas using Discrete EVent System Specification in Real-Time (DEVSRT).This is accomplished by simulating both a meal model and a control algorithm to control the insulin pump based of the data provided by the continuous glucose monitor. The meal model simulation will validate the control algorithm model.