Showing posts with label Events. Show all posts
Showing posts with label Events. Show all posts

Wednesday, February 22, 2012

The Button Box

I've begun the collection of a variety of factors that chronicle my response time, how I feel, nutritional factors, exercise, stress at home and work, medications I take, APAP settings, sleep environment, blood pressure, Zeo sleep scores, etc.  To do this, I have created a "button box" that I can click an appropriate button and record these things.  It's not a real flexible application suitable for others, but it does the job OK for me.  I think I have most of the factors I would like to capture and I may add more as I go forward.  The most important is how I feel and so I have buttons for overall goodness (1-10), groggy, achy, headache, puffiness, arrhythmias.


When I click a button, depending on the nature of what I'm recording, different things happen.  For response time, I am asked when I woke up and how long it takes to set a time control is logged.  Then a "whack-a-mole" type of little game appears where I have to click on a image which then randomly moves to another position on the screen.  It moves 10 times.  The average time between the image appearing and when it gets clicked is recorded.  This actually seems to capture my hand-eye coordination skills fairly well. For exercise, it asks for the start time, duration and the average heart rate (a proxy for exertion).  For single dose things, like taking an Excedrin (aspirin / acetaminophen), it just records a "1" in the Excedrin variable.  Some factors ask for a judgment on a scale of 1-10.  All entries are time stamped so I can later compute their timing, inter-relationships through time, etc. If I look at them as being before a sleep they potentially could then be a causal factor, or perhaps look at them as coming after sleep, making them a potential a consequence of good or poor sleep.

What am I going to do with this data?  A lot!  That will be the fuel for a lot of future topics.

Greatest challenge: The discipline to use it.  When I do something, I need to click

Wednesday, February 1, 2012

Still Preparing: Events

I'm still preparing for having all the data I need / want.  I have the Zeo's brainwaves in real-time, Contec CMS 50E post-sleep (which is fine getting it after the fact for now) and the ResMed S9 AutoSet data post-sleep (I don't know how to get it real-time, tho it has a serial port).  So, for the real-time time series I'm in pretty good shape.  However, I need to track various "events".

Events
An event is something that occurs at a time and generally has a start-time, end-time and duration.  Having any two allows you to calculate the third automatically.  So we put an "Event" object into our software and put them to use because I have events from the ResMed S9 AutoSet; hypopneas, obstructive apneas, central apneas and recording start events.  In ResMed terms, the apneas have an end-time and duration because they are determined after the fact, and the recording start event is instantaneous: the start-time only.  These are already gathered and stored in our real-time historian with the ResMed data collection we do.  This is spiffy because our software has multiple tasks, an spO2 and ResMed file watcher watching a directory and when I've gathered the files I just drag and drop them into that folder where they are "sucked up" and the data is put into the real-time database and the original files are automatically archived for back-up purposes.  OK, I'm getting off topic...

I need to add my own events too, such as periods of time I feel groggy, or really good, or something else of merit that should be recorded.

Doses
A close cousin to an event is what I call a "Dose".  This is an event like activity (has a time and maybe a duration) that has a quantity associated with it.  I call it a Dose because it's like taking a medicine.  "I took X mg of Y drug at Z time", or I just drank a full pot of coffee at this time.  Even exercise is like a dose, "I averaged an aerobic heart rate of X from this time to that time".  Having these events, time stamped, with quantities, gives me information about how much, how long before sleep-onset they occurred, or totaled during the day.  This way I can log that I had a pound of steak for dinner, or took two Excedrin at 10 PM or had an hour of "this strenuous" exercise at 2 PM or 1 cup of Tulsi Tea 10 minutes before bed, etc.

Once I have these Events and Doses, and a means to enter them easily, I'll have I think all that I need.