athena project€¦ · athena project jaime ciriaco michael dunn aaron marquez sonoma state...

18
Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz http://athena490.wordpress.com [email protected] [email protected] [email protected]

Upload: others

Post on 25-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

Athena Project

Jaime Ciriaco

Michael Dunn

Aaron Marquez

Sonoma State University Department of Engineering Science

Advisor: Farid Farahmand

Client: Arthur Obuchowicz

http://athena490.wordpress.com

[email protected]

[email protected]

[email protected]

Page 2: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

Introduction

• One of the most common disorders in the world is epilepsy

• It can be dangerous for someone with epilepsy to be left home alone because a seizure can leave them

incapacitated and unable to call for help

• This can be especially dangerous if certain appliances such as a stove or iron were left on

• There are only a few devices that monitor this disorder

• Efficient seizure detection algorithms are needed

• If a person has a seizure then they could be incapacitated for a period of time.

Page 3: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

Hardware

• 9 Degree of Freedom Sensor: Accelerometer, Gyroscope, Magnetometer

• Feather M0 microcontroller

• Buzzer

Page 4: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

Accelerometer/Gyroscope Data

• Accelerometer and Gyroscope data used for analysis

• Velocity (m/s^2) in x, y, z axes

• Rotational Velocity (degrees-per-second) in

x, y, z axes

• 20 Hz Sample Rate New sample every

50 ms

Page 5: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

Accelerometer/Gyroscope Data

• Accelerometer and Gyroscope data used for analysis

VX(n) Vy(n), Vz(n)

VX(n) Vy(n), Vz(n), fx, fy, fz

Page 6: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

Received Accelerometer Data

Seizure Event Random Movement

Vx(n) Vy(n), Vz(n)

Page 7: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

Received Accelerometer Data

Seizure Event Random Movement

Vx(n) Vy(n), Vz(n)

Problem: How do you

detect Seizure?

Page 8: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

Introducing Root-Mean-Square Analysis

• Read accelerometer & gyroscopic values

• Calculate RMS

V RMS =Vx

2 +Vy2 +Vz

2

3

RMS =1

Nvi

2

i

N

åGeneral Equation:

Our Implementation:

Page 9: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

Seizure Detection Algorithm

• Calculate Difference: VRMS(n) – VRMS(n-1) > THRMS

• Calculate Counter: Count(n) = Count(n-1) + 1 > THC

Page 10: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

Necessary Model

• Source: T. R. Burchfield and S. Venkatesan,"Accelerometer-Based Human

Abnormal Movement Detection in Wireless Sensor Networks”

THRMS

Page 11: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

Our Model

• Green Arrow (THRMS): “Shaking event”

• Red Line (THC): “Possible Seizure Event”

>THRMS >THC

Page 12: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

Including Fast Fourier Transform

in Seizure Detection Algorithm • Look at RMS data in frequency domain

X(k) = x( j)wN

( j-1)(k-1)

j=1

N

å

where

wN = e(-2pi)/N

FFTRMS (k) = VRMS ( j)wN

( j-1)(k-1)

j=1

N

å

K=Number of Samples

Page 13: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

Seizure Detection Algorithm with FFT

If certain frequency found AND THC passed Alarm

Page 14: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

FFT of RMS (VX, Vy, Vz) Data

FFTRMS (k) = VRMS ( j)wN

( j-1)(k-1)

j=1

N

å

Page 15: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

FFT of Individual VX, Vy, Vz Data

FFT (k) = VX,Y ,Z ( j)wN

( j-1)(k-1)

j=1

N

å

Page 16: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

FFT of Gyroscope (fx, fy, fz) Data

FFTx,y,z (k) = Fx, y, z( j)wN

( j-1)(k-1)

j=1

N

å

Page 17: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

Final Seizure Algorithm

Page 18: Athena Project€¦ · Athena Project Jaime Ciriaco Michael Dunn Aaron Marquez Sonoma State University Department of Engineering Science Advisor: Farid Farahmand Client: Arthur Obuchowicz

Conclusion

• Accuracy of model

• Speed of Model