Smartphone Motion Mode Recognition

Similar documents
PERFORMANCE ANALYSIS OF MLP AND SVM BASED CLASSIFIERS FOR HUMAN ACTIVITY RECOGNITION USING SMARTPHONE SENSORS DATA

Satellite and Inertial Attitude. A presentation by Dan Monroe and Luke Pfister Advised by Drs. In Soo Ahn and Yufeng Lu

Sponsored by. Nisarg Kothari Carnegie Mellon University April 26, 2011

ASC IMU 7.X.Y. Inertial Measurement Unit (IMU) Description.

Indoor navigation with smartphones

Improved Pedestrian Navigation Based on Drift-Reduced NavChip MEMS IMU

Wheel Health Monitoring Using Onboard Sensors

Wi-Fi Fingerprinting through Active Learning using Smartphones

PERSONS AND OBJECTS LOCALIZATION USING SENSORS

Vehicle Speed Estimation Using GPS/RISS (Reduced Inertial Sensor System)

Deep Learning for Human Activity Recognition: A Resource Efficient Implementation on Low-Power Devices

NavShoe Pedestrian Inertial Navigation Technology Brief

INTRODUCTION TO VEHICLE NAVIGATION SYSTEM LECTURE 5.1 SGU 4823 SATELLITE NAVIGATION

Pedestrian Navigation System Using. Shoe-mounted INS. By Yan Li. A thesis submitted for the degree of Master of Engineering (Research)

Utility of Sensor Fusion of GPS and Motion Sensor in Android Devices In GPS- Deprived Environment

Integrated Dual-Axis Gyro IDG-1004

INDOOR LOCATION SENSING AMBIENT MAGNETIC FIELD. Jaewoo Chung

A Positon and Orientation Post-Processing Software Package for Land Applications - New Technology

Characterization and Validation of Telemetric Digital based on Hall Effect Sensor

Reference Diagram IDG-300. Coriolis Sense. Low-Pass Sensor. Coriolis Sense. Demodulator Y-RATE OUT YAGC R LPY C LPy ±10% EEPROM TRIM.

Analysis of Compass Sensor Accuracy on Several Mobile Devices in an Industrial Environment

A Multiple Source Framework for the Identification of Activities of Daily Living Based on Mobile Device Data

Proceedings Statistical Evaluation of the Positioning Error in Sequential Localization Techniques for Sensor Networks

Human Activity Recognition using Single Accelerometer on Smartphone Put on User s Head with Head-Mounted Display

Wavelet Denoising Technique for Improvement of the Low Cost MEMS-GPS Integrated System

Measurement report. Laser total station campaign in KTH R1 for Ubisense system accuracy evaluation.

GPS-Aided INS Datasheet Rev. 2.6

Applications of Machine Learning Techniques in Human Activity Recognition

Voice Activity Detection

On-Line MEMS Gyroscope Bias Compensation Technique Using Scale Factor Nulling

Hardware-free Indoor Navigation for Smartphones

GPS-Aided INS Datasheet Rev. 2.3

GPS-Aided INS Datasheet Rev. 2.7

INDOOR HEADING MEASUREMENT SYSTEM

INDOOR LOCATION SENSING USING GEO-MAGNETISM

Sensing and Perception: Localization and positioning. by Isaac Skog

Cooperative navigation (part II)

Cooperative localization (part I) Jouni Rantakokko

A 3D Ubiquitous Multi-Platform Localization and Tracking System for Smartphones. Seyyed Mahmood Jafari Sadeghi

GPS-Aided INS Datasheet Rev. 3.0

Dynamic Angle Estimation

Intelligent Transport Systems and GNSS. ITSNT 2017 ENAC, Toulouse, France 11/ Nobuaki Kubo (TUMSAT)

On Attitude Estimation with Smartphones

Robust Positioning for Urban Traffic

Technology Challenges and Opportunities in Indoor Location. Doug Rowitch, Qualcomm, San Diego

Long-term Performance Evaluation of a Foot-mounted Pedestrian Navigation Device

REAL-TIME GPS ATTITUDE DETERMINATION SYSTEM BASED ON EPOCH-BY-EPOCH TECHNOLOGY

HG4930 INERTIAL MEASUREMENT UNIT (IMU) Performance and Environmental Information

Study of WLAN Fingerprinting Indoor Positioning Technology based on Smart Phone Ye Yuan a, Daihong Chao, Lailiang Song

Using Bluetooth Low Energy Beacons for Indoor Localization

If you want to use an inertial measurement system...

ISSN: ; e-issn

Classification of Misalignment and Unbalance Faults Based on Vibration analysis and KNN Classifier

Proceedings A Comb-Based Capacitive MEMS Microphone with High Signal-to-Noise Ratio: Modeling and Noise-Level Analysis

Extended Touch Mobile User Interfaces Through Sensor Fusion

A Compact Dual-Mode Wearable Antenna for Body-Centric Wireless Communications

Feature analysis of EEG signals using SOM

Detection and Identification of Remotely Piloted Aircraft Systems Using Weather Radar

SmartSenseCom Introduces Next Generation Seismic Sensor Systems

High Performance Advanced MEMS Industrial & Tactical Grade Inertial Measurement Units

Proceedings The First Frequency-Modulated (FM) Pitch Gyroscope

ARDUINO BASED CALIBRATION OF AN INERTIAL SENSOR IN VIEW OF A GNSS/IMU INTEGRATION

Introduction to Mobile Sensing Technology

Hybrid LQG-Neural Controller for Inverted Pendulum System

Performance Improvement of Receivers Based on Ultra-Tight Integration in GNSS-Challenged Environments

Automated Leak Detection System for the Improvement of Water Network Management

Integrated Positioning The Challenges New technology More GNSS satellites New applications Seamless indoor-outdoor More GNSS signals personal navigati

Positioning System Performance Based on Different Pressure Sensors

Privacy preserving data mining multiplicative perturbation techniques

Classification Experiments for Number Plate Recognition Data Set Using Weka

Artificial Beacons with RGB-D Environment Mapping for Indoor Mobile Robot Localization

Supervisors: Rachel Cardell-Oliver Adrian Keating. Program: Bachelor of Computer Science (Honours) Program Dates: Semester 2, 2014 Semester 1, 2015

Ubiquitous Positioning: A Pipe Dream or Reality?

Gait Recognition Using WiFi Signals

PROBLEM SET #7. EEC247B / ME C218 INTRODUCTION TO MEMS DESIGN SPRING 2015 C. Nguyen. Issued: Monday, April 27, 2015

Research Article A New PDR Navigation Device for Challenging Urban Environments

Chapter 4 SPEECH ENHANCEMENT

A Machine Learning Based Approach for Predicting Undisclosed Attributes in Social Networks

Design of Activity Recognition Systems with Wearable Sensors

MEMS Accelerometer Specifications and Their Impact in Inertial Applications

Detecting Resized Double JPEG Compressed Images Using Support Vector Machine

ASR-2300 Multichannel SDR Module for PNT and Mobile communications. Dr. Michael B. Mathews Loctronix, Corporation

Motion Reference Units

Development of a Low Cost 3x3 Coupler. Mach-Zehnder Interferometric Optical Fibre Vibration. Sensor

The Jigsaw Continuous Sensing Engine for Mobile Phone Applications!

Gesture Identification Using Sensors Future of Interaction with Smart Phones Mr. Pratik Parmar 1 1 Department of Computer engineering, CTIDS

Evaluation of a Low-cost MEMS Accelerometer for Distance Measurement

Range Sensing strategies

Development and Performance Analysis of a Class of Intelligent Target Recognition Algorithms

A Micromechanical Binary Counter with MEMS-Based Digital-to-Analog Converter

Revisions Revision Date By Changes A 11 Feb 2013 MHA Initial release , Xsens Technologies B.V. All rights reserved. Information in this docum

Motion Recognition in Wearable Sensor System Using an Ensemble Artificial Neuro-Molecular System

Analysis of the impact of map-matching on the accuracy of propagation models

Recognition System for Pakistani Paper Currency

Speech Enhancement Using Beamforming Dr. G. Ramesh Babu 1, D. Lavanya 2, B. Yamuna 2, H. Divya 2, B. Shiva Kumar 2, B.

On-site Traffic Accident Detection with Both Social Media and Traffic Data

Integrated Navigation System

GPS data correction using encoders and INS sensors

A smooth tracking algorithm for capacitive touch panels

Jussi Parviainen Studies on Sensor Aided Positioning and Context Awareness. Julkaisu 1408 Publication 1408

Transcription:

