MOVEMENT DETECTION IN THE ACCELEROMETER DATA

Similar documents
ECG SIGNAL PROCESSING AND HEART RATE FREQUENCY DETECTION METHODS

Heart Rate Detection from Ballistocardiogram

Accurate, Fast Fall Detection Using Gyroscopes and Accelerometer-Derived Posture Information

MATLAB-based Applications for Image Processing and Image Quality Assessment Part II: Experimental Results

AUDIO POINTER V2 JOYSTICK & CAMERA IN MATLAB

Advanced Ensemble Strategies for Polynomial Models

Enhancing the SNR of the Fiber Optic Rotation Sensor using the LMS Algorithm

Accurate, Fast Fall Detection Using Gyroscopes and Accelerometer-Derived Posture Information

DESIGN AND DEVELOPMENT OF FALL DETECTOR USING FALL ACCELERATION

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

POTENTIAL OF STATE-FEEDBACK CONTROL FOR MACHINE TOOLS DRIVES

VLSI DESIGN FOR HUMAN HEALTH MONITERING AND MEDICAL ALERT SYSTEM BASED ON FPGA, MEMS AND SPECIAL SENSOR NETWORK

Software Tool for Cardiologic Data Processing

INTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATION ENGINEERING & TECHNOLOGY (IJECET)

Understanding Dynamic Range in Acceleration Measurement Systems. February 2013 By: Bruce Lent

A Secure Online Reputation Defense System from Unfair Ratings using Anomaly Detections

A New Concept of PTP Vector Network Analyzer

Signal to Noise Instrumental Excel Assignment

Medical Image Segmentation of PACS System Image Post-processing *

The CUSUM algorithm a small review. Pierre Granjon

A PHOTOGRAMMETRIC APPRAOCH FOR AUTOMATIC TRAFFIC ASSESSMENT USING CONVENTIONAL CCTV CAMERA

MODELING OF CAVITATION FLOW ON NACA 0015 HYDROFOIL

Detection and Restoration of Vertical Non-linear Scratches in Digitized Film Sequences

PC BASED PID TEMPERATURE CONTROLLER

Self-Evaluation Configuration for Remote Data Logging Systems

Effective Use of Android Sensors Based on Visualization of Sensor Information

Body-Area Instrumentation for Avoidance of Workplace Injury

Overview of Slip Control Methods Used in Locomotives

Formulations of Model Predictive Control. Dipartimento di Elettronica e Informazione

How To Filter Spam Image From A Picture By Color Or Color

PURE TONE AUDIOMETER

Analecta Vol. 8, No. 2 ISSN

A4, Empower3 Processing Tips and Tricks

dspace DSP DS-1104 based State Observer Design for Position Control of DC Servo Motor

A Fuzzy System Approach of Feed Rate Determination for CNC Milling

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Multi-Person Pose Recognition Using a Zigbee Sensor Network

IMPLEMENTATION OF THE ADAPTIVE FILTER FOR VOICE COMMUNICATIONS WITH CONTROL SYSTEMS

Experiment 4: Sensor Bridge Circuits (tbc 1/11/2007, revised 2/20/2007, 2/28/2007) I. Introduction. From Voltage Dividers to Wheatstone Bridges

Multimodal Biometric Recognition Security System

Automatic Fall Detector based on Sliding Window Principle

THE MS KINECT USE FOR 3D MODELLING AND GAIT ANALYSIS IN THE MATLAB ENVIRONMENT

Fingerprint s Core Point Detection using Gradient Field Mask

Voice Quality Planning for NGN including Mobile Networks

Electrical Resonance

Super-resolution method based on edge feature for high resolution imaging

Evaluation of Heart Rate Variability Using Recurrence Analysis

COMPREHENSIVE MATLAB TOOL FOR HRTF MEASUREMENT AND VIRTUAL AUDITORY SPACE TESTING

Implementation of Fuzzy and PID Controller to Water Level System using LabView

Series and Parallel Resistive Circuits

Accelerometer Based Real-Time Gesture Recognition

This document is downloaded from DR-NTU, Nanyang Technological University Library, Singapore.

Deflections. Question: What are Structural Deflections?

Recognition of false alarms in fall detection systems

Transition Bandwidth Analysis of Infinite Impulse Response Filters

The Calculation of G rms

Whitepaper. Image stabilization improving camera usability

