Next Article in Journal
Microfluidic Devices for Terahertz Spectroscopy of Live Cells Toward Lab-on-a-Chip Applications
Next Article in Special Issue
Data Collection for Mobile Group Consumption: An Asynchronous Distributed Approach
Previous Article in Journal
A Portable Low-Power Acquisition System with a Urease Bioelectrochemical Sensor for Potentiometric Detection of Urea Concentrations
Previous Article in Special Issue
Dynamic RACH Partition for Massive Access of Differentiated M2M Services
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Evaluation of Smartphone Inertial Sensor Performance for Cross-Platform Mobile Applications

Faculty of Electrical Engineering, University of Ljubljana, Ljubljana 1000, Slovenia
*
Author to whom correspondence should be addressed.
Sensors 2016, 16(4), 477; https://doi.org/10.3390/s16040477
Submission received: 15 February 2016 / Revised: 24 March 2016 / Accepted: 30 March 2016 / Published: 4 April 2016
(This article belongs to the Special Issue Identification, Information & Knowledge in the Internet of Things)

Abstract

:
Smartphone sensors are being increasingly used in mobile applications. The performance of sensors varies considerably among different smartphone models and the development of a cross-platform mobile application might be a very complex and demanding task. A publicly accessible resource containing real-life-situation smartphone sensor parameters could be of great help for cross-platform developers. To address this issue we have designed and implemented a pilot participatory sensing application for measuring, gathering, and analyzing smartphone sensor parameters. We start with smartphone accelerometer and gyroscope bias and noise parameters. The application database presently includes sensor parameters of more than 60 different smartphone models of different platforms. It is a modest, but important start, offering information on several statistical parameters of the measured smartphone sensors and insights into their performance. The next step, a large-scale cloud-based version of the application, is already planned. The large database of smartphone sensor parameters may prove particularly useful for cross-platform developers. It may also be interesting for individual participants who would be able to check-up and compare their smartphone sensors against a large number of similar or identical models.

Graphical Abstract

1. Introduction

Mobile applications are a very important segment in the software market and the competition in the mobile application market is fiercer every year. The need for rapid application development and deployment has never been greater. The development of mobile applications is becoming more challenging with the availability of many different platforms and their dedicated single-platform software development kits. In the single-platform development concept, an application is first developed for a specific platform, and if successful, it may later be developed for other platforms. This concept is giving way to the cross-platform application development, where an application is simultaneously developed for several platforms. To reduce the cross-platform development costs and to reach to as many users as possible, the development is shifting to cross-platform development tools. In regard to the abovementioned, such tools will become more and more important in the coming years.
In recent years the majority of mobile applications have been developed primarily for smartphones. Today’s smartphones incorporate numerous sensors. Depending on the particular smartphone model, the sensor count may include an accelerometer, gyroscope, compass, GPS, microphone, camera, proximity sensor, light sensor, temperature sensor, pressure sensor, etc. The abundance of different sensor types and sensor count heterogeneity of smartphone models are posing a great challenge to the developers of cross-platform applications. One of the challenges is also the variability of parameters of a particular sensor type in various smartphone models. A cross-platform application should be able to work with any targeted sensor type used in any targeted smartphone platform. Therefore, a developer should be well aware of the performance parameters of a particular type of sensors that can potentially be used in the application being developed for targeted smartphone platforms. Smartphone applications cannot directly access physical sensors embedded into smartphones. Raw sensor signals from physical sensors are processed by the smartphone’s operating system (OS) and made available to applications in a standardized format as a smartphone sensor. In this work, the focus is on accelerometer and gyroscope sensors, which are micro-electro-mechanical system (MEMS) sensors. In the remainder of this paper the term sensor denotes the smartphone sensor defined above, and the term MEMS sensor denotes the smartphone-embedded physical sensor. Developers should be aware that the applications can only access smartphone sensor data and not sensor data from the MEMS sensor chip directly, therefore sensor parameters cannot be taken from the MEMS sensor manufacturer’s data sheet.
Smartphone sensors are being employed in a growing number of mobile applications. Among these, mobile sensing applications are playing an increasingly important role in many aspects of our lives, such as health, fitness, sports, social networking, environmental monitoring, public infrastructure, navigation, and urban sensing [1,2,3,4,5,6]. The concept of mobile sensing has been identified as an appropriate technique for our objective—the evaluation of smartphone inertial sensors performance for cross-platform mobile applications.
Mobile sensing applications are designed and used at different scales [7]. Personal sensing applications are aimed and designed for an individual, with typical applications in wellbeing and recreation. Generated data are usually not shared with others. Group sensing applications are designed for a limited number of participants cooperating to achieve a common goal, for example, monitoring the garbage in the neighbourhood [7]. Community sensing applications include a large number of participating people. They offer collection, analysis and sharing of large amounts of data. An important issue with sensing applications is to what extent they require an active participant involvement. Two sensing paradigms are identified [7]: (a) participatory sensing, where a participant is actively engaged in the data collection and (b) opportunistic sensing, where the data collection is done automatically by the sensing application.
Mobile sensing applications require differing degrees of sensor data quality. While some do not require highly accurate sensor data, others depend on it. For example, an application for daily activity monitoring, using accelerometer data, primarily needs the information when a person is moving and in what patterns, hence accurate sensor data values are less important. A contrary example is the wheelchair accessibility application that uses smartphone inertial sensor data to track movements and path [8]. For accurate tracking a precise and accurate sensor readings are required during the the entire application activity. Similarly, accurate accelerometer readings are needed for measuring structural vibrations [9]. Other similar applications of both kinds can be identified in [1,2,3,4,5,6,7,8,9,10].
Mobile sensing applications fit perfectly into the Internet of Things (IoT) and Internet of Everything (IoE) paradigms. While the sensing capability of IoT devices is generally limited to only one or a few quantities, smartphones are less limited in this respect. Because smartphones include plenty of different sensors, have good communication capabilities, and are closely linked to their owners and owners’ activities, they play an increasingly important role in the IoT and IoE.
Mobile applications on smartphones are already used in many spheres of our daily life. Some important areas of use, that are expected to grow rapidly in the near future, are eHealth and eCare. Algorithms that are able to detect the various states of patients or persons under care are an important field of research [11]. In some cases one’s life can even depend on the correct and timely detection of his or her state. Application developers must take special care to develop detection algorithms that are robust enough to prevent most of the possible adverse events. Smartphone sensor parameters in changing environmental conditions may differ greatly from parameters measured in a controlled environment. It is therefore very important to measure smartphone sensors in daily use under changing environmental conditions. Such measurements better define the upper bounds of sensor parameter deviations and offer developers better information about safety factors needed in their applications. We are convinced that the information about smartphone sensor parameters can be very helpful for research and application development community, as the researchers and developers have to be aware of the reliability of the data they are using, especially when developing eHealth applications, where whether we like it or not, smartphone sensors are and will be used.
New smartphone models are being introduced at a rapid pace and participatory sensing seems to be the only feasible way of quantifying their performance in real-use conditions. Participatory sensing measurements are performed in uncontrolled environments and they yield sensor parameter deviation boundaries in real-use conditions. Such real-use parameters are the information about smartphone sensor quality that is of great assistance to cross-platform mobile application developers.
The paper is structured in the following way: Section 2 presents the motivation for this work and lists the most important contributions; related work is also discussed. Section 3 describes the implementation of the pilot participatory sensing system and its architecture. Measurement protocols and methodology are also defined. The results gained through the pilot application are presented in Section 4. Discussion and future work are covered in Section 5. We conclude in Section 6.

