In previous blog posts Finding  Hope After Decades of Struggle,  My Journey: From Mental Health Struggles to Hope Through the Power of Keto,  How the

Tracking Symptom Patterns and Ketogenic Therapy: Using Data and AI to Manage Mental Health

submited by
Style Pass
2024-10-12 18:30:03

In previous blog posts Finding Hope After Decades of Struggle, My Journey: From Mental Health Struggles to Hope Through the Power of Keto, How the Ketogenic Diet Helped Me Regain Focus and Energy, I shared my experiences with mental illness and how I’ve been using ketogenic therapy with promising results so far. Over the years, I noticed a pattern in the intensity of my symptoms, which often required me to increase and then taper off my medication—a process that typically took a couple of weeks.

To track these symptom relapses, I started logging the date, symptom intensity, and medication dosage in a Google Sheet, and I’ve been doing this consistently. I was curious to identify the precise periodicity of my relapses, so I prepared the data, filled in the missing daily entries, and generated a CSV file. Then, I asked ChatGPT to help me write a Python script to analyze the power spectrum of the data:

By taking the inverse of the main frequency, I calculated a period of 68.21 days, which aligns well with my empirical observations of my relapse cycle.

Leave a Comment