SPINDLE ERROR MOVEMENTS MEASUREMENT ALGORITHM AND A NEW METHOD OF RESULTS ANALYSIS 1. INTRODUCTION

Automated Monitoring System for Fall Detection in the Elderly

REAL TIME TRAFFIC LIGHT CONTROL USING IMAGE PROCESSING

Using Received Signal Strength Variation for Surveillance In Residential Areas

Lab 7: Rotational Motion

Position Estimation and Hospital Guidance Systems

INVESTIGATION OF DEFORMATION BEHAVIOUR OF ALUMINIUM FOAM UNDER HIGH-STRAIN RATE LOADING AND COMPARISON WITH CONVENTIONAL ENERGY ABSORBING MATERIAL

A new cost model for comparison of Point to Point and Enterprise Service Bus integration styles

Experiment #11: LRC Circuit (Power Amplifier, Voltage Sensor)

Static Environment Recognition Using Omni-camera from a Moving Vehicle

Stabilizing a Gimbal Platform using Self-Tuning Fuzzy PID Controller

New Modelling Capabilities in Commercial Software for High-Gain Antennas

Analysis of Wing Leading Edge Data. Upender K. Kaul Intelligent Systems Division NASA Ames Research Center Moffett Field, CA 94035

MATLAB-based Applications for Image Processing and Image Quality Assessment Part I: Software Description

The Combination Forecasting Model of Auto Sales Based on Seasonal Index and RBF Neural Network

New Hash Function Construction for Textual and Geometric Data Retrieval

See Horenstein 4.3 and 4.4

Convolution. The Delta Function and Impulse Response

Flexible mobility management strategy in cellular networks

TOPIC 4: DERIVATIVES

Chapter 2 The Research on Fault Diagnosis of Building Electrical System Based on RBF Neural Network

The front end of the receiver performs the frequency translation, channel selection and amplification of the signal.

Selecting Current Transformers Part 1 By Darrell G. Broussard, P.E.

Semantic Video Annotation by Mining Association Patterns from Visual and Speech Features

PASSENGER/PEDESTRIAN ANALYSIS BY NEUROMORPHIC VISUAL INFORMATION PROCESSING

Matlab GUI for WFB spectral analysis

Circle Object Recognition Based on Monocular Vision for Home Security Robot

Lyapunov Stability Analysis of Energy Constraint for Intelligent Home Energy Management System

Long term Predictive Ability of Bankruptcy Models in the Czech Republic: Evidence from

Social Innovation through Utilization of Big Data

The Monitoring Technology for the Latent Risk Population

Frequency Response of Filters

AP CALCULUS AB 2007 SCORING GUIDELINES (Form B)

The Effects of Start Prices on the Performance of the Certainty Equivalent Pricing Policy

Analysis of the use of measurement systems using computers in a school science laboratory at primary schools in the Czech Republic

Building an Advanced Invariant Real-Time Human Tracking System

Structural Axial, Shear and Bending Moments

Automated Process for Generating Digitised Maps through GPS Data Compression

Synchronization of sampling in distributed signal processing systems

Automatic Calibration of an In-vehicle Gaze Tracking System Using Driver s Typical Gaze Behavior

Analog Signal Conditioning

Power Measurement in Cycling using inductive Coupling of Energy and Data (P80)

Adaptive Equalization of binary encoded signals Using LMS Algorithm

Transcription:

