SlideShare a Scribd company logo
1 of 30
1Challenge the future
Next-generation neuromodulator
for epilepsy prevention
Athanasios Karapatis
2Challenge the future
Epilepsy
• Epileptic seizure
• Signs/Symptoms
• Synchronous neuronal activity
• Absence seizures
• Type of epileptic seizure
• Brief loss of consciousness
Definition:
“A brain disorder characterized by epileptic seizures”
Video of absence seizure. Go to:
https://www.youtube.com/watch
?v=obbg1BFt26Q
3Challenge the future
How is epilepsy treated?
• Conventional treatment methods
• Drugs
• Resective Surgery (severe cases)
• New technique emerging
• Neurostimulation  Electrical / Optogenetic
• One FDA approved device (Neuropace RNS)
• Problem statement
Can we detect seizures fast and reliably using a
seizure-detection system which is suitable for
implantable (ultra-low power) application?
4Challenge the future
Objectives of this work: Outline
• Implementation of a detection mechanism
• Prototype realization
• Evaluation of mechanism
• Detection performance
• Computational overheads
• Trade-offs
5Challenge the future
ECoG/EEG view of seizure
*ECoG = Electrocorticogram
Start Stop
6Challenge the future
Implementation:
Closed-loop system
7Challenge the future
Implementation:
Complex Morlet wavelet
• Selection reasons
• Similar morphology
• Time-frequency localization
• Scalogram
• Average wavelet output of all
seizure intervals
• Power of filter at different
frequency scales
• Onset at 1 second
• Max power at 7Hz
• Implement FIR
8Challenge the future
• FIR filter coefficients
• Sampled at 100Hz
• Total of 229
• Filter output:
• Power of filter output y(n)
to distinguish a seizure
Implementation:
Finite Impulse Response
9Challenge the future
Implementation:
Decision making
Static threshold Adaptive threshold
Upper Threshold
10Challenge the future
Prototype (in-vivo)
11Challenge the future
Evaluation: Outline
• Detection performance results
• Static threshold
• Adaptive threshold
• Comparison with related work
• Computational overheads
• Trade-offs: Detection vs. Overheads
12Challenge the future
Experimental Setup
• Dataset
• ECoG recording 29.75 hours/1914 seizures
• Seizure definition
• SWDs >1 sec (Golden standard)
• 3x SWDs (<1 sec)
• Detection performance function of:
• Coefficient window
• Size and offset
• Thresholds
13Challenge the future
Static threshold: Results (1/4)
• Window size
• No effect on Sensitivity
• Threshold - Vth,h
• Sensitivity drops
Sensitivity:
Percentage of correctly detected
seizures
14Challenge the future
Static threshold: Results (2/4)
• Window size
• Slight increase in Specificity
• Threshold - Vth,h
• Specificity increases
Specificity:
Percentage of correctly classified
non-seizure (inter-ictal) periods
15Challenge the future
Static threshold: Results (3/4)
• Window size
• Slight increase ADR
• Threshold - Vth,h
• ADR increases until
Vth,h = 44 (max ADR)
ADR:
Average Detection Rate =
(Sensitivity+Specificity)/2
44
16Challenge the future
Static threshold: Results (4/4)
Detection Delay:
Time between seizure onset and
detection moment
17Challenge the future
Static threshold: Results (4/4)
• Window size
• Increases Detection delay
• Threshold - Vth,h
• Detection delay increases
Detection Delay:
Time between seizure onset and
detection moment
18Challenge the future
Adaptive threshold: Definition
• Threshold - Vth,h
• Dependent on output Y(n)
• Based on τup and τdown
• τup increase rate of Vth,h
• τdown decrease rate of Vth,h
• Definition:
τupτdown
τupτdown
Larger τdown  Slower Vth,h decrease
Smaller τup  Faster Vth,h increase
19Challenge the future
Adaptive threshold: Results
• Increasing τup
• Reduces Detection Delay (better)
• Worsens ADR
• Increasing τdown
• Increases delay (worse)
• Improves ADR
20Challenge the future
Comparison with related work
21Challenge the future
Computational overheads: Setup
• Profile and simulate S/W implementation
• Profiling platform
• SiMS processor – (Ultra-low power)
• 20 MHz, 1078.93 µW
• Overheads computed
• Instruction mix
• Execution time
• Multiplication overhead
• Memory usage
• Energy consumption
• Battery-powered system lifespan (0.1Wh)
22Challenge the future
Computational overheads:
Results (Execution time)
• Computation time <10ms
• Sampling rate 10ms
• Linear increase
• Window size <149
• Constraint is met
Execution time
149
23Challenge the future
Computational overheads:
Results (Energy)
Energy Consumption
Battery-powered
system lifespan
24Challenge the future
Trade-offs: Performance vs. Costs
Battery x4 longer:
• ADR -1%
• Delay -200 ms
25Challenge the future
Conclusions
• Range of possible solutions
• Sens=98%, Delay=380ms, Spec=87%
• Sens=70%, Delay=850ms, Spec=98%
• Detection delay of 492ms (Adaptive threshold)
• 970ms (fastest solution available)
• Trade-off
• Detection accuracy vs. Energy consumption
• Real-time constraints met on SiMS
Can we detect seizures fast and reliably using a
seizure-detection system which is suitable for
implantable (ultra-low power) application?
26Challenge the future
Conclusions
YES WE CAN
Can we detect seizures fast and reliably using a
seizure-detection system which is suitable for
implantable (ultra-low power) application?
27Challenge the future
Future work & uStim
• Interesting extensions
• Other wavelets
• Improve adaptive mechanism
• ASIC implementation of solution
• SiMS with application specific units ( e.g. multiplier, SiMD unit)
• Part of this work
• Prototype for tinnitus
treatment
• Electrical Neurostimulation
28Challenge the future
Thank you for your attention
Questions?
29Challenge the future
uStim
30Challenge the future
Computational overheads:
Results (Profiling statistics)
Instruction mix

