Home / Episodes / Feb 2026
Feb 11, 202645:50BrainLongevity

Your Sleep Isn't Broken: The System Is (AI Series, Part 5)

Your Sleep Isn't Broken: The System Is (AI Series, Part 5)45:50

The Big Idea

Sleep isn’t something you “try harder” at, it’s something you fix at the system level. In this episode of The Functional Code, Dr. Addy and Dr. Jace break down how AI, wearables, and modern physiology are reshaping how we understand sleep, recovery, pain, and long-term health. This isn’t another episode about sleep hacks, supplements, or forcing yourself to bed earlier. If this episode helped you, share it with someone who’s exhausted and doesn’t know why.

What We Cover

  • Temperature sensitivity-Late meals and caffeine timing-Seasonal sleep changes-Stress patterns-Recovery trends over years, not daysYou’ll also learn:

Chapters

Pick a chapter and the video jumps right to it

Every Word

Full Transcript

Sleep explained as a system (not effort)

Dr. Addy

Sleep is like your phone's charging system. You don't try harder to charge your phone. You fix the charger, the cable, the outlet, the apps, the temperature. And that's the same with sleep.

Dr. Jace

Eye tracking to help you get into deeper sleep. As your eyes are closed, go side to side, clockwise, counterclockwise, zone in to your nose, and then try to zone out, zone back into your nose, taking a breath in and then breath out.

Dr. Addy

We actually call it a freeze state. You have the fight, flight, or freeze. And so most people who have been in a fight or flight for so long get in a freeze state.

Dr. Jace

What would we expect that AI would spit out? But then also, what are potentially certain things that could be missing?

Dr. Addy

Welcome back everyone to The Functional Code. We are excited to bring you guys today another episode. We are going to be talking today about Sleep. However, we've talked about sleep in the past. This is different. This is one of our AI series episodes. We're going to be talking about how AI is impacting sleep, making it so much easier to track, understand the ways we can improve sleep from a metric standpoint, and other ways that sleep tracking is going to change the future of healthcare. As always, I am Dr. Addy.

Why this AI sleep episode is different

Dr. Jace

And I am Dr. Jace. Yeah, it's going to be fun diving in the mixture of AI with sleep, with Even as we're going into some of the overviews of what we're talking about today, it's crazy the perspective of when we first went through half of this stuff, that we didn't even take into consideration AI. How fast it's hitting and smacking us all in the face right now. It is incredible.

Dr. Addy

It's crazy to think we didn't have these, this technology, not even maybe a year or two ago, at least not mainstream. Yes. Mainstream use. So Doc, like when you started tracking your sleep, With your AI wearable, which is what we're going to talk a lot about today. Certain AI wearables, trackables, things that improve sleep tracking, other metrics. So when you did that, did you see correlative change, actually contributable change to your sleep? And what were some of the things that you were able to change that helped it?

Using wearables to detect real sleep patterns

Dr. Jace

Yeah, wearing the Whoop specifically, I think I've had for what, 5 years or something like that. Early on, I started messing with Timing of sleep, water intake, and going to bed, certain meals and foods going to bed, and even start picking up trends. Like, for example, summer in Arizona being very warm, it's hard for me to sleep, and my sleep score definitely diminished because of that. So I had to change up the internal temp in the house. Yep. Then started noticing improvements, so kept that into the equation. And even in recent too, started doing a little bit of a detox cleanse, start eating way more healthier, pure, like whole foods, taking out sugars, diminishing the carbs. And the sleep score was like 99%. That's awesome. And trying to work that instead of some processed foods closer to sleep. So try to keep in what trends have worked for me based on sleep scores, based on also how I feel.

Yep. And then also adapt over time based on Season of the year, other circumstances that come up. For sure. Have you started playing around with your Whoop in that regard?

Dr. Addy

For sure. I use, I've used Whoop twice now. This is the second time I've used it now for a year. The first time I definitely found a very quick change to my sleep increase, not only my score, my improvement in my quality of life when I was tracking all of it. I noticed The certain things that I could track that did a great job of just algorithmically telling me what I need to do different or better, which was helpful. Caffeine drastically reduces my ability to sleep very well. So that was just one that I've always tracked and known that I respond negatively to. But one thing that I always enjoy seeing is the time that you think you are in bed to the actual time of sleep. Mm-hmm. sleep that you get is so much different than what you think. And I know I even use this concept with patients too, but I'll be in bed, in bed for about 8 hours, but I might only get 6, 6 and a half quality hours of sleep.

Time in bed vs actual sleep quality

Dr. Addy

