initial testing of the diabeloop algorithm in t1d patients on pump therapy over the prandial period and physical activity.

Conditions: Type 1 Diabetes

Summary: the main objective is to assess if the diabeloop algorithm provides better glycemic control than a "manual" usual algorithm of patients with type 1 diabetes treated by insulin pump during meals, and during activity qualified "moderate" to "severe" by the patients. the study will be conducted in 18 patients. the investigation centers are: chsf (for diabeloop algorithm test during activity), chu of grenoble and chu of toulouse (for diabeloop algorithm test during meals.

* grenoble and toulouse will test the prandial algorithm with several carbohydrate intake and a primer of 50% or 75% of the total bolus. groups of patients are described as follows: * group i: patients have a meal with the usual carbohydrate intake. the meal bolus is made according to the current treatment. * group ii: patients have a meal with a "low" carbohydrate intake (50% reduction of carbohydrate). * group iii: patients have a meal with a "strong" carbohydrate intake (increase 50% of carbohydrate). * group iv: patients of group iv have each meal with carbohydrate intake but their usual bolus will be omitted. * inclusion visit v1: the study will be proposed at the patients who meet the inclusion criteria. after signing the consent, the investigator shall designate one group for each patient. * visit v2 (24 hours before the visit v3): installation, calibration and education of two glucose sensors dexcom g4 ™ will be performed by a nurse. the patient will keep two sensors until the end of the study (end of v4). * visit v3 (algorithm test): patient will be fitted with its insulin pump and the two sensors dexcom g4 ™. these will be coupled by the engineer leti to the computer on which is installed the control algorithm to be tested. lunch will be taken at 1 pm. the algorithm will provide proposals insulin every 15 minutes until 6 pm. * visit v4 (patient control): patient will be fitted with two sensors dexcom g4 ™ and its insulin pump programmed according to the usual algorithm. the meal will be taken at 1h pm. patient can leave the site at 6 pm after removal of sensors. * chsf (centre hospitalier sud francilien) will test the algorithm glycemic control during physical activity of moderate (50% vo2max) or high intensity (75% vo2max) for 30 minutes on a bicycle ergometer. in different situations, three patient groups will be created: * group a: patients practice an "average" physical activity(50% vo2max) with usual temporary basal reduction (usually 50% of reduction during the test and 2h next). * group b: patients practice an "intense" physical activity (75% vo2max) with usual temporary basal reduction (usually 80% of reduction during the test and 2h after). * group c: patients practice an "average" physical activity (50% vo2max) but without concomitant reduction of temporary basal. * inclusion visit v1 : the study will be proposed at the patients who meet the inclusion criteria. after signing the consent, the investigator shall designate one group for each patient. * visit v2 : patient will be equipped with two sensors dexcom g4 ™ and a heart rate monitor. calibrated meal is expected at 11h 30 pm. the patient will be administered his insulin dose according to his usual algorithm. the physical test will begin three hours after the meal. it will be carried on bicycle ergometer for 30 minutes at an medium or high intensity. (average = 50% vo2max, or high level = 75% vo2max). * visit v3: the same test is repeated for each patient during this visit. its insulin pump will be controlled by the doses proposal of the algorithm after manual validation by the investigator. these will continue until the next morning, and the patient will spend overnight in the hospital.

Eligibility criteria:
inclusion criteria: * patients with type 1 diabetes treated by external insulin pump; * patients with hba1c \<8.5%. * patients aged 18 years or less; * patient who signed consent; * patient affiliated with social security. for grenoble and toulouse centers (prandial algorithm test : meal): * patient is practicing functional insulin therapy is a fixed meal plan. for chsf center (test of algorithm during activity): * patient able to perform moderate or intense activity during 30 minutes. exclusion criteria: * patients with type 2 diabetes * all serious diseases that could interfere with the study * insulin resistance and obesity (bmi\> 30 kg/m2 and / or insulin requirements\> 2 u / kg / day)

Keywords: glycemic control algorithm closed loop artificial pancreas