Abstract
Floor identification plays a key role in multi-story indoor positioning and localization systems. Current floor identification systems rely primarily on Wi-Fi signals and barometric pressure data. Barometric systems require installation of additional standalone sensors to perform floor identification. Wi-Fi systems, on the other hand, are vulnerable to the dynamic environment and adverse effects of path loss, shadowing, and multipath fading. In this paper, we take advantage of a pervasive magnetic field to compensate for the limitations of these systems. We employ smartphone sensors to make the proposed scheme infrastructure free and cost-effective. We use smartphone magnetic sensors to identify the floors in a multi-story building with improved accuracy. Floor identification is performed with user activities of normal walking, call listening, and phone swinging. Various machine learning techniques are leveraged to identify user activities. Extensive experiments are performed to evaluate the proposed magnetic-data-based floor identification scheme. Additionally, the impact of device heterogeneity on floor identification is investigated using Samsung Galaxy S8, LG G6, and LG G7 smartphones. Research results demonstrate that the magnetic floor identification outperforms barometric and Wi-Fi-enabled floor detection techniques. A floor change module is incorporated to further enhance the accuracy of floor identification.
Keywords: floor identification, indoor localization, machine learning, smartphone sensors, geomagnetism, fingerprinting
1. Introduction
In recent years, Indoor Positioning and Localization (IPL) systems have received much attention from industry and academia because the proliferation of smartphones has opened new possibilities for indoor localization. IPL systems are grouped under two categories: infrastructure-based and infrastructure-free. Therein, the common examples of infrastructure-based technologies are Radio Frequency IDentification (RFID), Ultra-WideBand (UWB), Infra-Red (IR) and Global Positioning Systems (GPS) [1,2,3,4]. Fusion of these technologies is also reported in [5] where RFID is utilized along with cellular data. The frequencies from Ultra High-Frequency RFID (UHF RFID) and macro-cellular networks are used to refine the localization accuracy. The wide availability of cellular networks helps to calculate a coarse location which can be used by other localization technologies. Authors use the location calculated from RFID, and macro-cellular separately and fuse them to refine the location. However, the indoor localization is now shifting towards infrastructure-free technologies due to the ease of installation and cost effectiveness [6]. Towards this end, the Micro-Electro-Mechanical Systems (MEMS)-based built-in sensors of smartphones including accelerometers, magnetometers, and gyroscopes, etc. are of interest, which do not require any additional hardware to operate. We can find various applications of MEMS-sensors in most recent works [7,8,9].
The inception of Location-Based Services (LBS) also accelerated this adventure as precise location information serves the leading role in LBS. LBS such as navigation, assets tracking, shopping guide, etc. require a precise location for better user experience. LBS has special requirements including accuracy, availability, cost, and quality of positioning services which most IPLs are currently unable to achieve [10]. The emergence of long term evolution (LTE) helps to achieve better location accuracy in indoor environments. The small cell design is the basis for systems providing innovative location techniques to localize the user in medium/large indoor areas including malls, offices, and corporate buildings [11]; 5G networks will also help to refine the localization accuracy. Currently, localization systems mostly perform localization on the server side and location is sent back to the user. This causes communication delays and increases latency. With the increased data rate that 5G will offer, the latency can be improved in IPL. IPL can play a key role to improve the quality of 5G services as well. Accurate location information can be utilized by 5G services to improve Signal-to-Noise Ratio (SNR), mobility, scalability, and robustness, etc. [12].
Current IPL systems are not very attractive due to the single floor localization environment since a user can come across multiple floors during the localization process. This eventually reduces the accuracy of such systems and limits their wide applicability. In IPL systems, the accurate identification of the floor is very essential since it can play a vital role in reducing lifesaving efforts during emergency response actions. In general, the floor identification techniques can be categorized into three classes: purely Wi-Fi-enabled techniques, purely barometer-based techniques, and hybrid techniques. Wi-Fi-enabled techniques are the popular ones as they use an already deployed Wi-Fi network. Therein, they rely only on the signals from Wi-Fi Service Access Points (SAPs). However radio signals based floor identification (e.g., Wi-Fi, Bluetooth, RFID) is highly sensitive to building materials, wall separations, and floor plans and so they are vulnerable to random noise, path loss, multipath interference, shadowing, and so on [13]. Therefore, floors with an uneven structure and open spaces can cause high identification errors [14]. Floor detection using the cellular networks data has also been done in [15]. Floor detection, also termed vertical positioning, is calculated using the femtocells placed in the experiment area. The floor detection accuracies from global navigation satellite systems (GNNS), inertial sensors (INS), barometer and cell ID are compared. The results demonstrate that barometer performs better among all selected techniques and cell ID can work as a complementary technology. Dense deployment of cells is expected to introduce interference and reduce the accuracy.
The barometric pressure-based floor identification techniques collect data from a smartphone-embedded barometer sensor. For data collection, barometers are installed at reference positions at the floor(s) and are connected to a server so as to update the pressure readings periodically or on demand otherwise. However, such data can change over time very rapidly due to weather variations. For example, the data of barometric pressure vary approximately 1.68 hectopascals (hPa) in a short time of 15 min only [16]. The external atmosphere and internal conditions including window openings, air conditioning, and heating can compromise the accuracy of the system as well. Therefore, a more recent reference reading of the atmospheric pressure is required every time the floor identification is performed. The hybrid approaches make use of both Wi-Fi and barometer pressure sensors to increase the accuracy of IPL systems [9]. The fusion of these approaches is aimed to get fine floor identification results. However, such techniques show their dependence on the infrastructure as well. We can find the use of some other sensors including accelerometer and Bluetooth to achieve higher floor identification accuracy as in [17,18].
In this paper, we propose a floor identification mechanism based on the pervasive magnetic field data, which is an infrastructure-free solution. Magnetic field has been used in many research areas recently including indoor localization [19], building localization [20], and indoor-outdoor transition detection [21], etc. Inspired from such research works, we leverage it to identify specific floors. The proposed approach does not rely on wireless technologies like Wi-Fi and Bluetooth in order to avoid the side effects of path loss, shadowing, and multipath fading. Further, it is a cost-effective solution because it does not require additional sensors to be placed inside the buildings. It works on a natural phenomenon and is inspired by the indoor localization systems such as in [22,23]. Towards this end, we use the built-in magnetic sensors of smartphones in our proposed system. To the best of our knowledge, floor identification based on magnetic data is firstly proposed to compensate for the side effects of existing systems.
The key contributions of this research work can be summarized as follows:
We propose a novel floor identification approach based on the pervasive magnetic field. The proposed approach does not need any assistance from Wi-Fi and barometers. It solely works with the magnetic sensor of the smartphone.
We investigate the user phone carrying positions by a comparative analysis of machine learning techniques. Therein, three phone orientations, normal walking, call listening, and phone swinging, are identified with the help of smartphone accelerometer, gyroscope and magnetometer data. The proposed approach is reliable such that its accuracy is not affected by variations in the phone orientations or carrying positions of the mobile phone users.
We suggest the floor change detection mechanism using features from the magnetic and accelerometer data. K Nearest Neighbor (KNN), Decision Trees (DT) and Naive Bayes (NB) classifiers are tested to discriminate user’s walk on stairs and a plain surface so as to augment the accuracy of floor identification.
The rest of this paper is organized as follows. Section 2 takes an overview of the related works. Section 3 narrates necessary details about the magnetic field. Section 4 describes the proposed methods for floor identification and stairs detection. Section 5 presents the experiment set up and discusses the results. Section 6 concludes the paper.
2. Related Work
The widespread growth of smartphones motivated many research works for indoor localization. A large body of work can be found in the literature which utilizes smartphone sensors including the magnetometer and inertial navigation systems [24,25,26]. Additionally, the fusion of various smartphone sensors has proven very fruitful for localization as in [22]. Authors use the fusion of magnetic and visual sensors to perform localization. They also make use of floor plans of a building to refine localization accuracy. Similarly, the embedded barometer sensor in smartphones has led to numerous research works related to floor detection. We only discuss the research works that utilize smartphone based sensors to determine the current floor of the users in a building.
Reseach works [16,27] explore Wi-Fi-based approach combined with the relative change in pressure to identify the current floor of the user. In [28], we can find another system that works on the fingerprint map built from barometer historic data using a crowdsourcing approach. In [29], another method based on Wi-Fi signals is suggested which identifies a floor by collecting labeled Wi-Fi fingerprints on one floor only. Therein, a graph embedding method is used on data from different floors in order to propagate labels. Later, training is performed to infer labels for unlabeled data. However, the fingerprint data is needed to be collected on all floors. It is only different from the traditional approach in a way that the data on one floor is labeled manually. The rest is labeled automatically using a machine learning technique. In [30], Locus is proposed for floor identification that takes into account the existing knowledge of infrastructure and Wi-Fi SAP (Server Access Points) using a heuristic approach. However, the accuracy of Locus system is limited to 95.3%. In [31], Wi-Fi-based floor identification method is proposed on a fingerprint database approach. The fingerprints are collected in a grid where each grid point is separated by 1.6 meters. Then a floor discriminate model is trained based on Fisher’s Linear Discriminant and selects W to maximize the ratio of between-class scatter and within-class scatter. The phone accelerometer is used to identify the user’s state of elevating up and down.
In [32], we can find the application of smartphone sensors. Therein, a Wi-Fi-based barometer sensor is placed on each floor. The reference data from each sensor is retrieved and updated on the SAP server. Whenever the floor identification is performed, reference barometric data is compared with the current data values of the smartphone. The experiments are performed using three different smartphones with ‘in-pocket’ and ‘out-of-pocket’ modes. However, the window of 5 seconds can only achieve an accuracy of 94.47%. Further, this approach requires reference data whenever the experiment is performed. It is infrastructure-dependent and always needs to communicate to the server while getting reference barometer pressure values. In [33], a KNN and Back Propagation Neural Network (BPNN)-based floor identification is proposed, which uses Wi-Fi-based information and smartphone sensors including accelerometer and barometer. BPNN system involves an offline phase to make a fingerprint database of available SAPs on each floor. During the online phase, K-NN and BPNN algorithms need to determine initial floor in order to load the database. Then, the floor detection is performed with the help of barometric pressure and accelerometer data.
In [34], a hybrid scheme called HYFI is proposed that uses data of Wi-Fi SAPs and that of a barometer on a floor. HYFI scheme works in two steps. The first step involves the calculation of the distribution probability of scanned SAPs during the offline phase and then utilizes Bayesian classification to identify the floor. The second step is used to compensate for the identification error caused by variable factors like hollow spaces and uneven floor areas on a floor. For this purpose, the floor information from the first step is used to initialize and calibrate barometer pressure-based floor identification. In [35], another floor recognition method utilizes Wi-Fi signals based on the classifier of the Support Vector Machines (SVM), in which data for each floor is collected using the smartphone. The fact that Wi-Fi signals have an obvious change when passed through walls and floors is used to discriminate the floors. In [36], another scheme is proposed that uses barometric pressure data to identify the floor of the user. The statistical features of Root Mean Square (RMS), kurtosis, skewness, peak-to-peak, crest factor, shape factor, margin factor and impulse factors are extracted from the barometer data. Then, a Fuzzy C-Means clustering algorithm is applied to the extracted features to identify various floors. The testing is performed on Indoor Positioning and Indoor Navigation (IPIN) 2016 competition data set for floor identification. In [37], a calibration-free probabilistic approach is used to identify the floor of the user.
However, Wi-Fi fingerprinting-based systems [29,31] require an offline phase of fingerprint collection which involves much of the time and cost. The major problem with the Wi-Fi fingerprinting is the periodic update to accommodate the Received Signal Strength Indicator (RSSI) changes over time. Other dynamic factors including the presence of obstacles also affect RSSI which ultimately reduces the overall accuracy of such systems. In [30], the heuristic-based approach is not generalized for different test beds and exhibits various accuracy results in various environments. In [31], it is pointed out that Wi-Fi fingerprint-based schemes use the Euclidean space, which is prone to error due to Received Signal Strength (RSS) from the neighboring floor. The neighboring floor may become very similar to the RSS from the neighboring room in many cases [31]. In the same way, the scanned RSS values for the same device may not be the same over time, even for a fixed location [38,39].
In barometer sensor-based systems, the data readings are required for a reference point of the barometric pressure. The altitudes are calculated with the barometric data and compared against the height of the buildings to get the floor information of the user. One option is to utilize the knowledge of user initial floor information and its barometer data but it reduces the usability of such systems. Towards this end, [28,40] rely on reference pressure value from barometer sensors deployed on each floor. In [41], only one reference barometer sensor is used. For this purpose, the height of each floor should be known. However, exact height information of each floor may not be available in many cases. Furthermore, this approach is not very practical where the floor structure is irregular. The fact that the barometer data has different readings caused by humidity and temperature further reduces the accuracy. In [40], another approach is used to fetch the reference barometric pressure of each floor where floor identification needs to be done by using those reference values to find the floor number. This approach is limited by the fact that the local authorities cannot provide the exact data of small areas or buildings frequently. Additional barometers at each floor are installed to overcome this issue but it incurs extra cost; not to mention the fact that such systems are infrastructure-dependent and cannot function without the installed reference sensors.
3. Overview of the Magnetic Field
The earth’s magnetic field is the omnipresent phenomenon caused by the convection currents in earth’s outer core. The magnitude of the earth magnetic field varies from 25 Tesla to 65 Tesla. During the last few years, magnetic field positioning has enticed an ample consideration for indoor localization primarily because of its pervasiveness and secondly due to its infrastructure independence. The earth magnetic field strength is uniform and is not commuted abruptly over a small area. However, the presence of ferromagnetic materials including steel-reinforced concrete, metallic doors, pillars or steel walls interfere with the natural magnetic field and introduce disturbances also called anomalies [26,42].
The magnetic field is comprised of seven components in total as shown in Figure 1. The x, y, and z show the magnetic field components for North, South and vertical intensities while H is the total horizontal intensity and F represents the total intensity or magnitude of the magnetic field at a given point. The D and I are measured in degrees and they represent the declination and inclination respectively.
Magnetic field intensity varies in different buildings and exhibits a unique pattern that can be used as a fingerprint. Similarly, the magnetic field shows different patterns on different floors. Figure 2 shows the behanior of the magnetic field on different floors of IT building. Figure 2a shows the total magnetic intensity of IT buildings floors 1, 2, and 3. Figure 2b shows the magnetic samples collected on the same points at floor 1, 2 and 3 to show its variation. A total of 500 samples are collected at each point to view the magnetic variation on different floors. The stability of the magnetic field and its variant behavior on different floors make it suitable for floor detection.
One important aspect to investigate is whether the change in the magnetic value is caused by various orientations of the user or it is the height of the user that affects the magnetic value. We gathered magnetic data involving users of different heights including 172 cm, 175 cm, and 178 cm. The data was gathered for three phone orientations under study in this research. Figure 3 displays the effect of user’s heights, as well as, various phone orientations on the magnetic field. Figure 3a,b show that the impact of users’ height is very small for plain walk and call listening orientations. However, change in the magnetic value in phone swinging as shown in Figure 3c is slightly higher than those of the other two orientations. On the other hand, Figure 3d shows that different phone orientations cause a potential change in the magnetic field. So, the analysis revealed that the change in magnetic value is more caused by changing orientations than users’ heights.
The use of different smartphones also affect the magnetic data. Smartphones have magnetometers manufactured by various companies with different configurations. The magnetic data from different smartphones depend on the sensitivity and accuracy of the installed magnetometers. Figure 4 shows the magnetic data collected on floor 3 of IT building using Galaxy S8, LG G6, and LG G7.
Figure 5 shows the data collected from users of different heights and its associated Binary Grid (BG). We propose the use of Binary Grid (BG) approach to overcome the limitations of the user’s height. The BG approach is introduced in [7] to mitigate the impact of different smartphones. The approach does not use the magnetic intensity, instead, it transforms the magnetic data into patterns and compares those patterns. Figure 5b shows the impact of using the BG approach over magnetic intensity. Figure 5b shows that in spite of different magnetic intensity in Figure 5a, the generated BG are very similar and thus helps to reduce the impact of different smartphones and user heights.
4. Proposed System
The proposed system is composed of offline and online phases, which we, respectively, called calibration (or training) and floor identification phases. The offline phase involves surveying to collect the magnetic fingerprints of the area where floor identification is to be performed. Fingerprinting involves collecting multiple values at each selected position separated by a fixed distance and transforming the normalized values into magnetic fingerprints. The online phase incorporates data collected from user smartphone sensors to perform tasks of floor identification. Before we proceed, we summarize the used notations in Table 1.
Table 1.
Notation | Description of Notation |
---|---|
N | Total number of floors in a building. |
O | User phone orientation. |
M | Magnetic data from smartphone. |
Transformed magnetic sample. | |
Set of Euclidean distance between magnetic sample & fingerprint database. | |
Fingerprint magnetic database of a floor in building b. | |
Set of calculate floor candidates. | |
Identified floor where the user is right now. |
Figure 6 presents the block diagram of the proposed method. The proposed method comprises three steps which we briefly explain in the following.
Step 1: The first step determines the user activity. The user activities are distinguished as normal walking, call listening, and phone swinging as shown in Figure 7. In [43], we can find a neural network to classify these activities based on the acceleration data. However, use the orientation data from accelerometer and magnetometer sensors as well as the acceleration data to improve the accuracy in the real environment. The acceleration data of these user activities are different along x, y, and z axis as shown in Figure 8. The phone orientation by the user activities exhibits different behavior as well. Towards this end, we have shown the smartphone orientation data in Figure 9.
One can consider a variety of techniques to classify user activity, such as regression, deep learning, and machine learning techniques [44]. Deep learning models often require a substantial amount of data for training purposes to work in an unsupervised manner. Such models require additional time and computing resources for the training purposes. On the contrary, machine learning methods can work with a small amount of data labeled already. Therefore, we employ machine learning-based classification algorithms and analyze the performance of KNN, DT, and NB. The selected classifiers classify phone carrying position of the user so that the collected magnetic data can be transformed according to the user smartphone carrying position. However, it is not a trivial task since the accuracy of the floor detection algorithm heavily depends on it. If the magnetic data transformation is not good, it may generate wrong results. DT based classification is one of the most widely used techniques in machine learning. It can imitate human decision making and deduce decisions based on the provided feature set. A decision tree consists of a root node, internal node, and leaf. A node is a representation of a feature while the edge is associated with the decision or rule [45,46]. The gain ratio is the most commonly used criteria for tree split. DT are propitious on account of their easy interpretation and being computationally inexpensive. In addition, they are non-parametric and do not need prior assumptions about the feature set.
KNN is another widely used classifier also called the lazy learner. It is also a non-parametric technique and holds no assumptions on the data distribution. It draws the boundary lines between the classes of data based on the distance between the data points. Euclidean distance is the most commonly used distance measure in KNN along with many others including Mahalanobis, City block, Manhattan distance, etc. A new object is classified on the basis of its distance to a particular class [47]. Despite the fact that it is simple and easy to understand, it can become slow if the training data is large [48]. The NB classifier can predict the probability of a given sample to a particular class based on the Bayesian theorem. NB is simple yet can outperform other sophisticated classification methods [49,50]. NB assumption of attributes independence results as,
(1) |
which means that for a given sample x, the class is associated with the sample which achieves the highest posterior probability which is calculated by,
(2) |
where X is the set of training samples while C denotes the set of class labels.
The features from smartphone accelerometer, gyroscope and magnetometer are used to identify user activities. The accelerometer provides acceleration in x, y, and z directions. The total acceleration, a, can be calculated as follows,
(3) |
However, the acceleration has error called bias, even after the calibration. This bias needs to be estimated and removed to get accurate distance information. If the smartphone is put motionless on a plain surface, the acceleration in x and y direction should be 0 and z acceleration should be 1 g (9.81 m/s2). So, any additional reading is marked as bias. We have calculated the bias-free acceleration in the following,
(4) |
where , and represent the measured x-axis acceleration while is the actual x-axis acceleration. The total bias-free acceleration for a given time t can be calculated as,
(5) |
The features from corrected acceleration along with gyroscope and magnetometer are used to classify a particular user activity after the acceleration values are corrected.
Step 2: We here conduct floor identification process by Algorithm 1. We investigate the use of magnetic field data for floor identification. The first task is to transform the magnetic data with respect to the identified phone orientation. The magnetic fingerprint database is built relative to the global coordinates irrespective of the phone orientation. The fingerprinting involves surveying for data collection that requires time, cost, maintenance and updating as well. However, updating is not required unless any major changes involving ferromagnetic materials in internal infrastructure are made since the magnetic field is very stable. The first important task to perform floor identification is to get a fingerprint database of each floor of a building of interest.
Algorithm 1 Floor Identification Using Magnetic Data |
|
The data collection points are separated by 1 m as shown in Figure 10. This shows the example case of making the fingerprint database at IT building floor 3. A total of 50 magnetic samples are collected at each point with a sampling frequency of 10 Hz. The collected samples are averaged and later a spline interpolation is performed to generate the intermittent values between the given points. The generated values are then transformed into magnetic patterns using the BG algorithm proposed in [7]. The transformed patterns serve as the fingerprint database. We now can transform the magnetic data since the database is built with respect to global coordinates. We use two coordinate systems called global coordinates, and body coordinates. Global coordinates represent the Earth-fixed coordinate system while the smartphone coordinates are taken as body coordinates. The magnetic data are transformed with respect to the phone orientation to match it against the database. Let be the magnetic field value at the global coordinate system and be the magnetic readings at the smartphone coordinate system. The relationship between and can be defined as [51],
(6) |
where , , and are the corresponding matrices for yaw, pitch, and roll. Yaw, pitch, and roll respectively represent rotation around z, y, and x axis as shown in Figure 11.
We need to find yaw, pitch, and roll to transform the magnetic data. Yaw is the rotation around z-axis of the body represented by . The rotation matrix is represented as,
(7) |
Pitch represents the rotation around y-axis of the body, denoted by , which is calculated as,
(8) |
Roll is the rotation around x-axis of the body, which is denoted by and is calculated by,
(9) |
Once yaw, pitch, and roll are calculated, the transformation of magnetic data can simply be done as Equation (6). The magnetic sample, , is matched against the databases of all floors of a building to calculate the Euclidean distance,
(10) |
The Euclidean distance is calculated for each floor database. The term indicates the databases of a building b. Since there are multiple floors in buildings, so j refers to floor number in building b. Equation (10) shows that the magnetic sample is matched against the database of each floor in a building to calculate the Euclidean distance. The floor with the minimum Euclidean distance is the floor candidate for a given magnetic frame. The process is repeated for the five frames of data. The ‘frame’ indicates the data collected over 1 s from smartphone sensors. The data are collected at a sampling rate of 10 Hz (a new value after every 100 ms). We have used five frames based on the empirical findings. Our experiments reveal that if we use less than five frames, floor detection accuracy is affected. Using more frames of data surely increases the accuracy, yet, longer data may not be available in many situations especially when the indoor space is short. The processing of five frames yields five potential candidates (one for each frame). Hence, each frame has one vote for the final decision. The final decision is made against the majority of the votes.
Once the floor identification is done using five frames of the magnetic data, it produces a set of five predictions. So, it is possible that the predictions are not consistent every time. The prediction set may contain predictions for different floors even though the user is at the same floor. We found that the prediction set can have one of the following forms: or is floor 1. or or . Where each element of a set is a floor prediction made using one frame of the magnetic data. The floor with a higher prediction frequency is regarded as the predicted floor. However, if the prediction frequency of multiple floors is same in the prediction set, the decision is made by,
(11) |
Step 3: This step helps in identifying the floor change when the user walks on the stairs. The task of floor change detection is achieved with the help of accelerometer and magnetometer data. The change in acceleration magnitude and acceleration patterns are different when the user walks on the stairs than that of walking on a plain floor. We only need to identify the important features that can be used to determine the user state of walking on the plain floor and stairs. We have identified six features in the accelerometer data that are suitable to discriminate the above-mentioned states.
The selected features are based on the output of the Recursive Feature Elimination (RFE) method [50]. It is a famous method to perform the important task of feature selection. It can fit a model and remove the weakest feature(s). The features are ranked by their importance by recursively eliminating feature(s) at each iteration. The optimal number of features are found by using cross-validation with RFE method. RFE features ranking is given in Table 2 while the features selected after RFE and their notations are discussed in Table 3.
Table 2.
Feature Name | Feature Ranking | Selected |
---|---|---|
Average total magnetic intensity per frame | 11 | False |
Average magnetic x intensity per frame | 8 | False |
Average magnetic y intensity per frame | 9 | False |
Average change in total magnetic intensity per frame | 7 | False |
Maximum change in total magnetic intensity per frame | 4 | True |
Average x-acceleration per frame | 3 | True |
Average y-acceleration per frame | 5 | True |
Average z-acceleration per frame | 10 | False |
Average total acceleration per frame | 2 | True |
Peak values in total acceleration per frame | 1 | True |
Maximum change in total acceleration per frame | 6 | True |
Table 3.
Notation | Description of Notation |
---|---|
Average x-acceleration per frame. | |
Average y-acceleration per frame. | |
Average total acceleration per frame. | |
Peak values in total acceleration per frame. | |
Maximum change in total acceleration per frame. | |
Maximum change in total magnetic intensity per frame. |
The selected features show different values for users state of walking on stairs and plain floor. For example, Figure 12 shows the selected feature of for a user walking on the plain floor and stairs. Figure 13 shows the feature of for the given user activities. It can be seen that the magnitude of these features is very much different for two user activities. In Figure 12 and Figure 13, each displayed value is calculated for 1 frame of data at a sampling frequency of 10 Hz. The selected features are fed into the machine learning techniques including KNN, DT, and NB to train the model. Later, the trained model is used to detect the floor change using the user collected data. During Step 2, when floor identification is performed, we do not track the user’s floor. The normal process involves the identification of a specific floor every time we get the data from the user smartphone to further enhance the accuracy of the proposed method.
The complete process of floor identification runs on the server side. The server is an Intel i7, 3.20 GHz running with 16.0 GB installed memory. Floor identification takes 0.039 s on average for one floor identification request. The processing time is averaged for a total of 24,000 floor identification requests from three smartphones Galaxy S8, LG G6, and LG G7.
5. Experiment and Results
We here describe the experiment set up before we discuss the experiment results. The location of the experiment and the details of the buildings are described as well.
5.1. Experiment Setup
The experiments are carried out at two different places including a university campus The Yeungnam University Campus is located in Gyeongsan, North Gyeongsang, South Korea. and a shopping mall Home plus supermarket is located in Gyeongsangbuk-do, Gyeongsan-si, South Korea. More precisely, we have selected two buildings including the Information Technology (IT) department building and Business & Economics (BE) department building from the university campus. The IT building has 3 floors while the BE building has 5 floors in total with 1 underground floor. The shopping mall has 6 floors in total including 2 underground floors. Three buildings where the experiment has been performed are shown in Figure 14. The data readings at the buildings, selected for the experiment purpose, are collected during different times of the experiment period. The magnetic data are collected over a period of 6 months to conduct the experiments for floor identification. Samsung Galaxy S8 (SM-G950N) is used for the data collection purpose. The details of the sensors used for the data collection are summarized in Table 4. The data are collected over a sampling rate of 10 Hz (a new data sample after every 100 ms) for magnetometer, accelerometer, gyroscope, and barometer. The Wi-Fi data is collected with a sampling rate of 1 Hz.
Table 4.
Item | Description |
---|---|
SM-G950N | Galaxy S8 Octa-core, Adreno 540 GPU, Android 7.0, 4 GB RAM |
Magnetometer (AK09916C) | 3-axis, 16-bit, sensitivity 0.15 μT/LSB, temperature −30 +85 °C, 1.1 mA @ 100 Hz [52] |
Accelerometer (LSM6DSL) | 3-axis, 16-bit, sensitivity 0.061 mg/LSB, Temperature −40 +85 °C, 0.29 mA @ 52 Hz [53] |
Gyroscope (LSM6DSL) | 3-axis, 16-bit, sensitivity 125 mdps/LSB, Temperature −40 +85 °C, 0.29 mA @ 52 Hz |
Barometer (LPS22HB) | 24-bit, 260 1260 hPa range, temperature −40 +85 °C, 3 μA |
Wi-Fi (Broadcom BCM4361) | Single-chip dual-band 3-stream 802.11ac, 1.3 Gb/s, 256-QAM modulation, LDPC (Low Density Parity Check) codes [54] |
5.2. User Phone Carrying Position
We used the third floor of IT building for the training data of user phone carrying positions. The training data contains 900 samples of each orientation which are fed into the selected classifiers. Supervised training is used where the labeled data is used for the training. The training vector contains the magnetic azimuth, pitch, and roll and acceleration in x, y, and z directions. During the testing, the data from three buildings are used and 8000 samples of each phone orientation are tested. Figure 15 shows the average results for three phone orientations. The accuracy of NB classifier is observed higher than that of the DT and KNN. Machine learning-based classifiers show good performance to classify user various phone holding positions. The accuracy of the acceleration data remains lower than that of the magnetic data for all classifiers since the acceleration data is noisy compared to the magnetic data. We achieved higher accuracy when the acceleration and magnetic data are combined.
5.3. Floor Identification
Floor identification algorithm is used on the magnetic data for floor identification. The accuracy of the proposed method is compared to the Barometric data and Wi-Fi data approaches. We have used the same smartphone to collect the Wi-Fi, magnetic and barometer data. The hypsometric equation [55] is used to perform barometric floor identification as follows,
(12) |
where P is the current atmospheric pressure, is the sea-level pressure which is 1013.25 hPa, h is the altitude, and T is the temperature. We have used T as 15 °C in Equation (12).
For a floor, we calculated the reference barometric pressure (denoted by ) of 15 s data. This process is repeated for every floor where we perform the experiment. The is used to calculate the reference altitude (denoted by ) of the associated floor. The calculated is for normal walking mode. Now, we need to define the altitude restriction (denoted by ) for call listening, and phone swinging mode. During the normal walking mode, the smartphone is held at an altitude of 1 m from the ground floor. So, we define as m for call listening, and swinging mode, respectively. The value of is calculated every time we perform the experiment since atmospheric pressure changes during the different times of the day. The barometric data for 1 s is averaged to calculate the altitude. The calculated altitudes are compared with to find the floor. On the other hand, the Wi-Fi floor detection is performed with the fingerprint database approach. Wi-Fi data are collected at specified points separated by 1 m. The fingerprint database contains Basic Service Set Identifier (BSSID) and RSSI in dB of each scanned SAP on that point. Two elements used to perform floor identification with Wi-Fi are Highest RSSI of specific SAP’s at individual floors and Matched RSSI’s of scanned SAPs with the database.
During the testing process, the BSSID of scanned SAP and its associated RSSI value is compared with the fingerprint database of each floor. The fingerprint database of a floor with lowest error is the most probable floor of the user. The error is calculated based on two criteria that are the number of matched SAPs and the lowest difference per matched SAP. Experiments are performed within specified buildings for 3 different smartphone orientations. The accuracy results are shown in Figure 16, in which the barometer achieves an overall accuracy of 86.39%. The floor identification accuracy using the barometer is higher for the normal walking mode and is lowest when the user walks with phone swinging. The overall accuracy is high because the reference value is used every time the floor detection is performed. However, the major limitation of using the barometer is the retrieval of reference barometric pressure or altitude when floor identification is needed. Normally, it is achieved by placing a barometer sensor at each floor at a specific height from the ground and then use the reading from that sensor to do the floor detection. So, a recent dynamic reference reading from barometer increases floor detection accuracy with the barometer. Another option is to place one sensor at only one floor of a building and use the calculated altitude as the reference altitude. Other altitude values of the floors are derived using the reference altitude and known heights of each floor. However, this approach is not as accurate as using the reference data from each floor.
We observe that Wi-Fi-based floor identification has a lower accuracy compared to that of the magnetic and barometric floor identification as shown in Figure 16. Wi-Fi floor detection accuracy highly depends upon the matching of a higher number of SAPs and similarities in RSSI values. BE building has 8–10 SAPs on average. On the other hand, IT building has an average of 30 SAPs at each scanning position. So, the overall accuracy is respectively observed as 90.83% and 77.58% for the normal walking mode. Similarly, the number of SAPs in the shopping mall are high and so the floor detection accuracy in the shopping mall is observed as 87.76%. The average accuracy for Wi-Fi-based floor identification is 78.08% where the average accuracy is calculated as:
(13) |
where , and represent correct and total predictions for different orientations.
The factor which limits Wi-Fi performance is its volatile behavior. Wi-Fi signals are affected by many dynamic factors including the presence of people and other obstacles at various orientations and direction of the smartphone during the scanning process. Furthermore, Wi-Fi signals are depleted over time and so the accuracy of the system goes down.
Experiments for magnetic floor detection are done with Galaxy S8, LG G6, and LG G7 smartphones. The magnetic database is built using Galaxy S8 while experiments involve three smartphones. The magnetic database does not contain magnetic values. Instead it stores the magnetic patterns formed using the BG approach.
Three smartphones have different results for magnetic floor detection. As described in Section 3, the magnetic data is affected when different smartphones are used. The effect of smartphone heterogeneity lead to different floor identification results. Although we have used BG, even so, the magnetic patterns from different smartphones are not exactly the same. It results in different accuracies for different smartphones. However, the experiments results demonstrate that the magnetic floor identification is feasible and more precise than that of Wi-Fi.
The experiment results prove that the magnetic data has a huge potential in this regard as shown in Figure 16. The average accuracy with S8 is observed as 89.24% which is higher than that of the barometer data (i.e., 86.39%). Although the magnetic floor identification with G6, and G7 are 87.39%, and 88.58% respectively, yet, it is still better than those of barometer and Wi-Fi. Additionally, unlike the barometer floor identification where we retrieved a reference reading every time, the magnetic data are collected only once to make the fingerprint database. The magnetic field data shows stability over time. Moreover, the use of magnetic patterns mitigate the impact of device heterogeneity and users heights. The magnetic field is pervasive and does not require any additional sensors to be installed like the barometric floor detection does. The data are collected using a smartphone built-in magnetic sensor to perform the floor identification. The individual accuracy for normal walking, call listening, and phone swinging modes are also good for magnetic floor identification. Therefore, it is safe to say that magnetic floor detection is robust and energy efficient compared to the Wi-Fi-enabled systems.
5.4. Floor Change Detection
We take the collected data and perform the floor detection for each user request without the knowledge of his prior floor. Since the floor of the user during the floor identification process is not tracked. This process does not include the stairs detection. The floor change detection step is added to refine the floor identification accuracy. The results of floor change detection using the above mentioned machine learning methods are shown in Figure 17. Therein, all selected classifiers perform well in detecting the stairs using the accelerometer and magnetometer data features. However, NB outperforms KNN and DT classifiers. Therefore, we use NB in our proposed floor identification method to improve accuracy. The accuracy can further be improved with the help of the floor change detection method. The improvement is due to the fact that the user is not walking on stairs very frequently and use them when he/she needs to change the floor. The average accuracy of the barometer, and Wi-Fi-based floor identification after adopting the floor change detection method is observed as 88.12%, and 79.64%, respectively. Similarly, the magnetic floor identification sing Galaxy S8, LG G6, and LG G7 can further be increased to 91.02%, 88.93%, and 90.31%, respectively with floor change detection module. The magnetic field based floor detection has the highest accuracy among the selected techniques.
6. Conclusions
Modern indoor localization systems work in a single floor environment, in which floor information is taken as a priori. Wi-Fi and barometer data are traditionally used to determine the user floor inside a building, which is infrastructure-dependent and error-prone due to dynamic changes in the environment. Such assumptions are not applicable to real-world scenarios. In this study, we present a novel approach to determine the floor of a building using the pervasive magnetic field data. The earth’s magnetic field is a natural phenomenon and can be leveraged for the said task easily. The magnetic field is very stable and reliable. Moreover, it does not need any additional sensors and can be measured with the help of a simple magnetometer present in all modern smartphones. The proposed approach first utilizes the accelerometer and magnetic data to identify the user phone orientation. Towards this end, a Naïve Bayes classifier is used whose accuracy is observed as 99.82% for normal walking, call listening and phone swinging modes. The magnetic data is transformed to perform the floor identification task when a specific phone orientation is identified. The magnetic datapoints of 5 s are utilized to identify the current floor of the user. It works with the magnetic patterns database built during the offline phase of the system. The experiments are performed in two buildings of a university campus and a shopping mall. The performance of magnetic field data-based floor identification is compared with Wi-Fi and barometer-based floor identification systems. Our results reveal that the magnetic field-based floor identification approach outperforms both of the existing techniques. Experiments are performed using Samsung Galaxy S8, LG G6, and LG G7 to investigate the impact of device heterogeneity. The individual accuracy of S8, G6, and G7 is 89.24%, 87.39%, and 88.58%, respectively, using the magnetic data. The average accuracy of the barometer, W-Fi, and magnetic techniques can, respectively, further be increased to 88.12%, 79.64%, 91.02%, 88.93%, and 90.31% if floor change detection module is used. Current floor detection considers only three of the user phone orientations. In real scenarios, the user phone movements are of a more complex nature. We intend to add more orientations in our future work.
Author Contributions
Conceptualization, I.A. and Y.P.; Data curation, S.H. and M.S.; Formal analysis, S.H.; Investigation, I.A.; Methodology, I.A.; Software, M.S.; Supervision, Y.P.; Writing—original draft, I.A.; Writing—review & editing, Y.P.
Funding
This work was supported by the MSIT (Ministry of Science and ICT), Korea, under the ITRC (Information Technology Research Center) support program (IITP-2017-2016-0-00313) supervised by the IITP (Institute for Information & communications Technology Promotion). This research was supported by Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Science, ICT and Future Planning (2017R1E1A1A01074345).
Conflicts of Interest
The authors declare no conflict of interest. The founding sponsors 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.Xu H., Ding Y., Li P., Wang R., Li Y. An RFID indoor positioning algorithm based on bayesian probability and k-nearest neighbor. Sensors. 2017;17:1806. doi: 10.3390/s17081806. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Sahinoglu Z., Gezici S., Guvenc I. Ultra-Wideband Positioning Systems. Cambridge; New York, NY, USA: 2008. [Google Scholar]
- 3.Want R., Hopper A., Falcao V., Gibbons J. The Active Badge Location System. [(accessed on 1 June 2019)]; Available online: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.36.123&rep=rep1&type=pdf.
- 4.Karimi H.A. Advanced Location-Based Technologies and Services. CRC Press; Boca Raton, FL, USA: 2016. [Google Scholar]
- 5.Aguilar-Garcia A., Fortes S., Colin E., Barco R. Enhancing RFID indoor localization with cellular technologies. EURASIP J. Wirel. Commun. Netw. 2015;2015:219. doi: 10.1186/s13638-015-0444-9. [DOI] [Google Scholar]
- 6.Xiao J., Zhou Z., Yi Y., Ni L.M. A survey on wireless indoor localization from the device perspective. ACM Comput. Surv. 2016;49:25. doi: 10.1145/2933232. [DOI] [Google Scholar]
- 7.Ashraf I., Hur S., Park Y. mPILOT-magnetic field strength based pedestrian indoor localization. Sensors. 2018;18:2283. doi: 10.3390/s18072283. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Shu Y., Bo C., Shen G., Zhao C., Li L., Zhao F. Magicol: Indoor localization using pervasive magnetic field and opportunistic WiFi sensing. IEEE J. Sel. Areas Commun. 2015;33:1443–1457. doi: 10.1109/JSAC.2015.2430274. [DOI] [Google Scholar]
- 9.Ali M.U., Hur S., Park Y. Locali: Calibration-free systematic localization approach for indoor positioning. Sensors. 2017;17:1213. doi: 10.3390/s17061213. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Basiri A., Lohan E.S., Moore T., Winstanley A., Peltola P., Hill C., Amirian P., e Silva P.F. Indoor location based services challenges, requirements and usability of current solutions. Comput. Sci. Rev. 2017;24:1–12. doi: 10.1016/j.cosrev.2017.03.002. [DOI] [Google Scholar]
- 11.Fortes S., Aguilar-García A., Barco R., Barba F.B., Fernández-Luque J.A., Fernández-Durán A. Management architecture for location-aware self-organizing LTE/LTE-a small cell networks. IEEE Commun. Mag. 2015;53:294–302. doi: 10.1109/MCOM.2015.7010548. [DOI] [Google Scholar]
- 12.Di Taranto R., Muppirisetty S., Raulefs R., Slock D., Svensson T., Wymeersch H. Location-aware communications for 5G networks: How location information can improve scalability, latency, and robustness of 5G. IEEE Signal Process Mag. 2014;31:102–112. doi: 10.1109/MSP.2014.2332611. [DOI] [Google Scholar]
- 13.Bensky A. Wireless Positioning Technologies and Applications. Artech House; Norwood, MA, USA: 2016. [Google Scholar]
- 14.Zhao F., Luo H., Zhao X., Pang Z., Park H. HYFI: Hybrid floor identification based on wireless fingerprinting and barometric pressure. IEEE Trans. Ind. Inf. 2017;13:330–341. doi: 10.1109/TII.2015.2491264. [DOI] [Google Scholar]
- 15.Del Peral-Rosado J.A., Bavaro M., López-Salcedo J.A., Seco-Granados G., Chawdhry P., Fortuny-Guasch J., Crosta P., Zanier F., Crisci M. Floor detection with indoor vertical positioning in LTE femtocell networks; Proceedings of the 2015 IEEE Globecom Workshops (GC Wkshps); San Diego, CA, USA. 6–10 December 2015; pp. 1–6. [Google Scholar]
- 16.Muralidharan K., Khan A.J., Misra A., Balan R.K., Agarwal S. Barometric Phone Sensors: More Hype than Hope! [(accessed on 1 June 2019)]; Available online: https://ink.library.smu.edu.sg/cgi/viewcontent.cgi?article=3060&context=sis_research.
- 17.Ichikari R., Ruiz L.C.M., Kourogi M., Kurata T., Kitagawa T., Yoshii S. Indoor floor-level detection by collectively decomposing factors of atmospheric pressure; Proceedings of the 2015 International Conference on Indoor Positioning and Indoor Navigation (IPIN); Banff, AB, Canada. 13–16 October 2015; pp. 1–11. [Google Scholar]
- 18.Song W., Lee J.W., Lee B.S., Schulzrinne H. Finding 9-1-1 Callers in Tall Buildings. [(accessed on 1 June 2019)]; Available online: http://www.cs.columbia.edu/~jae/papers/indopos-wowmom-2014.pdf.
- 19.Ashraf I., Hur S., Park Y. MDIRECT-Magnetic field strength and peDestrIan dead RECkoning based indoor localizaTion; Proceedings of the 2018 International Conference on Indoor Positioning and Indoor Navigation (IPIN); Nantes, France. 24–27 September 2018; pp. 24–27. [Google Scholar]
- 20.Ashraf I., Hur S., Park Y. BLocate: A Building Identification Scheme in GPS Denied Environments Using Smartphone Sensors. Sensors. 2018;18:3862. doi: 10.3390/s18113862. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Ashraf I., Hur S., Park Y. MagIO: Magnetic Field Strength Based Indoor-Outdoor Detection with a Commercial Smartphone. Micromachines. 2018;9:534. doi: 10.3390/mi9100534. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Liu Z., Zhang L., Liu Q., Yin Y., Cheng L., Zimmermann R. Fusion of magnetic and visual sensors for indoor localization: Infrastructure-free and more effective. IEEE Trans. Multimedia. 2017;19:874–888. doi: 10.1109/TMM.2016.2636750. [DOI] [Google Scholar]
- 23.IndoorAtlas L. Ambient Magnetic Field-based Indoor Location Technology: Bringing the Compass to the Next Level. IndoorAtlas Ltd.; Helsinki, Finland: 2012. [Google Scholar]
- 24.Haverinen J., Kemppainen A. Global indoor self-localization based on the ambient magnetic field. Rob. Autom. Syst. 2009;57:1028–1035. doi: 10.1016/j.robot.2009.07.018. [DOI] [Google Scholar]
- 25.Xie H., Gu T., Tao X., Ye H., Lu J. A reliability-augmented particle filter for magnetic fingerprinting-based indoor localization on smartphone. IEEE Trans. Mob. Comput. 2015;15:1877–1892. doi: 10.1109/TMC.2015.2480064. [DOI] [Google Scholar]
- 26.Subbu K.P., Gozick B., Dantu R. LocateMe: Magnetic-fields-based indoor localization using smartphones. ACM Trans. Intell. Syst. Technol. 2013;4:73. doi: 10.1145/2508037.2508054. [DOI] [Google Scholar]
- 27.Wang H., Lenz H., Szabo A., Hanebeck U.D., Bamberger J. Fusion of Barometric Sensors, Wlan Signals and Building Information for 3-d Indoor/Campus Localization. [(accessed on 1 June 2019)]; Available online: https://isas.iar.kit.edu/pdf/MFI06_Wang.pdf.
- 28.Ye H., Gu T., Tao X., Lu J. Scalable floor localization using barometer on smartphone. Wirel. Commun. Mob. Comput. 2016;16:2557–2571. doi: 10.1002/wcm.2706. [DOI] [Google Scholar]
- 29.Wang H.-Y., Zheng V.W., Zhao J., Yang Q. Indoor localization in multi-floor environments with reduced effort; Proceedings of the 2010 IEEE International Conference on Pervasive Computing and Communications (PerCom); Mannheim, Germany. 29 March–2 April 2010; pp. 244–252. [Google Scholar]
- 30.Bhargava P., Krishnamoorthy S., Shrivastava A., Nakshathri A.K., Mah M., Agrawala A. Locus: robust and calibration-free indoor localization, tracking and navigation for multi-story buildings. J. Locat. Based Serv. 2015;9:187–208. doi: 10.1080/17489725.2015.1099751. [DOI] [Google Scholar]
- 31.Sun L., Zheng Z., He T., Li F. Multifloor Wi-Fi localization system with floor identification. Int. J. Distrib. Sens. Netw. 2015;11:131523. doi: 10.1155/2015/131523. [DOI] [Google Scholar]
- 32.Xia H., Wang X., Qiao Y., Jian J., Chang Y. Using multiple barometers to detect the floor location of smart phones with built-in barometric sensors for indoor positioning. Sensors. 2015;15:7857–7877. doi: 10.3390/s150407857. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Ai H.J., Liu M.Y., Shi Y.M., Zhao J.Q. Floor Identification with Commercial Smartphones in Wifi-Based Indoor Localization System. Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci. 2016;41:573. doi: 10.5194/isprsarchives-XLI-B4-573-2016. [DOI] [Google Scholar]
- 34.Zhang S., Guo J., Wang W., Hu J. Floor Recognition Based on SVM for WiFi Indoor Positioning; Proceedings of the China Satellite Navigation Conference; Harbin, China. 23–25 May 2018; Berlin/Heidelberg, Germany: Springer; 2018. pp. 725–735. [Google Scholar]
- 35.Tiwari S., Jain V.K. Smartphone based Improved Floor Determination Technique for Multi-Floor Buildings; Proceedings of the World Congress on Engineering; London, UK. 4–6 July 2018; [Google Scholar]
- 36.Elbakly R., Aly H., Youssef M. Hapi: A robust pseudo-3D calibration-free WiFi-based indoor localization system; Proceedings of the 15th EAI International Conference on Mobile and Ubiquitous Systems: Computing, Networking and Services; New York, NY, USA. 5–7 November 2018; New York, NY, USA: ACM; 2018. [Google Scholar]
- 37.Zheng Z., Chen Y., He T., Li F., Chen D. Weight-RSS: A calibration-free and robust method for WLAN-Based indoor positioning. Int. J. Distrib. Sens. Netw. 2015;11:573582. doi: 10.1155/2015/573582. [DOI] [Google Scholar]
- 38.Bitew M.A., Hsiao R.-S., Lin H.-P., Lin D.-B. Hybrid indoor human localization system for addressing the issue of RSS variation in fingerprinting. Int. J. Distrib. Sens. Netw. 2015;11:831423. doi: 10.1155/2015/831423. [DOI] [Google Scholar]
- 39.Shin B., Kim C., Kim J., Lee S., Kee C., Kim H.S., Lee T. Motion recognition-based 3D pedestrian navigation system using smartphone. IEEE Sens. J. 2016;16:6977–6989. doi: 10.1109/JSEN.2016.2585655. [DOI] [Google Scholar]
- 40.Li Y., Gao Z., He Z., Zhang P., Chen R., El-Sheimy N. Multi-Sensor Multi-Floor 3D Localization with Robust Floor Detection. IEEE Access. 2018;6:76689–76699. doi: 10.1109/ACCESS.2018.2883869. [DOI] [Google Scholar]
- 41.Haque F., Dehghanian V., Fapojuwo A.O. Sensor fusion for floor detection; Proceedings of the IEEE Annual Information Technology, Electronics and Mobile Communication Conference (IEMCON) 2017; Vancouver, BC, Canada. 3–5 October 2017; pp. 134–140. [Google Scholar]
- 42.Zou Y., Wang G., Wu K., Ni L.M. Smartscanner: Know more in walls with your smartphone! IEEE Trans. Mob. Comput. 2015;15:2865–2877. doi: 10.1109/TMC.2015.2508811. [DOI] [Google Scholar]
- 43.Tan P.N., Steinbach M., Kumar V. Introduction to Data Mining: Pearson Education. Volume 9. Pearson; London, UK: 2007. p. 624. [Google Scholar]
- 44.Shoaib M., Bosch S., Incel O., Scholten H., Havinga P. A survey of online activity recognition using mobile phones. Sensors. 2015;15:2059–2085. doi: 10.3390/s150102059. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45.Breiman L. Classification and Regression Trees. Routledge; Abingdon, UK: 2017. [Google Scholar]
- 46.Roussopoulos N., Kelley S., Vincent F. ACM Sigmod Record. Volume 24. ACM; New York, NY, USA: 1995. Nearest neighbor queries; pp. 71–79. [Google Scholar]
- 47.Song Y., Huang J., Zhou D., Zha H., Giles C.L. Iknn: Informative k-nearest neighbor pattern classification; Proceedings of the European Conference on Principles of Data Mining and Knowledge Discovery; Warsaw, Poland. 17–21 September 2007; Berlin/Heidelberg, Germany: Springer; 2007. pp. 248–264. [Google Scholar]
- 48.Leung K.M. Polytechnic University Department of Computer Science/Finance and RiskEngineering; 2007. [(accessed on 1 June 2019)]. Naive Bayesian Classifier. Available online: http://cis.poly.edu/~mleung/FRE7851/f07/naiveBayesianClassifier.pdf. [Google Scholar]
- 49.Murphy K.P. University of British Columbia; 2006. [(accessed on 1 June 2019)]. Naive Bayes Classifiers; p. 18. Available online: https://www.cs.ubc.ca/~murphyk/Teaching/CS340-Fall06/lectures/naiveBayes.pdf. [Google Scholar]
- 50.De Martino F., Valente G., Staeren N., Ashburner J., Goebel R., Formisano E. Combining multivariate voxel selection and support vector machines for mapping and classification of fMRI spatial patterns. Neuroimage. 2008;43:44–58. doi: 10.1016/j.neuroimage.2008.06.037. [DOI] [PubMed] [Google Scholar]
- 51.He S., Shin K.G. Geomagnetism for smartphone-based indoor localization: Challenges, advances, and comparisons. ACM Comput. Surv. 2018;50:97. doi: 10.1145/3139222. [DOI] [Google Scholar]
- 52.Asahi Kasei Microdevices Corporation. [(accessed on 15 October 2018)]; Available online: https://www.akm.com/akm/en/file/datasheet/AK09916C.pdf.
- 53.STMicroelectronics. [(accessed on 15 October 2018)]; Available online: https://www.st.com/resource/en/datasheet/lsm6dsl.pdf.
- 54.Broadcom. [(accessed on 15 October 2018)]; Available online: https://www.broadcom.com/products/wireless/wireless-lan-infrastructure/bcm4360.
- 55.Burton B.J. Atmospheric pressure, and temperature aloft. Weather. 1993;48:141–147. doi: 10.1002/j.1477-8696.1993.tb05867.x. [DOI] [Google Scholar]