And most people, they go to bed, they're like, okay, it's 8 o'clock, I'm gonna get up at 6. All right, I'm doing the math. That means I'm gonna get 10 hours of sleep. But that's just completely not the truth. There are just times where we Intermittently wake in the night that we don't understand that we do. Maybe we just wake up in the middle of the night for no reason, go back to bed. We'd lose 20 to 30 minutes there. You don't start to realize what quality of sleep you're losing when we have those habits. That was the biggest thing for me to say. The only way that I'm going to like very heavily move that needle is time in bed. Yes. For me, time in bed is my biggest changer of how much quality of sleep I have. Because I don't fall asleep very quickly and I tend to awaken frequently at night. And I've always tried to improve that, but that's been tough for me. I just do, I tend to wake up more frequently, which I'm working on it. But if I'm in bed 10 hours, I'll sleep 8 hours.

Dr. Jace

Makes sense.

Dr. Addy

That's my cycle. And so I'm curious for patients out there too that feel that they've been in bed for 8 hours, but they maybe don't feel like they're rested, should they be maybe in bed 9 hours? And what does that change as far as their quality of life and their feeling?

Dr. Jace

Especially to optimize if they know that low-hanging fruit or low-hanging lights helps for the circadian rhythm and some of these other tools that we'll get into. And fascinating enough, I came across Andrew Huberman, like a Shorts post from him discussing different eye tracking to help you get into deeper sleep. He was showing it with the eyes closed. And the walkthrough briefly, as your eyes are closed, you go side to side, clockwise, counterclockwise. Try to zone in more to like your nose and then try to zone out as your eyes are closed. Zone back into your nose, taking a breath in and then breath out. And it almost like breaks apart that your mind's racing aspect of things. I put that actually into ChatGPT and asked it, what do you think were certain things that could improve upon this protocol?

Eye-tracking and nervous system downshifting

Dr. Jace

And it told me that to start with the eyes opened and then end with the eyes closed. Okay. I don't know what the difference is.

Dr. Addy

So maybe like a greater neurological change from one to the other.

Dr. Jace

Yeah. And it makes sense, like with eyes being part of the brain that is exposed to the world, that if you can get that on the same page as Turning some circuits off, it can help wind you down a little bit better.

Dr. Addy

I think eye tracking is a very powerful tool. I've used it in practice for patients with cognitive issues and severe mental decline, those kind of things. So yeah, I could definitely see it as an easy way to improve neurological drive if we're trying to change her sleep.

Dr. Jace

Especially with your background.

Dr. Addy

Yeah, I would, I'm going to try it now. Like, I didn't even know that, I didn't even know that existed, but I'm definitely going to try it now.

Dr. Jace

I started with a couple patients and I even added into a little, the program I'm working on too. So that's going to be fun for people coming on.

Dr. Addy

I liked the analogy that you had brought up here, which was sleep is like your phone's charging system. You don't try harder to charge your phone. You fix the charger, the cable, the outlet, the apps, the temperature. And that's the same with sleep. And so let's

Dr. Jace

go.

Dr. Addy

I like that understanding because A lot of people feel the only way to really change sleep is, actually, I don't even know what they think. My guess is they're just trying their hardest to do the simple stuff, which is, All

Why sleep “hacks” fail most people

Dr. Jace

these hacks. Yeah.

Dr. Addy

Get to bed at a certain time, but also power down some melatonin just to push you into sleep or take an Ambien. I don't know. Will themselves back to sleep so that they don't have to suffer the consequences. But Also, there's just so much more that they could alter that would make such a more drastic change to their sleep. And I think the AI wearable is the hack for that, to make your life so much easier when you're trying to change and measure some of these things. Doc, is there things that you've put on the app that the question journal part of it that you can get asked? Are there things you help, have it help track, or are there things that you are interested in Just measuring day to day that it helps you to know where you're at, where you're changing.

Dr. Jace

Yeah. And that's part of it where I've been dabbling a little bit more in recent. I'm not like crazy consistent, like every single day, but at least probably 4 to 6 journals a week. So after, like when you wake up with Whoop specifically, you wake up, it processes the sleep score and then runs you through a bunch of questions. Yesterday, did you have caffeine? And you can Personalize this to you.

Dr. Addy

There's however many hundreds of questions that you can choose from.

Dr. Jace

And be, I'd probably be a little cautious with going hundreds at a time.

Dr. Addy

Yeah. But I think I have 10 or 15, maybe. I'm around there.

Dr. Jace

Something like that. So whether it's, did you, do you feel like you hydrate? If it says yes, no, it's just tap on either one. And then there's, for some of them, underlying questions. How much ounces of water did you drink? It gets a little bit more specific. I don't stay too specific on those. Another one is, do you watch TV or view electronics before bed or in bed? That's a big one. That's one that I've noticed that if I'm on my phone in bed, sleep score dies down. The next one is definitely going to be, which is a bigger one, feeling stressed throughout the day. Yes, no. That's another one where downregulation breathing also helps. I know food nutrition, do you have a late night snack before bed versus maybe an hour or 2? I noticed that with the detox in recent that ate dinner, but it, because it wants to take out sugar and some of the carb cravings, I stopped eating later at night.

