Replies: 17 comments 1 reply
-
Looks quite useful. |
Beta Was this translation helpful? Give feedback.
-
Hi gruoner, Thanks for your attention on this topic. Here you go with some material: Text discussion: https://www.waltzingthedragon.ca/diabetes/nutrition-exercise/how-fat-and-protein-affect-blood-glucose/ Additionally, also agree with @tolot27 comments. Thanks again, |
Beta Was this translation helpful? Give feedback.
-
Hi tolot27, Gabriel So we analyzed our meals and realized most of our food follows just a few pattern; variance is just a matter of scaling or slightly different composition. So we will need two kinds of interfaces for registering meals - one for "quick and imprecise" and one for "comprehensive and precise". The first one seems to be something you had in mind and it will be a copy of multi insulin just for carbs. The other one will be something i have in mind, leading us to a "food database". My first step will be the extension of the current carbs registration dialog with three different GI/GL (as definable by nightscout server). The second step will be a dedicated food registration dialog with download of food entries from nightscout..... cheers |
Beta Was this translation helpful? Give feedback.
-
@gruoner Okay, great. Go ahead! 😄 |
Beta Was this translation helpful? Give feedback.
-
I'm for this, it would be interesting to record the data and see if it produces better predictions (I have a my own system of recording data electronically, which I've been doing for years, so I plan to throw that + my exported XDrip data together and see what I can pull out of the murk!) So are you suggesting feeding data into XDrip from Nightscout (and elsewhere) by updating the web API? That seems to be a useful thing to add, as it would also let people develop their own food entry systems, menu planning, etc., and to have them interact with XDrip (and equally some of the big players might also add an export option if we're lucky). My feeling is that avoiding integrating the food database system in XDrip would make life easier. If this is hosted in an external app which can send data to XDrip that would provide lots of options for customisation and reduce the internal changes needed for XDrip. I realise at least a minor change would be needed for the XDrip input system to specify the GI/GL of directly entered foods (or carb:protein:fat mix). The other change is to the "business logic" and whether it bins GI/GL and has specific absorption data for each of those (which I think is what you were saying above with 3 bins available in Nightscout - I've never used it I'm afraid?), or whether it uses the GI/GL (and/or carb:fat:protein ratios) directly to calculate an absorption rate curve. It would be nice to let the end user select from a list of "business logic" options would give people options to experiment with new algorithms and hopefully avoid arguments about what should and shouldn't be supported :) |
Beta Was this translation helpful? Give feedback.
-
We need to be careful how much we customize (complicate) xDrip. I personally take vitamin D. It affects my blood glucose. Should I add that to xDrip also? Of course, those are hypothetical questions. I don't believe xDrip should become a GPS. There are apps that do that job. I suggest we solve xDrip bugs and add capabilities that are required for xDrip to be a competitive CGM. Nothing more, nothing less. |
Beta Was this translation helpful? Give feedback.
-
I completely agree. It would therefore make quite a lot of sense to split out the prediction and graphing capabilities of XDrip+ into a separate app which communicates with the now solely CGM part via e.g. the webserver. This would let people replace the prediction and display part of the app with their own version if they see fit (or ideally extend). My feeling is that the prediction side of things should be (able to be) combined with 3rd party meal planning apps and the like (so you can see what happened last time you ate this with similar conditions, etc. and/or can play with how different food constituents affect predictions. I guess the best bet there (in order to avoid monolithic apps) is to host the prediction capabilities in their own app/service, which can be extended to try out different models and called by meal planner apps as well as direct prediction apps (which may be provided by XDrip+ still). All talk from me for the time being I'm afraid, but will attempt to get the ball rolling over the holidays as the above suits my requirements at least (but lots of code to write! :)) |
Beta Was this translation helpful? Give feedback.
-
@Navid200 & @simonpickering In the end, we will need @jamorham here..... we have to listen to the system architect of xdrip+ and the big question is: |
Beta Was this translation helpful? Give feedback.
-
I agree that since we are in jamorham's repository, at the end, what happens here is his decision. Anything I have said, and do say, is only my opinion. Everyday, there is a post on facebook asking why the sensor is not starting. I look at the details and see that either the xDrip settings are wrong or the transmitter has run the number of days or the battery is too low, ... There is no end to how sophisticated you can make xDrip. And I have no doubt many will support that. I'm all for development. But, there has to be a balance. |
Beta Was this translation helpful? Give feedback.
-
Hi. |
Beta Was this translation helpful? Give feedback.
-
It's interesting that there are a range of different usecases, and I agree that one shouldn't foist unwanted complexity on those who are happy, nor turn the app into a proverbial swiss army knife and that it's @jamorham's app so s/he has the deciding vote. I still feel there is something that could be done for those who want to play with different prediction models though (whether you want to track vitamin D, or protein and fat and throw exercise into the mix) and I think it would be worth some discussion to understand what usecases people have and how to best make this work (e.g. perhaps by accepting prediction curves from outside the app). I'm certainly interested to learn about your neural net @gruoner (and indeed other people's usecases and desires) - I've started messing about with models in MATLAB, mainly as my insulin sensitivity changes quite drastically depending on how long it's been since I had a big bike ride (and in the post-ride phase) as well as due to fat/protein. I'd like the prediction curve to work acceptably/better, as currently it's not even close to where I'll end up even taking exercise out of the mix (I generally don't need the momentum part to be in there, except when I do sometimes, like on lazy Sundays!). This is probably not the best place to discuss either, perhaps @Navid200's Discussion thread would be a better location to save cluttering up the Issues register here? |
Beta Was this translation helpful? Give feedback.
-
The aprroach of AndroidAPS - with its config builder - is quite good. Advanced features can be turned on, if you need them, they all have their own tabs and settings. I totally agree, that advanced considerations (food,sensitivity,etc.) should be implemented in the diabetes management ecosystem, but not necessarily in xDrip - the developers should decide. |
Beta Was this translation helpful? Give feedback.
-
I am trying to get that (discussions) indexed by Google. It is not right now. Because of that shortcoming, I am not promoting the discussions too much. Otherwise, it would have been perfect for this and many other discussions. |
Beta Was this translation helpful? Give feedback.
-
Discussions are now open and are also indexed by Google. |
Beta Was this translation helpful? Give feedback.
-
I agree with Navid200's proposed discussion, and hope that this will finally lead us to a satisfactory solution for all xDrip+ users. |
Beta Was this translation helpful? Give feedback.
-
I'm converting this to a discussion. |
Beta Was this translation helpful? Give feedback.
-
From my understanding of this discussion, you want an insulin dosage calculation based on food items selected from a database and your current bgl level? If so, we're both on the same page! IME, tracking macros is an inherently complex UX/workflow for most people, and tools like Chronometer and MyFitnessPal have put a lot of work into making this easier with things like barcode scanning, maintaining their own proprietary food databases with maximum coverage, and grouping ingredients to create predefined "meals" that you eat regularly - it's great. I think this shows that the scope of "tracking macros" is actually quite large if you want it to be easy for most people, and well outside the scope of XDrip (as pointed out above). The only relevant data for XDrip is the macros themselves, so this seems more like an integration feature. These popular macro trackers are integrated with Google Fit, as is XDrip, so I assume that reading macro data would be fairly trivial. What about this workflow:
This would outsource the data entry component to 3rd party apps, while still allowing XDrip to support your use case with minimal changes. It also doesn't depend on 3rd party apps; you can enter the macros in XDrip if you know what they are. Alternatively, another 3rd party app could be developed that focuses on the dosage calculation problem. It could pull both the macros data and your glucose (and heart-rate, activity, etc?) data from Google Fit, and run it through a more advanced algorithm. This gets messy if you still want insulin dosage to be synced to XDrip though, as Google Fit doesn't support Insulin doses. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
as follow up discussion point from #1388 i will start implementing a feature to register multiple types of carbs, fats and protein (based on the food database available on a nightscout server).
Starting with carbs and their GI / GL and continuative with fats and protein a prediction on their influence on BG will get possible and even more precise than before. @ANDREAPIPPI provided a very comprehensive collection of food ingredients.
BUT a general condition is the usage of the food entries to be defined in nightscout server. The main reason for that is, i need a food database, nightscout server still has a feature like this and it is easily usable for me. In future times we can also try to use other databases like tidepool. So i will try to create a nightscout-independent data model with reusable interfaces for integrations to come
Beta Was this translation helpful? Give feedback.
All reactions