2. Motivation, Contributions and Related Work

Our research group has been studying and developing biomechanical biofeedback systems and applications based on inertial sensors. We have learned that various biofeedback applications have various demands concerning sensor data accuracy and precision. These demands are expressed through boundary values of parameter errors induced by sensor inaccuracy and imprecision. Two of the several factors that contribute to the sensor errors are bias and noise. These error sources induce parameter value errors that have different dependency on the duration of the analysis. For example, the angular error induced by gyroscope bias has a linear dependency on time and the position error induced by the accelerometer has a quadratic dependency on time. To estimate if a specific sensor is good enough for a specific application, the quality of the smartphone sensor must be known.
Our primary motivation, based on experience from biofeedback applications, is to design and implement a mobile sensing application that allows measurement, analysis, and storage of smartphone sensor parameters. Participatory sensing enables acquisition of large number of measurements in short time, therefore it is our method of choice.
The expected results and benefits of mobile participatory sensing application are numerous. They offer not only answers to purely research and academic questions but also solutions applicable to real-world problems and issues connected to the use of smartphone sensors in the development of a cross-platform applications. Cross-platform application developers can benefit from the statistical properties of measured sensors on which one can draw general conclusions about sensor’s quality and usability for various purposes and under various conditions and demands. One example of a practical benefit is the comparison of a particular measured sensor to other measured sensors of the same type already in the database. Such comparisons could identify damaged or deteriorated sensors or simply point to the fact that the measured sensor may be operating outside the normal operation conditions; for instance at the temperature that is outside of the recommended range. When the discussion is limited to smartphone sensors, several practical benefits can be identified. Some of them are listed below:
  • Comparison of smartphones of the same platform.
  • Comparison of smartphones of the same manufacturer.
  • Comparison of the same smartphone model using different applications.
  • Comparison of smartphone models with the same physical sensor, but on different platform.
  • Comparison of results from the same physical smartphone through some period of time.
A possible obstacle for a successful implementation of the mobile sensing application is the recruitment of a large enough number of participants. Customary mobile sensing applications start as small-scale projects that are later expanded into full-scale applications. The small-scale phase is usually covered by recruiting a group of a few tens to a few hundreds of participants; in academic circles most commonly students. For a large-scale phase incentive mechanisms are needed [12]. For our mobile sensing application we identified a few incentive mechanisms for which we believe that could work: (a) participation in a research program; (b) immediate sensor quality information sent to the participant; absolute parameter values and comparison to other participants; and (c) gamification. Another obstacle is connected to measurements that are not performed in controlled conditions or measurements that deviate from the measurement protocol. Deviations from the expected results can be detected only to certain extent.
The contributions of this paper are:
  • Confirmation of the usefulness of the participatory data acquisition concept for mass measurement and collection of smartphone sensor parameters. This is attained through the development, implementation, and employment of a pilot participatory application.
  • Compilation of a database containing measured sensor parameters of more than 60 smartphone models. This is achieved through the recruitment of more than one hundred participants that performed more than 500 measurements of their smartphone sensors by using the pilot participatory sensing application.
  • Useful results and findings about smartphone sensor properties and their statistical parameters that can be the base for directions to developers of cross-platform applications. One important result is the possibility of the identification of faulty devices that are, for example, potentially life-threatening if used in eHealth or eCare applications.

Related Work