Journaling, caffeine, stress & AI pattern recognition

Dr. Jace

And I think that's also why it boosts the score up because it helps the metabolism.

Dr. Addy

I definitely know a lot of sleep experts who tell you to refrain from eating later meals. That can also mess with your sleep cycle too.

Dr. Jace

That makes sense. Yeah. Is there any others that I didn't talk on that you pay attention to?

Dr. Addy

Yeah, I think I can try to memorize the ones that I have, but hydration is one. The next would be if I consumed caffeine or not, which is going to be the one that I always track. And then did I do an ice bath?

Dr. Jace

Ozone.

Dr. Addy

If I took creatine, if I took electrolytes.

Dr. Jace

Smart.

Dr. Addy

What are some other ones? Did I share my bed? Because there are times where I'm traveling and don't sleep as well. So shared bed for me has always been number one, like huge driver. It's always on my monthly report. If I had sex or if I viewed a screen in bed is another big one. And then if I wore a nose strip. I'm tracking the nose strip and I'm pissed it's not giving me as big a change as I want it to, because I feel like it's a big one for me.

Dr. Jace

I think feeling matters almost, potentially more.

Dr. Addy

It's weird how on the AI app it's not as drastic of a change as I thought it would be for me. But yeah, I don't know, I'm still trying to figure that one. I know the research shows those nose, the magnets, those kind of things, they, they don't really improve quality deep sleep, REM sleep. It just helps improve breathing. Which can then reduce sleep apnea, snoring, which has a positive effect on sleep. But like a drastic change to your REM and deep sleep, I don't think there's enough research on it yet from what I'm seeing, and it didn't really correlate to mine either. However, what I do notice is I don't feel like crap in the morning because if I'm mouth breathing Yeah. I don't, I feel like crap. Like, I'm congested, my throat hurts, I'm sore. Plus my significant other is pissed at me. That's another important thing. So I am, I'm looking for more of a positive impact. I only started tracking it recently, so I'm trying to see, because you need a good like 100 to 150 sleeps on both sides of no plus yes of wearing a nose strip. And I think that's where I want to see after maybe a year, does it, had it actually made a change or not? But right now it's pretty indifferent. But again, it's, there's so many other factors that could factor into this. I tend to grab the nose strip when I am exhausted. So I don't know if my sleep was just poor from that and the nose strip variable with that now gets taken into, it's tough to track all those variables. But yeah, those are the other ones that I tend to track.

Dr. Jace

And the reason why we're bringing some of this up is the awareness factor on Maybe certain things that you guys may not pay attention to that can absolutely affect sleep score. Yeah. And why we've dabbled into it so long and continue coming back to it. It's that important.

Dr. Addy

You know, the other 2 is if I had pain like a headache that day or if I have restless leg issues. And so if I had restless legs, what I'm finding though is anytime I drink caffeine, I have restless legs. That was like the first thing that I found with my month reports.

Dr. Jace

Interesting. Might be a chemical thing then.

Dr. Addy

It definitely is. Restless legs is very reactive to caffeine in a lot of patients.

Dr. Jace

Fascinating.

Dr. Addy

So trying to improve that.

Dr. Jace

Key tip for you guys.

Dr. Addy

But yeah, no, this has been a huge helpful change when tracking sleep. I think it's one of the, I would say, the crucial things that people need to be tracking there. I know I can understand that AI wearables and just other trackers can be anxiety-causing, and that's important. We definitely don't want that, but it's also not as difficult as we maybe make it sound. Dr. Jace and I enjoy this a lot, and so we tend to probably provide, put a lot more time and effort into doing something like this. We're just, we're scientific in nature, so we love to experiment, we love to learn, and that's a little bit different. But for you, Set it to 5 questions, answer them if you want, maybe a few times a week, but the rest is all tracked. You really don't have anything else that you need to do other than just making sure that you're checking the app and seeing changes.

Homeostatic sleep drive (the pressure tank analogy)

Dr. Addy

There really isn't a lot else that goes into it. Would you agree?

Dr. Jace

Yeah, for the most part. Yeah. Yeah. Which, that kind of gets us into the layers of sleep. We've talked on some of these in the past. Some of which the sleep drive, especially related to the adenosine receptors on, anytime you feel like your eyes are starting to close at night or you're starting to get tired, maybe yawning, the adenosine pretty much receptors are telling your body that more or less you need to offload. It's, it pretty much helps you push you into sleep. Yes. For the most part. So that's where we get into this, what's known as homeostatic drive. To think clearly with this specific concept, think of it as like a pressure tank that fills you when you're awake. And once it gets to a certain threshold, the valves, they start leading to yawning, eyes closing. So it's like almost a silent pressure gauge system, if you will.

Dr. Addy