More Related Content

Similar to MSc_thesis_defence

Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...
Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...
Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...
Lionel Briand
 

Similar to MSc_thesis_defence (20)

WRAIR
WRAIRWRAIR
WRAIR
 
Igor Markov - Quantum Computing: a Treasure Hunt, not a Gold Rush
Igor Markov - Quantum Computing: a Treasure Hunt, not a Gold RushIgor Markov - Quantum Computing: a Treasure Hunt, not a Gold Rush
Igor Markov - Quantum Computing: a Treasure Hunt, not a Gold Rush
 
ThesisPresentation_Upd
ThesisPresentation_UpdThesisPresentation_Upd
ThesisPresentation_Upd
 
Aaberg jr office procedure room greece 2014 final
Aaberg jr office procedure room greece 2014 finalAaberg jr office procedure room greece 2014 final
Aaberg jr office procedure room greece 2014 final
 
Veracel andritz - i io-t - online wirelless vibration project implementa...
Veracel    andritz - i io-t -  online wirelless vibration project  implementa...Veracel    andritz - i io-t -  online wirelless vibration project  implementa...
Veracel andritz - i io-t - online wirelless vibration project implementa...
 
Smallsat 2021
Smallsat 2021Smallsat 2021
Smallsat 2021
 
OPAL-RT HYPERSIM Features applied for Relay Testing
OPAL-RT HYPERSIM Features applied for Relay TestingOPAL-RT HYPERSIM Features applied for Relay Testing
OPAL-RT HYPERSIM Features applied for Relay Testing
 
qHNMR for purity determination
qHNMR for purity determinationqHNMR for purity determination
qHNMR for purity determination
 
LEGaTO: Low-Energy Heterogeneous Computing Use of AI in the project
LEGaTO: Low-Energy Heterogeneous Computing Use of AI in the projectLEGaTO: Low-Energy Heterogeneous Computing Use of AI in the project
LEGaTO: Low-Energy Heterogeneous Computing Use of AI in the project
 