Participatory sensing applications are primarily designed for sensing physical quantities of interest, such as air pollution, temperature, body activity, and others [1,6,7,13]. In these applications smartphone sensors are used to measure the values of the quantity of interest. The primary focus is on gathering the sensor data, less attention is given to the quality of the acquired sensor data.
Participatory sensing applications with high data quality demands cannot use raw smartphone sensor data. They may include intolerable measurement errors that must be eliminated or reduced before the sensor data is used by the sensing application. Smartphone participatory sensing application for monitoring air pollution [13] requires high data quality. It calibrates the smartphone sensors by comparing their readings to governmental measurement stations when in their vicinity. Authors in [14] use iterative approach for calibration of smartphone sensors in monitoring pollution sources. In contrast to cooperative methods with neighbouring sensors and ground truth, their solution includes implicit calibration process in uncooperative environment.
In addition to sensor data quality, cross-platform developers should also consider the high variability of sensor parameters. The issues connected to variability of sensor parameters in smartphones are well described in [15]. The study is based on measurement of sensor parameters of nine different smartphone models. A number of papers focus on smartphone sensor performance evaluation and calibration. The authors of [16] performed laboratory measurements of accelerometer and gyroscope performance for the three high-end smartphones. The autonomous calibration of smartphone sensors based on sensor fusion is the main topic of paper [17]. Two different smartphone models are taken into consideration. Time and computation efficient calibration of accelerometers and gyroscopes is described also in [18].
To the best of our knowledge, no study that would use participatory sensing concept for evaluation of smartphone sensor quality has yet been conducted. The results of our study are available to anyone interested, for instance cross-platform application developers.

3. Pilot Participatory Sensing System

The implemented pilot system employs the participatory sensing concept, where participants are actively engaged in the data collection. The architecture of the pilot system implementation is shown in Figure 1. The participants connect their smartphones to one of the available wireless networks and send sensor data to the server in the internet. The server extracts the measured sensor parameters and writes the anonymized results into the database. Participants can use the database access to check their personal results or various statistics. The pilot system is designed for a medium group of advanced smartphone participants.
In the pilot implementation a participant needs to install and setup one of the supported off the shelf applications that have the option to stream sensor data to a remote location. We used three different applications: (a) for the Android platform the Sensor Node version 1.53 (mScino Tools, Singapore, 2014) is used; (b) for iOS platform Sensor stream version 1.1 (FNI Co., LTD, Seongnam, South Korea, 2013) and Sensor monitor (Pro) version 1.0.9 (Young-woo Ko, Fuzz-Tech, Seoul, South Korea, 2010). Each subsequent sensor measuring episode must be actively started by the participant. By starting the measuring episode sensor data is sent to the server and anonymized results are written to the database. The server is in the public IP network and it is running the custom-designed LabVIEW™ application. The database used is XAMPP mySQL running on Windows server 2008 R2. For the retrieval of the participant’s smartphone measuring results, PhoneID is required. The pilot implementation has so far been used by our research colleagues and engineering students. They have all been educated about the correct measurement protocol.

3.1. Measurement Protocol

We focus on the measurement of a limited number of smartphone accelerometer and gyroscope parameters. Because the measurements are performed through the participatory sensing concept, they are performed by different subjects at different locations. The measurement protocol for the pilot participatory sensing application should be simple and straightforward. For example, it should not require the use of any hard-to-get tools or devices, it could be performed in less strictly controlled environment, each measurement episode should not take too long, etc. The above defined limitations impose a compromise between the complexity of the measurement protocol and the quality of measurements. We are aware of the fact that a looser measurement protocol produces lower quality results. Therefore we have chosen only a set of smartphone sensor parameters that can be measured with high enough reliability under the given protocol limitations. For smartphone accelerometer and gyroscope we measure their bias and a limited number of noise parameters.
The measurement of the sensor bias and noise parameters must be performed with the smartphone in a stand-still position. In addition to the aforementioned, the accelerometer bias measurement requires a levelled flat surface. All participants were instructed to use spirit level to ensure the measuring surface is appropriately levelled. The accuracy of standard commercial spirit levels is between 0.5 mm/m and 1 mm/m. Possible measurement error due to gravity projections on the axes parallel to the measuring surface are therefore up to 1 mg0. The smartphone must have the connection to the server. In each measurement episode the participant initiates sensor data streaming and puts the smartphone face-down onto the flat surface. Since the great majority of smartphones have flat screens, this position assures the standardized orientation of the smartphone. Assuming that the MEMS sensor axes are aligned with the smartphone screen and that the Z-axis is perpendicular to the screen, the gravity is expressed only in the Z-axis. It means that the gravity does not affect the readings of the X and Y axis of the accelerometer. The measurement begins after a few seconds of the detected stand-still position of the measured smartphone. During the measurement the participant must assure that the smartphone does not experience vibrations or movements of any kind. The measurement takes 100 s.

3.2. Measurement Methodology

