Prediction of Road Surface Quality during Cycling Using Smartphone Accelerometer Data

Similar documents
Kinematic Differences between Set- and Jump-Shot Motions in Basketball

Love at first try? How reliable is a first impression for selecting a golf putter?

Variable Face Milling to Normalize Putter Ball Speed and Maximize Forgiveness

Measurement of dynamic comfort in cycling using wireless acceleration sensors

Effect of the Grip Angle on Off-Spin Bowling Performance Parameters, Analysed with a Smart Cricket Ball

Bayesian Optimized Random Forest for Movement Classification with Smartphones

Effect on Bowling Performance Parameters When Intentionally Increasing the Spin Rate, Analysed with a Smart Cricket Ball

Available online at ScienceDirect. The 2014 Conference of the International Sports Engineering Association

Vibration Analysis and Test of Backup Roll in Temper Mill

Available online at Prediction of energy efficient pedal forces in cycling using musculoskeletal simulation models

Impact Points and Their Effect on Trajectory in Soccer

Accelerometers: An Underutilized Resource in Sports Monitoring

ROSE-HULMAN INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering. Mini-project 3 Tennis ball launcher

Towards determining absolute velocity of freestyle swimming using 3-axis accelerometers

Effects of foot-pedal interface rigidity on high frequency cycling acceleration. John Romanishin

PREDICTING the outcomes of sporting events

Available online at ScienceDirect. Procedia Engineering 112 (2015 )

Title: 4-Way-Stop Wait-Time Prediction Group members (1): David Held

Fall Prevention Midterm Report. Akram Alsamarae Lindsay Petku 03/09/2014 Dr. Mansoor Nasir

Aalborg Universitet. Published in: Proceedings of Offshore Wind 2007 Conference & Exhibition. Publication date: 2007

On the Exposure of Hands to Vibration in Road Cycling: An Assessment of the Effect of Gloves and Handlebar Tape

Roundabouts along Rural Arterials in South Africa

Experiment of a new style oscillating water column device of wave energy converter

Complete Street Analysis of a Road Diet: Orange Grove Boulevard, Pasadena, CA

Available online at ScienceDirect. Procedia Engineering 112 (2015 )

Human Performance Evaluation

ScienceDirect. Relating baseball seam height to carry distance

Available online at ScienceDirect. Procedia Engineering 112 (2015 )

Optimal Football Pressure as a Function of a Footballer s Physical Abilities

Spatial Methods for Road Course Measurement

Video Based Accurate Step Counting for Treadmills

Fall Detection by Helmet Orientation and Acceleration during Bike Riding

Keywords: multiple linear regression; pedestrian crossing delay; right-turn car flow; the number of pedestrians;

Effects of seam and surface texture on tennis balls aerodynamics

Available online at ScienceDirect. Energy Procedia 53 (2014 )

CS 528 Mobile and Ubiquitous Computing Lecture 7a: Applications of Activity Recognition + Machine Learning for Ubiquitous Computing.

Evaluation and Improvement of the Roundabouts


LYNNWOOD ROAD ARTERIAL STUDY The effect of intersection spacing on arterial operation

Title: Modeling Crossing Behavior of Drivers and Pedestrians at Uncontrolled Intersections and Mid-block Crossings

DATA MINING SAMPLE RESEARCH: ACTIVITY RECOGNITION CLASSIFICATION IN ACTION

EUCLID AVENUE PARKING STUDY CITY OF SYRACUSE, ONONDAGA COUNTY, NEW YORK

TEST REPORT. To determine the efficacy of a scanner intended to detect the presence of hidden electric motors in carbon bicycles.

BIOMECHANICAL EVALUATION OF RUNNING AND SOCCER SHOES: METHODOLOGY AND TESTING PROCEDURES. Ewald M. Hennig

Characteristics of modern soccer balls

At each type of conflict location, the risk is affected by certain parameters:

An Analysis of Reducing Pedestrian-Walking-Speed Impacts on Intersection Traffic MOEs