Qualification of high performance liquid chromatography
Qualification of high performance liquid chromatographyQualification of high performance liquid chromatography
Qualification of high performance liquid chromatography
 
03 performance
03 performance03 performance
03 performance
 
20160219 - M. Agostini - Nuove tecnologie per lo studio del DNA tumorale libe...
20160219 - M. Agostini - Nuove tecnologie per lo studio del DNA tumorale libe...20160219 - M. Agostini - Nuove tecnologie per lo studio del DNA tumorale libe...
20160219 - M. Agostini - Nuove tecnologie per lo studio del DNA tumorale libe...
 
Scan insertion
Scan insertionScan insertion
Scan insertion
 
⭐⭐⭐⭐⭐ SSVEP-EEG Signal Classification based on Emotiv EPOC BCI and Raspberry Pi
⭐⭐⭐⭐⭐ SSVEP-EEG Signal Classification based on Emotiv EPOC BCI and Raspberry Pi⭐⭐⭐⭐⭐ SSVEP-EEG Signal Classification based on Emotiv EPOC BCI and Raspberry Pi
⭐⭐⭐⭐⭐ SSVEP-EEG Signal Classification based on Emotiv EPOC BCI and Raspberry Pi
 
IAA-LA2-10-01 Spectral and Radiometric Calibration Procedure for a SWIR Hyper...
IAA-LA2-10-01 Spectral and Radiometric Calibration Procedure for a SWIR Hyper...IAA-LA2-10-01 Spectral and Radiometric Calibration Procedure for a SWIR Hyper...
IAA-LA2-10-01 Spectral and Radiometric Calibration Procedure for a SWIR Hyper...
 
Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...
Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...
Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...
 
Presentation03 27 03
Presentation03 27 03Presentation03 27 03
Presentation03 27 03
 
Poster_group22
Poster_group22Poster_group22
Poster_group22
 
Mannasim for NS2
Mannasim for NS2Mannasim for NS2
Mannasim for NS2
 
Neuro vision: Prof. Conradt @ Digital Product School of UnternehmerTUM
Neuro vision: Prof. Conradt @ Digital Product School of UnternehmerTUMNeuro vision: Prof. Conradt @ Digital Product School of UnternehmerTUM
Neuro vision: Prof. Conradt @ Digital Product School of UnternehmerTUM
 

