Related Experiment Video
Updated: Jul 18, 2026

07:55
A Multi-Parametric Islet Perifusion System within a Microfluidic Perifusion Device
Published on: January 26, 2010
12.1K
Efficient Closed Loop Simulation of Do-It-Yourself Artificial Pancreas Systems
Jana Schmitzer1, Carolin Strobel1, Ronald Blechschmidt1
1Institute for Medical Engineering and Mechatronics, Ulm University of Applied Sciences, Ulm, Germany.
Journal of Diabetes Science and Technology
|July 30, 2021
Summary
This study accelerates artificial pancreas (AP) simulations by reimplementing the AndroidAPS algorithm in MATLAB/Simulink, achieving a 1000x speed-up. This enables faster, cheaper in silico trials for AP system development.
Area of Science:
- Biomedical Engineering
- Computational Biology
- Diabetes Technology
Background:
- In silico trials are crucial for artificial pancreas (AP) system approval.
- The UVA/Padova Type 1 Diabetes Metabolic Simulator (T1DMS) is a key simulation tool.
- Previous simulations of the AndroidAPS system using T1DMS were limited by slow execution speed.
Purpose of the Study:
- To significantly accelerate the simulation speed of the AndroidAPS system.
- To achieve this acceleration by reimplementing the AndroidAPS algorithm in MATLAB/Simulink and integrating it with T1DMS.
Main Methods:
- Re-implementation of the AndroidAPS algorithm in MATLAB/Simulink and subsequent verification.
- Integration of the new MATLAB/Simulink implementation into the T1DMS environment.
- Evaluation using a 2-day real-time scenario with 30 virtual patients, comparing results to existing literature.
Main Results:
- Unit and integration tests confirmed the equivalence of the new and original AndroidAPS code.
- The new implementation achieved a speed-up factor of approximately 1000x compared to real time.
- Simulation results closely matched previous findings, with minor discrepancies attributed to different virtual populations and parameter harmonization.
Conclusions:
- The MATLAB/Simulink implementation drastically reduces runtime for in silico trials of AndroidAPS.
- This offers a cost-effective and rapid method for testing new AndroidAPS algorithm versions.
- Facilitates more extensive testing and validation before community release.

