Showing posts with label physiology. Show all posts
Showing posts with label physiology. Show all posts

Physiofunctional circadian metabolism...

PFun Glucose Demo

Interactive simulation of circadian-ultradian glucose dynamics (over a 24-hour period)

A quick prelude...

(EDITED: 2025-08-19)

Before you launch into these results... I'll give you some extra special ~~~insider information~~~πŸ‘€πŸ‘€...πŸ€«πŸ‘€

I have another demo that's almost ready to show off...

Likely I'll have some time to write a sufficient blog post in the near future.

For now, I'll leave you with a tasty hint...

aRtIfIcIaL πŸ€–πŸš— nEuRaL πŸ€–πŸš— nEtWoRkS πŸ€–πŸš—...πŸš—πŸš—πŸš—... . πŸ€–πŸšͺ...🀸🀸🀸

~~~πŸ€”πŸ€”πŸ€”...~~🫒~~~...🀫.~~🀭~~~~


 

An interactive biophysical simulation of glucose dynamics, estimated over a single 24-hour period.  The curves shown represent: Meal-likelihood [0.0, 1.0], Glucose [0.0, 2.0], Insulin. This is a simplified version of the full model to avoid too much computational overhead (we're really maxing out Desmos here).

Dexcom Developer OpenAPI schema

Dexcom Developer API (openapi.json)

Here's a (working) OpenAPI schema definition (openapi.json) that I put together as part of my PFun Digital Health AI product pipeline.

The linked openapi.json file can be used to easily generate a client or proxy server to the Dexcom Developer API.

Relevant links:

AI-generated illustration (for fun!)
AI-generated image (DALL-E)

Messing around with music & stuff

(Updated: 2023-05-16)

I've been messing around with the read/write methods in scipy.io.wavfile to make some "music" using the output of some of my biophysical models.

Example 1

So for example, here's some simulation output with an audio track (caution, may be loud):


So another interesting point... these sounds can be parametrized...

Example 2

Here's another example with different parameters (again, caution of loudness):


So as you can see, there's a wide range of different sound patterns that can be produced, even with just this one model.

Next Steps...

I'm thinking I'll make a public API at some point in the near future so you can make your own physiological music... πŸ˜‰


Update!

Some new examples... with rhythm!

Thanks to my friend's sage advice, here are a few examples with a subset of parameters mapped to band pass filters.

Example 2-0

We can get some rhythm by utilizing a binary column as a low-pass filter...

Example 2-1

Example 2-2

Here's another with a few different band-pass filters that produces an interesting pattern...





Featured

Physiofunctional circadian metabolism...

PFun Glucose Demo Interactive simulation of circadian-ultradian glucose dynamics (over a 24-hour period) A ...