MSc_thesis_defence

  • 1. 1Challenge the future Next-generation neuromodulator for epilepsy prevention Athanasios Karapatis
  • 2. 2Challenge the future Epilepsy • Epileptic seizure • Signs/Symptoms • Synchronous neuronal activity • Absence seizures • Type of epileptic seizure • Brief loss of consciousness Definition: “A brain disorder characterized by epileptic seizures” Video of absence seizure. Go to: https://www.youtube.com/watch ?v=obbg1BFt26Q
  • 3. 3Challenge the future How is epilepsy treated? • Conventional treatment methods • Drugs • Resective Surgery (severe cases) • New technique emerging • Neurostimulation  Electrical / Optogenetic • One FDA approved device (Neuropace RNS) • Problem statement Can we detect seizures fast and reliably using a seizure-detection system which is suitable for implantable (ultra-low power) application?
  • 4. 4Challenge the future Objectives of this work: Outline • Implementation of a detection mechanism • Prototype realization • Evaluation of mechanism • Detection performance • Computational overheads • Trade-offs
  • 5. 5Challenge the future ECoG/EEG view of seizure *ECoG = Electrocorticogram Start Stop
  • 7. 7Challenge the future Implementation: Complex Morlet wavelet • Selection reasons • Similar morphology • Time-frequency localization • Scalogram • Average wavelet output of all seizure intervals • Power of filter at different frequency scales • Onset at 1 second • Max power at 7Hz • Implement FIR
  • 8. 8Challenge the future • FIR filter coefficients • Sampled at 100Hz • Total of 229 • Filter output: • Power of filter output y(n) to distinguish a seizure Implementation: Finite Impulse Response
  • 9. 9Challenge the future Implementation: Decision making Static threshold Adaptive threshold Upper Threshold
  • 11. 11Challenge the future Evaluation: Outline • Detection performance results • Static threshold • Adaptive threshold • Comparison with related work • Computational overheads • Trade-offs: Detection vs. Overheads
  • 12. 12Challenge the future Experimental Setup • Dataset • ECoG recording 29.75 hours/1914 seizures • Seizure definition • SWDs >1 sec (Golden standard) • 3x SWDs (<1 sec) • Detection performance function of: • Coefficient window • Size and offset • Thresholds
  • 13. 13Challenge the future Static threshold: Results (1/4) • Window size • No effect on Sensitivity • Threshold - Vth,h • Sensitivity drops Sensitivity: Percentage of correctly detected seizures
  • 14. 14Challenge the future Static threshold: Results (2/4) • Window size • Slight increase in Specificity • Threshold - Vth,h • Specificity increases Specificity: Percentage of correctly classified non-seizure (inter-ictal) periods
  • 15. 15Challenge the future Static threshold: Results (3/4) • Window size • Slight increase ADR • Threshold - Vth,h • ADR increases until Vth,h = 44 (max ADR) ADR: Average Detection Rate = (Sensitivity+Specificity)/2 44
  • 16. 16Challenge the future Static threshold: Results (4/4) Detection Delay: Time between seizure onset and detection moment
  • 17. 17Challenge the future Static threshold: Results (4/4) • Window size • Increases Detection delay • Threshold - Vth,h • Detection delay increases Detection Delay: Time between seizure onset and detection moment
  • 18. 18Challenge the future Adaptive threshold: Definition • Threshold - Vth,h • Dependent on output Y(n) • Based on τup and τdown • τup increase rate of Vth,h • τdown decrease rate of Vth,h • Definition: τupτdown τupτdown Larger τdown  Slower Vth,h decrease Smaller τup  Faster Vth,h increase
  • 19. 19Challenge the future Adaptive threshold: Results • Increasing τup • Reduces Detection Delay (better) • Worsens ADR • Increasing τdown • Increases delay (worse) • Improves ADR
  • 21. 21Challenge the future Computational overheads: Setup • Profile and simulate S/W implementation • Profiling platform • SiMS processor – (Ultra-low power) • 20 MHz, 1078.93 µW • Overheads computed • Instruction mix • Execution time • Multiplication overhead • Memory usage • Energy consumption • Battery-powered system lifespan (0.1Wh)
  • 22. 22Challenge the future Computational overheads: Results (Execution time) • Computation time <10ms • Sampling rate 10ms • Linear increase • Window size <149 • Constraint is met Execution time 149
  • 23. 23Challenge the future Computational overheads: Results (Energy) Energy Consumption Battery-powered system lifespan
  • 24. 24Challenge the future Trade-offs: Performance vs. Costs Battery x4 longer: • ADR -1% • Delay -200 ms
  • 25. 25Challenge the future Conclusions • Range of possible solutions • Sens=98%, Delay=380ms, Spec=87% • Sens=70%, Delay=850ms, Spec=98% • Detection delay of 492ms (Adaptive threshold) • 970ms (fastest solution available) • Trade-off • Detection accuracy vs. Energy consumption • Real-time constraints met on SiMS Can we detect seizures fast and reliably using a seizure-detection system which is suitable for implantable (ultra-low power) application?
  • 26. 26Challenge the future Conclusions YES WE CAN Can we detect seizures fast and reliably using a seizure-detection system which is suitable for implantable (ultra-low power) application?
  • 27. 27Challenge the future Future work & uStim • Interesting extensions • Other wavelets • Improve adaptive mechanism • ASIC implementation of solution • SiMS with application specific units ( e.g. multiplier, SiMD unit) • Part of this work • Prototype for tinnitus treatment • Electrical Neurostimulation
  • 28. 28Challenge the future Thank you for your attention Questions?
  • 30. 30Challenge the future Computational overheads: Results (Profiling statistics) Instruction mix