The quality of smartphone sensors is limited by sensor inaccuracy and imprecision [19,20]. Sensor bias and noise cause parameter value errors that induce the linear angular error of gyroscope and quadratic position error of the accelerometer.
Sensor bias is defined as an average sensor output at zero sensor input. Bias value Equation (1) is estimated by averaging N samples of sensor signal. The bias estimate averaging time depends on sampling frequency fs and signal sample block length N. Bias estimate exhibits variations which are the result of a sensor noise:
x b i a s = 1 N n = 0 N 1 x [ n ]
Sensor noise characteristics can be observed by measuring the Allan variance. Allan variance Equation (3) is defined as the average squared difference between successive bias estimates y[m] Equation (2). Each y[m] is calculated from a block of N signal samples [21]:
y [ m ] = 1 N n = 0 N 1 x [ n + m N ]
σ A 2 [ N ] = 1 2 ( y [ m ] y [ m 1 ] ) 2 ¯
Allan variance is estimated from a finite data stream in M successive bias estimates y[m] Equation (3):
σ A 2 [ N ] 1 2 ( M 1 ) m = 1 M 1 ( y [ m ] y [ m 1 ] ) 2
The approximation error of Equation (4) is [21]:
δ σ = 1 2 ( M 1 )
By definition Equation (3) the Allan variance is a function of block length N, which can also be expressed by the averaging time Tavg = N/fs. Sensor noise generally originates from different random processes. Various noise terms with different spectral power densities participate at the same time [21]. For averaging times around 1 s the white noise is most often a dominant error source for MEMS gyroscopes and accelerometers. In such cases the Allan variance measured at averaging time Tavg = 1 s represents the sensor white noise power density. Allan deviation σA at Tavg = 1 s is also known as velocity random-walk parameter (VRW) for accelerometer and angular random-walk parameter (ARW) for gyroscope [22,23].
Pilot participatory application calculates sensor biases Equation (1) by averaging N = 300 sensor samples at sampling frequency fs = 30 Hz. The corresponding bias estimate averaging time is therefore 10 s. The sampling frequency is chosen as the greatest common sampling frequency accepted by all smartphone applications listed at the beginning of Section 3. Calculated bias estimates of each measurement are stored in the database. Accelerometer biases are given relative to the gravity constant g0. Gyroscope biases are given in rad/s.
Allan variance function is commonly presented in a graph. Its calculation requires a large number of signal samples and consequently long measurement times. For the statistically relevant results (Equation (5)) the measurement time must be at least ten times longer than the largest averaging time Tavg presented in the function graph. For example, if the maximal averaging time presented in the graph is 100 s and M = 10 the measurement takes more than 16 min. One of the limitations of participatory sensing protocol from Section 3.1 is that the measurement should not take too long. Instead of measuring the Allan variance function, we chose to measure only the characteristic point at Tavg = 1 s that represents sensor white noise power density parameter. The validity of presumed white noise model around Tavg = 1 s was confirmed by a number of preliminary measurements of various smartphone models.
Pilot participatory application calculates Allan variation σA (Equation (4)) from M = 100 clusters with N = 30 samples at sampling frequency fs = 30 Hz. Noise parameter measurement takes 100 s. The predicted relative measurement error δσ = 0.071 (Equation (5)). Calculated noise parameters of each measurement are stored in the database. Accelerometer noise parameters (VRW) are given in g0/ Hz . Gyroscope noise parameters (ARW) are given in deg/s/ Hz .

4. Results

In the implemented pilot participatory sensing application we have managed to collect over 500 measurements of 116 different smartphone devices in 44 days. The collection of smartphones includes 61 different models of which 31 models are measured once and 30 models more t. The smartphone models that were measured the most times were: Galaxy S3, Galaxy S4, iPhone 4, iPhone 5, iPhone 5S, iPhone 6, Nexus 5, and Xperia Z1 Compact. They are included in the statistics by model (see Section 4.2). The measured smartphone models come from 13 different manufacturers and use two different platforms. Measurement results are presented in three scales: (a) complete dataset results; (b) results by smartphone model; and (c) results of individual smartphone devices.

4.1. Complete Dataset Results

In this subsection the complete measurement dataset is presented by the measured devices. Plotted values represent the averaged measured parameter values by the device. Figure 2 shows smartphone accelerometer and gyroscope biases, Figure 3 and Figure 4 their noise, and Table 1 their average, standard deviation, and percentiles.
Accelerometer and gyroscope biases are measured under conditions defined in the last paragraph of Section 3.2. The averaged accelerometer biases for all devices under test are shown in Figure 2a and averaged smartphone gyroscope bias measurements in Figure 2b. Some devices have large bias, but they are not necessary faulty. For example, excessive gyroscope bias values are evident in the results of the device with ID = 73 in Figure 2b.
Accelerometer and gyroscope biases should be measured and compensated in most sensor based applications. However, some less demanding applications can work even without bias compensation. The statistics on absolute bias values is collected in Table 1. Absolute bias values for more than 50% of measured devices stay under average and 95th percentile might be helpful for cross-platform application developers. More detailed results will be acquired after starting a planned full-scale cloud-based application. At least ten times larger testing group will provide results with higher statistic relevance for higher percentiles, for example 99th percentile.
Accelerometer noise parameter VRW and gyroscope noise parameter ARW are obtained from single point Allan variation measurements under conditions defined in Section 3.1 and Section 3.2. Large deviations in measured values can be used to diagnose faulty devices. Such examples are visible in the complete VRV and ARW measurement dataset shown in Figure 3. Smartphone device with ID = 50 in Figure 3a exhibits enormous accelerometer noise density parameter VRW. Similarly, Figure 3b show three devices with ID = {25, 50, 73} with excessive gyroscope noise density parameter ARW. All listed faulty devices are excluded from further analysis. Figure 4 shows large deviations in measured noise parameters for both sensors after exclusion of the three identified faulty devices. Large deviations are the result of different noise characteristics of MEMS sensor chips embedded in different smartphone models. Noise parameter is further analysed after clustering the complete data set by smartphone model in the next section.

4.2. Results by Smartphone Model