proceedings Proceedings Smartphone Motion Mode Recognition Itzik Klein *, Yuval Solaz and Guy Ohayon Rafael, Advanced Defense Systems LTD., POB 2250, Haifa, 3102102 Israel; yuvalso@rafael.co.il (Y.S.); guyoh@rafael.co.il (G.O.) * Correspondence: itzikkl@rafael.co.il; Tel.: 972-73-335-9222 Presented at the 4th International Electronic Conference on Sensors and Applications, 15 30 November 2017; Available online: http://sciforum.net/conference/ecsa-4. Published: 14 November 2017 Abstract: The possibility of using mobile devices, such as smartphones, for locating a person indoor is becoming more attractive for many applications. Among them are health care and safety services, commercial and emergency applications. One of the approaches to find the smartphone position is known as Pedestrian Dead Reckoning (PDR). PDR relies on the smartphone low-cost sensors, such as accelerometers, gyroscopes, barometer and magnetometers. An appropriate calibration phase to find the step length algorithm gains is required before PDR can be applied. These gains are very sensitive to the user and smartphone mode. In this research, we employ machine learning classifications algorithms in order to recognize and classify the pedestrian and smartphone modes. A methodology of training on a single user and testing on multiple users is proposed and experimentally evaluated Results show successes in classifying the user and smart phone modes. Keywords: mode recognition; machine learning; inertial sensors 1. Introduction The possibility of using mobile devices (such as smartphones) for locating a person is becoming more and more attractive for many applications. Among them are health care services, commercial applications, emergency applications and safety services as [1]. While in outdoors, the positioning of a person by its smartphone is usually based on Global Navigation Satellite Systems (GNSS) [2]. However, in indoor environments the availability of satellite signals cannot be guaranteed and GNSS based services can be highly degraded or totally denied. In such situations, one of the approaches to find the position of the smartphone is known as Pedestrian Dead Reckoning (PDR) [3,4]. PDR may rely on the smartphone low-cost sensors such as accelerometers, gyroscopes and magnetometers. In general, PDR uses the accelerometers to detect the pedestrian steps and then estimate the step length. Next, the heading is obtained from the gyroscopes and/or magnetometer. Given the pedestrian initial conditions and by using the current heading and step length size, the current pedestrian position can be found. An appropriate calibration phase to find the step length algorithm gains is required before PDR can be applied. These gains are very sensitive to the user and smartphone mode as recent papers such as [5], showed that by recognizing the mode of the smartphone (handheld, in a pocket, texting and etc) and/or the pedestrian (walking, running, elevator and etc.) [6] (and an comprehensive survey paper [7]) the accuracy of PDR algorithms can greatly be improved. In this research, we employ machine learning classifications algorithms in order to recognize and classify the smartphone modes. A methodology of training on a single user and testing on multiple users is proposed and experimentally evaluated Results show successes in classifying the user and smart phone modes. Proceedings 2018, 2, 145; doi:10.3390/ecsa-4-04929 www.mdpi.com/journal/proceedings

Proceedings 2018, 2, 145 2 of 7 The rest of the paper is organized as follows: Section 2 describes the methodology and strategy used for the mode recognition process. Section 3 presents the experimental setup and results and Section 4 gives the conclusions. 2. Methodology The overview of the classification process for mode recognition is illustrated in Figure 1. In the data acquisition phase, the data required for the training and prediction steps is collected using the smartphone sensors. In the classification phase, the data is being preprocessed (noise reduction, outliers rejection and etc.) and relevant features are extracted. Utilizing those features a classification model is chosen after processing the training data. The classification model is then used on the collected test data to perform mode recognition. 2.1. Strategy Figure 1. Overview of the classification process for mode recognition. In this research we use a single user with a single phone for data collection required in the training process. Of course, collecting data from multiple users and multiple phones would probably make the classifier more robust, yet we focus here on single phone and single user data collection. The collected data is based on the accelerometers and gyros raw data. Other smartphone sensors such as magnetometer, barometer, light sensor, sound-meter and etc are not used. The accelerometer and gyro raw data are a vector of specific force and a vector of the angular velocity, respectively. Given these vectors, their magnitude is calculated. Features are extracted based solely on the magnitudes of the specific force and angular velocity vectors. The specific force and angular rate vector components where not used because they are sensitivity to the smartphone orientation in the person hand or pocket. The magnitude based features are used in the training process which outputs the best classifier to be used in the prediction phase. The prediction phase input is a set of collected data from multiple users and multiple phones. The output of the prediction step is a measure of the accuracy of the chosen classifier to recognize the user and smartphone mode. This research strategy is illustrated in Figure 2. Figure 2. Research methodology.

