SlideShare une entreprise Scribd logo
1  sur  33
"Abnormality of Elderly Fall using
Android Smartphone"
Enrol. No. – 10503888
Name of Student – SHIVI TANDON
Name of supervisor – Ms. Sangeeta
Mittal
Introduction
• The prime objective of "Abnormality of Elderly Fall" application is
to create a full fledged Android application which would detect the
abnormality/normality of elderly fall using accelerometer data and
heart rate, which is collected from android sensors. In the case of
an abnormal fall, an SMS would be sent to the nearest doctor.
• The project is developed in Java Programming Language by using
Eclipse Integrated Development Environment (IDE). We use Android
Software Development Kit (SDK) which includes a variety of custom
tools that help us develop mobile applications on the Android. The
data is collected using android sensors(accelerometer and camera).
Classifier is trained using this data with the help of the machine
learning tool Weka.
Problem Statement
• Problem statement can be phrased as follows:
• The 'Abnormality of Elderly Fall' system is a specialized application designed to
monitor human activity, alerting to falls using the Android phone facilities. This
application is designed to observe the abnormality of user Falls and is the result of
extensive research on the subject of human activity and movement.
• This system constantly monitors the users motion and the heart rate of the user,
trying to determine when 'normal activity' is occurring, and alerting when activity
indicating the abnormality in the fall of the user occurs.
• In addition, users can choose to send an SMS Alert message to a caregivers
telephone number when abnormal Fall events occur. Fall Detection is a key
component of healthy, secure motion - for the elderly and those on the repair.
With this system, individuals can feel free to move about their environment, with
an electronic guardian ensuring that their physical activities are monitored in case
of danger. The aged and elderly can use it to act as a safety switch, alerting family
members and caregivers in the case of a fall during a walk or life at home.
Overview of proposed solution
• This is achieved by equipping the user with two android smart
Smartphone, from which the activity and the heart rate of the user are
determined. The user of this system will keep one android Smartphone in
his/her pocket and the other Smartphone would be tied to his/her wrist.
Since tying a Smartphone is not a feasible option, the other smart phone
can be replaced by a custom made wrist band which can provide the same
functionality as the phone would.
• I have extensively made use of these sensors for data collection. In this
work accelerometer sensor is listened for identifying and tracking the
physical activities of the user such as walking, running, stand idle. The
phone kept in the pocket provides the activity dataset. Our Heart
condition can be measured by heartbeat. The heart rate of the user is
measured by recording a video, with the flash on, while the camera lens is
place just below the wrist creases at the base of the thumb. Further
processing the video can give me the heart rate.
• Benefits -
• This application ensures that the elderly can live longer
independently with minimal support of the working-age
population.
• The user does not need specialized hardware to detect
heart rate and he/she can take a measurement in virtually
any place under almost any circumstances.
• The users can feel free to move about their environment,
with an electronic guardian ensuring that their physical
activities are monitored in case of danger. The aged and
elderly can use Fall Detector to act as a safety switch,
alerting family members and caregivers in the case of an
abnormal fall during a walk or life at home.
Details of Empirical Study
• Android SDK - The most important SDK tools include the Android SDK Manager (android sdk), the AVD
Manager (android avd) the emulator (emulator), and the Dalvik Debug Monitor Server (ddms). Some
frequently-used SDK tools are:-
• Dalvik Debug Monitor Server (ddms) - Lets you debug Android applications.
• Android Emulator (emulator) - A QEMU-based device-emulation tool that you can use to design, debug,
and test your applications in an actual Android run-time environment.
• sqlite3 - Lets you access the SQLite data files created and used by Android applications.
• Eclipse 4.2.0 - This software is OSI Certified Open Source Software. It is a cross-platform, multi-language
Integrated development environment (IDE) comprising a base workspace and an extensible plug-in system
for customizing the environment. It can be used to develop applications in Java and, by means of various
plug-ins, other programming languages. Eclipse supports a rich selection of extensions and is hence used
for Android development via Google's ADT.
• Weka - (Waikato Environment for Knowledge Analysis) is an open source suite of machine learning
software written in Java. It contains a collection of visualization tools and algorithms for data analysis and
predictive modelling.
Functional requirements and Non Functional
requirements
• The project involved analyzing the design of few applications so as to make the application more user friendly. To do so, it
was really important to keep the navigations from one screen to the other well ordered and at the same time reducing the
amount of typing the user needs to do. In order to make the application more accessible, the android version had to be chosen
so that it is compatible with most of the Android devices. Hence Android 2.3.3 Gingerbread version was chosen.
• Graphical User interface which the user will see
• Provide accessibility to the application through Wi-Fi or cellular network.
• For developing the application the following are the Software Requirements:
• Operating System: Windows 7
• Language: Android SDK, Java
• Tools: Eclipse IDE, Android Plug-in for Eclipse, Machine learning tool Weka, MATLAB
• Technologies used: Java, MATLAB.
• Debugger: Android Dalvik Debug Monitor service
• External APIs: CSV write
• For running the application the following are the Software and Hardware Requirements:
• Operating System: Android 2.3 or higher versions
• Network: Wi-Fi Internet or cellular Network
• Phone camera with flash
• Android phone with built in accelerometer
• Blood pressure monitor
• Non-functional requirements
• Efficient camera with a flash is required.
• Efficient network bandwidth over Wi-fi or 3G is required for
smooth working of the application.
• The smart phone should be tied tightly on the wrist so that
the entire camera lens id covered otherwise the readings
might be very noisy.
• Phone call, SMS or any type of notification floated in the
mobile environment will be handled by Broadcast receivers.
• All the user data is stored on the SD card of the user's
device. In case the SD card's memory is exhausted the user
is asked to delete some content from his SD card.
Implementation
Implementation details and issues
• Accelerometer
• This module will log the accelerometer data and save the
data in a csv file on the SD card of the device. The raw data
for walking, running and stand idle are collected seperately
by activating the application on the phone and place it on
trouser’s pocket. Raw data at this moment is collected
continuously. The accelerometer values are the change in
position with respect to time. That is it is not exact
acceleration values. So these values are converted to actual
acceleration. The accelerometer in the android phone
returns three acceleration values i.e. acceleration in X,Y,Z
directions. X axis gives sideways accelerations, Y axis gives
forward or backward acceleration and Z axis gives upward
or downward accelerations.
Accelerometer data collected using an android app
Acc.csv
J48 decision tree trained under acc.arff
• Heart Rate
• This module will log the heart rate data by capturing the
video and save the data in a csv file on the SD card of the
device. The raw data is collected separately by activating
the application on the phone and tying it to the subject's
wrist. Raw data at this moment is collected continuously.
The video extracted are processed using MATLAB. As a
result of the video processing we have the red channel,
green channel and blue channel of each frame in the video.
This data coupled with the ground truth calculated using
blood pressure monitor is saved in a CSV file. This CSV file is
used to train various classifiers using weka.
Video taken for calculating heart rate by tying the phone on the wrist
Blood pressure monitor is used for determining the ground truth of heart rate
Red channel, green channel, blue channel of each frame is extracted using
matlab
• xyloObj1 = VideoReader('C:UsersShiviDesktopdatahrp21.mov');
• vidFrames = read(xyloObj1);
• nFrames = xyloObj1.NumberOfFrames;
• A=ones(nFrames,3);
• for i = 1:nFrames
• im = read(xyloObj1,i);
• for j = 1:3
• if j == 1
• redChannel = im(:, :, 1);
• redMean = mean2(redChannel);
• A(i,j)=A(i,j)*redMean;
• elseif j == 2
• blueChannel = im(:, :, 2);
• blueMean = mean2(blueChannel);
• A(i,j)=A(i,j)*blueMean;
• else
• greenChannel = im(:, :, 3);
• greenMean = mean2(greenChannel);
• A(i,j)=A(i,j)*greenMean;
• end
• end
• end
• csvwrite('C:UsersShivicsvlist_p21.dat',A);
Hr.csv
Line graph for red channel of the entire video.
Line graph for red channel of the walking activity followed by running activity.
Decision Stump trained using hr.arff in Weka
Frames
Figure 3. Camera input sample
Redchannelvalueineachfrmae
Accelerometer data
Time(seconds)
Figure 4. Accelerometer data
CoordinateValues
Camera input sample
Re
d
ch
an
nel
val
ue
in
ea
ch
fra
me
Frames
Figure 6. Camera input sample when the subject is walking and jogging
Redchannelvalueineachfrmae
CLASSIFICATION ACCURACY OF ACCELEROMETER
DATASET FOR ALL THE ALGORITHMS
S.NO ALGORITHM RELATIVE ACCURACY
1. C4.5 Decision Trees 98.20%
2. RIPPER Decision Rules 98.34%
3. Naive Bayes 91.74%
4. 3-Nearest Neighbour 97.34%
5. Random Forest 98.39%
6. Bagging 98.48%
7. Adaboost M1 boosting 96.26%
CLASSIFICATION ACCURACY OF HEART RATE
DATASET FOR ALL THE ALGORITHMS
S.NO ALGORITHM RELATIVE ACCURACY
1. C4.5 Decision Trees 94.60%
2. RIPPER Decision Rules 94.15%
3. Naive Bayes 69.81%
4. 3-Nearest Neighbour 95.74%
5. Random Forest 95.71%
6. Bagging 94.95%
7. Adaboost M1 boosting 25.35%
Average build-time for Accelerometer
dataset
Timetobuild(seconds)
Classifier
Figure 7. Average build-time for Accelerometer dataset
Buildtime(seconds)
Average build-time for Heart-rate
dataset
Classifier
Figure 8. Average build-time for Heart-rate dataset
Buildtime(seconds)
RELATIONSHIP BETWEEN PHYSICAL ACTIVITY
AND HEART RATE FOR AN ELDERLY PERSON
Heart rate ≤ 60 60 ≤ Heart Rate
≤ 100
77.5 ≤ Heart
Rate ≤ 108.5
108.5 ≤ Heart
Rate ≤ 131.75
Heart Rate ≥
131.75
Resting Normal Abnormal Abnormal
Moderate-
intensity
physical activity
Abnormal Normal Normal Abnormal
Vigorous-
intensity
physical activity
Abnormal Abnormal Normal Normal
S.No List of Various
Components
(modules) that require
testing
Type of Testing Required Technique for writing test
Cases
1. Home Screen Performance White Box
2. Acquire X,Y,Z coordinates Performance White Box
3. Open Camera and record
video
Unit White Box
4. RGB value calculation Unit White Box
5. HeartRate CSV Unit White Box
6. Accelerometer CSV Unit White Box
7. Send CSV files over
Bluetooth
Unit White Box
8. Classification using rule
based classifier
Unit White Box
• Item Pass/Fail Criteria
• Passing criteria of any test plan at lower level will be
completion of all test cases and only 10% cases to fail. As
our program is complex type that is output of one module
is input to other so we can’t take risk of high percentage of
failure only exceptional cases should fail else it should pass.
If a program tend to have too many fail test cases then it’s
considered to be failed
•
• Passing criteria at high level would be completion of all
lower level module successful implementation of test plans
and none fails. In case lower level test plan fails then upper
level plan too will fail.

