Top
Best
New

Posted by showmypost 15 hours ago

I let AI build a tool to help me figure out what was waking me up at night(martin.sh)
190 points | 207 commentspage 2
simondanisch 1 hour ago|
One observation: If you're often waking up around 3am, it is a strong indicator for histamine/MCAS issues. This is fairly new research, so most people dont know about it, I haven't had a single doctor yet who was familiar with this.

The mechanism: mast cells (the immune cells that release histamine among other things) have their own circadian clock. The CLOCK gene controls their IgE receptor expression in a time-of-day manner, and both plasma histamine and tryptase peak during the night. In healthy people this is fine. In MCAS or histamine intolerance, this nightly mediator release is excessive, and it happens right in the window where cortisol (which normally suppresses histamine release) bottoms out around 2-4am. Histamine is itself a wake-promoting neurotransmitter, so you get woken up, often by something minor like a noise, reflux, or a temperature shift that wouldn't otherwise register. Signs it might be worth looking into: 3am waking with a racing heart, sweating, flushing, itching, or reflux/throat tightness. A good in-depth resource: https://health.programmerlife.org/en/

rob74 3 hours ago||
Each night is laid out like tracks in a music editor: one for sleep stages, one for heart rate and HRV, a few for the sensor events, and one for the noise events with the audio loaded in.

As an avid reader of aircraft accident reports (ok, more reader of blog posts and watcher of YouTube videos based on those reports - yeah, people have strange hobbies), it reminds me more of flight data recorder graphs - the first FDRs actually inscribed the graphs with needles on metal foil (https://aviation.stackexchange.com/questions/59289/was-the-f...), which is of course no longer the case, but the presentation has been kept.

phainopepla2 14 hours ago||
I'm surprised that AI didn't tell him that the most likely cause of regularly waking up around 3 am is a cortisol spike. Try some breathing exercises or some other type of stress relief throughout the day, and you might sleep better.

In my case, thinking too much about the causes of bad sleep actually contributed to making sleep worse, so if this guy is anything like me then this whole project could be hurting his sleep rather than helping.

showmypost 14 hours ago||
I’m actually the author of the post and doing regular breathing exercises and some additional things. Pretty sure my cortisol levels at night are (currently) not an issue. Morning walks looking up into the sky also help me a lot. Falling asleep isn’t my issue

I grew up in the country side and unfortunately, where I live now, double glassing isn’t a thing unless you live in a recently built house.

That doesn’t nullify what you’re saying, obviously putting worries into sleep affects the sleep itself. Still thought it was an interesting project to build as I’m anyways cautious about noise and air pollution topics :)

asdff 9 hours ago|||
You ever try just masking the noises with some white noise?
phainopepla2 13 hours ago|||
If you're regularly waking around 3 (as opposed to random times throughout the night) you might want to reconsider cortisol as a possibility, at least as setting a baseline wakefulness that allows you to be easily woken up from a noise. There is a natural cortisol spike at that time, and that combined with elevated levels from background stress causes the same problem for many people who fall asleep without issues, myself included.
showmypost 13 hours ago|||
The 3am part was just a random picked time. But interesting to know, thanks for sharing! I had some stress related sleeping issues about a year ago, that’s why I started with proactively provoking morning cortisol spikes and preventing them in the evenings which definitely helped. At that time I went through some personal challenges, so it made sense
tpolm 13 hours ago|||
Second this

Have the same pattern, issue is cortisol/stress, not sounds / etc that happen precisely at night

Built simular things tonwhat Op did (thoug using Oura for sleep tracking, not Garmin)

Result: no statistically significant variations in sounds, CO2 normal etc. Cortisol is what doctors/AI told me first

CalRobert 7 hours ago||
Embracing biphasic sleep is also an option if your life permits it
lo_fye 11 hours ago||
You let it? It really wanted to, but you kept denying it until you finally gave in and let it?
ulfw 11 hours ago|
[flagged]
Daz912 10 hours ago||
[flagged]
skeeter2020 10 hours ago||
can't we all agree they're BOTH terrible?
ccimmergreen 8 hours ago||
Both are fuel for the other. The romance is amusing.
Joel_Mckay 8 hours ago||
Can't we all agree LLM users are only "AI" curious, and not to kink shame those that lose $200k to their hubris. =3

https://www.youtube.com/watch?v=UQ4pSVS_mN0

codazoda 14 hours ago||
This reminds me of a weird story...

I went to work at a BBB office once. They turned all their computers off at night and every morning they were back on. It was just "normal" for them.

I can't even remember what problem I was troubleshooting. At the time I was working on IVR systems.

Anwayz, I was working late in their office. Everyone had turned off their computers and went home. At exactly Midnight, every computer in the office turned back on.

I walked around the office looking at desks wondering what had happened. On one persons desk was an alarm clock with a very quiet alarm buzzing. I checked the clock and it was set for midnight (probably a default). About two minutes later it turned off automatically.

I turned off computers and re-set the alarm to go off a few minutes later.

When that alarm clock went off it somehow caused either draw or feedback in the wiring that caused all the computers to turn back on. At the time I wondered if it had something to do with wake on lan.

In any case, I suggested that person take their alarm clock home.

manuisin 13 hours ago||
you could’ve been a great start of a horror movie.
blitzar 4 hours ago|||
clearly the alarm clock was set to wake the computers up from sleep
DANmode 6 hours ago||
Motherboards turn on PCs based on observed voltage drop when pressing the PWR switch.

Could also have been “AC power restored” functionality being triggered.

ludwigvan 3 hours ago||
I sometimes use SimplyNoise to have brown noise for sleeping or filter out distracting sounds in the office.

Also, iOS has background (white noise etc) sounds built-in: https://support.apple.com/en-us/109346 Android has something similar too?

We also installed triple-layered windows for sound insulation, but I believe it degraded the quality of the air, so sometimes have to open the windows for a few minutes before sleep to get fresh air.

locao 8 hours ago||
I don't need this to know what wakes me up during the night: my wife pushes the door and THEN turns the doorknob. A simple conversation was no good. My MIL said on her experience deep conversations would not help either. At least it didn't help for 15 years.
chillfox 8 hours ago|
lol, my husband does the same thing… I told him I can’t see the door at night and sometimes walk into it, so we leave it open at night, solves the problem.
blitzar 4 hours ago||
Motion activated (night) light - even a little battery powered one - and the same in the bathroom. Not enough light to stir you awake but enough to find your way without turning on lights or fumbling in the dark.
chillfox 1 hour ago||
naa, that would re-introduce the problem of sound from door being pushed before turning the doorknob.
odysseus 6 hours ago||
Wouldn’t it be easier to just train a camera with continuous recording at your bed?

Then correlate the time you woke up in your sleep log with the camera footage.

jonhohle 9 hours ago||
> a flash of lightning following the boom

That’s not how lightning and thunder work.

rithdmc 1 hour ago|
^f lightning ;)

Honestly, feels more like a bit. I sometimes say I need to cross my i's and dot my t's to suss out who's still paying attention in a meeting...

lbrito 14 hours ago|
Plot twist: the existential dread of an AI-ified world where "AI" is the answer to everything was what was waking him.
locao 8 hours ago|
You're joking, but the other night I had high fever and had nightmares of AI giving me wrong answers to questions I already knew the answer, but for some reason I kept insisting on writing the same prompts I didn't even needed over and over again.
More comments...