MOVEMENT DETECTION IN THE ACCELEROMETER DATA Jan Machek 1, Jakub Parak 1, Jan Havlik 1 1 Deparment of Circuit Theory, Faculty of Electrical Engineering, CTU in Prague Abstract In this article, the algorithms for movement detection in the accelerometer data are described. Two algorithms for movement detection in signal were designed. The purpose of these algorithms is to detect the start and end of the changes which represent movements sections in data. The ways of approaching this issue include second differentiation, points of the inflection, CUSUM algorithm and peak detection. The algorithms were tested on the accelerometer data which were acquired during human body movements. The body movements were based on exercises from Tinneti s balance assessment tool. Moreover the next test data were acquired during rehabilitation exercises after hip joint replacement. The automatic method for angle range computation were designed and tested on this data as well. Keywords accelerometer data, movement detection, differentiation, points of inflection, peak detection, cusum Introduction The inertial sensors like accelerometers have wide range of the applications. The one of the possible ways how to use them is detection of the human body movements or postures [1, 2]. The accelerometer sensors could be applied in the patient s rehabilitation diagnostic for various kind of diseases for example joint rehabilitation process [3]. They can be applied in treatment process as well. The one of the application is the diagnostic exercises from the Tinneti s balance assessment test tool [4]. The next applications are rehabilitation exercises after the hip joint replacement [5]. In addition the acquired data should to be processed for next applications. The automatic detection of movements in acquired accelerometer signal could be used for improving the patients diagnostic and treatment. This article describes design of the two robust algorithms. These algorithms were tested on real acquired data from human body movements. The first test data were measured by accelerometer sensors that were placed on human body during exercising the Tinneti s balance assessment tool tests. The second data were acquired during rehabilitation exercises after hip joint replacement. In addition the special angle range computation method were designed and tested on this data from exercises after hip joint replacement. This method was compared with hand computed results from article [5]. All tested methods on the various types of signals are discussed in the conclusion of this contribution. Movement detection algorithms The first algorithm description The first algorithm is based on calculus basics. First of all the signal has to be filtered, because it contains a lot of noise. To filter the base signal finite impulse response (FIR) low-pass filter is applied. Considering the fact that the goal of the algorithms design was not the optimization, used FIR filter is high-order. That way the signal can be as clean as it is possible without any construction limitations. After the base signal is filtered, it is differentiated and then differentiated again. To smooth the second differentiation down the FIR low-pass filter is applied again. Now, the points of inflection can be found. The point of inflection is a point on a curve at which the second differentiation equal zero. Also it is a point on a curve at which the curvature or concavity changes sign. There are usually several inflection points, but only a few marks out a major change in signal. To find those major change points the algorithm loops over all inflection points. When an inflection point is examined the algorithm compares the mean value of that point left base signal curve neighborhood and the mean value of the right neighborhood. If one of those means is higher than the other multiplied by a positive constant it is a point of change in signal. If the left mean value is greater than the right mean value it means the change in the signal is negative and if the right mean value is greater than the left mean values it means the change is positive.

In this part only the outer points of the whole change curve are examined. The size of the left and right neighborhoods and the multiplication constant were determined experimentally. The second algorithm description The second approach is similar. First the base signal is smoothed down by finite impulse response low-pass filter. Then CUSUM algorithm is used. CUSUM means cumulative sum which is computed on base of this equation: CUSUM(1) = 0 + (fbs(1) - mu) CUSUM(i) = CUSUM(i-1) + (fbs(i) mu), (1) where fbs is filtered base signal and mu is the mean of the base signal. Now the second differentiation of the CUSUM curve is computed. Then peaks and valleys are found by using peak detector [6]. To find the start points of the change in positive direction the mean of peaks has to be calculated. Peaks that are higher than this mean are detected. To fine tune the algorithm there is a constant multiplying the mean value. For every peak detected this way, the closest point of inflection that has lower (time) index has to be found. That is the point of positive change in the base signal. To find the points of negative change the valley lower that all valleys mean has to be detected. The points of negative change are the closest points of inflection that has higher index then the valley. The movement detection results In the Figure 1 is shown the measured data and on the x axis points of movement detection which were obtain by the first described algorithm. The application of the second algorithm on the measured data is displayed in the Figure 2. The data were measured on accelerometers during exercising the Tinneti s balance assessment tool tests. Fig. 2b: The first algorithm results. Fig. 2a: The second algorithm results. Fig. 2b: The second algorithm results. Fig. 1a: The first algorithm results.

