Issues with Pebble Time [Solved?]

Before Christmas I released an updated version of the OpenSeizureDetector watch app that will run on a Pebble Time, and at least one user got it working ok.  Another user recently reported that although the app runs on the Pebble Time, it does not send data to the phone.

I have made an updated version of the phone app addresses these issues, so if you are using OpenSeizureDetector on a Pebble Time, or a Pebble Classic using the “Pebble Time” phone app, I would recommend using  version 2.0c of OpenSeizureDetector.   Screenshots of V2.0 shown below – it now includes ‘approach to alarm’ indicator bars.

(Note that this version is a test one, so you may have to allow ‘untrusted sources’ in your android settings to get it to install – once I am happy that it is working ok, I will release it on Play Store.)

Screenshot_2016-01-16-20-32-42

Screenshot_2016-01-16-20-17-16Screenshot_2016-01-16-20-29-49

Comparison of Watch-Based Seizure Detectors

There are now a few watch based seizure detectors available.   The following table attempts to show a comparison between them:

Feature / App Open Seizure Detector Neutun Pebble Seizure Detect Smart Monitor
Open Source Yes No Yes No
Subscription Required No No (at the moment??) No Yes
Operating Systems Android Android / IOS Android / IOS ?
Takes over Pebble Watch Yes No – background process Yes No?
Fault Monitoring and Warning Alarms Yes No No Yes
SMS Text Message Alarms Yes Yes? Yes Yes
Web Based Alarms Yes No No No
Local (wifi) based Alarms Yes No No No
Seizure and Medication Tracking No Yes No Not yet

Added Fall Detection Function

We have added a simple fall detection function to the OpenSeizureDetector app.   This means that the system will alarm if either the shaking associated with a tonic-clonic seizure is detected, or if a period of free-fall followed by large acceleration, which could indicate a person falling to the ground is detected.   See Seizure Detection Algorithm for more info.

The fall detection function is disabled by default and needs to be switched on using the Android app settings screen.

Please report any issues (or successes) with this new version (Android App and Pebble App).

Trouble with False Alarms

Benjamin has recovered well from his surgery (scoliosis correction) and is feeling quite his usual self again today after a good trip out to the football, with much bouncing around his bedroom sorting things (no sound on this video – imagine loud ‘Haaa’ sounds!).

This behaviour is really challenging to differentiate between this and a seizure using the simple algorithm we use in the pebble watch, so he keeps setting off his seizure detector alarm.   While it’s nice to know he is feeling better, the beeps get annoying and you start to ignore them if they go off too often, so I had to do something about it….

I have had a look at the alarm log and in all cases the spectral power in the 5-10Hz region of interest is well over the threshold level, but the ratio of the power in the region of interest to the whole spectrum is borderline – the ratio alarm level is set to 30 by default (=3.0 ratio) and he is generating a ratio of between 3 and 4.   This means that a relatively minor change to the ratio alarm level could solve the problem without compromising the detection capability.   I have increased the ratio threshold to 40 (=4.0 ratio).  At this level it just avoids going off with the sorting movements, but still alarms easily with a seizure-like shaking of the arm without other movement going on too.   Will test for a while and see how it goes.

I think I’ll write a page describing what the settings are and how to tune them in case other people have trouble….

[Note, I think I had done this before (but maybe not increased the ratio threshold as far as 4.0), but re-installed the app and lost my settings – should have written them down!].

Compatibility with Pebble Time and Pebble Round

A user has reported problems trying to use OpenSeizureDetector with a Pebble Time watch.

I have re-compiled the watch app using the latest Pebble tools which should have made it compatible with Pebble Time and Pebble Round watches as well as the original Pebble.   This new version is published on the Pebble App Store as Version 1.2.

This version continues to work normally on an original Pebble, but should also run on one of the newer designs.  Note that I have not tested it on a Pebble Time or Pebble Round though, only an emulator, so please feed back any experience with it on these devices!

No changes to the Android app were required.

Please let me know if you encounter any problems after this change, and I can revert back to the previous version.

Graham (graham@openseizuredetector.org.uk)

EpilepSEE – Mike Long’s Videos

Screenshot from 2015-08-09 13:24:05

Mike Long from epilepSEE has posted some very helpful videos on his Facebook page, which demonstrate how to set up and install the seizure detector on the Pebble Watch and Android. You can see his videos below and can reach his Facebook Page by clicking on the logo above.

Introduction

Getting a Phone

Installing Pebble Software

Installing OpenSeizureDetector

A Slight Problem

Completion of Pebble and Android Software Installation + How it Works

Seizure Detector Warning ‘Pips’

pebble-screenshot_2015-04-04_22-15-57A new version (v1.11a) of the OpenSeizureDetector Android App is now available on Google Play Store.

This fixes an issue where brief interruptions in communications between the watch and the phone (I don’t know what causes it!), results in the phone app issuing fault warning ‘pips’ until communications are restored.   This is usually only a few seconds, but it is annoying!

The new version introduces an Screenshot_2015-03-22-17-06-29extra time out period where the app waits for data from the watch before it issues the fault warning noise.   You can change the timeouts in the settings menu in the app if necessary.

See Pebble Watch Seizure Detector for more details.

Are there any other annoying ‘features’ that users would like to see fixed?

Graham.

New Version of Pebble Watch based Epileptic Seizure Detector

pebble-screenshot_2015-04-04_22-15-57Today I have published a new version of the Pebble Watch App Seizure Detector and the associated Android Server App (Versions 1.1 and 1.10 respectively)

The system is designed to monitor for a tonic-clonic epileptic seizure by detecting movement of the wrist, and raise an alarm so a parent/carer can check on the person suffering the seizure.

Screenshot_2015-04-04-22-09-47Details of what it does and how it works are available on the Pebble Watch Seizure Detector page of the OpenSeizureDetector.org.uk web site.

These changes mean that I have added all of the functionality that I intended to provide for the system, so it is essentially ‘finished’.

The will of course be bugs and ‘features’ that I can address, but I do not envisage any major changes in functionality now, unless someone has a bright idea for something to add that I have not thought of!

As always, comments and information on testing results would be much appreciated (email graham@openseizuredetector.org.uk, or http://google.com/+grahamjones).

There are a few other people working on seizure detection at the moment – have a look at the Similar Projects page for links to them.

Improved Fault Warnings

I have noticed that most people use the Pebble Seizure Detector app as a background service and rely on the audible beep warnings to prompt them to check on the person wearing the seizure detector watch.

This is fine as long as the whole system is working – watch paired with server phone and client devices connecting to server ok.

I have had some issues with the server disconnecting from the pebble watch if it goes out of bluetooth range for a while (only has to be a few minutes).   The main app screen shows up warnings in bright red if you look at it, but that only works if it is on the screen.

To get around this I have just added system fault warning ‘chirps’ (very short beeps) to both the server and client apps if there is a general system fault such as not being able to communicate with the pebble, or connect to the server – these should appear as version 1.8 of the server app and version 1.3 of the client in the app store sometime today (Sunday 22 March 2015).