While statistics of the complete measurement dataset gives us the overall picture of the smartphone sensor statistics, it is sometimes more interesting to filter out the results for a particular smartphone model. In this subsection the statistics of different smartphone models are presented and compared. Only the smartphones with enough different devices of the same model have been taken into consideration. The selection includes eight popular smartphone models: Galaxy S3, Galaxy S4, iPhone 4, iPhone 5, iPhone 5S, iPhone 6, Nexus 5, Xperia Z1 Compact. The same set of smartphone models is used in Figure 5 and Figure 6.
Noise parameter values, VRV and ARW, are strongly connected to the embedded MEMS chip technology. For illustration we group the dataset of properly working devices shown in Figure 4 by the smartphone model. The comparison is done for the popular smartphone models listed in the previous paragraph. At least six different devices of the same model are measured. Figure 5 shows the comparison of the averaged accelerometer noise density VRV in combination with its standard deviation and Figure 6 shows the comparison of the averaged gyroscope noise parameter ARV in combination with its standard deviation; the same set of smartphones is used in both figures.
Results in Figure 5 and Figure 6 are presented in the same random order. Similar differences in sensors noise parameters between various smartphone models are evident for all principal axes. Smartphone models with codes 4 and 8 exhibit the best performance of both sensors. While smartphone models with codes 1, 2 and 3 show better performance for accelerometer and below average performance for gyroscope, smartphone with code 7 shows the opposite, better performance for gyroscope and below average performance for accelerometer.

4.3. Results by Individual Device

The results of the complete dataset and statistics by model, presented in Section 4.1 and Section 4.2, are particularly useful for cross-platform developers. Individual participants may find these results useful when comparing their smartphone device to all the smartphones measured or to the smartphones of the same model, brand, platform, etc. But participants, who measure their device repeatedly, over some period of time, can benefit also from the statistics about their own device. Figure 7 presents one such case when the participant is measuring his/her device repeatedly 44 times. Table 2 and Table 3 list the statistics for several smartphone devices that were measured more than 10 times over the period of 44 days.
A large number of bias measurements for the same sensor device can give some information about one of the most important sensor parameter; bias variation. Accelerometer and gyroscope biases vary with time. Bias variations are the result of random, low-frequency sensor noise and of deterministic dependence on temperature fluctuations. Deterministic bias drift cannot be compensated without measuring of sensor temperature.
Several smartphones have been repeatedly measured during the 44 days testing period. Figure 7a,b show the results of N = 44 simultaneous accelerometer and gyroscope bias measurements of the iPhone 4 smartphone device with ID = 3. This device was under the test every evening repeatedly for 44 days. Bias variations pattern show that considerable variation is observed on a daily scale.
To show bias variations on individual device a group of five devices of different smartphone models is selected: Xperia Z1 Compact (ID = 2), iPhone 4 (ID = 3), iPhone 5S (ID = 7), iPhone 6S (ID = 8), and LG Nexus 5 (ID = 14). Measurement statistics for the accelerometer biases of the above listed smartphone is presented in Table 2 and statistics for the gyroscope biases in Table 3. Bias variation is not critical for all devices under test. For example, device with ID = 14 from Table 2, exhibits large accelerometer bias, but very small bias variation. Devices ID = 2 and ID = 14 from Table 3 exhibit negligibly small gyroscope bias and bias variation.

5. Discussion and Future Work

The results of our pilot implementation are interesting and encouraging. Even in this limited volume, they can prove useful to developers of cross-platform sensing applications. Larger scale measurements would give us a better overall picture of existing smartphone sensor’s performance. Its results would form a basis for further research in this field, such as data mining, and offer a good reference for the development of cross-platform smartphone sensing applications.
The obvious next step is a planned upgrade to a full-scale cloud based participatory sensing application. The application would operate in the cloud with open public access to anonymized and statistically processed results and personal access to user’s own data. Deployment of such participatory sensing application is a complex task. Concepts such as Sensing as a Service (S2aaS) [12] have been proposed to ease the task of designing mobile sensing applications. Platforms, such as described in [24,25,26], can further help developers to avoid inventing the wheel and enable them to implement their applications in a shorter period of time.
The general architecture of the planned next-step participatory sensing system is shown in Figure 8. It is similar to the architecture of many other cloud applications. The system employs the participatory sensing paradigm, where participants are actively engaged in the data collection. Before the first use, a participant must install the custom developed sensing client onto the smartphone. Also, each subsequent sensor measuring episode must be actively started by the participant. By starting the measuring episode, sensor data is sent to the processing instance in the cloud. Processing results are then written to the cloud database. A cloud web application is used for data retrieval from the database and its statistical analysis. The public has access to the anonymized results in the database. Participants can retrieve their results from the data processing unit immediately after the measuring episode, or later from the cloud web application.
On a longer run, the presented system could be upgraded with functionalities other than measurement and statistical analysis of sensor performance. For example, less demanding biofeedback applications could use the existing infrastructure for sending sensor data to the biofeedback processing unit, which would process the data and send the biofeedback signals back to the participant. Still further, the system could be supplemented by the opportunistic functionality; taking measurements periodically, with prior consent of the participant, at times favourable for measurements (during the night, longer standstill, etc.). Not all sensor parameters can be measured through the opportunistic paradigm as some measurements require the participant’s actions during the measurement
By collecting large amounts of data from a large number of participants, privacy is of the prime concern [26] and participatory sensing application must provide sufficient measures to prevent any concerns about the issue. The presented sensing system will perform anonymization inside the installed smartphone application; hence all the data leaving the phone will be anonymized. The smartphone identity, in the form of a PhoneID hash, will be known only to the participant initiating the measuring episode. The same hash is needed when the participant wants to get the results from the cloud web application. The public sees only the anonymized and statistically processed results.

6. Conclusions

