Glucose Sound

I wonder what a days worth of glucose readings sound like?

As a Type 1 Diabetic, I deal with blood glucose data all day in an attempt to manage my disease, but what do all those data points actually “sound” like. This is my attempt to find out. :)

The first step was actually getting my blood glucose data. I did this using an opensource project called nightscout. Nightscout scrapes my continuous glucose monitor that I wear on my body, and gives me an easy-to-use API for my data. Once I have a day’s worth of glucose data, the challenge becomes how do I turn that into sound. Initially I directly wrote glucose values to a wav file, but it sounded like complete junk. I eventually learned I needed some sort of sinusoidal wave to hear anything like a tone that I was hoping for. I attempted to generate this sine wave on my own and match it to the glucose value, but it just didn’t sound right. I also tried messing with the data to upsample it but this turned out to be more tricky than I originally expected. Eventually though, I found a python library that could generate tones, and used the glucose data as input for that.

You can see my whole adventure with this project in the gist I have attached below. Also feel free to check out the code on my github here: https://github.com/dddiaz/glucose-sound

Also, you are probably wondering how the sound actually came out like… well here you go :)

It honestly might sound a little crazy (the higher the pitch the higher my blood sugar is, the lower the pitch the lower my blood sugar is), but the truth is, that’s how Type 1 Diabetes can be! Anyways, hope you had fun checking out this random project!

BTW

Check me out on Twitter! I sometimes post about Type 1 Diabetes stuff on there!

Daniel Diaz
Daniel Diaz
Sr. DevOps Engineer

My interests include Python, Kubernetes and Machine Learning.

Related