And there are definitely ways to increase sleep drive, and then there are ways where you don't feel tired at night. That could be from the way you sleep-wake, but it also could be to the lack of sleep drive, and you're just not wanting to sleep because you haven't increased that sleep drive system enough for sleep. I would say blue lights and caffeine later at night would be 2 ones that I would probably look at right away. Doc, what would be some, maybe even lack of exercise, Yeah. What would be some things you would look into increasing sleep drive?

Dr. Jace

Oh, I think you hit the nail on the head. Um, can I also definitely come back to the nutrition? Yeah, diet or food coming into your system. Yeah, because a lot of it will come also back to the circadian rhythm, which is influenced by water, light coming in your eyes, exercise. I feel like with the circadian rhythm, I think that there's a part missing in terms of the emotional Mental status as well involved there. But those are just a few things that definitely, if they're off regulated or like even what you said, if you had a fight with your significant other, it's going to ramp the system up and be a little bit more challenging to offload, which then affects this pressure tank, if you will, as well.

Circadian rhythm, light, food, and consistency

Dr. Addy

I also think people who nap frequently. And for long periods, like we talked about. And we put out an episode recently on napping and ways to nap efficiently without maybe it affecting your sleep later in the day. So give that one a look because I think it also helps with what we're talking about here. But yeah, so sleep drive is a big one. Next would be circadian timing, like you were mentioning. Do you want to just hit on some of the things that can improve that area of the body?

Dr. Jace

Yeah. So really quick, circadian rhythm roughly works within a 24-hour time cycle. It's regulated by, like I said, light coming in the eyes, exercise, food intake, and I still feel like an emotional status of some sort. But it relies on the consistency. And anytime you get up on a consistent basis, it's retraining certain circuits in your brain. Thus help communicate with all the other cells in your body. Yeah. So if you are one of those people that you're just, you're a morning lurk to where you're able to get up at the same time with no alarm clock, your circadian rhythm has been training your body for so long that it just naturally fits you into that state versus people that are more night owls that you do a lot of work. And I know I fall in the same bucket. Can do work late at night, but are able to consistently get to bed at the same similar time later at night.

Yep. And then still wake up in the morning. But do

Dr. Addy

you feel there's a genetic aspect to that? Do you feel like some people are just more wired to be night owls versus morning larks?

Dr. Jace

That's a great question. I think there could be a small part genetic, but I think the environmental, or it's like genes, like genetics, if you activate certain genetics, You're able to, for some people, acclimate much easier. I think it's probably going to be somewhat similar. Like, for example, if we grew up in the 1930s and we had to work for a living, but our main resource and job income, you had to wake up in the morning, we're going to automatically acclimate for our family. It's either, it's survival. So I think that will flip genes and then more.

Dr. Addy

And there was so much less blue light. Back in that time. Oh, that, yeah, I'd be curious. Yeah, I'd be curious to see what the changes were in sleep quality versus now with just how many lights, all the other things too, uh, that just can take away sleep quality.

Dr. Jace

Yeah, overall our society appeared to be much healthier than it is today as a whole.

Dr. Addy

Testosterone in males in the '70s are similar to now in males in the '30s. You know, in their 30s, which is scary.

Dr. Jace

Incredible.

Dr. Addy

Very scary.

Dr. Jace

A little bit.

Dr. Addy

Yeah, that's probably not good for another podcast. But Doc, you had a prompt for improving people's sleep-wake cycle that also helped them break apart maybe like a schedule to lock in their circadian rhythm. Do you want to share that?

Using AI to stabilize your sleep-wake cycle

Dr. Jace

Yeah, so to help be, the keyword is consistent with this. And this, I'm not talking just weekdays Or workdays. I'm also talking weekends. Key fact.

Dr. Addy

And that's a big one.

Dr. Jace

Yeah. It's so hard for everyone. And I get it with life responsibilities, families and kiddos, maybe in sports. The better that you can get your family on a consistent dinner time, a consistent going to bed or getting in bed, right? Trying to fall asleep and then having the same alarm set every single day. I think that's going to be a huge factor. Obviously, watching some of the food intake late at night is going to be important. Some of the stuff obviously we just talked about, but you want to consistently try to create habits around going into sleep and then coming out of sleep. And what that looks like for you is going to be small tweaking over time, over years, learning your system. Some of the AI wearables, why we're bringing this up is allowing that awareness to learn your system, but then for you to be just as smart to need to adapt or to alter change, not just paying attention to the scores that the technology's giving you, but how you feel.

I think that goes back hand in hand, feeling like with the nose strips and breath tape, like you wake up feeling congested without it for some mornings. That feeling, in my opinion, trumps some of the data in a shorter timeframe. Versus maybe a longer timeframe, you can collect a little bit more data and see how it works in comparison.

Dr. Addy

I agree.

Dr. Jace

But the big thing on that to drive home is consistency. For the most part.

Dr. Addy

For sure. Doc, if you were going to use AI to improve their sleep-wake cycle, what would be something you could ask AI to help track?

Dr. Jace