Angle range computation The algorithm description To compute the full angle range of the changes in movement the top of each change has to be found. It is done by a straightforward modification of the two algorithms described in the previous section. The inner inflection points are noticed as well in the first algorithm. With the CUSUM algorithm not only the closest points of inflection with lower indices than the peak value indices with the value greater than peak value mean have to be found, but to compute the summits of changes in the base signal the closest points of inflection with higher indices than the peak value indices have to be computed. The almost same thing has to be done with CUSUM curve valleys lower than all valleys mean. The outer points of change are the inflection points with higher indices than the valleys with value lower then all valleys mean. And then the inner points of change are the inflection points with lower indices than the valleys with value lower then all valleys mean. Values of major changes in the base signal have to be computed. With the points of base and peak of each change in the signal the change value is the difference between these two points. Making these algorithms more accurate in the change value computation the constants has been adjusted to detect more points of inflection in the second differentiation of the base signal and in the CUSUM curve. Then the differences between each two points we have detected is computed. In the first algorithm values with the same sign between close points are added. This is done due to lowered requirements on the points of inflection detection. Two points of inflection that meet the algorithm requirements can be detected on a single change curve. With variety of different movement signals in mind only the major changes are noticed. To filter out the minor ones the threshold is set. The threshold value has been set empirically due to the signals the algorithms have been tested on. results and values obtained from both designed methods. The hand computed angle ranges were obtained from the article [5]. Fig. 3: Computation points in the signal data. Fig. 4: Computation points in the signal data. Angle range computation results Designed algorithms were compared on the real data from human leg movements during a physiotherapeutic exercise after hip joint replacement. The positive angle changes were computed by the both of algorithms and in hand as well. The signal data are displayed in the Figures 3, 4 and 5. In the Figures 6, 7 and 8 are displayed details. The final results can be seen in the Tab. 1. For the comparison are in the table listed hand computed Fig. 5: Computation points in the signal data.

Tab. 1: Algorithms comparison Fig. 6: Zoomed segment of Fig.3 signal data. 1. range [ ] 2. range [ ] 3. range [ ] Data displayed in fig.3 Hand computed 5.700 3.570 3.900 First algorithm 4.892 2.775 4.385 CUSUM 5.297 1.640 2.823 Data displayed in fig.4 Hand computed 5.180 6.680 8.060 First algorithm 4.701 6.723 6.745 CUSUM 4.384 6.851 6.549 Data displayed in fig.5 Hand computed 6.870 4.440 4.630 First algorithm 7.029 2.524 2.892 CUSUM 6.729 4.765 2.650 Conclusion Fig. 7: Zoomed segment of Fig.4 signal data. Two algorithms for movement detection in the accelerometer sensor data were designed. The first algorithm is focused on differential signal processing methods and the second is created on CUSUM method. The both of the designed algorithms were applied on real data and have very good results. The algorithm for angle range computation was designed as well. It was tested on real data as well. Proposed algorithms were compared with each other and with experimentally hand computed values. The results are presented in the table above. The first algorithm show better accuracy than the CUSUM method. However the CUSUM method is much more stable and robust and fits better. In the future the algorithms will tested on other accelerometer data from patient s rehabilitation and treatment process. The results of designed algorithms will be compared with other change detection methods like Bayesian changepoint detection or Shewhart Control Charts. Acknowledgement Fig. 8: Zoomed segment of Fig.5 signal data. This work has been also supported by the research program No. MSM 6840770012 of the Czech Technical University in Prague (sponsored by the Ministry of Education, Youth and Sports of the Czech Republic). This work has been also supported by the grant No. SGS12/143/OHK3/2T/13 of the Czech Technical University in Prague

References [1] F. Ioana-Iuliana. D. Rodica-Elena, Detection of daily movements from data collected with two tri-axial accelerometers, in Proc.34th International Conference on Telecommunications and Signal Processing (TSP), Hungary 2011, p. 376 380. [2] Li Qiang, J.A. Stankovic, M.A. Hanson, A.T. Barth, J. Lach, Gang Zhou, Accurate, Fast Fall Detection Using Gyroscopes and Accelerometer-Derived Posture Information, in Proc Sixth International Workshop on Wearable and Implantable Body Sensor Networks, USA 2009, p.138-143. [3] J. Martin-Moreno, D. Ruiz-Fernandez, A. Soriano-Paya, V. J. Berenguer-Miralles, Monitoring 3D movements for the rehabilitation of joints in physiotherapy, in Proc 30th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Canada 2008, p. 4836 4839. [4] J. Parak, L. Talackova, J. Havlik, L. Lhtoska, Rehabilitation of patients using accelerometer: First experiment, Lékař a technika, 2012, vol. 2, pp 65 68. [5] L. Talackova, J. Parak, J. Havlik, L. Lhtoska, in Proc. Smart Homes 2012, Prague 2012 (in press). [6] Mike Brooks. (2005). Peak detector. [Online]. Available: http://www.ee.ic.ac.uk/hp/staff/dmb/voicebox/doc/voicebox/fin dpeaks.html Jan Machek Department of Circuit Theory Faculty of Electrical Engineering Czech Technical University in Prague Technicka 2, 166 27, Prague, Czech Republic E-mail:macheja2@fel.cvut.cz