andy-phung

Untitled

Jan 14th, 2020 (edited)
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. EmpathyNet App:
  2. 0. splash screen (empathynet logo)
  3. 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
  4. 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
  5. - current anxiety index + plot (real-time)
  6. - real-time plot of ECG
  7. - mean anxiety index + plot (past few days)
  8. - standard deviation of anxiety index + plot (past few days)
  9. - lowest anxiety index over a certain period (a week?)
  10. - peak anxiety index over a certain period (a week?)
  11. 3. therapy screen: includes various methods of reducing anxiety and related disorders (for our client, we'll include simple games reminiscent of gameboy games)
  12. 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
  13.  
  14. Processing module:
  15. - sensor cable port
  16. - usb-c power port
  17. - indicator RGB LED (on top of enclosure, along with an embossed logo?): low power (connected), low power (disconnected), connected via bluetooth, disconnected, fatal error (?)
  18. - 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)
  19. - hinged panel/magnetically attached panel?
  20. program flow (ALL CALCULATIONS MUST BE DONE IN HERE WHEN POSSIBLE):
  21. - initalize all resources, define all functions
  22. - setup all pins, load tflite stuff
  23. - loop:
  24. - check button state: if pressed: enter deep sleep
  25. - check bluetooth connection, if not connected: broadcast
  26. - update LED to reflect connection state
  27. - collect ECG data in array for 2 seconds
  28. - use ECG data for inference
  29. - collect output tensor data
  30. - statistical analysis
  31. - calculate whether the patient could greatly benefit from auditory therapy
  32. - send output tensor data, ECG data, and all calculated data over bluetooth
  33. - receive bluetooth data and update settings accordingly
  34.  
  35. app and processing module devlog:
  36. - height of artemis after header and barrel jack removal: 0.315
  37. - height of ad8232: 0.280
  38. - grove ble: 130mm x90mm x11.5mm ???
  39. - magnet holders: 1.75 in dis
  40. - LED: 0.2 in dia
  41. - 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)
  42. - 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
  43. - 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
  44. - 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
  45. - added standard deviation and average statistics, added auditory therapy threshold settings, added data storage toggling, fixed bluetooth issue
  46. - (consider moving the computation of the standard deviation and average to the processing module)
  47. - game ideas:
  48. - particle simulation
  49. - a game that becomes easier and more calming as the user's anxiety index increases (slower particle simulation as ai increases?)
  50. - http://www.exploredeep.com/#the-makers
  51. - https://pdfs.semanticscholar.org/7249/4de08fffc0ffd0b257244dd3b85965a6e62a.pdf
  52. - retrained model1 to use 100 inputs instead of 200, see colab notebook for more details
  53. - 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)
  54. TODO: check voltages for power bank usage, add about page, generate test data, finish program, find competitors,
  55. https://www.inc.com/melanie-curtin/neuroscience-says-listening-to-this-one-song-reduces-anxiety-by-up-to-65-percent.html
  56. http://www.jpalliativecare.com/article.asp?issn=0973-1075;year=2016;volume=22;issue=4;spage=455;epage=458;aulast=Jasemi
  57. TODO: include app in program flowchart???
Add Comment
Please, Sign In to add comment