Editor's Notes

  1. Transient occurrence of signs caused excessive synchronous neuronal brain activity thesis focus on detection and suppression of absence
  2. purpose  specialized/effective treatment Optogenetic stimulation  light is applied on genetically sensitized neurons FDA -> 50 % seizure reduction What are requirements to build such systems?
  3. In order to answer in the next slides I am going to describe the step that were taken.
  4. How does a seizure look like? Electrocorticogram Signals that come out of the brain Snapshot of an ECoG recording taken from a mouse Spike-Wave Discharges repeat at in frequency range 6-8Hz
  5. In order to detect and suppress seizures we created a closed loop system Which consists of Analyze component ( input signals, Analog, Digital ( 100Hz, feature extraction, decision making) , stimulator ) Optogenetic stimulation , applies light to genetically sensitized neurons Focus of our work on digital
  6. What it does? Used to distinguish seizures from non-seizures Why? Localized time and frequency, which gives frequency information on the signal in time domain Compared to other time-frequency the wavelet can provide better resolution by selecting an appropriate wavelet. (in this case the complex Morlet) How? Scalogram by averaging the filter output of seizure interval we obtain Present the power of the filter Align onset @ 1 sec Note increase in power  certain frequency scale & only after the seizure-onset.
  7. Practical FIR filter implementation the impulse response of continuous wavelet filter sampled at 100Hz and using the effective support in matlab we obtained 229 coefficient for each of the complex components Resulting impulse response is seen in figure Filter is calculated by the convolution of the impulse response and the input signal From the scalogram we saw that power is good indicator to distinguish a seizure interval . The sum of the square values of imaginary and real part
  8. Increased output during seizures Adaptive threshold will be defined later
  9. First to verify that the system works, we did in-vivo experiments. Actually it was required because they needed to do the experiments. This also helped us to prove the concept. Built our own PCB for the analog module & ported the detection system to a Beaglebone platform It works. See example where SWD stop Preliminary wavelet filter analysis to reduce filter response. However I won't tell you the details(which can be found in thesis) since we will talk about a very extensive filter analysis in just a few minutes...
  10. Moving on of the evaluation of closed-loop system
  11. In our evalulation The dataset we used to evaluate the detection performance of …. In the golden standard the seizures are defined by SWD activity that lasts more that 1 second see picture Also considered an extra case were we have at least 3 SWD. However tNot presented due to timing limitations and can be found in thesis Is evaluated on 1.Coefficient window present the results on different size  effectively filter order , also offset details can be found in thesis 2. Different threhold first static ( fair comparison between filter relative to its filter instance output range, don’t want to compare absolute values and then adaptive
  12. Explain why: Window size affect output range threshold levels are relative to filter output therefore no effect Higher threshold missing seizure with lesser magnitude filter output
  13. Explain why Higher threshold less FP Larger window better filter response to seizure
  14. Mention that lowering thresh reduces detection delay
  15. Explain why Larger thesh higher delay Larger window, delay filter response !!Blank page!!! In thesis you can also find the Pareto optimal points of all three performance metrics are computed
  16. Describe how tup and tdown affects
  17. ADR describes the average detection performance For a window size of 64
  18. Explain why better in detail Line-length : not finely tuned as wavelet filter Daubechies wavelet : Similar, extra step where they Average wavelet filter output which introduces delay better results though ANN : compex artificial neural network adds delay. Slightly better specificity Advantage of our solution : simple, and from our evaluation small training set
  19. Focus on execution to see if implementation is viable/feasible Energy consumption to evaluate the costs of realizing this solution Battery lifespan  indication of how long can such a system last
  20. Window size is enough 64 fof adaptive
  21. Linear increases. Almost doubles evety window size doubling For instance on a battery 0.1Wh hour 8 coefficients 7.8 weeks ( After that recharging, solution wireless charging )
  22. Combination detection performance and computational overheads ADR as an indication of performance
  23. Trade-off  suit our needs!!!