Contenu connexe

Tendances

Tendances (20)

Blue eyes paper
Blue eyes paperBlue eyes paper
Blue eyes paper
 
Blue eyes seminar report
Blue eyes seminar reportBlue eyes seminar report
Blue eyes seminar report
 
Blue eye technology ppt
Blue eye technology pptBlue eye technology ppt
Blue eye technology ppt
 
IOT BASED BLACK BOX DEVICE FOR VEHICLE DETECTION
IOT BASED BLACK BOX DEVICE FOR VEHICLE DETECTIONIOT BASED BLACK BOX DEVICE FOR VEHICLE DETECTION
IOT BASED BLACK BOX DEVICE FOR VEHICLE DETECTION
 
BLUE EYE TECHNOLOGY
BLUE EYE TECHNOLOGYBLUE EYE TECHNOLOGY
BLUE EYE TECHNOLOGY
 
The Real Time Drowisness Detection Using Arm 9
The Real Time Drowisness Detection Using Arm 9The Real Time Drowisness Detection Using Arm 9
The Real Time Drowisness Detection Using Arm 9
 
J5244649
J5244649J5244649
J5244649
 
Blue eyes
Blue eyesBlue eyes
Blue eyes
 
Ab1
Ab1Ab1
Ab1
 
Heart Rate Monitor
Heart Rate MonitorHeart Rate Monitor
Heart Rate Monitor
 