Do you know how good your smartphone’s sensors are? Having in mind that smartphone sensor parameters do not directly reflect the embedded physical sensor’s parameters, measuring the former is an important task. The results gathered by the pilot participatory sensing application reveal that there is no straightforward answer to the above question and that the parameters of measured smartphone sensors vary considerably between different smartphone models and some of the parameters also within the same model. By closer inspection of individual measured sensor parameters it can be seen that while biases vary between the smartphone models and within the same model, noise varies between the smartphone models and is stable within the same model.
How can a developer of a cross-platform application benefit from such results? Knowing that different applications require different levels of sensor quality, that bias can be compensated, and that noise can only be reduced, but not eliminated, a developer may choose different approaches. For example, if the application requirements are low, the developer may decide not to compensate biases at all, providing that the targeted group of smartphones exhibit biases that satisfy application requirements.
The results of the pilot application give us the first insight of the statistics of smartphone accelerometer and gyroscope bias and noise. Extending the number of participants, smartphone models, manufacturers, sensor parameters, and platforms, would improve the statistical relevance of the results. Plenty of other options and ideas for upgrades and improvements to the pilot application are already in the scope. The first in the list is the upgrade to a full-scale cloud-based application. It will offer the inclusion of more measurements, other smartphone sensors and their parameters, that would further improve the usability of already gained results.

Acknowledgments

This work was supported by the Slovenian Research Agency within the research program Algorithms and Optimization Methods in Telecommunications and the project Use of Wireless Sensor Devices for Motion Analysis and Biofeedback. Publishing costs are covered by the research program Algorithms and Optimization Methods in Telecommunications.

Author Contributions

All authors contributed considerably to this article. The article was conceived and structured by all the authors. Anton Kos and Anton Umek conceived, designed, and performed the experiments, analyzed the data, and wrote the paper. The pilot application was conceived and developed by all the authors.

Conflicts of Interest

The authors declare no conflict of interest. The founding sponsor had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, and in the decision to publish the results.

References

  1. Tilak, S. Real-world deployments of participatory sensing applications: Current trends and future directions. ISRN Sens. Netw. 2013. [Google Scholar] [CrossRef]
  2. Saeedi, S.; El-Sheimy, N. Activity Recognition Using Fusion of Low-Cost Sensors on a Smartphone for Mobile Navigation Application. Micromachines 2015, 6, 1100–1134. [Google Scholar] [CrossRef]
  3. Edmond, M.; Monaghan, D.; O’Connor, N.E. Classification of sporting activities using smartphone accelerometers. Sensors 2013, 13, 5317–5337. [Google Scholar]
  4. Mohino-Herranz, I.; Gil-Pita, R.; Ferreira, J.; Rosa-Zurera, M.; Seoane, F. Assessment of Mental, Emotional and Physical Stress through Analysis of Physiological Signals Using Smartphones. Sensors 2015, 15, 25607–25627. [Google Scholar] [CrossRef] [PubMed]
  5. Kos, A.; Tomažič, S.; Umek, A. Suitability of smartphone inertial sensors for real-time biofeedback applications. Sensors 2016, 16. [Google Scholar] [CrossRef] [PubMed]
  6. McGrath, M.J.; Scanaill, C.N. Wellness, fitness, and lifestyle sensing applications. In Sensor Technologies; Apress: New York, NY, USA, 2013; pp. 217–248. [Google Scholar]
  7. Lane, N.D.; Miluzzo, E.; Lu, H.; Peebles, D.; Choudhury, T.; Campbell, A.T. A survey of mobile phone sensing. IEEE Commun. Mag. 2010, 48, 140–150. [Google Scholar] [CrossRef]
  8. Gupta, M.; Holloway, C.; Heravi, B.M.; Hailes, S. A comparison between smartphone sensors and bespoke sensor devices for wheelchair accessibility studies. In Proceedings of the 2015 IEEE Tenth International Conference on Intelligent Sensors, Sensor Networks and Information Processing (ISSNIP), Singapore, 7–9 April 2015; pp. 1–6.
  9. Feng, M.; Fukuda, Y.; Mizuta, M.; Ozer, E. Citizen Sensors for SHM: Use of Accelerometer Data from Smartphones. Sensors 2015, 15, 2980–2998. [Google Scholar] [CrossRef] [PubMed]
  10. Ganti, R.K.; Ye, F.; Lei, H. Mobile crowdsensing: Current state and future challenges. IEEE Commun. Mag. 2011, 49, 32–39. [Google Scholar] [CrossRef]
  11. Casilari, E.; Luque, R.; Morón, M.-J. Analysis of android device-based solutions for fall detection. Sensors 2015, 15, 17827–17894. [Google Scholar] [CrossRef] [PubMed]
  12. Sheng, X.; Xiao, X.; Tang, J.; Xue, G. Sensing as a service: A cloud computing system for mobile phone sensing. In Proceedings of the 2012 IEEE Sensors, Taipei, Taiwan, 28–31 October 2012; pp. 1–4.
  13. Hasenfratz, D.; Saukh, O.; Sturzenegger, S.; Thiele, L. Participatory air pollution monitoring using smartphones. In Proceedings of the 2nd International Workshop on Mobile Sensing, Beijing, China, 16–20 April 2012.
  14. Xiang, C.; Yang, P.; Tian, C.; Cai, H.; Liu, Y. Calibrate without calibrating: An iterative approach in participatory sensing network. IEEE Trans. Parallel Distrib. Syst. 2015, 26, 351–361. [Google Scholar] [CrossRef]
  15. Del Rosario, M.B.; Redmond, S.J.; Lovell, N.H. Tracking the evolution of smartphone sensing for monitoring human movement. Sensors 2015, 15, 18901–18933. [Google Scholar] [CrossRef] [PubMed]
  16. Mourcou, Q.; Fleury, A.; Franco, C.; Klopcic, F.; Vuillerme, N. Performance evaluation of smartphone inertial sensors measurement for range of motion. Sensors 2015, 15, 23168–23187. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  17. Li, Y.; Georgy, J.; Niu, X.; Li, Q.; El-Sheimy, N. Autonomous calibration of MEMS gyros in consumer portable devices. IEEE Sensors J. 2015, 15, 4062–4072. [Google Scholar] [CrossRef]
  18. Stančin, S.; Tomažič, S. Time-and Computation-Efficient Calibration of MEMS 3D Accelerometers and Gyroscopes. Sensors 2014, 14, 14885–14915. [Google Scholar] [CrossRef] [PubMed]
  19. Grewal, M.; Andrews, A. How good is your Gyro. IEEE Control Syst. Mag. 2010, 30, 12–86. [Google Scholar] [CrossRef]
  20. Weinberg, H. Gyro Mechanical Performance: The Most Important Parameter; Technical Article MS-2158; Analog Devices: Norwood, MA, USA, 2011. [Google Scholar]
  21. El-Sheimy, N.; Hou, H.; Niu, X. Analysis and modeling of inertial sensors using Allan variance. IEEE Trans. Instrum. Meas. 2008, 57, 140–149. [Google Scholar] [CrossRef]
  22. Aggarwal, P.; Syed, Z.; Niu, X.; El-Sheimy, N. A standard testing and calibration procedure for low cost MEMS inertial sensors and units. J. Navig. 2008, 61, 323–336. [Google Scholar] [CrossRef]
  23. El-Diasty, M.; Pagiatakis, S. Calibration and stochastic modelling of inertial navigation sensor errors. J. GPS 2008, 7, 170–182. [Google Scholar] [CrossRef]
  24. Das, T.; Mohan, P.; Padmanabhan, V.N.; Ramjee, R.; Sharma, A. PRISM: Platform for remote sensing using smartphones. In Proceedings of the 8th International Conference on Mobile Systems, Applications, and Services, ACM, San Francisco, CA, USA, 15–18 June 2010; pp. 63–76.
  25. Ozer, E.; Feng, M.Q.; Feng, D. Citizen Sensors for SHM: Towards a Crowdsourcing Platform. Sensors 2015, 15, 14591–14614. [Google Scholar] [CrossRef] [PubMed]
  26. Boutsis, I.; Kalogeraki, V. Privacy preservation for participatory sensing data. In Proceedings of the 2013 IEEE International Conference on Pervasive Computing and Communications (PerCom), San Diego, CA, USA, 18–22 March 2013; pp. 103–113.
Figure 1. Pilot system architecture. Smartphones send sensor data over one of the available wireless interfaces to the processing computer (server). Processing results are stored in the database. They can be analysed and retrieved through a database access application.
Figure 1. Pilot system architecture. Smartphones send sensor data over one of the available wireless interfaces to the processing computer (server). Processing results are stored in the database. They can be analysed and retrieved through a database access application.
Sensors 16 00477 g001
Figure 2. Accelerometer and gyroscope bias measurements of X, Y and Z axes. (a) Average accelerometer biases of 116 different smartphones are plotted; (b) Average gyroscope biases of smartphones with gyroscopes are plotted. The horizontal axis represents the device identification number (ID) from the measurement database.
Figure 2. Accelerometer and gyroscope bias measurements of X, Y and Z axes. (a) Average accelerometer biases of 116 different smartphones are plotted; (b) Average gyroscope biases of smartphones with gyroscopes are plotted. The horizontal axis represents the device identification number (ID) from the measurement database.
Sensors 16 00477 g002aSensors 16 00477 g002b
Figure 3. Accelerometer and gyroscope noise measurements of the axes X, Y and Z. The horizontal axis represents the device identification number from the measurement database. (a) The complete accelerometer measurement dataset is plotted, including an example of a faulty device with ID = 50 that evidently deviates from other devices. The vertical axis shows VRW in [g0/ Hz ]; (b) The complete gyroscope measurement dataset is plotted, including the examples of the three faulty devices with ID = {25, 50, 73}. The vertical axis shows ARW in [deg/s/ Hz ].
Figure 3. Accelerometer and gyroscope noise measurements of the axes X, Y and Z. The horizontal axis represents the device identification number from the measurement database. (a) The complete accelerometer measurement dataset is plotted, including an example of a faulty device with ID = 50 that evidently deviates from other devices. The vertical axis shows VRW in [g0/ Hz ]; (b) The complete gyroscope measurement dataset is plotted, including the examples of the three faulty devices with ID = {25, 50, 73}. The vertical axis shows ARW in [deg/s/ Hz ].
Sensors 16 00477 g003
Figure 4. Accelerometer (a) and gyroscope (b) noise of all properly functioning devices (Ka = 108, Kg = 82). The horizontal axis represents the device identification number from the measurement database. Considerable deviations are the result of different models of MEMS sensor chips embedded in different smartphone models. The vertical axis shows (a) VRW in [g0/ Hz ] and (b) ARW in [deg/s/ Hz ].
Figure 4. Accelerometer (a) and gyroscope (b) noise of all properly functioning devices (Ka = 108, Kg = 82). The horizontal axis represents the device identification number from the measurement database. Considerable deviations are the result of different models of MEMS sensor chips embedded in different smartphone models. The vertical axis shows (a) VRW in [g0/ Hz ] and (b) ARW in [deg/s/ Hz ].
Sensors 16 00477 g004
Figure 5. Comparison of average accelerometer noise parameter VRW and its standard deviation for eight different smartphone models. Smartphone models presented are: Galaxy S3, Galaxy S4, iPhone 4, iPhone 5, iPhone 5S, iPhone 6, Nexus 5, Xperia Z1 Compact. The listed smartphone models are presented in a random order (the same for all graphs). The vertical axis shows VRW in [g0/ Hz ].
Figure 5. Comparison of average accelerometer noise parameter VRW and its standard deviation for eight different smartphone models. Smartphone models presented are: Galaxy S3, Galaxy S4, iPhone 4, iPhone 5, iPhone 5S, iPhone 6, Nexus 5, Xperia Z1 Compact. The listed smartphone models are presented in a random order (the same for all graphs). The vertical axis shows VRW in [g0/ Hz ].
Sensors 16 00477 g005
Figure 6. Comparison of average gyroscope noise parameter ARW and its standard deviation for eight different smartphone models. Smartphone models presented are the same as in Figure 5. The vertical axis shows ARW in [deg/s/ Hz ].
Figure 6. Comparison of average gyroscope noise parameter ARW and its standard deviation for eight different smartphone models. Smartphone models presented are the same as in Figure 5. The vertical axis shows ARW in [deg/s/ Hz ].
Sensors 16 00477 g006
Figure 7. Repetitive accelerometer and gyroscope bias measurements (N = 44) of the smartphone with ID = 3 showing bias variation. Measurement numbers are taken from the database and are not successive as other measurements took place in between two measurements of the presented device. Accelerometer bias is in [g0], gyroscope bias is in [rad/s].
Figure 7. Repetitive accelerometer and gyroscope bias measurements (N = 44) of the smartphone with ID = 3 showing bias variation. Measurement numbers are taken from the database and are not successive as other measurements took place in between two measurements of the presented device. Accelerometer bias is in [g0], gyroscope bias is in [rad/s].
Sensors 16 00477 g007aSensors 16 00477 g007b
Figure 8. Cloud based participatory sensing system architecture. Smartphones send sensor data to the cloud for processing. Processed sensor data results are stored in the cloud database. Results can be retrieved directly from the processing unit or through a cloud web application.
Figure 8. Cloud based participatory sensing system architecture. Smartphones send sensor data to the cloud for processing. Processed sensor data results are stored in the cloud database. Results can be retrieved directly from the processing unit or through a cloud web application.
Sensors 16 00477 g008
Table 1. Statistical parameters of the measured smartphone accelerometer and gyroscope biases. Average, standard deviation and several percentiles for absolute bias values are listed.
Table 1. Statistical parameters of the measured smartphone accelerometer and gyroscope biases. Average, standard deviation and several percentiles for absolute bias values are listed.
Accelerometer [mg0]Gyroscope [mrad/s]
ParameterXYZXYZ
Average14.314.625.39.48.76.1
StDev14.215.225.113.612.18.7
50th percentile10.09.918.53.14.32.8
90th percentile30.131.560.330.822.917.1
95th percentile43.645.971.140.535.428.2
100th percentile90.982.7161.0142.781.7158.2
Table 2. Statistical parameters of smartphone accelerometer bias. Selected devices with more than 10 measurements are presented. Average and standard deviation [g0] for the three axes are listed.
Table 2. Statistical parameters of smartphone accelerometer bias. Selected devices with more than 10 measurements are presented. Average and standard deviation [g0] for the three axes are listed.
AverageStandard DeviationMax–Min
IDNXYZXYZXYZ
2410.00630.02790.02310.00570.00190.00180.02360.00650.0075
344−0.0121−0.0110−0.02640.00050.00100.00380.00300.00400.0171
7420.00510.00600.00340.00090.00120.00110.00450.00460.0056
8140.00290.00320.00040.00250.00090.00080.00970.00250.0030
1411−0.0241−0.0259−0.09940.00060.00170.00130.00170.00580.0046
Table 3. Statistical parameters of smartphone gyroscopes bias. Selected devices with more than 10 measurements are presented. Average and standard deviation [rad/s] for the three axes are listed.
Table 3. Statistical parameters of smartphone gyroscopes bias. Selected devices with more than 10 measurements are presented. Average and standard deviation [rad/s] for the three axes are listed.
AverageStandard DeviationMax–Min
IDNXYZXYZXYZ
2410.000000.000020.000010.000130.000090.000100.000510.000420.00045
344−0.014950.008330.004230.001580.000910.001160.005910.002680.00380
7420.050620.052440.011900.003960.000540.001330.016560.002210.00812
8140.027280.03175−0.002580.000540.001340.000370.001610.004100.00130
1411−0.000040.000020.000010.000160.000360.000130.000520.001420.00039

Share and Cite

MDPI and ACS Style

Kos, A.; Tomažič, S.; Umek, A. Evaluation of Smartphone Inertial Sensor Performance for Cross-Platform Mobile Applications. Sensors 2016, 16, 477. https://doi.org/10.3390/s16040477

AMA Style

Kos A, Tomažič S, Umek A. Evaluation of Smartphone Inertial Sensor Performance for Cross-Platform Mobile Applications. Sensors. 2016; 16(4):477. https://doi.org/10.3390/s16040477

Chicago/Turabian Style

Kos, Anton, Sašo Tomažič, and Anton Umek. 2016. "Evaluation of Smartphone Inertial Sensor Performance for Cross-Platform Mobile Applications" Sensors 16, no. 4: 477. https://doi.org/10.3390/s16040477

APA Style

Kos, A., Tomažič, S., & Umek, A. (2016). Evaluation of Smartphone Inertial Sensor Performance for Cross-Platform Mobile Applications. Sensors, 16(4), 477. https://doi.org/10.3390/s16040477

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop