Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guard-Evo

Tensorflow Python Linux

Overview

This repository contains the code for Guard-Evo, a safety-aware online RL framework for Type~1 Diabetes management. Guard-Evo first meta-trains a data-driven prior policy using randomized simulations based on the Bergman Minimal Model, then adapts the policy online to patient-specific dynamics. To reduce unsafe interactions during adaptation, a Simplex-style safety guard monitors the adaptive policy and invokes a model-based backup controller synthesized from a linearized Bergman Minimal Model through an LMI-based optimization problem.

Set up

Environment

This project is using the following settings:

  • Ubuntu: 24.04 / 22.04
  • python: > 3.9

Create a virtual environment

  conda create -n evo python==3.11
  conda activate evo

Package in python

pip install -r requirement.txt

install simglucose environment

Please follow the instructions provided in the original simglucose code base at: https://github.com/jxx123/simglucose

Run

Test envs

  python job/env_test/test_env_simglucose.py
  python job/env_test/test_env_glucose.py

Reproduce the results

All scripts to reproduce the results in the paper are included in job/script. One can start any job by following the example below:

   bash job/script/simglucos.sh

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages