Numerical Motion Analyzing Based on Recorded Empirical Data by Smartphone Features
Subject Areas : aerospaceBahador Abolpour 1 , Yaser Taghipour 2
1 - Department of Chemical Engineering,Sirjan University of Technology, Sirjan, Iran
2 - Department of Mechanical Engineering, Sirjan University of Technology
Keywords: Smartphone, Motion analysis, Sensor, Global positioning system,
Abstract :
Abstract: This study presents a new method to analyse the motion of moving objects. The novelty of this study is that the presented work obtains your location based on the coupled measured data using the GPS and other motion sensors of a smart phone. This method can be used for GPS free navigations in future studies. The smartphone sensors measure the desired values and a developed Android application records this data. A developed MATLAB code analyses these values for car road travel using multiple coordinate transformations and removes the effects of Earth's gravity from the measured acceleration. It is recognized that the presented method can be used to analyse the movement and performance of the studied material. The obtained results show that the integration of data recorded by the accelerometer sensor integrates the effects of noise and this sensor is not a convenient feature to obtain the instantaneous location. Calculating the acceleration using GPS data may also not be accurate in this case. Getting the location and acceleration using a GPS sensor and accelerometer is more accurate.
[1] Kosse, N. M., Caljouw, S., Vervoort, D., Vuillerme, N., and Lamoth, C. J., Validity and Reliability of Gait and Postural Control Analysis Using the Tri-Axial Accelerometer of the iPod Touch, Annals of Biomedical Engineering, Vol. 43, 2015, pp. 1935-1946, Doi: 10.1007/s10439-014-1232-0.
[2] Muro-de-la-Herran, A., Garcia-Zapirain, B., and Mendez-Zorrilla, A., Gait Analysis Methods: an Overview of Wearable and Non-Wearable Systems, Highlighting Clinical Applications, Sensors, Vol. 14, No. 2, 2014, pp. 3362-3394, DOI: 10.3390/s140203362.
[3] Milani, P., Coccetta, C. A., Rabini, A., Sciarra, T., Massazza, G., and Ferriero, G., Mobile Smartphone Applications for Body Position Measurement in Rehabilitation: A Focus on Goniometric Tools, Physical Medicine and Rehabilitation, Vol. 6, No. 11, 2014, pp. 1038-1043, DOI: 10.1016/j.pmrj.2014.05.003.
[4] Mourcou, Q., Fleury, A., Franco, C., Klopcic, F., and Vuillerme, N., Performance Evaluation of Smartphone inertial Sensors Measurement for Range of Motion, Sensors, Vol. 15, No. 9, 2015, pp. 23168-23187, DOI: 10.3390/s150923168.
[5] Verghese, J., Holtzer, R., Lipton, R. B., and Wang, C., Quantitative Gait Markers and Incident Fall Risk in Older Adults, Journals of Gerontology Series A: Biological Sciences and Medical Sciences, Vol. 64, No. 8, 2009, pp. 896-901, DOI: 10.1093/gerona/glp033.
[6] Zhao, Y., Mobile Phone Location Determination and Its Impact on Intelligent Transportation Systems, IEEE Transactions on Intelligent Transportation Systems, Vol. 1, No. 1, 2000, pp. 55-64, DOI: 10.1109/6979.869021.
[7] Weiland, R., Purser, L., Intelligent Transportation Systems, Transportation Research, Vol. 1, 2009, pp: 40-53.
[8] Xia, H., Qiao, Y., Jian, J. and Chang, Y., Using Smart Phone Sensors to Detect Transportation Modes, Sensors, Vol. 14, No. 11, 2014, pp. 20843-20865, DOI: 10.3390/s141120843.
[9] Kalra, N., Bansal, D., Analyzing Driver Behavior Using Smartphone Sensors: a Survey, International Journal of Electronic and Electrical Engineering, Vol. 7, No. 7, 2014, pp. 697-702.
[10] Thompson, C., White, J., Dougherty, B., Albright, A., and Schmidt, D.C., Using Smartphones to Detect Car Accidents and Provide Situational Awareness to Emergency Responders, Mobile Wireless Middleware, Operating Systems and Applications, Vol. 48, 2010, pp. 29-42, DOI: 10.1007/978-3-642-17758-3_3.
[11] Abolpour, B., Abolpour, R., and Hekmatkhah R., GPS-Independent Navigation Using Smartphone Sensors, SN Applied Sciences, Vol. 1 No. 11, 2019, pp. 1-9, DOI: 10.1007/s42452-019-1401-8.
[12] El-Rabbany, A. D., Coordinate Systems, and Map Projections, London, England: Artech House Publishers, 2002, pp. 47-68.
[13] Cai, G., Chen, B. M., and Lee, T. H., Coordinate Systems and Transformations, In Unmanned Rotorcraft Systems; London, England: Springer-Verlag, 2011, pp. 23-34, DOI: 10.1007/978-0-85729-635-1_2.
[14] Cook, M. V., Systems of Axes and Notation, Oxford, England: Elsevier, 2013, pp. 13-32, DOI: 10.1016/B978-0-08-098242-7.00002-X.
[15] Serway, R. A., Jewett, J. W., Universal Gravitation. Boston, USA: Brooks Cole, 1999, pp. 388-416.
[16] Champion, K. S. W., Cole, A. E., and Kantor, A. J., Standard and Reference Atmospheres, USA: Air Force Geophysics Laboratory, 1985, pp. 1-43.
[17] Soares, S. M. C., Sodre, J. R., Effects of Atmospheric Temperature and Pressure on the Performance of a Vehicle, Proceedings of the Institution of Mechanical Engineers Part D: Journal of Automobile Engineering, Vol. 216, No. 6, 2002, pp, 473-477, DOI: 10.1243/09544070260137499.
[18] Balicki, W., Glowacki, P., Szczecinski, S., Chachurski, R., and Szczecinski, J., Effect of the Atmosphere on the Performances of Aviation Turbine Engines. Acta Mechanica et Automatica, Vol. 8, No. 2, 2014, DOI: 10.2478/ama-2014-0012.
Int. J. Advanced Design and Manufacturing Technology, 2024, Vol. 17, No. 1, pp. 51-57
DOI: 10.30486/ADMT.1403.873723 ISSN: 2252-0406 https://sanad.iau.ir/journal/admt
Numerical Motion Analyzing Based on Recorded Empirical Data by Smartphone Features
Department of Chemical Engineering, Sirjan University of Technology, Sirjan, Iran
E-mail: bahadorabolpor1364@yahoo.com
*Corresponding author
Yasser Taghipour
Department of Mechanical Engineering, Sirjan University of Technology, Sirjan, Iran
E-mail: ytaghipour@sirjantech.ac.ir
Received: 22 December 2022, Revised: 26 February 2023, Accepted: 10 March 2023
Keywords: Global Positioning System, Motion Analysis, Sensor, Smartphone
Biographical notes: Bahador Abolpour received his PhD in Chemical Engineering from Shahid Bahonar University of Kerman of Iran in 2017. He is currently Associate Professor at the Department of Chemical Engineering, Sirjan University of Technology, Sirjan, Iran. His current research interest includes Rapid prototyping and Rapid Tooling. Yasser Taghipour is Assistant Professor of Mechanical Engineering at the Sirjan University of Technology, Iran. He received his PhD in Mechanical engineering from Shahid Bahonar University of Kerman of Iran in 2017 and MSc in Mechanical Engineering from University of Tehran of Iran in 2004. His current research focuses on the computational and solid mechanics.
1 Introduction
Advances in computer and electronic science in recent years have made smartphones an essential part of people's daily lives. Competition among manufacturers to improve performance and services has made it possible to use these devices in various fields. On the other hand, the development of the space industry helped with human transportation and exploration. There are no Global Positioning System (GPS) blind spots on the planet today. Industry Science Research Business Navigation is essential for most human activities such as transportation and travel. Autonomous devices in particular need navigation to manage constant motion. Motion analysis using smartphone sensors is a simple solution to this problem. So, computer electronics and aerospace technology have come together to solve this problem. The smartphone includes an on-screen display, haptic feedback system, processor, graphics and audio chipset and advanced connectivity as standard features. Some of these phones have additional features such as barometer and thermometer, or inertial motion unit (IMU) containing magnetometer, 3D accelerometer and gyroscope. This type of smartphone is great for analysing motion.
Several studies have investigated postural and gait control [1-2] or joint goniometry [3-4]. However, some researchers use expensive equipment such as aircraft black boxes or stationary equipment for laboratory studies [5]. Some researchers use smartphones for static and dynamic measurements in objects moving analysis. Rapid location acquisition [6] and data recording are important factors for intelligent transportation. Sensor networks are needed to observe traffic [7] or to detect traffic quality [8]. This is a new use of smartphones in the topic of traffic control. Then they analyse driver behaviour [9] or detect car accidents [10] using smartphone capabilities. Some reasons to explore new motion analysis methods are controlling an intelligent car, designing an autopilot system for an airplane or drone, testing the performance of a moving vehicle, controlling a multirotor self-balancing system for a bicycle or motorcycle system design, and clinical analysis using human behaviour. Smartphones are accessible and convenient devices, containing several sensors that can measure valuable data for motion analyzing purposes. It is important to study its ability to record data and motion analysis. In our previous study, we presented a novel approach for navigation of a vehicle using the smartphone sensors, with a low dependency to the GPS data [11].
The present study describes a new method for analyzing the motion of moving objects such as buses, cars, ships, motorcycles, multirotor, boats, helicopters, or airplanes. In this study, we present a new method to analyze the motion of these moving objects. The novelty of this study is that the presented work obtains the location of moving object based on the coupled measured data using the GPS and other motion sensors of a smart phone. It should be noted that in this method, it is possible to calibrate the sensors measurements using the converted data from GPS signals, and then this method can be used for GPS free navigations in future studies. Previous studies in this field have no attention to this matter. A JavaScript code has been generated and then the developed Android application is installed on a smartphone to record the values measured by its sensors for utilizing by a generated MATLAB code to analyze a car's trip.
2 METHODOLOGIES
2.1. Experiment
A Samsung smartphone (Galaxy S III I9300) was used in this study. The sensor measured parameters essential for analyzing the road journey of a Peugeot car (405 GLX) from Estahban to Neyriz in Iran. Android application is developed with homemade code using JavaScript. This application installed on the smartphone displays the necessary information on the screen, and writes it to an external memory. These data are time, data logging rate, latitude, longitude, altitude, acceleration in xs, ys, and zs directions, roll and yaw, pressure, and temperature. The phone is mounted at the estimated center of gravity of the vehicle. Figure 1 shows the smartphone coordinate system (xs, ys and zs directions) and the roll, pitch and yaw directions.
Fig. 1 The smartphone coordinate system in the car.
2.2. Coordinate Transformation
The coordinate transformation has been presented in “Fig. 2”, schematically. GPS data is in the world coordinate system, which designates each point with 3 elements as [12]:
(1)
Where, λ, φ and h are the longitude, latitude and height, respectively. The Earth-centered Earth-fixed coordinate system (ECEF) expresses this as [13]:
(2)
The origin of the coordinate system (xe, ye, and ze) is located at the Earth’s center of mass (see “Fig. 2”), which is not a sphere but a biaxial ellipse, therefore, and e=0.081819190842622 are inserted for correction. Where, re=6378137 m is the Earth’s mean radius.
This point in the north east down (NED) coordinate system has been represented as [13]:
Fig. 2 The coordinate transformations.
(3)
As shown in the “Fig. 2”, The origin of the vehicle-mounted NED coordinate system (xn, yn, and zn) is on the smartphones center of mass. The starting point and angle of the smartphone in this road trip in the local NED coordinate system is ,, , , and . Each point in our trip now has a 3D displacement vector from the starting point, which the slope of this displacement vs. time defines the vehicle velocity (Vn, in the NED coordinate system). All coordinate conversion steps up to this section use only GPS data. We can use position measurements and convert them to the phones coordinate system (Vs) using the following Equation [14].
(4)
As shown in “Figs. 1 and 2”, Vsx, Vsy, and Vsz are components of the car velocity vector in the xs, ys and zs directions, and ϕ, θ and ψ are roll, pitch and yaw angles, respectively. The slope of Vs vs. t defines the car acceleration (aGPS, in the smartphone coordinate system) which is in a same coordinate system with aaccelerometer (the measured acceleration using the accelerometer sensor). Calculating aGPS requires double differentiation (the slope of the displacement vs. time gives the velocity and the slope of the velocity vs. time gives the acceleration), but, aaccelerometer has been measured directly. Therefore, we can validate the aGPS and clear its immediate error. As shown in “Figs. 1 and 2”, accelerometer sensors provide acceleration vector components (asx, asy and asz) in the smartphone coordinate system, which are affected by the local gravitational acceleration (g) that has the following various with changing altitudes [15]:
(5)
Where, is the gravitational acceleration at the beginning of the road trip (at ). To remove this effect, asx, asy, and asz were transformed from the smartphone coordinate system to the NED coordinate system (see “Fig. 2”), using φ, θ and ψ angles, as below [15]:
(6)
Attending to the parallel directions of anz and g vectors, it is possible to remove the mentioned effect as , and then, transfer the corrected acceleration from the NED coordinate system to the smartphone coordinate system (see “Fig. 2”):
(7)
It should be noted that anx and any are perpendicular to the g direction, and therefore these parameters are free from the g effects.
2.3. Predictions of Pressure and Temperature
Pressure and temperature sensors are a common feature of today's smartphones. The used smartphone has a pressure sensor. Nevertheless, this phone does not have a temperature sensor. Therefore, the external thermometer (Testo 905i) is connected to the smartphone using a Bluetooth connection. Sometimes the measured temperature and pressure are ambient (external) values, e.g., a bicycle or car with the windows open. In this case, these values can be used to calculate outdoor air properties such as density or viscosity. In other cases, such as in jet aircraft, this measurement is an indoor value. Comparing the indoor and outdoor values of this parameter yields some of the stresses contained within the material body, such as normal and thermal stresses. The following Equations estimate the outdoor values of temperature and pressure at each altitude [16]:
(8)
3 Results and discussion
Figure 3 shows the data recorded in the external memory in a road trip, i.e., rate of data recording, pressure, temperature, role, pitch, yaw, three components of acceleration vector, altitude, latitude and longitude. This Figure shows that this smartphone records about 25 data in external memory every second in its normal activity mode. Increasing the data logging rate increases power consumption and reduces the time available to experience a fully charged battery. This is the average value measured by the speed sensor and the data received from the GPS unit. As mentioned earlier, the speed of measuring values by the sensor is about 200 samples per second in the normal activity mode of the smartphone used. However, the speed (and accuracy) of receiving data from a GPS unit depends on the number of visible satellites. As the number of visible satellites during the flight varies from 4 to 12, the rate (as well as the accuracy) is low in some locations. There is apparently reasonable agreement between the values recorded for pressure altitude and temperature. It agreed on the dependence of pressure and temperature on altitude.
Figure 4 shows the x-y plot obtained for this trip. A satellite image is applied to the background. The x-y plot taken in the NED coordinate system exactly matches the path on the map. This proves the validity of this method. Common navigation applications map your trip by comparing GPS data of your location and pre-recorded values for each point on the map. This study is not an exploratory method test. This paper presents a new and simple method to analyze the motion of moving objects. For this purpose, smartphones are a cheap combination of expensive sensors. This study confirms this ability.
Fig. 3 The recorded data in the external memory.
Fig. 4 Obtained x-y plot on a satellite image (Google Maps).
In geodetic measurements, a distance between two points can be calculated using the length of a straight line that connects these two points () or using the length of the existed road between these two points (). Figure 5 compares these values in the road trip test. Comparing dt with d clears that the mazes of the road increase the mentioned distance. The slopes of this curve show the mean value for the car speed (about 90 km/hr). The instantaneous car speed vector has been presented in “Fig. 6”. These two values have been calculated based on the GPS data. Attending to the forward motion of the car, it was expected that Vsy and Vs would be similar, except in some climbing or turning around cases.
Fig. 5 Covered distance in the road trip test.
Fig. 6 Instantaneous speed in the road trip test.
Figure 7 compares the uncorrected and corrected values of the measured accelerations. It is observed that the corrected asz is smaller than the corrected values of asx and asy, attending to the low acceleration of the car in the vertical direction in this road test. Figure 8 compares with , which are near together, occasionally. Nevertheless, the noisy GPS data have low accuracy for calculating the acceleration. Therefore, obtaining a location using the GPS and obtaining acceleration using accelerometer sensor are more accurate.
Fig. 7 The measured and corrected values of components of acceleration vector (using accelerometer sensor).
Fig. 8 The obtained acceleration of the vehicle by GPS and Accelerometer sensor.
Temperature and pressure are two valuable parameters for analyzing the performance of vehicles. The influence of the atmospheric conditions on the performance of a vehicle was studied previously [17]. It is resulted that this performance to be more affected by changes in the atmospheric pressure than in the temperature. In addition, effect of the atmosphere on the performances of aviation turbine engines were investigated [18]. In the open cabin vehicles, such as multirotor, bicycle or the used car, the sensed values of these parameters are equal to outside values. The outside values are usable for investigating the performance of multirotor propellers or a car’s motor. This is a simple method for validating estimating Equations for these values. Figures 9 and 10 compare the measured temperature and pressure using the external thermometer and smartphone’s pressure sensors, respectively, with the estimated values using Equation (8). A low variation of altitude in this road trip caused low variation in these two parameters. Nevertheless, there are acceptable accordance between these values and their estimations. This comparison gives valuable information in a long travel using a jet airplane, which compares the indoor and outdoor environments of a close cabin. These parameters have different values for inside and outside closed cabins. The sensors measure the inside values and the outside values are estimated using suitable Equations. The differences between the inside and outside values obtain the entered stresses on the physical structure of cabins.
Fig. 9 The measured and estimated values of temperature.
Fig. 10 The measured and estimated values of pressure.
4 Conclusions
In this study, a novel method for objects motion analyzing was defined. A JavaScript code was developed as an Android application that was installed on a smartphone to record the measured values by its sensors. In addition, a MATLAB homemade code was developed to analyze a road trip test using a car. Several coordinate transformations were utilized for this purpose. The effects of the gravitational acceleration were removed from the measured accelerations. It is observed that the obtained x-y plot had been matched on the road. It is concluded that the integration or differentiation improves the noises effects in the obtaining of the car location and acceleration using the accelerometer sensor and GPS unit of the smartphones, respectively. Considering low variation of altitude in this road trip, there was acceptable accordance between the measured and estimated values of temperature and pressure.
References
[1] Kosse, N. M., Caljouw, S., Vervoort, D., Vuillerme, N., and Lamoth, C. J., Validity and Reliability of Gait and Postural Control Analysis Using the Tri-Axial Accelerometer of the iPod Touch, Annals of Biomedical Engineering, Vol. 43, 2015, pp. 1935-1946, Doi: 10.1007/s10439-014-1232-0.
[2] Muro-de-la-Herran, A., Garcia-Zapirain, B., and Mendez-Zorrilla, A., Gait Analysis Methods: an Overview of Wearable and Non-Wearable Systems, Highlighting Clinical Applications, Sensors, Vol. 14, No. 2, 2014, pp. 3362-3394, DOI: 10.3390/s140203362.
[3] Milani, P., Coccetta, C. A., Rabini, A., Sciarra, T., Massazza, G., and Ferriero, G., Mobile Smartphone Applications for Body Position Measurement in Rehabilitation: A Focus on Goniometric Tools, Physical Medicine and Rehabilitation, Vol. 6, No. 11, 2014, pp. 1038-1043, DOI: 10.1016/j.pmrj.2014.05.003.
[4] Mourcou, Q., Fleury, A., Franco, C., Klopcic, F., and Vuillerme, N., Performance Evaluation of Smartphone inertial Sensors Measurement for Range of Motion, Sensors, Vol. 15, No. 9, 2015, pp. 23168-23187, DOI: 10.3390/s150923168.
[5] Verghese, J., Holtzer, R., Lipton, R. B., and Wang, C., Quantitative Gait Markers and Incident Fall Risk in Older Adults, Journals of Gerontology Series A: Biological Sciences and Medical Sciences, Vol. 64, No. 8, 2009, pp. 896-901, DOI: 10.1093/gerona/glp033.
[6] Zhao, Y., Mobile Phone Location Determination and Its Impact on Intelligent Transportation Systems, IEEE Transactions on Intelligent Transportation Systems, Vol. 1, No. 1, 2000, pp. 55-64, DOI: 10.1109/6979.869021.
[7] Weiland, R., Purser, L., Intelligent Transportation Systems, Transportation Research, Vol. 1, 2009, pp: 40-53.
[8] Xia, H., Qiao, Y., Jian, J. and Chang, Y., Using Smart Phone Sensors to Detect Transportation Modes, Sensors, Vol. 14, No. 11, 2014, pp. 20843-20865, DOI: 10.3390/s141120843.
[9] Kalra, N., Bansal, D., Analyzing Driver Behavior Using Smartphone Sensors: a Survey, International Journal of Electronic and Electrical Engineering, Vol. 7, No. 7, 2014, pp. 697-702.
[10] Thompson, C., White, J., Dougherty, B., Albright, A., and Schmidt, D.C., Using Smartphones to Detect Car Accidents and Provide Situational Awareness to Emergency Responders, Mobile Wireless Middleware, Operating Systems and Applications, Vol. 48, 2010, pp. 29-42, DOI: 10.1007/978-3-642-17758-3_3.
[11] Abolpour, B., Abolpour, R., and Hekmatkhah R., GPS-Independent Navigation Using Smartphone Sensors, SN Applied Sciences, Vol. 1 No. 11, 2019, pp. 1-9, DOI: 10.1007/s42452-019-1401-8.
[12] El-Rabbany, A. D., Coordinate Systems, and Map Projections, London, England: Artech House Publishers, 2002, pp. 47-68.
[13] Cai, G., Chen, B. M., and Lee, T. H., Coordinate Systems and Transformations, In Unmanned Rotorcraft Systems; London, England: Springer-Verlag, 2011, pp. 23-34, DOI: 10.1007/978-0-85729-635-1_2.
[14] Cook, M. V., Systems of Axes and Notation, Oxford, England: Elsevier, 2013, pp. 13-32, DOI: 10.1016/B978-0-08-098242-7.00002-X.
[15] Serway, R. A., Jewett, J. W., Universal Gravitation. Boston, USA: Brooks Cole, 1999, pp. 388-416.
[16] Champion, K. S. W., Cole, A. E., and Kantor, A. J., Standard and Reference Atmospheres, USA: Air Force Geophysics Laboratory, 1985, pp. 1-43.
[17] Soares, S. M. C., Sodre, J. R., Effects of Atmospheric Temperature and Pressure on the Performance of a Vehicle, Proceedings of the Institution of Mechanical Engineers Part D: Journal of Automobile Engineering, Vol. 216, No. 6, 2002, pp, 473-477, DOI: 10.1243/09544070260137499.
[18] Balicki, W., Glowacki, P., Szczecinski, S., Chachurski, R., and Szczecinski, J., Effect of the Atmosphere on the Performances of Aviation Turbine Engines. Acta Mechanica et Automatica, Vol. 8, No. 2, 2014, DOI: 10.2478/ama-2014-0012.
COPYRIGHTS
© 2023 by the authors. Licensee Islamic Azad University Isfahan Branch. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution 4.0 International (CC BY 4.0) (https://creativecommons.org/licenses/by/4.0/)
-
Investigating Cooling Effect with Compound Angle on the Combustion Chamber Wall Temperature
Print Date : 2018-09-01 -
-
The Aerodynamic Effects of the Blade Lean on a High-Aspect-Ratio Transonic Axial Flow Rotor
Print Date : 2018-06-01 -
Effect of Aerodynamic Blade Change of Two-Stage Axial Subsonic Turbine on Design Point
Print Date : 2019-06-01
The rights to this website are owned by the Raimag Press Management System.
Copyright © 2021-2024