Okay. So take ChatGPT, take Claude AI. Take Gronk. Actually, for this, I probably would go ChatGPT in comparison to some of the others. So you would type in, and again, quote, pretend you're my circadian coach. Love that. I wake up at 6:00 AM. Fill in whatever time works best for you. I train or work out Let's say 8 AM, whatever time works best for you. I drink caffeine at 11 AM. You can see how this goes. Build me a 7-day schedule to lock my rhythm. So simple. And then watch as the prompt spits out the timing that works best for you. You can also add at the end of the prompt, ask me questions to help better the results. Yeah. And that's where then it It might ask you about nutrition.

Temperature, breathing, pain, and autonomic balance

Dr. Addy

It might ask you about all the other things that we maybe have been talking about too.

Dr. Jace

Blood work, all of that.

Dr. Addy

I'd be curious to see what it recommends.

Dr. Jace

Yes. Yeah, I'm right there with you. We'll probably have that on the screen. Sure. Those that are just listening, revert to the video.

Dr. Addy

So, Doc, layer 3. This is the most fun.

Dr. Jace

I'm glad we got this.

Dr. Addy

Temperature, breathwork, cognitive change, pain, autonomic nervous system. So this is where I think we've put a lot of, we put a lot of episodes out on a lot of these things, trying to improve this as best as that we, best as we can with these dials is maybe the best way we can put it. So we're talking temperature, cooling your body temperature, breathing, whether that's using cues, breathwork, or even increasing breathing efficiency with mouth tape. Nose strips, things that we already talked about. Improving pain, because pain is, you and I know, one of the hugest upsets to sleep and stopping someone from sleeping comfortably. So that's why we do what we do. Cognitive change, whether that's you're just ruminating at night, not able to get to sleep, your brain is wired and you're just still not able to bring the sleep drive up.

Or also try to improve the cognitive change that you're going through at that time. Or autonomic balance, where you are thinking that you're sleeping, but you're so sympathetic dominant that there is not a quality of sleep happening when you're sleeping, and you're not ever feeling refreshed when you wake up. That's a big one. Most days. I would say fight or flight has just been rampant through your body for so long No matter how much sleep you're getting, you're just stuck in this state. We actually call it a freeze state. You have the fight, flight, or freeze. And so most people who have been in a fight or flight for so long get in a freeze state. And basically their neurological brainwaves start to change, become a lot more lower, and we see brain fog, we see lack of refreshness when we wake up. But It's almost like you start to get colder, you're a little bit more removed, isolated, depressed, and low drive.

Fight, flight, freeze & chronic exhaustion

Dr. Addy

We call it low drive. And so when we would measure people's brains at Cereset, that's exactly what we would see. We'd see these patients that had this just, they would just start to wear them out, completely take them apart from so much stress in their life. And so if you just feel like You aren't getting through this rut. I would say that's number 5 would be the area that we need to talk about. So, um, Doc, when it comes to pain, where does sleep deprivation impact that?

Dr. Jace

Yeah, there's, and actually there's a few studies related to this one. Now, with sleep deprivation, it's gonna more or less raise It's going to lead to disconnect between the brain and body, or sometimes tissues, and can cause this misregulation of how you are perceiving certain sensations, certain feelings, movement, potentially temperature regulation. Also, with all these senses, pain fibers are usually increased because of the downregulation from the brain top down. So they're finding in some of these studies that total sleep deprivation can increase the pain sensitivity and also impair like pain modulation, which I mean makes a lot of sense. So if you guys ever have ever heard of somatic training or somatic awareness of your body, even like if you're just trying to turn your brain off, I know we touched on eye movement.

Sleep deprivation, pain sensitivity, and perception

Dr. Jace

Yep. If you're in certain areas of pain, obviously try to get out of Positions of pain, but even just to bring your awareness. Let's say, for example, I'll walk you through a slight example. You're laying in your bed. If you can imagine you're, let's say, on your back, laying face upwards, you may have this right shoulder irritation to where you feel on the front and outside portion of the shoulder. You toss and turn, try to get your arm in the correct spot. Lay down on your back. Eyes closed, you can go through some of the eye tracking that we brought previously, but just even bring your awareness to not the area of pain, but let's start on like, how do your feet feel? Do you feel your body and the bed catching yourself? How does that feel? And then work up the chain. And there's, you can go in many different routes. Go to your neck, the jaw. Does it feel If so, try to relax.

Then slowly perceive back to the shoulder. Just notice the discomfort. And just by noticing it without judging it, you're gonna start noticing that some of the pain will start to diminish. Then go back into more or less either eye tracking, long exhale breathing to try to get to sleep. But it's, you start the awareness of brain, your interoception from noticing certain states of your body, go to pain, go out of pain, and then try to get into sleep from there. So that would be another fun tool. Yeah, that goes back to the sleep deprivation, trying to get the pain sensitivity under control. Doc, has there been any other studies that I know we have here on in terms of like muscle protein synthesis or just even insomnia or can't sleep related to like lower back pain?

Dr. Addy

Oh yeah, we talked about this on one of our We did a couple of podcasts about how stress can impact gains in the gym. Oh yeah. But we definitely also included how sleep can disrupt the ability to add on muscle, which makes sense. If, if there was a drug that could be given out to bodybuilders, they would take sleep as that drug. Many of them just mention how important sleep is when they're trying to add on muscle and things like that. A lot of people don't understand is there's a lot of overlapping conditions that can come with sleep deprivation, but the main one is with insomnia. That's actually one of the CLPCs in patients with central sensitization issues. Mm-hmm. So patients that have this disruption of perceived stimulus, basically these patients have usually been either abused physically or sexually when they were younger and now have just a plethora of conditions that they have to deal with.

Insomnia is one of them. Chronic low back pain is another one of them. But in this study, it showed that insomnia may casually increase low back pain risk. But I also see it as just these chronic overlapping pain issues can start to increase the amount of them the worse that your body goes unregulated. So there's about, I think I want to say there's more than 10 now, but some patients who don't get this treated or managed can have all 12, 15 of them. Wow. Some have 6, some have only 3, but you'll see over time, if it's not managed, these patients will start accumulating more and more of these overlapping pain conditions. But sleep deprivation is going to be a huge driver in making a lot of these worse. And that comes with the insomnia that they eventually can get. Definitely sleep is a huge predictor of a lot of disease right now. We can dive right into the, what this Stanford-led team published when it came to it, just how important sleep tracking is.

AI sleep research & disease prediction (Stanford / Nature)

Dr. Addy

So in the Journal of Nature Medicine for the website or app called Sleep FM, and it's a multimodal sleep foundation model, it was trained on almost 600,000 hours. of polysomnography from 65,000 participants.

Dr. Jace

Big study.

Dr. Addy

And it predicted risk of over 130 conditions just from sleep signals. So basically they had these sleep lab signals using EEG, ECG, respiratory, all these other metrics, and they trained the platform on what this looked like, and then it basically learned to predict patterns of future disease from all of this data-rich environment that it was given. And I think this was a great statement, but the future annual physical may include sleep-derived risk forecasts, or the future annual physical may include a sleep study. And it should include a sleep study. And it also should include wearing one of these every day because it should be a prescription. we should be giving patients so that we can understand what predictions and forecasts of their health is bound to happen if they don't take care of their sleep, along with taking care of themselves.

Dr. Jace

Well stated. Yeah. And then that goes back to what dial do you need to turn, going back to temperature regulation. Yeah. Is your mind racing? Food consumption, all that other stuff. That's a big study that actually just came out this year, like Recent. I can't imagine what other studies are going to come out. I know.

Dr. Addy

I can't wait for AI-driven studies where we can just gather so much more information and use that to predict things or understand things. But All right, so Doc, you want to end here with the 7-day sleep control experiment for patients to understand how to sift through the next 7 days if they want to make some changes?

Dr. Jace

Beautiful. Now I love this. So we're going to break this down into steps, make this personalized to you. So as you're following here, we'll have kind of the text on the screen so you can start typing out your own prompt specifically, and then we'll go through a little bit of a copy and paste example. And so you can see what it spits out via AI. We'll probably do on ChatGPT. Step 1, build your sleep Dashboard. Now this is, you can add so much more context to this. The more context, the better, we will probably always say related to AI for the most part. So start off by what to track daily, and this is just 2 minutes a day. What time are you getting into bed and what time are you getting out of bed? How's your sleep quality? How do you feel? Like 10 being the best, 0 being the worst. Do you wake up at night? If so, is there a reason? Because you have to go to the bathroom?

Building your personal sleep dashboard

Dr. Jace

Are you in pain? Is your mind racing? Do you feel, is it a temperature? Are you too warm? It's most common.

Dr. Addy

One thing I track too, I didn't say, was if I, if you get a nightmare. If I get a nightmare. And so that also, I think, as far as do you feel like you, a lot of patients sometimes suffer from night terrors or really just bad, not a nightmare as frequently. One thing we could also see is tracking that to also see what's worse, what's better.

Dr. Jace

Yeah. Or if you do any like sleepwalking, if you have someone that can help you tell you if you sleepwalk, obviously. Yeah, for sure. Next, you can get into caffeine. What time do you consume caffeine and the dosages? Alcohol consumed throughout the day, yes, no. I'm sure you can go into the timing with that. Workout training intensity. Did you work out a lighter session than you normally do? Or did you push yourself? Morning, did you get outside in some normal light, or were you just more laying in bed for periods of time? So step 1, start tracking all this. And like I said, more information the better. You can also use some of the wearables, like for example Whoops, and taking some of the sleep scores where it has your heart rate variability, the trends, and then put that information into the same chat or the same prompt, but as a document added in. Now, step 2, pick one control knob to turn.

You don't have to do everything. This goes back to all the ones we talked on previously. So for example 1, pattern A, can't fall asleep at night. Do you have to turn the temperature dial to go, maybe it's a cooler environment and maybe add in more layers? Or is it the cognition of, is there like mind racing? Is it one of those where you just got to have to turn off your mind? Okay, maybe try with those 2 dials, 10-minute brain dump, cooler room, going to bed. Next example is, do you wake up anywhere from 2:00 to 4:00 AM and maybe can't go back to sleep? Then you would want to get into sleep chemistry, blood sugar stability. Whether it's eating earlier in the evening, not scrolling on your phone at night, and then getting on a consistent sleep-wake cycle.

The 7-day AI-guided sleep experiment

Dr. Jace

And then another example, you wake up in pain throughout the night. Anytime someone wakes up in pain, you probably want to see a physician because there's more than likely some underlying stuff. But it goes back to pain modulation and/or inflammation inputs. Which then you start thinking about Downshifting regulation, like long exhale breathing, going to bed, certain positions, anti-inflammatory diets and whatnot with that. Is there any others that you can think of related to those, doc?

Dr. Addy

I'd say those are pretty, those are pretty common. You can also mention if you have a tendency to not want to fall asleep early, don't feel the need to fall asleep early, might be low sleep drive or I only feel like I'm tired at 1 in the morning. Like maybe there's some other things that it can do to help increase sleep drive. In the short term, it's going to be tough to get there, I'm sure, because you're going to have to practice getting to bed earlier and it might take some time. But that could also be one that it might help you make improvement changes to.

Dr. Jace

Love that. Love that. And then we're going to get into step 3, Ted, how you can incorporate all this into ChatGPT and then also ask it to, quote, identify your top 2 sleeping disruptors, or top 3, top 5, either or. Suggest 2 interventions. Predict which interventions has the highest leverage to help you improve sleep and create a 7-day schedule. So the prompt looks like this, and this is just an example. Here is 7 days of my sleep data, and you have a list that you've been tracking for, maybe it's 1 day, maybe it's a few days and more data. Like we said, the better. Sleep, bed, caffeine, training, waking up, moods, etc. Analyze patterns, identify my top 2 disruptors, and design a 7-day experiment changing only 1 variable at a time.

I think that's That's

Dr. Addy

a good one.

Dr. Jace

Give me a hypothesis, intervention, success metrics, and what to do if night 3 fails. So smart. So they have a barrier in place that focus on one at a time so you're not overloading yourself, so you can make simple steps, simple changes. And then it also had you bring up if you start failing at night 3, 3, what to do next.

Dr. Addy

Like a pattern predictor. Yeah. And if you have one bad night, just understand that's just noise right now. We don't have a lot of information quite yet, but 3 bad nights, that's now giving us some signals. And then obviously 7 bad nights, now we're trending into poor sleep efficiency. Now we need to start thinking about some ways to change that. So just remember, that's how we're going to be interpreting these. results as you continue to move forward. As you've been doing this now for maybe 100 days, that is where we are going to shine. And that's how much power we're going to have to actually change the major, let's say, leverage changers of sleep is when we have all that data.

Dr. Jace

Beautiful. That's awesome.

Dr. Addy

Now, AI can help you with a lot of this, but the wearable is just so much easier. So we really do recommend You, you can do all this and you can use ChatGPT. I think that'll be helpful, but there are other software and wearable trackers out there that can save a lot of your time.

Dr. Jace

Yeah. Yeah. Time's gonna be a huge factor for most people. Doc, let's get into one of these interesting games, the AI sleep coach versus human coach. And I, I challenge you guys to try this and I want to know your feedback. So let's say example for a person that maybe can't sleep. We're going to put that in the ChatGPT and we're going to see what certain things come out of it. But without us even seeing the results, we want to see what would we expect that AI would spit out, but then also what are potentially certain things that could be missing. For example, for this one, let's say an individual is 20 years old, their mind's racing, they're, they can't fall asleep, they're on their phone at night, maybe they're in graduate school and they just feel like they're getting fatigued and feeling drained. I would ask ChatGPT, what are certain things that can improve this person from what information? Okay. So I would assume, originally thinking off the cusp, that It's going to start breaking down into some of the key topics I brought up of school, graduate school, probably high stress, more than likely scrolling at the phone at night, just common trends that you typically see.

AI coach vs human coach (what AI misses)

Dr. Jace

How is the nutrition diet? And does that feel regulated for them? Also probably personal life as well, dating, not dating, or do they feel supported more or less? And I'm sure you can get into a bunch of other things, but from there, I think the difference in the key distinction I think we want to bring up is the prompt that you give it versus what it spits out. If you don't have the context, it's going to be limited on the results. For sure. Is there certain things that you would start thinking of with that individual?

Dr. Addy

