Disclaimer: I am not a medical professional, no clinical trials have or will be performed on this software. Use of any code within this repository is entirely at your own risk. It should be noted that not all seizures are the same and what works for detecting one persons may not work for another, also no seizure alarm can guarantee detecting every seizure including some very serious.
App is a work in progress and there is still much to do.
This App works by monitoring heart rate and will issue an audible alert in the event of the heart rate exceeding some definable parameters.
I am developing this software to help monitor my daughters nocturnal epileptic seizures. I have tried using a commercial device, but it is not working for us as it goes into a low sensitivity mode if the wearer gets up and my daughter often sits or even stands up out of bed immediately prior to her seizures due to a feeling of nausea. We have also looked at other commercial devices and decided against for a number of reasons including:
- low sensitivity modes.
- Loudness of alarm - we want to be woken but some devices suited for hospitals / care homes are just too loud.
- Accelerometers - movement is not a big feature of our daughters seizures and we found they only raise false alarms for us.
If you are looking for an opensource solution based on heart and movement monitoring I would suggest looking at https://github.com/OpenSeizureDetector.
- Fitcent Heart Rate Monitor Works fine, but needs to be manually turned on, may switch off automatically if not detecting heart rate for a few min.
- Bangle JS 2 OK for testing but heart rate is very inaccurate.
- COROS Heart Rate Monitor Looks Promising as it has an auto wear detection feature, so shouldn't need to worry about manual power on or auto power off.
- Tested on Android 13.
- Oppo A54 5G
- TECLAST P85T 8 inch Tablet
$ cordova platform add android
$ cordova run
Node-Red is being used a server to monitor the App via a WebSocket. This will be used for graphing heart rate over night as well as test and debug of the App. May also be used in conjunction with a Notification service such as NTFY to alert if the App itself crashes.
Android Permissions are required to allow app to run in background and provide notification services, all power saving options should be turned off or set to least restrictive.
Some devices may require more drastic steps - see: https://dontkillmyapp.com/
- adb shell
- dumpsys deviceidle disable
- exit