Comments (7)
The basal I use (basal = u2ss * BW / 6000) is under unit "U/min", where 1 U/min = 6000 pmol/L. "u2ss" is the steady state insulin rate per kilogram, and its unit is pmol/(L * kg).
Documentation is really an issue. I need to find time to address that. Thanks!
from simglucose.
Hey @jxx123!
Further, in controller/basal_bolus_ctrller.py, line 56:
bolus = bolus / env_sample_time
scales the bolus from "U/env_sample" to "U/min", right? Then, in simulation/env.py, there is
insulin += tmp_insulin / self.sample_time
again, so the stored output is divided by env_sample_time. The division from this line should be omitted, right?
from simglucose.
Hey @jxx123!
Further, in controller/basal_bolus_ctrller.py, line 56:
bolus = bolus / env_sample_time
scales the bolus from "U/env_sample" to "U/min", right? Then, in simulation/env.py, there is
insulin += tmp_insulin / self.sample_time
again, so the stored output is divided by env_sample_time. The division from this line should be omitted, right?
Hi @EemeIi , the reason to divide bolus by env_sample_time is that the original bolus is the total amount (U), and the division is to convert it to rate (U/min).
For the line insulin += tmp_insulin / self.sample_time
, the purpose is just to compute the average insulin rate in the sample time (see this comment). The reason for this is that the patient simulation sample time is 1 minute (see the mini_step function), but I would like to support arbitrary sample time in the simulator, hence I record the average values for all the variables including insulin.
from simglucose.
Hello, can you write down and upload the detailed documentation of the algorithm in your spare time?
from simglucose.
Hi I have added the documentation for the controller. I closed this issue for now, please feel free to reopen it if there is anything unclear. Thanks.
from simglucose.
1 U/min = 6000 pmol/L
@jxx123 How can this be? The right hand side has no units of time. Should u2ss
be instead pmol/L/min since it's a rate?
from simglucose.
Hi, I'm wondering how u2ss is calculated? Or it's an independent parameter that needs to be input instead of calculated?
from simglucose.
Related Issues (20)
- How did you obtain the parameters in vpatient_params.csv? HOT 4
- Documentation for each param in vpatient_params.csv HOT 5
- Are there currently any differences in the simulator between basal and bolus HOT 2
- How to set up the input/Controller in this repo to determine the basal rate with only insulin input (without meal)? HOT 7
- Scenario Simulations HOT 3
- Input meal size different from recorded meal size HOT 4
- How to start simulator HOT 2
- Error in risk_index HOT 2
- The reward function encourages short episodes HOT 2
- Units in the Meal Absoption Model HOT 6
- Report function does not work HOT 2
- Controller is not reset during simulation of patients HOT 5
- Scenario with no meal in gym env HOT 2
- How to correctly implement the use of OpenAI Gym - reset() and step() methods are not implemented (NotImplementedError on google Colab)
- Dbar Modification HOT 3
- whether there is paper related to this project or not?
- Input meal size given in (g/min) instead of expected (g)
- Import Error
- Risk index calculation error in report generation
- Risk Index probably incorrect HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simglucose.