{
 "name": "Sensor glucose 60 minutes ahead in people with type 1 diabetes: each person's fitted model with a correction learned across people, against the fitted model alone and learned models",
 "registered": "2026-11-16",
 "data": {
  "source": "HUPA-UCM Diabetes Dataset (Mendeley Data 10.17632/3hbcscwz44.1, CC BY 4.0): 25 people with type 1 diabetes, the preprocessed file of each: sensor glucose every five minutes, basal and bolus insulin, carbohydrate",
  "root": "/home/hilarl/lw-health-1116/data/hupa",
  "split": "split.py, run before any value was read: per person, the first 70% of rows are development and the rest sealed, by line count only; sealed files set read-only",
  "sha256": {
   "dev/HUPA0001P.csv": "71e369476a486de90eee3fc203b2b465243f14d9d03ef2b8fcafef193872b2dc",
   "dev/HUPA0002P.csv": "82753ee18baa16061d5f8687ce61bd0dd9fa4d5d668f8bb5b9717489d6431b88",
   "dev/HUPA0003P.csv": "ccf5296a3f21f6f9f780a93733bece1b1b6af66f37bd6f645aadf2f81a9325b8",
   "dev/HUPA0004P.csv": "4b5b8ed6ca3267d4b902e3cc2b05303669e5a3c94d706a7d1cda92a72e8e7156",
   "dev/HUPA0005P.csv": "0b458edc35c54e8fec08be3166f27e69fcd0505dd307ac4e90bc1771ba3c73ee",
   "dev/HUPA0006P.csv": "e57db5f9f14e57428724641b3fc728afc0532dc4ccb5b35cd383e5deac35cec5",
   "dev/HUPA0007P.csv": "e357fee86147aa33b0469996911ee84cae85b25472d5b4fc8b201327577c6919",
   "dev/HUPA0009P.csv": "590b0bc4d84eccd06f28034db9bf5b021c5f8d1737f7f25059638b1de451734b",
   "dev/HUPA0010P.csv": "0b516737f8e8755227b743cb714d3046b797bffb9c1c50d67613aadb6ed3addd",
   "dev/HUPA0011P.csv": "617ace19631e7d360a0bb15fc7f5783a1bff89f843f85fc92e8806952cea59de",
   "dev/HUPA0014P.csv": "c3662d69d35d56d6cada2b328d5ac315c5e3cd005e175a3b179970050a7c9d51",
   "dev/HUPA0015P.csv": "b706f45af4cd95f67ccd9bc444f686845bd611a6f5f4321eea3022aea57383cc",
   "dev/HUPA0016P.csv": "b8048bb33a0a877201bc13e2aa2dc7885a89644254047caa466248fa99f05a8c",
   "dev/HUPA0017P.csv": "9661992098021891fa930c26992f9994f14662cd9bfacf7e63cf8158e516aefd",
   "dev/HUPA0018P.csv": "89e09908d18fda2dbc74a56a616e8d470edc8003cc31ee13d5a22d63a79d30f9",
   "dev/HUPA0019P.csv": "caf31a5e55d76625aa54065bbf3ddec3d7f4e617b2282d90ea5ac112626fc819",
   "dev/HUPA0020P.csv": "e5d38b6529b381f6ab3ef68f2932b84bd3101f43ee8a215189f7f0f0f9733e50",
   "dev/HUPA0021P.csv": "cab333e81aa4b501990bbd0ee5896f61cb2ce3d151ecfb0c044892b2c124e4ee",
   "dev/HUPA0022P.csv": "ab5bfab89f77422c1427771eef104aced6d6fc639c87b98dc2ec1a3979de7ca0",
   "dev/HUPA0023P.csv": "5d59fd40ef2879b47060a8fd5a7ff47d8d27be197916c0eae51d1925544158c8",
   "dev/HUPA0024P.csv": "b722c7d1d563019942a513c8228039d5f56917b44ec50dbcd106cc83eb9e8bcb",
   "dev/HUPA0025P.csv": "f2a4cd3cec69e9c575d64749c1584884211b138a90bc12c85215393f1b213c84",
   "dev/HUPA0026P.csv": "26879d9a493c2c0003a5e3c40a940ab3fbfd948aa38264d1082a4e1f2927409f",
   "dev/HUPA0027P.csv": "f3acd776d3b1f8a810943a4609d78643c680ec0383e58e1bee58a407d3fe80b8",
   "dev/HUPA0028P.csv": "895b6caad10758834e0170b8b2ff3dbb4eb7c7ab13d2b4136fe9b7bdcb833159",
   "sealed/HUPA0001P.csv": "f50cffc75e9e35615222a374210d50367ac4cafd3cd3f165b12ddbb457361fcf",
   "sealed/HUPA0002P.csv": "4503aa03ed144e75dfbcce6fb5648eb20b83840edab03ac3007df417af3e07a4",
   "sealed/HUPA0003P.csv": "1ec1a83a21c08ff9cf4912286460285bb76a235caad35ac8a29a285bc0e82f75",
   "sealed/HUPA0004P.csv": "b42e62b9ccfc9279d9b1da5f384cc32d62278eb72675363166a4b348a780a058",
   "sealed/HUPA0005P.csv": "37eead7fe959b6205092ecffbf63b36bcdb36123e4166ebb9a483076efab497e",
   "sealed/HUPA0006P.csv": "9d920bb8f4615f68d671af82c8bbdc962dfc71a3ba9bfb8716515ee196ae3a3a",
   "sealed/HUPA0007P.csv": "7e342341e446c9f8617d5aed7b08575dc15a1b19e9862ef0a860b9fa65da569f",
   "sealed/HUPA0009P.csv": "594f0769a964b557ff675e6538ecbfb30a0b7aad3419edc6877e9bb9627799dc",
   "sealed/HUPA0010P.csv": "f09480e05e57d766009254857a581a930cf9d06f2f6c8a29e0e28242330a451d",
   "sealed/HUPA0011P.csv": "aec6755e7a1b5b7b5e588cc8dea46db84175e60ddc587fc3961e7d3df2a9925f",
   "sealed/HUPA0014P.csv": "137526fc6ef51c819df38306b6ced7285df8baa9b8bf1ccb2d1c61b223e472fb",
   "sealed/HUPA0015P.csv": "eb9aa28e857aab9d074026a5bfe0a4e97e8dc7aa0b81e287b03f35d263cc9f15",
   "sealed/HUPA0016P.csv": "6dd0770ac866ebc64cdfece040769972db5e6147c9a67f056a57594009e0c6f2",
   "sealed/HUPA0017P.csv": "8d95c6ce678a77419825483eb4dbe0454726c1583969e5d5c1388322264dba9f",
   "sealed/HUPA0018P.csv": "6fb7bb65ada4656004263249402696c094e29635b265865aad3fed6a8779c9ea",
   "sealed/HUPA0019P.csv": "f7022cd3e0fb3a22d905a4eb779037fd4f0824b8c2710d54761f8fed5728ba69",
   "sealed/HUPA0020P.csv": "217000fdedc53d84d7827cefe37ea7a772b16860a293d823265e919c6fc24b74",
   "sealed/HUPA0021P.csv": "23ac5852f779a3875780ac1d7279528d2530e9606c9e52a28fd2a3426e0f6154",
   "sealed/HUPA0022P.csv": "65eb03b51d7519f204e427592b3f834f34b1f67fc21c84b9299257e396d74503",
   "sealed/HUPA0023P.csv": "9f06bea1a47d92da1fddf291d272bdb8f224ab8d02b131966ba017a3e29c7486",
   "sealed/HUPA0024P.csv": "14d79eef01e6f2262386f89ce9c5dedadc826361ffe637b3b1999cbdc2d7cb93",
   "sealed/HUPA0025P.csv": "c9e0787d3728ff6b72a3aa8ddfe5ac34fdd4e496697aa85c920c30e8ddeddce9",
   "sealed/HUPA0026P.csv": "43cab524020f362f4e5b9a49eccb2851422e2499bc202245e2a90e210870be18",
   "sealed/HUPA0027P.csv": "38d5d3bb07502ce318bd7dacccffcd3981adad9e367d9d1d308a457199e78cff",
   "sealed/HUPA0028P.csv": "d6c455a8df15e3506d136e88b397d6186afc26611b8d0fc652d57f7fa98feb57"
  }
 },
 "people": {
  "rule": "a person is scored when the development part records at least 10 steps with a bolus and at least 10 with carbohydrate; the others have nothing for a model of insulin and carbohydrate to work on and are left out of every arm",
  "files": [
   "HUPA0001P.csv",
   "HUPA0002P.csv",
   "HUPA0003P.csv",
   "HUPA0004P.csv",
   "HUPA0005P.csv",
   "HUPA0006P.csv",
   "HUPA0007P.csv",
   "HUPA0009P.csv",
   "HUPA0010P.csv",
   "HUPA0011P.csv",
   "HUPA0014P.csv",
   "HUPA0015P.csv",
   "HUPA0016P.csv",
   "HUPA0017P.csv",
   "HUPA0018P.csv",
   "HUPA0019P.csv",
   "HUPA0020P.csv",
   "HUPA0021P.csv",
   "HUPA0022P.csv",
   "HUPA0023P.csv",
   "HUPA0024P.csv",
   "HUPA0025P.csv",
   "HUPA0026P.csv",
   "HUPA0027P.csv",
   "HUPA0028P.csv"
  ],
  "not_scored": [
   "HUPA0002P.csv",
   "HUPA0011P.csv",
   "HUPA0015P.csv",
   "HUPA0018P.csv",
   "HUPA0020P.csv",
   "HUPA0026P.csv"
  ]
 },
 "items": "forecast starts in the sealed part with the glucose 15 minutes earlier present, more than 8 hours after the start of the record; the target is the sensor glucose 30 and 60 minutes later. Every arm is given glucose up to the start, and the insulin and carbohydrate up to the target time (a replay with the inputs known). Insulin per step = basal_rate + bolus_volume_delivered (basal_rate is per step in this record, judged from development totals).",
 "arms": {
  "persistence": "the glucose at the start, carried forward",
  "physics_prior": "glucose backend of livingworlds/map with the typical values in FREE",
  "calibrated_physics": "the same with its six numbers fitted per person by least squares on that person's development forecasts at 30 and 60 minutes",
  "learned": "per person and horizon, histogram gradient boosting (300 iterations, rate 0.05, seed 0) on current glucose, eleven lagged differences, insulin and carbohydrate summed over four past windows and over the steps to the target, and time of day; trained on that person's development steps",
  "learned_across_people": "the same model and features trained once on every scored person's development steps, each person weighing the same",
  "hybrid_per_person": "calibrated physics plus a per-person learned correction of its error (reported, not part of the bar)",
  "memory": "calibrated physics plus the mean error of the k development moments nearest in glucose, trend, forecast change, time of day and days apart (reported, not part of the bar)",
  "living_worlds": "calibrated physics of each person plus one correction of its error learned across all scored people, on features in mg/dL or in the fitted model's own units (insulin scaled by the person's fitted si, carbohydrate by kc), each person weighing the same"
 },
 "model": {
  "tau_days": 56.0,
  "k": 160
 },
 "selection": "on development data only: fitted on the first 70% of each development part, checked on the rest, 17 people. RMSE at 60 minutes there: persistence 31.9, physics_prior 59.9, calibrated_physics 30.2, learned 26.4, learned_across_people 26.9, hybrid_per_person 26.7, memory (tau 56, k 160, best of nine) 28.5, living_worlds 26.5 mg/dL. Three rounds were run; the living_worlds arm was added in the third. On development data it does not beat the per-person learned arm: this registration is made knowing that.",
 "metric": "RMSE in mg/dL over all scored people and sealed forecast starts (validate.score of livingworlds/map, which refuses a holdout used for fitting); reported floor = 9.2% of the mean measured glucose (the sensor's published mean absolute relative difference in adults), for reading only; both horizons and every person are reported",
 "bar": {
  "minutes": 60,
  "rule": "living_worlds RMSE at 60 minutes lower than calibrated_physics AND lower than learned AND lower than learned_across_people"
 },
 "procedure": "hupa.py run protocol.json, once, on server2; results.json is committed whatever it says",
 "results": "results.json",
 "code": {
  "map": "livingworlds/map 6df0107e37aec02710b77921144f54ba5349f74b (livingworlds_map/backends/glucose.py)",
  "engine": "experiment/glucose/hupa.py, split.py and this file, at the commit that adds this protocol"
 }
}