A9399109119
A9399109119A9399109119
A9399109119
 
iaetsdv Blue eyes a revolution
iaetsdv Blue eyes   a revolutioniaetsdv Blue eyes   a revolution
iaetsdv Blue eyes a revolution
 
IRJET- Automatic Recognition using Heartbeat Authentication
IRJET- Automatic Recognition using Heartbeat AuthenticationIRJET- Automatic Recognition using Heartbeat Authentication
IRJET- Automatic Recognition using Heartbeat Authentication
 
Seminar blue eye
Seminar blue eyeSeminar blue eye
Seminar blue eye
 
Development of Guiding Cane with Voice Notification for Visually Impaired ind...
Development of Guiding Cane with Voice Notification for Visually Impaired ind...Development of Guiding Cane with Voice Notification for Visually Impaired ind...
Development of Guiding Cane with Voice Notification for Visually Impaired ind...
 
Building of heart beat rate monitor & object detector by md syeduzzaman s...
Building of heart beat rate monitor & object detector by md syeduzzaman s...Building of heart beat rate monitor & object detector by md syeduzzaman s...
Building of heart beat rate monitor & object detector by md syeduzzaman s...
 
Blue Eyes Technology - Power Point Presentation
Blue Eyes Technology - Power Point Presentation Blue Eyes Technology - Power Point Presentation
Blue Eyes Technology - Power Point Presentation
 
Blue eyes technology
Blue eyes technologyBlue eyes technology
Blue eyes technology
 
IRJET- Smart Machine System for Virtually Impaired People
IRJET-  	  Smart Machine System for Virtually Impaired PeopleIRJET-  	  Smart Machine System for Virtually Impaired People
IRJET- Smart Machine System for Virtually Impaired People
 
Z4501149153
Z4501149153Z4501149153
Z4501149153
 

Similaire à Abnormality in Elderly Fall using Android Smartphone

Human Activity Recognition in Android
Human Activity Recognition in AndroidHuman Activity Recognition in Android
Human Activity Recognition in Android
Surbhi Jain
 

Similaire à Abnormality in Elderly Fall using Android Smartphone (20)

Pedometer mobile application ppt
Pedometer mobile application pptPedometer mobile application ppt
Pedometer mobile application ppt
 
Sensor Observation Service Client for Android Mobile Phones
Sensor Observation Service Client for Android Mobile PhonesSensor Observation Service Client for Android Mobile Phones
Sensor Observation Service Client for Android Mobile Phones
 
INTERNET OF THINGS IMPLEMENTATION FOR WIRELESS MONITORING OF AGRICULTURAL...
INTERNET OF THINGS IMPLEMENTATION FOR WIRELESS MONITORING     OF AGRICULTURAL...INTERNET OF THINGS IMPLEMENTATION FOR WIRELESS MONITORING     OF AGRICULTURAL...
INTERNET OF THINGS IMPLEMENTATION FOR WIRELESS MONITORING OF AGRICULTURAL...
 
AndroidAppPPT
AndroidAppPPTAndroidAppPPT
AndroidAppPPT
 
[EUC2014] cODA: An Open-Source Framework to Easily Design Context-Aware Andro...
[EUC2014] cODA: An Open-Source Framework to Easily Design Context-Aware Andro...[EUC2014] cODA: An Open-Source Framework to Easily Design Context-Aware Andro...
[EUC2014] cODA: An Open-Source Framework to Easily Design Context-Aware Andro...
 
Beyond Traditional Mobile Testing
Beyond Traditional Mobile TestingBeyond Traditional Mobile Testing
Beyond Traditional Mobile Testing
 
IRJET- TRACKITUP-An Android Application to Track Multiple Users
IRJET- TRACKITUP-An Android Application to Track Multiple UsersIRJET- TRACKITUP-An Android Application to Track Multiple Users
IRJET- TRACKITUP-An Android Application to Track Multiple Users
 
SHERLOCK: Energy Efficient and Continuous Environment Sensing Android Applica...
SHERLOCK: Energy Efficient and Continuous Environment Sensing Android Applica...SHERLOCK: Energy Efficient and Continuous Environment Sensing Android Applica...
SHERLOCK: Energy Efficient and Continuous Environment Sensing Android Applica...
 
NECK MOVEMENT BASED WHEELCHAIR TO ASSIST THE PHYSICALLY CHALLENGED
NECK MOVEMENT BASED WHEELCHAIR TO ASSIST  THE PHYSICALLY CHALLENGEDNECK MOVEMENT BASED WHEELCHAIR TO ASSIST  THE PHYSICALLY CHALLENGED
NECK MOVEMENT BASED WHEELCHAIR TO ASSIST THE PHYSICALLY CHALLENGED
 
IRJET- Drive Assistance an Android Application for Drowsiness Detection
IRJET- Drive Assistance an Android Application for Drowsiness DetectionIRJET- Drive Assistance an Android Application for Drowsiness Detection
IRJET- Drive Assistance an Android Application for Drowsiness Detection
 
Human Activity Recognition in Android
Human Activity Recognition in AndroidHuman Activity Recognition in Android
Human Activity Recognition in Android
 
IRJET - Android App for Women Security
IRJET -  	  Android App for Women SecurityIRJET -  	  Android App for Women Security
IRJET - Android App for Women Security
 
Final project
Final projectFinal project
Final project
 
Android Mobile Application Testing: Human Interface Guideline, Tools
Android Mobile Application Testing: Human Interface Guideline, ToolsAndroid Mobile Application Testing: Human Interface Guideline, Tools
Android Mobile Application Testing: Human Interface Guideline, Tools
 
audio labler device for visual impare
audio labler device for visual impareaudio labler device for visual impare
audio labler device for visual impare
 
Intelligent Wheel Chair Based on Internet of Things
Intelligent Wheel Chair Based on Internet of ThingsIntelligent Wheel Chair Based on Internet of Things
Intelligent Wheel Chair Based on Internet of Things
 
IRJET - Smart Yoga Instructor
IRJET - Smart Yoga InstructorIRJET - Smart Yoga Instructor
IRJET - Smart Yoga Instructor
 
Gesture control car
Gesture control carGesture control car
Gesture control car
 
DRIVER DROWSINESS DETECTION SYSTEM
DRIVER DROWSINESS DETECTION SYSTEMDRIVER DROWSINESS DETECTION SYSTEM
DRIVER DROWSINESS DETECTION SYSTEM
 
boxiot.pdf
boxiot.pdfboxiot.pdf
boxiot.pdf
 

Dernier

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Dr.Costas Sachpazis
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 

Dernier (20)

The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 

Abnormality in Elderly Fall using Android Smartphone

  • 1. "Abnormality of Elderly Fall using Android Smartphone" Enrol. No. – 10503888 Name of Student – SHIVI TANDON Name of supervisor – Ms. Sangeeta Mittal
  • 2. Introduction • The prime objective of "Abnormality of Elderly Fall" application is to create a full fledged Android application which would detect the abnormality/normality of elderly fall using accelerometer data and heart rate, which is collected from android sensors. In the case of an abnormal fall, an SMS would be sent to the nearest doctor. • The project is developed in Java Programming Language by using Eclipse Integrated Development Environment (IDE). We use Android Software Development Kit (SDK) which includes a variety of custom tools that help us develop mobile applications on the Android. The data is collected using android sensors(accelerometer and camera). Classifier is trained using this data with the help of the machine learning tool Weka.
  • 3. Problem Statement • Problem statement can be phrased as follows: • The 'Abnormality of Elderly Fall' system is a specialized application designed to monitor human activity, alerting to falls using the Android phone facilities. This application is designed to observe the abnormality of user Falls and is the result of extensive research on the subject of human activity and movement. • This system constantly monitors the users motion and the heart rate of the user, trying to determine when 'normal activity' is occurring, and alerting when activity indicating the abnormality in the fall of the user occurs. • In addition, users can choose to send an SMS Alert message to a caregivers telephone number when abnormal Fall events occur. Fall Detection is a key component of healthy, secure motion - for the elderly and those on the repair. With this system, individuals can feel free to move about their environment, with an electronic guardian ensuring that their physical activities are monitored in case of danger. The aged and elderly can use it to act as a safety switch, alerting family members and caregivers in the case of a fall during a walk or life at home.
  • 4. Overview of proposed solution • This is achieved by equipping the user with two android smart Smartphone, from which the activity and the heart rate of the user are determined. The user of this system will keep one android Smartphone in his/her pocket and the other Smartphone would be tied to his/her wrist. Since tying a Smartphone is not a feasible option, the other smart phone can be replaced by a custom made wrist band which can provide the same functionality as the phone would. • I have extensively made use of these sensors for data collection. In this work accelerometer sensor is listened for identifying and tracking the physical activities of the user such as walking, running, stand idle. The phone kept in the pocket provides the activity dataset. Our Heart condition can be measured by heartbeat. The heart rate of the user is measured by recording a video, with the flash on, while the camera lens is place just below the wrist creases at the base of the thumb. Further processing the video can give me the heart rate.
  • 5. • Benefits - • This application ensures that the elderly can live longer independently with minimal support of the working-age population. • The user does not need specialized hardware to detect heart rate and he/she can take a measurement in virtually any place under almost any circumstances. • The users can feel free to move about their environment, with an electronic guardian ensuring that their physical activities are monitored in case of danger. The aged and elderly can use Fall Detector to act as a safety switch, alerting family members and caregivers in the case of an abnormal fall during a walk or life at home.
  • 6. Details of Empirical Study • Android SDK - The most important SDK tools include the Android SDK Manager (android sdk), the AVD Manager (android avd) the emulator (emulator), and the Dalvik Debug Monitor Server (ddms). Some frequently-used SDK tools are:- • Dalvik Debug Monitor Server (ddms) - Lets you debug Android applications. • Android Emulator (emulator) - A QEMU-based device-emulation tool that you can use to design, debug, and test your applications in an actual Android run-time environment. • sqlite3 - Lets you access the SQLite data files created and used by Android applications. • Eclipse 4.2.0 - This software is OSI Certified Open Source Software. It is a cross-platform, multi-language Integrated development environment (IDE) comprising a base workspace and an extensible plug-in system for customizing the environment. It can be used to develop applications in Java and, by means of various plug-ins, other programming languages. Eclipse supports a rich selection of extensions and is hence used for Android development via Google's ADT. • Weka - (Waikato Environment for Knowledge Analysis) is an open source suite of machine learning software written in Java. It contains a collection of visualization tools and algorithms for data analysis and predictive modelling.
  • 7. Functional requirements and Non Functional requirements • The project involved analyzing the design of few applications so as to make the application more user friendly. To do so, it was really important to keep the navigations from one screen to the other well ordered and at the same time reducing the amount of typing the user needs to do. In order to make the application more accessible, the android version had to be chosen so that it is compatible with most of the Android devices. Hence Android 2.3.3 Gingerbread version was chosen. • Graphical User interface which the user will see • Provide accessibility to the application through Wi-Fi or cellular network. • For developing the application the following are the Software Requirements: • Operating System: Windows 7 • Language: Android SDK, Java • Tools: Eclipse IDE, Android Plug-in for Eclipse, Machine learning tool Weka, MATLAB • Technologies used: Java, MATLAB. • Debugger: Android Dalvik Debug Monitor service • External APIs: CSV write • For running the application the following are the Software and Hardware Requirements: • Operating System: Android 2.3 or higher versions • Network: Wi-Fi Internet or cellular Network • Phone camera with flash • Android phone with built in accelerometer • Blood pressure monitor
  • 8. • Non-functional requirements • Efficient camera with a flash is required. • Efficient network bandwidth over Wi-fi or 3G is required for smooth working of the application. • The smart phone should be tied tightly on the wrist so that the entire camera lens id covered otherwise the readings might be very noisy. • Phone call, SMS or any type of notification floated in the mobile environment will be handled by Broadcast receivers. • All the user data is stored on the SD card of the user's device. In case the SD card's memory is exhausted the user is asked to delete some content from his SD card.
  • 10. Implementation details and issues • Accelerometer • This module will log the accelerometer data and save the data in a csv file on the SD card of the device. The raw data for walking, running and stand idle are collected seperately by activating the application on the phone and place it on trouser’s pocket. Raw data at this moment is collected continuously. The accelerometer values are the change in position with respect to time. That is it is not exact acceleration values. So these values are converted to actual acceleration. The accelerometer in the android phone returns three acceleration values i.e. acceleration in X,Y,Z directions. X axis gives sideways accelerations, Y axis gives forward or backward acceleration and Z axis gives upward or downward accelerations.
  • 11. Accelerometer data collected using an android app
  • 13. J48 decision tree trained under acc.arff
  • 14.
  • 15.
  • 16. • Heart Rate • This module will log the heart rate data by capturing the video and save the data in a csv file on the SD card of the device. The raw data is collected separately by activating the application on the phone and tying it to the subject's wrist. Raw data at this moment is collected continuously. The video extracted are processed using MATLAB. As a result of the video processing we have the red channel, green channel and blue channel of each frame in the video. This data coupled with the ground truth calculated using blood pressure monitor is saved in a CSV file. This CSV file is used to train various classifiers using weka.
  • 17. Video taken for calculating heart rate by tying the phone on the wrist
  • 18. Blood pressure monitor is used for determining the ground truth of heart rate
  • 19. Red channel, green channel, blue channel of each frame is extracted using matlab • xyloObj1 = VideoReader('C:UsersShiviDesktopdatahrp21.mov'); • vidFrames = read(xyloObj1); • nFrames = xyloObj1.NumberOfFrames; • A=ones(nFrames,3); • for i = 1:nFrames • im = read(xyloObj1,i); • for j = 1:3 • if j == 1 • redChannel = im(:, :, 1); • redMean = mean2(redChannel); • A(i,j)=A(i,j)*redMean; • elseif j == 2 • blueChannel = im(:, :, 2); • blueMean = mean2(blueChannel); • A(i,j)=A(i,j)*blueMean; • else • greenChannel = im(:, :, 3); • greenMean = mean2(greenChannel); • A(i,j)=A(i,j)*greenMean; • end • end • end • csvwrite('C:UsersShivicsvlist_p21.dat',A);
  • 21. Line graph for red channel of the entire video.
  • 22. Line graph for red channel of the walking activity followed by running activity.
  • 23. Decision Stump trained using hr.arff in Weka
  • 24. Frames Figure 3. Camera input sample Redchannelvalueineachfrmae
  • 25. Accelerometer data Time(seconds) Figure 4. Accelerometer data CoordinateValues
  • 26. Camera input sample Re d ch an nel val ue in ea ch fra me Frames Figure 6. Camera input sample when the subject is walking and jogging Redchannelvalueineachfrmae
  • 27. CLASSIFICATION ACCURACY OF ACCELEROMETER DATASET FOR ALL THE ALGORITHMS S.NO ALGORITHM RELATIVE ACCURACY 1. C4.5 Decision Trees 98.20% 2. RIPPER Decision Rules 98.34% 3. Naive Bayes 91.74% 4. 3-Nearest Neighbour 97.34% 5. Random Forest 98.39% 6. Bagging 98.48% 7. Adaboost M1 boosting 96.26%
  • 28. CLASSIFICATION ACCURACY OF HEART RATE DATASET FOR ALL THE ALGORITHMS S.NO ALGORITHM RELATIVE ACCURACY 1. C4.5 Decision Trees 94.60% 2. RIPPER Decision Rules 94.15% 3. Naive Bayes 69.81% 4. 3-Nearest Neighbour 95.74% 5. Random Forest 95.71% 6. Bagging 94.95% 7. Adaboost M1 boosting 25.35%
  • 29. Average build-time for Accelerometer dataset Timetobuild(seconds) Classifier Figure 7. Average build-time for Accelerometer dataset Buildtime(seconds)
  • 30. Average build-time for Heart-rate dataset Classifier Figure 8. Average build-time for Heart-rate dataset Buildtime(seconds)
  • 31. RELATIONSHIP BETWEEN PHYSICAL ACTIVITY AND HEART RATE FOR AN ELDERLY PERSON Heart rate ≤ 60 60 ≤ Heart Rate ≤ 100 77.5 ≤ Heart Rate ≤ 108.5 108.5 ≤ Heart Rate ≤ 131.75 Heart Rate ≥ 131.75 Resting Normal Abnormal Abnormal Moderate- intensity physical activity Abnormal Normal Normal Abnormal Vigorous- intensity physical activity Abnormal Abnormal Normal Normal
  • 32. S.No List of Various Components (modules) that require testing Type of Testing Required Technique for writing test Cases 1. Home Screen Performance White Box 2. Acquire X,Y,Z coordinates Performance White Box 3. Open Camera and record video Unit White Box 4. RGB value calculation Unit White Box 5. HeartRate CSV Unit White Box 6. Accelerometer CSV Unit White Box 7. Send CSV files over Bluetooth Unit White Box 8. Classification using rule based classifier Unit White Box
  • 33. • Item Pass/Fail Criteria • Passing criteria of any test plan at lower level will be completion of all test cases and only 10% cases to fail. As our program is complex type that is output of one module is input to other so we can’t take risk of high percentage of failure only exceptional cases should fail else it should pass. If a program tend to have too many fail test cases then it’s considered to be failed • • Passing criteria at high level would be completion of all lower level module successful implementation of test plans and none fails. In case lower level test plan fails then upper level plan too will fail.