| Literature DB >> 33981286 |
Jhon E Goez-Mora1, María F Villa-Tamayo1, Monica Vallejo1, Pablo S Rivadeneira1.
Abstract
Current technological advances have brought closer to reality the project of a safe, portable, and efficient artificial pancreas for people with type 1 diabetes (T1D). Among the developed control strategies for T1D, model predictive control (MPC) has been emphasized in literature as a promising control for glucose regulation. However, these control strategies are commonly designed in a computer environment, regardless of the limitations of a portable device. In this paper, the performances of six embedded platforms and three open-source optimization solver algorithms are assessed for T1D treatment. Their advantages and limitations are clarified using four MPC formulations of increasing complexity and a hardware-in-the-loop methodology to evaluate glucose control in virtual adult subjects. The performance comparison includes the execution time, the difference concerning the evolution obtained in MATLAB, the processor temperature, energy consumption, time percentage in normoglycemia, and the number of hypo- and hyperglycemic events. Results show that Quadprog is the package that faithfully follows the results obtained with control strategies designed and tuned on a computer with the MATLAB software. In addition, the Raspberry Pi 3 and the Tinker Board S embedded systems present the appropriate characteristics to be implemented as portable devices in the artificial pancreas application according to the criteria set out in this work.Entities:
Keywords: artificial pancreas; embedded control systems; model predictive control; optimization solver packages; type 1 diabetes
Mesh:
Substances:
Year: 2021 PMID: 33981286 PMCID: PMC8109177 DOI: 10.3389/fendo.2021.662348
Source DB: PubMed Journal: Front Endocrinol (Lausanne) ISSN: 1664-2392 Impact factor: 5.555
MPC strategies.
| MPC strategy | Description | Optimization problem |
|---|---|---|
| Standard model predictive control (sMPC) | The sMPC aims to steer the system |
|
| Zone model predictive control (ZMPC) | The ZMPC is formulated by adding a new decision variable |
|
| Zone model predictive control with artificial variables (ZMPC-AV) | The ZMPC-AV introduces new decision variables |
|
| Offset-free zone model predictive control with artificial variables (ZMPC-AV-OF) | This strategy compensates for the effect of a plant-model mismatch. To that end, the state is augmented with a disturbance |
|
Complexity of the MPC strategies.
| Strategy | decision variables | number of decision variables | number of inequality constraints | number of equality constraints |
|---|---|---|---|---|
| MPC |
|
| 2 | 0 |
| ZMPC |
|
| 2( | 0 |
| ZMPC-AV |
|
| 2( | 3 |
| ZMPC-AV-OF |
|
| 2( | 3 |
Hc, control horizon; Hp, prediction horizon; nx, dimension of the state; nd, dimension of the disturbance considered in the ZMPC-AV-OF.
Characteristics of Embedded Systems.
| Embed | CPU | Frequency | RAM | storage | connectivity | source power | OS |
|---|---|---|---|---|---|---|---|
| Raspberry pi 4 | Quad core Cortex-A72 (ARM v8) 64-bit | 1.5 GHz | 4 GB LPDDR4-3200 SDRAM | 16 GB Micro SD | Gigabit Ethernet, BlueTooth 5.0 | 5V 3A | Raspbian |
| Raspberry pi 3 b | Quad Core Broadcom BCM2837 64bit | 1.2 GHz | 1GB LPDDR2 SDRAM | 16 GB MicroSD | Ethernet, BlueTooth 4.0 | 5v 2.5A | Linux distributions, Windows |
| Tinker Board S | Rockchip RK3288 Cortex-A17 Quad Core 32-bit | 1.8 GHz | 2GB dual channel LPDDR3 | 16GB eMMC/MicroSD slot | Gigabit Ethernet, BlueTooth 4.0 | 5V/2-3A | Linux distributions, TinkerOS |
| Orange Pi s | Quad-core Cortex-A7 H.265 64-bit | 1.6 GHz | 2GB DDR3 | 8GB EMMC Flash/MicroSD | Ethernet, BlueTooth 4.0 | 5V 3A | Android Lubuntu, Debian, Raspbian |
| ODROID-XU4 | Exynos5422 Cortex-A15 64-bit | 2 GHz | 2Gbyte LPDDR3 | Flash 5.0, 16 GB MicroSD | Gigabit Ethernet | 5V 4A | Linux distributions |
| Jetson Nano | Quad-core ARM A57 | 1.43 GHz | 4 GB LPDDR4 25.6 GB/s | microSD | Gigabit Ethernet | 5V 4A | Linux distributions NVIDIA Jetson software |
Figure 1Hardware-in-the-loop implementation to emulate the AP system. The images used in this graphic are by unknown author under a CC BY-SA license. https://creativecommons.org/licenses/by-sa/3.0/.
Optimization package tolerances.
| Package | Value of tolerances | |||
|---|---|---|---|---|
|
| TolPGG = 1e–5 | Tolcon = 1e–4 | TolX = 1e–4 | Tolfun = 1e–4 |
|
| N.A. | N.A. | N.A. | N.A. |
|
| Eps_abs = 1e–3 | Eps_rel = 1e–3 | ||
|
| Feastol <1e–7 | Abstol <1e–7 | Reltol <1e–6 | |
Overall performance evaluation for embedded system selection.
| Criterion | Weight | Jetson Nano | ODROID-XU4 | Orange Pi PC+ | Raspberry Pi 3 | Raspberry Pi 4 | Tinker Board S |
|---|---|---|---|---|---|---|---|
| % Time in range | 10,0 | 9,6 | 10,0 | 8,8 | 8,5 | 8,6 | 9,3 |
| Events >180 | 10,0 | 9,6 | 9,4 | 9,6 | 9,4 | 9,4 | 10,0 |
| CV | 10,0 | 10,0 | 10,0 | 9,9 | 9,9 | 9,6 | 9,8 |
| Simulation time | 10,0 | 8,4 | 10,0 | 8,2 | 7,8 | 5,0 | 9,1 |
| Energy consumption | 20,0 | 9,6 | 7,9 | 13,6 | 20,0 | 6,0 | 12,5 |
| Temperature | 10,0 | 10,0 | 7,8 | 4,9 | 7,5 | 8,5 | 8,0 |
| Accuracy w.r.t Matlab | 30,0 | 28,3 | 28,0 | 28,5 | 28,6 | 27,6 | 30,0 |
|
| 100,0 | 85,5 | 83,2 | 83,6 | 91,7 | 74,7 | 88,6 |
Figure 2Temperature of the processor of each embedded system.
Figure 3Average time to execute the four MPC strategies with the six embedded systems and per optimization solver package.
Figure 4Consumed energy of each embedded system per package.
Figure 5Glycemia evolution under the sMPC strategy with the three solver packages.
Figure 8Glycemia evolution under the ZMPC-AV-OF strategy with the QUADPROG package in each embedded system.
Figure 6Glycemia evolution under the ZMPC strategy with the three solver packages.
Figure 7Glycemia evolution under the ZMPC-AV strategy with the three solver packages.
Figure 9Results of each embedded system under the ZMPC-AV-OF strategy, (A) Coefficient of Variation, (B) Time percentage in normoglycemia, (C) Number of cases above 180 mg/dl, and (D) Error with respect to MATLAB.
Figure 10Weighting obtained by each embedded system in the performance criteria.