For that individual, I would already I predict that if they're consuming high amounts of stimulants to help them study, that's going to be reduced. I want them to reduce that. Cool. If they are wired to perform and study and compete, they're probably eating at odd hours of the night to try to change and improve that cycle. If they're wired at night and they're not able to get to bed, They've probably been doing some high cognitive drive effort towards bed, and it's tough to wind down after that. Okay. So breathwork, guided meditation, some way to help them increase the, or bring down, I should say, that neurological drive that they just came out of. That was always difficult for me, especially after I was studying heavily before bed. It was tough for me to fall asleep because that drove me to focus and be very intentional, and it took away my sleepiness.

Okay. I would also say that they are probably looking at a screen before bed, and so to remove that's going to be very crucial. If they're a grad student, they're probably going to bed at different parts of the night, different parts. So improving that, trying to improve the sleep-wake cycle as consistently as possible, is going to be Another big driver. And then if they're sedentary most of their day and they're not actually working out, they're not actually doing other things to improve all-around health, like you mentioned, nutrition, things like that, to improve increasing those aspects of their life. I would say that's a good start to dissecting a patient who's got those habits.

Dr. Jace

Yeah, I think it's also different when you see the individual and have that either a conversation That's a whole nother variable that AI may not pick up. Like, for example, like what if that individual is also maybe like injured or in a sling, but they're able to fall asleep? Knowing that there's also an injury taking place that will also affect sleep cycles as well. That's a whole nother thing.

Dr. Addy

For sure. But I would say that's a pretty common archetype of a person. Yeah. Who's having trouble sleeping. There's going to be so much of just that one archetype. I think a lot of people are struggling right there. That's a very common archetype, I would say. So, but yeah, I want to know how you guys are tracking your sleep. Do you guys have wearables? We don't. I don't have much experience with the Oura Ring, but I am curious to see how you guys used it or seen its outcomes. Also, are there things that we haven't talked about that you've found that dramatically changes your Improves your sleep. Of course, there are supplements and other things out there that, you know, we can talk about too, which we didn't really get into because we're still just trying to give you the foundational stuff. But please share and comment below on what you've found has helped you. We are very, always very interested in that. And then as always, please share and subscribe this video. We hope that it can get to the people who want to change their sleep, improve their life.

This is a big one. I would say this is the most important when it comes to improving your health. As always, guys, until next time, you have a great day.

Speaker C

Disclaimer, the content provided in this health podcast is for informational purposes only and is not intended as a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding a medical condition. Never disregard professional medical advice or delay in seeking it because of something you have heard on this podcast. If you think you may have a medical emergency, call your doctor or 911 immediately. Reliance on any information provided in this podcast is solely at your own risk. The creators and hosts of this podcast are not responsible for any actions or decisions you may take based on the information presented.

Speaker D

Thanks for joining us on The Functional Code. For more evidence-based health insights, subscribe, rate, and review wherever you get your podcasts. Remember, your journey to a healthier you begins here. begins with understanding the functional code. Until next time, stay well, stay informed, and embrace the science of living well.

Transcript generated from the episode audio, so it may contain small errors.

Full Show Notes

Sleep isn’t something you “try harder” at, it’s something you fix at the system level. In this episode of The Functional Code, Dr. Addy and Dr. Jace break down how AI, wearables, and modern physiology are reshaping how we understand sleep, recovery, pain, and long-term health. This isn’t another episode about sleep hacks, supplements, or forcing yourself to bed earlier. Instead, we explore:-Why sleep is the output of multiple biological control systems-How AI wearables like WHOOP are changing awareness, not behavior-The real reason people feel exhausted even after “8 hours in bed”-How stress, pain, nervous system state, and circadian timing interactW-hen AI helps… and when trusting your body matters more than dataDr. Addy explains why sleep is like charging your phone, you don’t push harder, you fix the charger, cable, outlet, temperature, and background processes. Dr. Jace shares real-world experience using AI wearables to identify:-Temperature sensitivity-Late meals and caffeine timing-Seasonal sleep changes-Stress patterns-Recovery trends over years, not daysYou’ll also learn:-How sleep deprivation increases pain sensitivity-Why insomnia, chronic pain, and nervous system dysregulation overlap-What recent AI sleep research is revealing about future disease risk-How to run a 7-day sleep experiment using AI without overwhelm-This episode is for anyone who:-Feels tired despite “doing everything right”-Uses (or wants to use) sleep trackers without anxiety-Wants better recovery, performance, and longevity-Suspects stress or pain is driving poor sleep-Wants clarity, not more sleep rulesEpisode: 107AI Series: Ep 5Dr. Jace Nybo D.C. Dr. Addy Knutson D.C.Guide: Jump to the section you need most

This podcast is for education and information only. It is not medical advice, and watching or listening does not create a doctor-patient relationship. Always talk with a qualified healthcare provider about your own health, injuries and return-to-play decisions.