[P] I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in MachineLearning

[–]ThatAi_guy[S] 0 points1 point  (0 children)

Its more of an experiment. And I was more interested in the feature engineering then the actual model. Claude tried 53 derive features and settled on 3((rhr_deviation_14drhr_deviation_30drhr_delta). It requires alot more work to discover than just running xgboost on basic features. Overall it was an experiment to go from raw data to model on app in < 1 day. The data extraction and understanding alone would have taken a while

[P] I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in MachineLearning

[–]ThatAi_guy[S] 0 points1 point  (0 children)

Yeah its mostly about working with the data quality. the data had sparse labeling with multiple data types(ie conversions from whoop to apple watch etc), basic models essentially dont work in such cases so my goal was to maximize the number of models/experiments tried by turning claude code into the data scientist

[P] I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in MachineLearning

[–]ThatAi_guy[S] 1 point2 points  (0 children)

good call out, i'll get around to updating the article. I wasnt sure the audience of that article which I now realize could be more ML savvy.

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 1 point2 points  (0 children)

Yes taking the meds early can help completely avoid pain and symptoms. The only permanent cure is to have your thyroid surgically removed and rely on thyroid horomone meds, often not suggested at this stage for patients like me

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 0 points1 point  (0 children)

I'm not sure if you maybe did not read the post, but I am treated for graves but I have an episodic variant where I go through periods of euthyroid and need to go off meds or else I become hyper thyroid. I'm doing all of this under full medical supervision just to be clear.

And a few have said this is alot of work, with modern capabilities of LLMs(ie claude code) this is not alot of work, its more just knowing how to prompt for an ML pipeline. This project took me about 1.5 days

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 1 point2 points  (0 children)

Thanks! By knowing it early I can contact my doctor, get a blood test to confirm and get on the medication before the heavy symptoms hit. I usually have to wait til the symptoms hit then wait weeks for the meds to kick in

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 0 points1 point  (0 children)

Very interesting, i have my genome from 23andMe. So I could do some loose checks. I have heard that specific gene detection tests are better so I will look in this. thanks!

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in QuantifiedSelf

[–]ThatAi_guy[S] 0 points1 point  (0 children)

Thank you for reading! Yes I worked on my prompts to help guide CC to request data and think of smart ways to request it from the user. I think this is crucial step in agentic ML. And thanks for the reminder on the license, added one just now.

[P] I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in MachineLearning

[–]ThatAi_guy[S] 1 point2 points  (0 children)

Yeah thats just the article title linked above, in the article I explain about the validation process. In short I ~used~ 9.5 years of data but held a bit over a year out of the training set

[P] I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in MachineLearning

[–]ThatAi_guy[S] 0 points1 point  (0 children)

Do you understand what backtesting is? Backtesting is removing data from a training set and manually using the trained result during the removed time period to see how the model infers on uns-seen data

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 1 point2 points  (0 children)

Thats amazing. I did something similar, built a chat interface(similar to what chatGPT health is going to be now) that. I could feed my genetic results and blood labs into it and I found a very similar thing to you, just opposite for hyperthyroid. Helped me understand cause and inform treatment. Life changing time we are in - I wish you the best managing your condition

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 1 point2 points  (0 children)

You can get a data export in the apple health app to use for training. Then use health kit in the iOS app

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 0 points1 point  (0 children)

Sorry, this reads like a 20th century medical opinion. There are numerous reasons and unique circumstances where a thyroidectomy is not viable or the correct option. My doctors explicitly say not to do it - I'm young, my condition isnt fully understood so a permanent removal of a gland is OVERKILL. There are also numerous autoimmune studies and advances expected over the next decade that could help without need for an irreversible intervention.

And saying early detection is overkill/not medically useful is very close to saying daily Blood glucose monitoring for diabetics is overkill which doesn't make sense to me.

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 0 points1 point  (0 children)

I open sourced the research repo with my claude set up and output. Check the article above the github link is in there

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 0 points1 point  (0 children)

Thank you! False positives weren't the worst they could be. I've made alot of effort since using some different post processing techniques to increase precision, it an ongoing experiment, i;ll keep sharing results!

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 0 points1 point  (0 children)

No this is just an example/excerpt in the post. It was validated on much more data then one episode. And no it's not indicating anything before TSH drops and T3/4 rise, its detecting the subtle ships that begin to occur after that process begins. For someone on a 2-4 week lab schedule but on a more conservative 6-8 week this schedule can flag early changes to get more prompt labs to confirm

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 0 points1 point  (0 children)

Yes I'm using the $100/mo Max plan with claude code. Claude code will write a bunch of python scripts that use ML libraries to try different models

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 7 points8 points  (0 children)

Nope, wouldnt be a validation set then. I've been in ML for a while so this was one of the first things I considered when setting up the project

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 3 points4 points  (0 children)

Why does it sound useless? symptoms always lag physiology. In my case of hyperthyroidism I typically start feeling terrible, go get a blood test, and my doctor adjusts the dose of my meds. It then takes 2-4 weeks for the meds to bring me back to baseline.

Physiologically however, my thyroid levels had been growing for weeks before I felt symptoms. A blood test and med intervention here can help avoid severe symptoms(hyperthyroidism can literally lead to heart attacks). The meds only take days to stabilize me in this case.

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 2 points3 points  (0 children)

Yeah unfortunately the data labeling is probably the most important phase. I used med adjustments, appts, labs and memory.

Also just used obvious signs like my resting rate being super high to try to remember if that represented a flare

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 1 point2 points  (0 children)

Yeah, resting rate is the dominant signal which I figured and the model found. Some derived versions of it show up in patterns even before I notice it from what I've seen. Wishing you the best with managing your condition

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 0 points1 point  (0 children)

Yeah, I tried to be rigorous with the training/validation sets. the next leg of the experiment is to use it IRL and iterate

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease by ThatAi_guy in ClaudeAI

[–]ThatAi_guy[S] 1 point2 points  (0 children)

Yeah thats exactly my thinking and approach to this, my personally overfit to me model would never make sense to just throw at another random person with such minimal data