Artificial Pancreas Using Fuzzy Logic Controller
Artificial Pancreas Using Fuzzy Logic Controller
This example shows how to design and optimize a fuzzy inference system (FIS) tree to control an artificial pancreas. The artificial pancreas regulates the blood glucose level of an individual with type 1 diabetes using subcutaneous infusion of insulin. Type 1 diabetes is a widespread health problem that occurs when the pancreas fails to produce enough insulin to regulate blood glucose levels. To regulate the blood glucose levels, the fuzzy system uses a FIS tree, which is a distributed, connected representation of multiple FISs, each with a small rule base. A FIS tree provides easier understanding of the inference process and allows faster performance optimization with a small number of tunable parameters.
Setup
- Clone project repository: git clone https://github.com/mathworks/Artificial-Pancreas-Using-Fuzzy-Logic-Controller.git
- Run example: Open and run artificialPancreasWithFISTreeControl.slx in Simulink®
MathWorks Products (https://www.mathworks.com/)
Requires MATLAB release R2022 or newer
Getting Started
- Design Controller for Artificial Pancreas Using Fuzzy Logic
- Video: Artificial Pancreas Control Using Fuzzy Logic
License
The license is available in the License file within this repository.
Community Support
Copyright 2022-2023 The MathWorks, Inc.
Cite As
Rajib Huq (2026). Artificial Pancreas Using Fuzzy Logic Controller (https://github.com/mathworks/Artificial-Pancreas-Using-Fuzzy-Logic-Controller/releases/tag/v1.2), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.2 | See release notes for this release on GitHub: https://github.com/mathworks/Artificial-Pancreas-Using-Fuzzy-Logic-Controller/releases/tag/v1.2 |
||
| 1.1 | See release notes for this release on GitHub: https://github.com/mathworks/Artificial-Pancreas-Using-Fuzzy-Logic-Controller/releases/tag/v1.1 |
||
| 1.0 |

