Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EmpathyNet App:
- 0. splash screen (empathynet logo)
- 1. welcome screen (if the user has already set options, just allow them to connect to their processing module here): the user can connect to their processing module here, as well as consent to local data collection, error reporting, etc, set various options, set passwords for client-side data retrieval, set permissions
- 2. general info screen: live ECG plotting, current anxiety index (+ plot), average anxiety index, changes over the past days/weeks, lows/highs, other data derived from statistical analysis
- - current anxiety index + plot (real-time)
- - real-time plot of ECG
- - mean anxiety index + plot (past few days)
- - standard deviation of anxiety index + plot (past few days)
- - lowest anxiety index over a certain period (a week?)
- - peak anxiety index over a certain period (a week?)
- 3. therapy screen: includes various methods of reducing anxiety and related disorders (for our client, we'll include simple games reminiscent of gameboy games)
- 4. preferences and settings screen: reconnect to processing module, data collection, notifications (biofeedback and auditory), auditory therapy settings, error reporting, permissions, export data, turn off/disconnect processing module, other settings
- Processing module:
- - sensor cable port
- - usb-c power port
- - indicator RGB LED (on top of enclosure, along with an embossed logo?): low power (connected), low power (disconnected), connected via bluetooth, disconnected, fatal error (?)
- - push button (on side of the enclosure): sleep mode, can only wake again by pushing the button to trigger an interrupt (when the artemis is first connected to power, it should immediately go to sleep)
- - hinged panel/magnetically attached panel?
- program flow (ALL CALCULATIONS MUST BE DONE IN HERE WHEN POSSIBLE):
- - initalize all resources, define all functions
- - setup all pins, load tflite stuff
- - loop:
- - check button state: if pressed: enter deep sleep
- - check bluetooth connection, if not connected: broadcast
- - update LED to reflect connection state
- - collect ECG data in array for 2 seconds
- - use ECG data for inference
- - collect output tensor data
- - statistical analysis
- - calculate whether the patient could greatly benefit from auditory therapy
- - send output tensor data, ECG data, and all calculated data over bluetooth
- - receive bluetooth data and update settings accordingly
- app and processing module devlog:
- - height of artemis after header and barrel jack removal: 0.315
- - height of ad8232: 0.280
- - grove ble: 130mm x90mm x11.5mm ???
- - magnet holders: 1.75 in dis
- - LED: 0.2 in dia
- - created and 3d printed the enclosure using manual measurement (if the holes do not perfectly align, move them 0.025 inches up in the sketch)
- - repositioned and enlarged power and ad8232 ports, added a side port for the sleep/power button, added a magnetic attachment system for the processing module cover, added hole for indicator led on the processing module
- - added bluetooth interfacing between the processing module and the app, real-time anxiety index displaying, real-time ECG plotting, low/high anxiety indexes of each session, notifications via alerts, the ability to set the threshold for notifications, the ability to export ECG data
- - todo: retrain neural net, work on final arduino program, check voltages for power bank usage, add a therapy game dependent on the user's current anxiety index, auditory therapy
- - added standard deviation and average statistics, added auditory therapy threshold settings, added data storage toggling, fixed bluetooth issue
- - (consider moving the computation of the standard deviation and average to the processing module)
- - game ideas:
- - particle simulation
- - a game that becomes easier and more calming as the user's anxiety index increases (slower particle simulation as ai increases?)
- - http://www.exploredeep.com/#the-makers
- - https://pdfs.semanticscholar.org/7249/4de08fffc0ffd0b257244dd3b85965a6e62a.pdf
- - retrained model1 to use 100 inputs instead of 200, see colab notebook for more details
- - https://scratch.mit.edu/projects/72643228/editor/ (use an inverted pendulum for the therapy game -> the higher the user's anxiety index is, the more unstable the pendulum cart is, objective is to keep the pendulum from falling)
- TODO: check voltages for power bank usage, add about page, generate test data, finish program, find competitors,
- https://www.inc.com/melanie-curtin/neuroscience-says-listening-to-this-one-song-reduces-anxiety-by-up-to-65-percent.html
- http://www.jpalliativecare.com/article.asp?issn=0973-1075;year=2016;volume=22;issue=4;spage=455;epage=458;aulast=Jasemi
- TODO: include app in program flowchart???
Add Comment
Please, Sign In to add comment