A Traffic Operations Method for Assessing Automobile and Bicycle Shared Roadways

Usage differences between bikes and e-bikes

Increased streamer depth for dual-sensor acquisition Challenges and solutions Marina Lesnes*, Anthony Day, Martin Widmaier, PGS

Bicycle Fit Services

ScienceDirect. Aerodynamics of ribbed bicycle racing helmets

Naval Postgraduate School, Operational Oceanography and Meteorology. Since inputs from UDAS are continuously used in projects at the Naval

Gdynia s bicycle model

World Leading Traffic Analysis

u = Open Access Reliability Analysis and Optimization of the Ship Ballast Water System Tang Ming 1, Zhu Fa-xin 2,* and Li Yu-le 2 " ) x # m," > 0

sensors ISSN

Jogging and Walking Analysis Using Wearable Sensors *

Bicycle Safety Map System Based on Smartphone Aided Sensor Network

Optimization of an off-road bicycle with four-bar linkage rear suspension

Cricket umpire assistance and ball tracking system using a single smartphone camera

CS 7641 A (Machine Learning) Sethuraman K, Parameswaran Raman, Vijay Ramakrishnan

Development and implementation of an ibeacon based Time Keeping System for Mountain Trails

A Feedback System for the Motor Learning of Skills in Golf

Aspects Regarding Priority Settings in Unsignalized Intersections and the Influence on the Level of Service

Measuring Sound Speed in Gas Mixtures Using a Photoacoustic Generator

Gait Recognition. Yu Liu and Abhishek Verma CONTENTS 16.1 DATASETS Datasets Conclusion 342 References 343

Smart-Walk: An Intelligent Physiological Monitoring System for Smart Families

BASKETBALL PREDICTION ANALYSIS OF MARCH MADNESS GAMES CHRIS TSENG YIBO WANG

ScienceDirect. Aerodynamic body position of the brakeman of a 2-man bobsleigh

Development of a load model for men-induced loads on stairs

Available online at Procedia Engineering 200 (2010) (2009)

Bicycle and Pedestrian Level of Service Evaluation

PUV Wave Directional Spectra How PUV Wave Analysis Works

Analysis of stroke technique using acceleration sensor IC in freestyle swimming

THE FUTURE OF CYCLING

COMPARISON DRIVO - DIRETO

BOTTOM MAPPING WITH EM1002 /EM300 /TOPAS Calibration of the Simrad EM300 and EM1002 Multibeam Echo Sounders in the Langryggene calibration area.

Special edition paper

Tutorial for the. Total Vertical Uncertainty Analysis Tool in NaviModel3

Test Method of Trap Performance for Induced Siphonage

Bicyclist Lateral Roadway Position versus Motorist Overtaking Distance

Using Spatio-Temporal Data To Create A Shot Probability Model

Influence of Toe-Hang vs. Face-Balanced Putter Design on Golfer Applied Kinetics

The validity of a rigid body model of a cricket ball-bat impact

Residual Stresses in Railway Axles

67. Sectional normalization and recognization on the PV-Diagram of reciprocating compressor

Introduction to Pattern Recognition

Image Based Stroke-Rate Detection System for Swim Race Analysis

Literature Review: Final

A Review of Roundabout Safety Performance in the United States

ScienceDirect. Rebounding strategies in basketball

Detecting and Sonifying Temporal Patterns of Body Segments When Batting

Saturation flow mathematical model based on multiple combinations of lane groups

A Multimodal Sensing Platform for Cyclist Risk Perception in Urban Scenarios

An experimental study of internal wave generation through evanescent regions

Wind Directional Effect on a Single Storey House Using Educational Wind Tunnel

Walking with coffee: when and why coffee spills

Heart Rate Prediction Based on Cycling Cadence Using Feedforward Neural Network

Create a road in your house

Transcription:

Proceedings Prediction of Road Surface Quality during Cycling Using Smartphone Accelerometer Data Stefan Litzenberger 1,2, *, Troels Christensen 1,2, Otto Hofstätter 1 and Anton Sabo 1,2 1 Institute for Biomedical, Health and Sports Engineering, University of Applied Sciences Technikum Wien, Vienna 1200, Austria; troels92@hotmail.com (T.C.); hofstaet@technikum-wien.at (O.H.); sabo@technikum-wien.at (A.S.) 2 School of Aerospace, Mechanical and Manufacturing Engineering, RMIT University, Melbourne 3083, Australia * Correspondence: litzenberger@technikum-wien.at; Tel.: +43-133-34077-377 Presented at the 12th Conference of the International Sports Engineering Association, Brisbane, Queensland, Australia, 26 29 March 2018. Published: 22 February 2018 Abstract: Many cyclists use online-maps for planning their routes, however, only little information is known about the road surface of different cycling paths, farm or public roads. Cyclists prefer road surfaces fitting the type of bike they are using for a specific ride (e.g., time trial, road, MTB, cyclocross, gravel bike). Often riders upload their ride data including GPS, heart rate (HR) or power (P) on platforms like Strava or Garmin Connect. In this research we tried to evaluate whether it is possible to (1) evaluate the road surface quality using a 3D accelerometer mounted on the bicycle s fork (f = 500 Hz) and whether (2) results of similar quality can be achieved using the accelerometer of a smartphone (f = 100 Hz) placed in the cyclist s pocket. For data acquisition a cyclist rode on a cyclocross bicycle on three different road surfaces (cobblestones, gravel and tarmac) with three different speeds (10, 20 and 30 km/h) and three different tire pressures (3, 4 and 5 bar). Data of both measuring systems were analyzed using machine learning algorithms. Results showed that road surfaces could be predicted with more than 99% accuracy with the accelerometer and with more than 97% with the smartphone-data. Keywords: cycling; road surface; machine learning; accelerometer data 1. Introduction The popularity of cycling has increased within the last decades, whereas the bicycle is now the first choice as a means of transportation in many countries worldwide due to its practical application, efficiency, low costs and related health benefits [1]. Along with its increasing demand, a necessity for planning and constructing safe bicycle paths has arisen. As it is a quite costly process, cyclists route choices have often been surveyed in order to obtain reliable data which would favor the cyclists needs and demands. Among the demands, comfort seems to be highly desired when choosing a path [2]. It has further been agreed that factors such as environmental, mechanical, biomechanical and physiological influences all impact the level of cycling comfort [3]. Of these, environmental factors such as traffic, lane width and geometry along with the surroundings have shown to significantly affect cyclists assessment of the bicycle path comfort [4]. Different road surfaces affect cyclists perception of comfort differently, whereas smoother surfaces are generally preferred yielding optimal comfortable features for riding and thereby requiring lower energy output. Oppositely, rougher road types that are less comfortable and harder to ride have shown to discourage certain cyclists from riding upon such surfaces [2,5,6]. Proceedings 2018, 2, 217; doi:10.3390/proceedings2060217 www.mdpi.com/journal/proceedings

Proceedings 2018, 2, 217 2 of 6 Therefore, research has lately been concentrated around bicycle comfort, for which has been widely regarded as one of the most important aspects, commonly investigated through various vibration tests [1]. It has further been found that of the common types of road surfaces, tarmac exhibits the highest level of comfort, while also it decreases with increasing velocity [5]. Giubilato and Petrone [7] studied the vibration response to road surface, while they also showed that the level of comfort for different wheels varies with the road surface and speed. However, regarding cycling as a sport the demands of athletes on road surface type and quality differ from those of commuters and leisure-time cyclists. Many athletes want to ride certain surface types (e.g., off-road, gravel-roads, tarmac) depending on the type of bike they are using. They would go for smooth tarmac if riding a time trial bicycle, for gravel roads with their gravel or cyclocrossbikes and off-road with mountain-bikes. Many of these cyclists use online route-planning for longer rides. However, most of the websites (cf. www.strava.com) use popularity of routes for planning by collecting the smartphone or GPS-device data of uploaded rides, but do not give any information on road surface type or quality. Hence adding information about road type and quality could improve individualized routing options for cyclists planning their ride. In this research we tried to evaluate whether it is possible to (1) evaluate the road surface quality using a 3D accelerometer mounted on the bicycle s fork and whether (2) results of similar quality can be achieved using the accelerometer of a smartphone placed in the cyclist s pocket. 2. Materials and Methods Figure 1 shows the measurement setup of the bicycle, where a Merida 500 cyclocross bicycle of frame size 52 cm was used (measurement setup and trials conducted are described in more detail in the work of Christensen [8]). A tri-axial capacitance accelerometer (MMA7260Q, Freescale Semiconductor, Austin, TX, USA) was securely strapped to the front fork of the bicycle (Figure 1). For data storage a data-logger (Logomatic v2, SparkFun Electronics, Boulder, CO, USA) was used with a sensitivity of 200 mv/g, acceleration range ± 6.0 g and sampling with a frequency of 500 Hz. The attached accelerometer was mounted in a tilted orientation determined to be 18.66 from vertical. Figure 1. Merida 500 cyclocross bicycle equipped with accelerometer, data logger and speedometer. Furthermore, a Samsung Galaxy S4 mini Smartphone (Samsung, Daegu, KOR), running Android 6.0 (Google LLC, Mountain View, CA, USA), was placed in the back pocket of the test subject s pants while conducting the test trials. The smartphone was recording data through the application Physics Toolbox Sensor Suite (Vieyra Software, Washington, DC, USA) and sampling with a frequency of 100 Hz. All measurements were conducted the same day, where the following surfaces were tested: cobblestones, gravel, and tarmac (Figure 2). The surfaces generally showed similarity in structure and condition, where straight and flat sections of approximately 100 m were selected for testing. Each

Proceedings 2018, 2, 217 3 of 6 surface, three different speeds (10, 20, 30 km/h) and three tire pressures (3, 4, 5 bar) were tested resulting in nine trials per surface. Figure 2. From left to right tested road surface sections all located in Vienna, AUT: Cobblestones (48 15 31.8 N 16 21 50.5 E), gravel (48 15 26.0 N 16 22 37.5 E) and tarmac (48 15 21.1 N 16 22 46.3 E). Data files from the data-logging device were exported as.txt files, while recordings from the smartphone were exported as.csv files. Data was processed in Matlab 2017b (The MathWorks Inc., Natick, MA, USA). Data were trimmed to contain the vibrational test trials only and an offset correction for all channels was conducted thus resulting in acceleration values oscillating around zero. The acceleration signals were then divided into time windows containing one or two seconds of the data acquired, respectively. From the time windows applied, a total of 16 features for each channel (ax, ay, az and ares) was extracted resulting in a total of 64 features. These features of the acceleration signal were: mean (a-mean), maximum (a-max), minimum (a-min), mean peak distance (mean-peakdist), mean peak amplitude (mean-peaks), median frequency of the fast Fourier transformed (fft)-signal (median-fft), frequency of the maximum fft-signal power (max-fft-loc), frequency of the minimum fft-signal power (min-fft-loc), maximum fft-signal power (max-fft-pk), minimum fft-signal power (max-fft-pk), mean positive gradient (mean-grad-pos), mean negative gradient (mean-grad-neg), maximum positive gradient (max-grad-pos), minimum positive gradient (min-grad-pos), maximum negative gradient (max-grad-neg), and minimum negative gradient (min-grad-neg). Additionally two different classification parameters were added to the feature list. Firstly 27 unique classifiers including surface, tire pressure and riding velocity, secondly only three unique classifiers consisting of the three surfaces examined. After having prepared the data in the fashion mentioned above, machine learning algorithms (MLA) were applied onto the datasets. A classification learner routine was conducted with the two different classifiers and all features. This was done for the features extracted from both the one and two second windows for acceleration sensor as well as phone data. Firstly the 27 unique classifiers, secondly only three classifiers were applied using a total of 22 different machine learning algorithms from the categories decision tree, linear and quadratic discriminant, support vector machine (SVM) and k nearest neighbor (knn). For validation a 5-fold cross validation was used, the algorithm showing the best prediction accuracy was chosen and confusion matrices plotted. Furthermore the number of features was reduced and the most successful MLA was performed again to evaluate whether a result of similar accuracy could be achieved with fewer features. 3. Results The results of the machine learning algorithms applied to the data showed distinctive differences depending on the sensor, the size of the time window and the number of classifiers used for the classification learner (Table 1).

Proceedings 2018, 2, 217 4 of 6 Table 1. Classification learner results for different datasets, window-sizes (ws), unique classifiers (class) and number of features (feat). MLA is the name of the most accurate machine learning algorithm (MLA) along with its prediction accuracy in percent (acc). The datasets differ in used sensor (a-sensor and phone) and size of the time windows (WS: 1 s or 2 s). Dataset WS (s) Feat Class MLA ACC (%) a-sensor 1 64 27 Ensemble boosted trees 97.9 phone 1 64 27 Linear Discriminant 45.2 a-sensor 2 64 27 Ensemble boosted trees 95.4 phone 2 64 27 Ensemble boosted trees 48.4 a-sensor 1 64 3 SVM Quadratic 99.1 SVM Medium Gaussian 99.1 phone 1 64 3 Ensemble bagged trees 95.5 a-sensor 2 64 3 SVM Quadratic 99.2 SVM Cubic 99.2 Ensemble subspace discriminant 99.2 Phone 2 64 3 SVM Cubic 97.7 As expected, a finer classification (i.e., using 27 unique classifiers) resulted in less accuracy of the model than using only 3 unique classifiers. Whereas for the acceleration sensor data for both number of classifiers high prediction accuracy could be reached (27 classifiers: >95%, 3 classifiers: >99%), for phone data 27 classifiers yielded accuracy less than 50%. The results for classification with only three classifiers yielded more than 97% of prediction accuracy. Furthermore, it could be noted, that window-sizes of 1 s mostly resulted in less accuracy than larger window-sizes of 2 s. However, when closer inspecting the confusion matrix for phone data for 27 classifiers, it was observed that although many predictions were not correct they were mainly confused between different speeds and pressure settings but the surface type itself was still correctly classified (Figure 3b) which is highlighted by the red squares. For a-sensor data only few observations were classified incorrectly (Figure 3a). Figure 4 shows the resulting confusion matrices when only 3 classifiers (cobblestones, gravel, tarmac) were used. For both sensor systems (a-sensor: Figure 4a and phone: Figure 4b) only few predictions were incorrect. It was interesting to observe, however, that a feature reduction nearly always immediately resulted in a decrease of prediction accuracy. (a) (b) Figure 3. Confusion matrices for 27 classifiers and 64 features extracted from windows of 1 second with the best performing MLA. Small squares filled green: correct prediction, red: incorrect prediction. (a) Acceleration sensor (MLA: Ensemble boosted trees, total prediction accuracy: 97.9%); (b) phone sensor (MLA: Linear discriminant, total prediction accuracy: 45.2%), the red quadratic frames in (b) indicate the three classifiers cobblestones, gravel and tarmac. Abbreviations on the axes refer to the different datasets where cobb, grav and tarm stand for the three different surfaces and the

Proceedings 2018, 2, 217 5 of 6 three-digit-number for tire pressure and velocity (e.g.,: a-cobb-420 represents cobblestones, 4 bar tire pressure, and a velocity of 20 km/h). (a) (b) Figure 4. Confusion matrices for three classifiers and 64 features using a window-size of 2 s and the best performing MLA. (a) a-sensor (MLA: SVM quadratic, total prediction accuracy: 99.2%); (b) phone sensor (MLA: SVM cubic, total prediction accuracy: 97.7%). Abbreviations on the axes stand for cobblestones (cobb), gravel (grav), and tarmac (tarm). 4. Discussion The main purpose of this study was to determine whether road surface quality could be quantified and therefore the type of road surface identified by using algorithm parameters that are applied momentarily. We wanted to (1) evaluate the road surface quality using a 3D accelerometer and find out whether (2) results of similar quality can be achieved using the acceleration sensor of a smartphone placed in the cyclist s pocket. For this purpose data were collected on different surfaces, with different speeds, and tire pressures. They were analyzed ex-post using machine learning algorithms, with either 27 classifiers (3 surfaces, 3 speeds, 3 tire pressures), or three classifiers (3 surfaces). A total of 64 features for different time-windows were extracted from the data and used for classification learning. Results showed that when 27 classifiers and a time-window of one second are used it was possible to correctly identify more than 97% of the data with the acceleration sensor, but less than 50% with the phone. In case only three classifiers are used more than 97% can be correctly identified with both systems (a-sensor: 99.2%, phone: 97.7%). It is concluded that road surface (cobblestones, gravel, tarmac) can be predicted with high accuracy when using an acceleration sensor mounted on the fork with a recording frequency of 500 Hz (up to 99.2% correctly classified) and that furthermore even different speeds and tire pressures along with surface can be classified correctly (up to 97.9%, cf. Figure 3a). Using the smartphone sensor s data accuracy for 27 classifiers was less successful resulting only in 48.2% of correctly classified data. However, it has to be noted that the surface still could be identified correctly and mostly different riding speeds and tire pressures were confused (cf. Figure 3b), these results are also supported by the confusion matrix for 3 classifiers (Figure 4b) where a total of 97.7% could be classified correctly as being cobblestones, gravel or tarmac. From these results it can be concluded that given the data collected and analyzed so far it is possible to identify the surface correctly with data from a smartphone worn in a cyclist s pocket. It has to be pointed out, however, that this study has only limited explanatory power given the low number of observations. Future research should include more bicycle types (e.g., road, mountain) and different placements of the smartphone in the cyclist s pocket (e.g., front pocket, cycling jersey s

Proceedings 2018, 2, 217 6 of 6 back-pocket, backpack). Whether it will be possible to quantify different quality grades for one surface needs to be examined in further trials. Conflicts of Interest: The authors declare no conflict of interest. References 1. Ismail, A.Y.; Nuri, N.R.M.; Ahmad, M.; Mansor, M.F.A.S.; Amirul, M.; Durian, H.T.J. Study on the road transmitted vibration of a mountain bicycle. J. Teknol. 2015, 77, 27 31. 2. Bíl, M.; Andrášik, R.; Kubeček, J. How comfortable are your cycling tracks? A new method for objective bicycle vibration measurement. Transp. Res. Part C Emerg. Technol. 2015, 56, 415 425. 3. Ayachi, F.; Dorey, J.; Guastavino, C. Identifying factors of bicycle comfort: An online survey with enthusiast cyclists. Appl. Ergon. 2015, 46, 124 136. 4. Li, Z.; Wang, W.; Liu, P.; Ragland, D.R. Physical environments influencing bicyclists perception of comfort on separated and on-street bicycle facilities. Transp. Res. Part D Transp. Environ. 2012, 17, 256 261. 5. Hölzel, C.; Höchtl, F.; Senner, V. Cycling comfort on different road surfaces. Procedia Eng. 2012, 34, 479 484. 6. Landis, B.; Vattikuti, V.; Brannick, M. Real-time human perceptions: Toward a bicycle level of service. Transp. Res. Rec. J. Transp. Res. Board 1997, 119 126, doi:10.3141/1578-15. 7. Giubilato, F.; Petrone, N. A method for evaluating the vibrational response of racing bicycles wheels under road roughness excitation. In Proceedings of the Engineering of Sport 9-Conference Proceedings of the Engineering of Sport, Lowell, MA, USA, 9 13 July 2012; pp. 409 414. 8. Christensen, T. Road Surface Quality in Cycling. Master s Thesis, University of Applied Sciences Technikum Wien, Vienna, Austria, 2017. 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/).