训练我的智能手表追踪智力
Training my smartwatch to track intelligence

原始链接: https://dmvaldman.github.io/rooklift/

这个人试图理解自己每日的思维清晰度为何波动,尽管他们使用Garmin手表追踪睡眠和运动。他们意识到手表无法洞察认知功能,因此转向国际象棋——将胜负作为思维敏锐程度的指标。 他们将1.5年的国际象棋数据(来自Lichess)与Garmin数据结合,构建了一个统计模型来预测ELO值的波动。令人惊讶的是,一个简单的逻辑回归证明了60%的准确率,优于随机猜测。分析显示,**快速眼动睡眠(REM睡眠)**与国际象棋表现呈最强的正相关,而**压力**(通过心率变异性HRV测量)和避免近期**运动**也有益处——这与传统观念相悖。 研究结果表明,短期的思维清晰度并不总是与长期的健康目标一致,这解释了为什么Garmin的指标有时感觉不准确。这促使他们创建了一个自定义的Garmin应用程序来预测每日的认知能力。经过数月的应用,该应用程序被证明具有持续的预测能力,甚至与主观感受相矛盾,从而促使行为改变,例如优先考虑快速眼动睡眠(减少酒精摄入量和使用加重毯),并战略性地安排具有挑战性的任务。虽然目前由于Garmin的限制,这仍然是一个个人工具,但该项目强调了个性化数据分析对于优化认知表现的价值。

一位 Hacker News 用户 dmvaldman 分享了一个项目,内容是训练智能手表来追踪智力,使用睡眠和心率变异性等指标,并以国际象棋 Elo 等级作为表现指标。 这篇文章引发了关于当前睡眠追踪技术准确性和实用性的讨论。 许多评论者表示怀疑,指出设备读数与主观感受之间存在差异,有人建议最好在活动*之后*查看统计数据,以避免自我实现的预言。 另一些人则发现追踪数据与精力水平之间存在相关性,将分数作为改进目标,承认数据并不完美但很有价值。 一个关键点是,像 Garmin 这样的公司提供的开发者支持有限,这可能会促使用户转向 Oura 或 Whoop 等替代方案。 讨论还涉及舒适性——有些人更喜欢基于戒指的追踪器而不是手表——以及对超越设备数据的追踪方法的需求,例如手动记录情绪。
相关文章

原文

Some mornings I’d wake ready for the world—I’d feel alert, clear-headed, present. Other days, I’d retrace my steps 20 times to find my keys, dreading the long day ahead. My sleep was erratic and I didn’t know why. I had invested in a Garmin watch to clarify trends, and it was helping, but it was also missing something. Though great at tracking the body, it was mediocre at tracking the mind.

There’s another signal I was using to track the mind, which is chess. I play almost daily, and I found winning or losing to be a good proxy for mental clarity. Chess was the signal absent from my Garmin that I hoped could bridge body to mind. Time to verify if I was right.

Building a Model

I downloaded my chess data (date, start ELO, ΔELO) from Lichess, and my Garmin data (about 1.5 years of cross-referenced signal) and put on my data science hat. I was tracking ~20 signals related to exercise and sleep and from them built various statistical models to predict my daily ELO fluctuations. What worked best was also the simplest: tried and true logistic regression. I could predict winning/losing with about 60% accuracy (and confirmed that number through cross-validation). 60% seemed pretty good: absent any signal, the chance of winning should be about 50% because chess apps pair you with like-ELO players.

That I could do better than chance wasn’t too surprising. A lot of cognition depends on how well you sleep and exercise. But what exactly does it mean to sleep and exercise well? Which of the signals were actually important? Using a sparse logistic regression solver is a straightforward method to show which features have little (or redundant) predictive power, and I was pretty surprised by the results. Here’s a sample of independent signals from most positively correlated to most negatively correlated

Feature Correlation
REM sleep duration Positive
Stress* duration Positive
Stress* average Positive
Deep sleep duration None
Sedentary duration None
Active calories Negative
Light sleep duration Negative

*Stress is a proprietary algorithm of Garmin’s creation but is best approximated by 1 / HRV

REM sleep was out on top, which isn’t much of a surprise. But apparently it helps to be stressed out and avoid recent exercise.

Exercise Made Me Dumber – I’d assumed fitness and sharpness went together. And long-term they probably do, but short-term, you’re pitting body against mind. The literature confirms this: exercise-induced fatigue impairs complex cognitive tasks.

Deep Sleep had no Effect – Supposedly the most restorative phase, but unhelpful for chess. Chess demands working memory and planning, and research shows it’s REM and not deep sleep that targets these capacities.

Stress Made Me Smarter – As inverse HRV, Garmin’s stress signal really measures your sympathetic nervous system, which is also heightened during alertness and engagement, not just anxiety. According to the Yerkes-Dodson law, moderate arousal improves performance on complex tasks. For your mind to be clear, you actually don’t want to be very relaxed.

The takeaway is that near-term mental clarity and long-term health aren’t that aligned. This is I think why Garmin’s sleep metrics can often be miscalibrated with performance. To Garmin, for example, stress is always bad. Moreover, this was a model built custom for my data—I wasn’t fitting into some aggregated statistics of Garmin’s design.

Building a Garmin App

With a better model in hand, I decided to make a better model on my hand. I was going to make a Garmin watch app that would tell smart from dumb. Each morning it would turn the previous day’s metrics into the probability my ELO would go up that day. The model would also update weekly with the new data and I’d be able to verify if the same features were consistently predictive (which by and large they were).

Glance view and Fullscreen view

If curious about the code, here’s what builds the model and here’s the frontend for the watch UI.

Reflections on Use

I’ve been using the app for several months now. It’s definitely predictive not only of my chess aptitude but other cognitively demanding tasks, at times contradicting Garmin’s “morning review”. Often, it would also contradict how I was internally feeling. I’d wake up feeling rested, see my stats are low, and play a game of chess out of algorithmic rebellion, only to feel my mind up against a barrier and handedly lose. I’ve now been taking its predictions more seriously and scheduling less demandingly cognitive tasks when my metrics are low, adopting a “we’ll get em next time” strategy.

I’ve also made some behavior changes. I’ve invested much more into getting enough REM sleep. What’s helped the most has been cutting down alcohol. I’ll avoid the “have a glass of wine to relax” thing. Even a single serving of alcohol disproportionately impares REM sleep. Begrudgingly, I’ve adopted another west-coast trope. Getting a weighted blanket has also helped me be get more REM and deep sleep and fewer 5am wakeups for no reason.

I’d like to put this app into the Garmin marketplace, but unfortunately Garmin doesn’t provide sleep data on device and is also very restrictive on hobby projects that need Health API access. For now it can only be a personal tool. Hope that changes at some point! Do reach out if you want one for yourself and I can help you set up a local version.


联系我们 contact @ memedata.com