jxx123 / simglucose

A Type-1 Diabetes simulator implemented in Python for Reinforcement Learning purpose
MIT License
240 stars 113 forks source link

How can I customize patients? #22

Closed wenzhoulyu closed 3 years ago

wenzhoulyu commented 3 years ago

I have the basal physiological information of the real patients. Can I customize patients? And what parameters may I lack?

jxx123 commented 3 years ago

If you want to customize patient parameters, you need to change this parameter csv file https://github.com/jxx123/simglucose/blob/master/simglucose/params/vpatient_params.csv

For basal, u2ss in the csv file is the one you need to change, its unit is pmol/(kg * min).  For more details on those parameters and the patient model, please take a look at the appendix of this pape rhttps://pubmed.ncbi.nlm.nih.gov/17926672/. 

The patient model is defined here in the code: https://github.com/jxx123/simglucose/blob/master/simglucose/patient/t1dpatient.py#L117