A Free AGP Reader, Driven By AI

One of the common reports generated by people with diabetes who use Continuous Glucose Monitors is the Ambulatory Glucose Profile (AGP) graph.

If you are unfamiliar with this graph, it is a “heat map” of your blood glucose level (BGL) sampled from multiple days and put over a 24 hour period. So, for example, in the above which is one of my AGPs from last year, the data were over three months (03/07/22 – 03/10/22) and there are clear spikes around 14:30 and 21:30. These, of course, related to meals (lunch and dinner). Why no breakfast spike? Because, generally, I do not eat breakfast.

What I set out to do (and achieved) is create a bot which can be fed an image like the one above and reply with observations to discuss with your health care team. It works via email and generates replies like this.

If you are interested in trying it out, send an email with a screenshot of an AGP (in JPG, PNG, or BMP format) to AGPReader@hotmail.com and you should get back a response in a minute or two. Do not worry if your AGP does not look exactly like mine, I have trained the bot to review graphs from a variety of software sources.

If you are interested in seeing how I put it together, check out my post on my technical blog here.

Next Steps

While reasonably reliable, I am keen to refine and improve it. To this extent, I am talking to medical academics and professionals to get their input on both the training and the analysis the bot generates. I expect, with their assistance, the bot will continue to improve.

6 thoughts on “A Free AGP Reader, Driven By AI

  1. Michal Dubský, M.D., Ph.D.'s avatar Michal Dubský, M.D., Ph.D. November 2, 2023 / 8:02 am

    Hello, I tried to send AGP of my patient to your bot from 2 different e-mails but got no response.

    Like

    • leontribe's avatar leontribe November 2, 2023 / 1:49 pm

      Hi Michal,
      My apologies, I haven’t been monitoring the error log of late. If you’re sending it as a PDF, try taking a screenshot as it is set up to process images. If that is not the problem let me know and I’ll have a look on the back end 😉
      Leon

      Like

      • Michal Dubsky's avatar Michal Dubsky November 2, 2023 / 7:00 pm

        Dear Leon, I sent is as JPG, could you please run the bot manually then and send it to me directly ASAP? I could use it for my presentation, but the deadline is in coupe of hours, thanks.

        Like

      • leontribe's avatar leontribe November 3, 2023 / 1:11 am

        Hi Michal,
        Timezones are against us. I’ll look into it now.
        Leon

        Like

      • leontribe's avatar leontribe November 3, 2023 / 1:32 am

        All fixed. You should now be receiving reply emails

        Like

Leave a comment