Proceedings 2018, 2, 145 3 of 7 The data was collected during four smartphone modes: (1) pocket; (2) swing; (3) texting and (4) talking while the user is walking in normal or fast walking speed. 2.2. Smartphone Sensors We use only the inertial sensors of the smartphone, that is accelerometers and gyros for our analysis. The three-orthogonal accelerometers measures the specific force vector and the three-orthogonal gyroscopes measure the angular rate vector f = [ f x f y f z ] T (1) ω = [ω x ω y ω z ] T (2) both without an external reference [8,9]. The smartphone accelerometers and gyros are Micro-Electrical-Micro-Mechanical (MEMS) based sensors. Loosely speaking, the basic working principle of a MEMS accelerometer is described using a proof mass [2,10]. Consider, a proof mass which is free to move with respect to the accelerometer case along the accelerometer s sensitive axis, restrained by springs. When an accelerating force along the sensitive axis is applied to the case, it will move with respect to the mass until the acceleration of the mass due to the asymmetric forces exerted by the springs matches the acceleration of the case due to the externally applied force. The resultant position of the mass with respect to the case is proportional to the acceleration applied to the case. Thus, by measuring the position of the mass, the applied acceleration is found. MEMS gyros working principle can be described using a vibratory beam [2,10]. Consider, a vibratory beam element that is driven to undergo simple harmonic motion. Application of angular rate perpendicular to the motion of the beam gives rise to Coriolis acceleration along the axis perpendicular to both the driven vibration and the projection of the angular rate vector. Measuring the Coriolis acceleration enables the extraction of the applied angular rate. 2.3. Feature Extraction On each working window (as will be defined in the following section) two types of features are used: (1) statistical features and (2) time-domain features. All features were calculated on the magnitude of the specific force vector f m = f 2 x + f 2 y + f 2 z (3) and the magnitude of the angular rate ω m = ω 2 x + ω 2 y + ω 2 z (4) 2.3.1. Statistical Features Mean. The mean of a signal. Median. The median is the middle value separating the higher half of a data sample from the lower half. Standard deviation. The square root of the variance (measure of the spread of data around the mean). Average absolute difference. Measure of the spread of data around its mean, taking the absolute difference between values and the mean.

Proceedings 2018, 2, 145 4 of 7 Interquartile range (iqr). It is the difference between 75th percentile and 25th percentile of the data where percentile of Y% is the value separating the higher 100-Y% of a data sample from the lower Y% of the data. Skewness. A measure of the asymmetry of the probability distribution of a signal. Kurtosis. A measure of the tailedness of the probability distribution of a signal. Signal energy. The sum of the squares of signal values. Signal magnitude area. The sum of absolute values of a signal. Max. The maximum value in the window of the signal. Min. The minimum value in the window of the signal. Amplitude. The absolute difference between the maximum value and minimum value. 2.3.2. Time-Domain Features Number of peaks. The count of the number of maximum points within the desired window of the signal where the maximum points should be above a predefined value and located after w samples from the last maximum point. 2.3.3. Cross Sensor Features Gyro-Accelerometer Correlation. Is the cross-correlation coefficient between the gyro and acceleration sensors. Gyro-Accelerometer Maximum. The multiplication result of the gyro and acceleration maximum values. Gyro-Accelerometer Standard Deviation. The multiplication result of the gyro and acceleration standard deviation values. 3. Experimental Results and Discussion 3.1. Experimental Setup The acceleration and gyro data was collected in a sampling rate of 50 Hz. After the collection the corresponding magnitudes were evaluated. An outliers rejection algorithm was applied to remove samples which are over 3 standard deviations from the signal. On the remaining data a sliding window with length of 128 samples (2.5 s) was applied with an overlapping of 127 samples. The data was collected from a single smartphone and from a single user during four smartphone modes: (1) pocket; (2) swing; (3) texting and (4) talking while the user is walking in normal or fast walking speed. The total number of windows in each mode is presented in Table 1 for the training and test datasets. The test database was collected from six persons - five men and one woman with different smartphones. Table 1. Number of windows used for each smartphone mode Mode Number of Windows Training Number of Windows Test Pocket 38,492 6320 Swing 60,812 17,523 Talking 27,697 7348 Texting 27,434 13,655 3.2. The Learning Process We examined four types of machine-learning classifying algorithms [11,12]: (1) multi-class Support vector machine (SVM); (2) Random Forest (RF); (3) K-nearest neighbor (KNN) and (4) Multi-layer Perceptron classier (MLP). Accuracy was chosen as the performance measure in the

Proceedings 2018, 2, 145 5 of 7 presented analysis. Accuracy is the measure of the proportion of all cases which have been correctly classified out from the total cases. The accuracy of each classifier on the test dataset is given in Table 2. All classifier obtained an accuracy above 82.5% in particular RF achieved an accuracy of 86.7%. Table 2. Accuracy Results Classifier Accuracy (%) MLP 86.2 SVM 84.1 KNN 82.7 RF 86.7 Focusing on RF, the confusion matrix is illustrated in Figure 3. There, each column is the predicted motion mode as labeled at the bottom of the column while the true mode is labeled at the beginning of each row. The taking mode was best recognized with 96% accuracy while the swing mode was the worst recognized with 79% accuracy. It appears that the most challenging case was to distinguish the swing mode from texting and pocket modes. Figure 3. Confusion matrix of the four smartphone modes. Feature importance, based on RF classier, is shown in Figure 4. The most dominant feature is the gyro amplitude (ampgyro) followed by accelerometer amplitude (ampforce) and the amplitude multiplication between the two (AmpAccGyro). Other dominant features where the signal energy of the gyro (enygyro) and acceleromter (enygforce) and the number of peaks of the gyro and accelerometer (peaksgyro, peaksgforce).

Proceedings 2018, 2, 145 6 of 7 Figure 4. Feature importance. 4. Conclusions In this research we proposed and demonstrated a methodology for recognizing smartphone mode. Experimental results showed an accuracy of 86.7% in the mode recognition process. Such a mode recognition approach can help improve the performance of PDR algorithms. Conflicts of Interest: The authors declare no conflict of interest. References 1. Rainer, M. Indoor Positioning Technologies. Ph.D. Thesis, Swiss Federal Institute of Technology Zurich, Zurich, Switzerland, 2012. 2. Groves, P.D. Principles of GNSS, Inertial and Multisensor Integrated Navigation Systems, 2nd ed.; Artech House: Norwood, MA, USA, 2013. 3. Cliff, C.; Randell, D.; Muller, H.L. Personal position measurement using dead reckoning. In Proceedings of the Seventh IEEE International Symposium on Wearable Computers, White Plains, NY, USA, 21 23 October 2003; pp. 166 173. 4. Beauregard, S.; Haas, H. Pedestrian Dead Reckoning: A Basis for Personal Positioning. In Proceedings of the 3rd Workshop on Positioning, Navigation and Communication, Hannover, Germany, 16 March 2006. 5. Qian, L.; Ma, J.; Ying, R.; Liu, P.; Pei, P. An improved indoor localization method using smartphone inertial sensors. In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation (IPIN), Montbeliard-Belfort, France, 28 31 October 2013; pp. 1 7. 6. Elhoushi, M.; Georgy, J.; Noureldin, A.; Korenberg, M. Online motion mode recognition for portable navigation using low-cost sensors. J. Inst. Navig. 2015, 62, 273 290. 7. Elhoushi, M.; Georgy, J.; Noureldin, A.; Korenberg, M. A Survey on approaches of motion mode recognition using sensors. IEEE Trans. Intell. Transp. Syst. 2017, 18, 1662 1686. 8. Jekeli, C. Inertial Navigation Systems with Geodetic Applications; Walter de Gruyter: Berlin, Germany, 2000. 9. Titterton, D.H.; Weston, J.L. Strapdown Inertial Navigation Technology, 2nd ed.; The American Institute of Aeronautics and Astronautics and the institution of electrical engineers: Reston, VA, USA, 2004. 10. Kempe, V. Inertial MEMS Principles and Practice; Cambridge University Press: Cambridge, UK, 2011.

Proceedings 2018, 2, 145 7 of 7 11. Hastie, T.; Tibshirani, R.; Friedman, J. The Elements of Statistical Learning, Data Mining, Inference and Prediction, 2nd ed.; Springer: Berlin, Germany, 2009. 12. Raschka, S. Python Machine Learning; Packt Publishing: Birmingham, UK, 2016. c 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).