Replies: 13 comments
-
@psonnera Would you please tell us what you think about this? |
Beta Was this translation helpful? Give feedback.
-
@Navid200 this has been the first reason for which I decided to stick to OOP1 (vendor algorithm) unless calibration was necessary. I think the original algorithm was done for Dex G4 and reused for Libre but slope calculation is not what I would expect. In order to get it to work normally I usually deselect Non Fixed Slope to force slope to 1, then perform first calibration but deselect double calibration (which just duplicates the same value). Then I enable Non Fixed Slope to perform the next calibration. As you see in the calibration trace, blood tests are validated 5 minutes apart. First one generates the intercept and slope is fixed to 1, which is expected. Second one defines the slope using 5 minutes apart calibrations and generate the invalid slope as explained above. I don't know how to define it, a weakness or a bug but it sure makes many Libre users miserable. Anyway, this is my workaround. I'd rather force intercept to zero or 39 when first calibration doesn't pass slope/intercept sanity check but I understand that modifying calibration algo in xDrip+ should be approached with caution. |
Beta Was this translation helpful? Give feedback.
-
This behavior occurs sporadically on adding calbrations for already working sensor. When sensitivity changes one would like to add addition calibration points to correct the calibration graph, but even new point can be ignored because of this 'invalid slope' error.
|
Beta Was this translation helpful? Give feedback.
-
What you describe is expected at least, in my opinion. You are supposed to calibrate on a regular basis. |
Beta Was this translation helpful? Give feedback.
-
Regular calibrations needed to mediate calibration graph, leveraging glucometer's precision. And re-calibration is really needed once there is a sudden change (it happens, really). I've observed many times on my little daughter stable accurate 14 days on libre1 without recalibrations, and ocassional shifts somewhere on 5th..7th day, that stays still stable till sensor end. |
Beta Was this translation helpful? Give feedback.
-
Totally agree with @justmara for Libre. Many don't need more than the initial calibration until they start degrading. Dateicsae and other plugins just bypass all safety precautions in terms of slope and intercept and this is why they're popular. I'm very concerned by people trusting a LO alarm that might be unreachable in these conditions. |
Beta Was this translation helpful? Give feedback.
-
Stating that regular calibrations are unsafe and worrying about LO alarms when you perform regular calibrations makes no sense. But, saying that you need calibrations, yet, you only need two is contradictory in terms. No matter what scheme the code uses, the sensitivity of the sensor to glucose changes with time. Dexcom G6 takes that into account relying in a factory calibration code that removes production spread of the sensors from the equation. If you have only 2 calibration points and you delete one of them, how do you expect xDrip to still have a valid slope? Can you explain that? |
Beta Was this translation helpful? Give feedback.
-
@Navid200 talking about plugins, see below resulting slope and intercept. Libre sensors are very specific as they're not linear in raw response, mainly in the high range. Users calibrating in the high range take risks in the low range, which is exactly against all safety precautions. |
Beta Was this translation helpful? Give feedback.
-
That makes sense. I'm just not clear how calibrating only twice instead of regularly is going to address this or anything else other than less pain on the fingers and less money for test strips. If you don't have enough calibrations, you cannot retire, or delete, the old calibrations. |
Beta Was this translation helpful? Give feedback.
-
@Navid200 you're right. My message wasn't clear. I tried to summarize here. https://xdrip.readthedocs.io/en/latest/calibrate/calibrate/#first-calibration but still, unlike Dexcom that has a proprietary algorithm and internal safety mechanisms, Libre was not made to be calibrated and results vary. This is why using an OOP is the easiest approach when possible. |
Beta Was this translation helpful? Give feedback.
-
No, I'm saying about situation like this:
also on step 3 you have a chance of getting even more weird behavior: after recalculation you get 'invalid intercept' assigned to your last point, disabling it. and now you have one old and one new point. and in case if these both are on low - you can get extremely inaccurate slope from these two points. and the stupid part is that there is no any sanity check for slope. only for intercept. |
Beta Was this translation helpful? Give feedback.
-
@justmara yes I've seen this too. Initial calibration is a couple of measurements and usually work together. I'm surprised you could delete first point without invalidating the second one. As said above the workaround is to set fixed slope for first calibration and perform it at low range BG. This defines a much better intercept. Once done (I mean that's once every two weeks) you can restore non fixed slope and get the slope right with other calibrations. Then I'd agree with Navid that since you perform at least daily BG checks you can add calibration points when necessary since xDrip+ will expire old calibrations hence reduce the weight of your initial calibration. Still agree that something is clunky somewhere but doubt anybody will dare modifying it. How would you see a safe and reliable calibration strategy avoiding the use of plugins? |
Beta Was this translation helpful? Give feedback.
-
@tzachi-dar Would you please tell us what you think about this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Subject of the issue
When blood glucose test result is entered (either manual or from bluetooth-enabled meter) xdrip can generate invalid slope/intercept values for calibration when 'Non-fixed Libre slopes' option is enabled. These values will be then ignored with 'invalid intercept value' error, so impossible to use for calibration.
Your environment
Non-fixed Libre slopes
enabledExpected behavior
Xdrip must not generate invalid slope/intercept values for calibrations. Maybe values must be checked against currently enabled calibration plugin and re-calculated in case of need.
Actual behavior
Pretty common situation is when sensor acts differently on high and low BG values.
For example I've made these calibrations on low and high BG:
But time goes by, sensor sensitivity changes and it goes out of sync on low. I make new BG test, add it and xdrip generates this values for it to be added for calibration
But 44 is invalid value for intercept, it will never be applied as calibration because of hardcoded limit, resulting with
invalid intercept value
error in log.Same value could be written like this, for example:
Still
sane
intercept and no so big difference in slope. So slope/intercept calculation code could check it over current calibration plugin and re-calculate in case if it is invalid.The main problem with current behavior is that it forces to completely wipe all the calibrations without any guarantee that new additions will be calculated correctly.
I've seen buggy behavior on new sensor first calibration, single blood test value were added as two independent calibrations:
So any following BG were added again with slope ~0.6 and intercept 45..50, resulting in xdrip totally ignoring all the calibrations. So I were forced to disable
Non-fixed libre slopes
setting for first calibration and then enable it again. But after some days this situation repeated because low BG sensor reading became out of sync and all the measurements entered were calculated with low slope and too high intercept.Steps to reproduce the behavior:
Non-Fixed Libre slopes
in Settings -> Less common -> Advanced calibrationTwo calibrations will be added and in most situations one of`em will already be invalid.
Screenshots
Sensor start with

Double calibration
option enabled. Two very close readings result in totally different slope/intercept valuesError when trying to calibrate over BG reading imported from bluetooth-enabled reader (contour plus one)

Beta Was this translation helpful? Give feedback.
All reactions