Next Article in Journal
A Novel Hybrid of a Fading Filter and an Extreme Learning Machine for GPS/INS during GPS Outages
Previous Article in Journal
Frequency Dependence of Receiving Sensitivity of Ultrasonic Transducers and Acoustic Emission Sensors
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

BLocate: A Building Identification Scheme in GPS Denied Environments Using Smartphone Sensors

Information and Communication Engineering, Yeungnam University, Gyeongbuk, Gyeongsan 38541, Korea
*
Author to whom correspondence should be addressed.
Sensors 2018, 18(11), 3862; https://doi.org/10.3390/s18113862
Submission received: 22 September 2018 / Revised: 7 November 2018 / Accepted: 8 November 2018 / Published: 9 November 2018
(This article belongs to the Section Physical Sensors)

Abstract

:
Indoor localization systems assume that the user’s current building is known by the GPS (Global Positioning System). However, such assumptions do not hold true in GPS denied environments or where the GPS cannot determine the user’s definite location. We present a novel solution to identify the building where the user is present now. The proposed building identification method works on the pervasive magnetic field using a smartphone. The accelerometer data determines the user’s activity of being stationary or walking. An Artificial Neural Network is used to identify the user’s activities and it shows good results. The magnetometer data is used to identify the user’s current building using the fingerprinting approach. Contrary to a traditional fingerprinting approach which stores intensity values, we utilize the patterns formed by the magnetic field strength in the form of a Binary Grid (BG). The BG approach overcomes the limitation of Dynamic Time Warping (DTW) whose performance is degraded when the magnitude of the magnetic data is changed. The experiments are performed with Samsung Galaxy S8 for eight various buildings with different altitudes and number of floors in Yeungnam University, Korea. The results demonstrate that the proposed building identification method can potentially be deployed for building identification. The precision, UAR (Unweighted Average Recall), F score, and Cohen’s Kappa values are used to determine the performance of the proposed system. The proposed systems shows very promising results. The system operates without any aid from any infrastructure dependent technologies like GPS or WiFi. Furthermore, we performed many experiments to investigate the impact of isolated points data to build fingerprint database on system’s accuracy with 1 m and 2 m distance. Results illustrate that by trading off a minor accuracy, survey labor can be reduced by 50 percent.

1. Introduction

In the modern era of ubiquitous computing where the demand for Location Based Services (LBS) is increasing exponentially, positioning requires two fundamental characteristics: pervasive coverage and infrastructure independence. Precise location determination plays a very crucial role, not only for LBS but also for health care, assets monitoring, emergency search, rescue response, etc. Outdoor localization is mostly based on the GPS technology as it can provide an estimated location as accurate as 5 m. However, in many situations where the user location is surrounded by high-rise buildings or cloudy environments, the positioning accuracy can drop drastically to as low as 50 to 76 meters [1,2]. GPS, as well as Russian GLONASS constellation, provide similar positioning accuracy [3]. However, for the indoor environment, it does not fulfill the first requirement of being pervasive due to the signal attenuation caused by reflection and refraction, and lower signal-to-noise ratio (SNR).
The researchers spotlighted other emerging technologies that can be used for positioning, especially in the indoor, and GPS denied environments. The primary focus of such research is to utilize the modern smartphones which are pervasive and infrastructure independent. Unlike RFID (Radio Frequency ID), IR (Infrared), iBeacons, Ultrasound, vision, and Wi-Fi based indoor positioning systems, smartphone based systems use built-in sensors of smartphones [4]. RFID, Wi-Fi, and Bluetooth based systems are called infrastructure dependent systems as they require additional hardware to perform localization. Infrastructure dependence in this paper refers to the hardware infrastructure without which the positioning and localization systems cannot work.
The smartphone based systems are cheap as the installation and maintenance of additional infrastructure is not needed. One limitation of these systems is their dependence on GPS to know the place/building information before indoor positioning can be performed. Many such techniques consider that the starting position is known as a priori or consider a naive approach that the GPS calculated position of a building is correct where the user currently is, before localizing it indoors. The building identification is an important element of localization systems which perform both indoor and outdoor localization. GPS accuracy to determine the user’s current building is limited as stated above. Many current indoor localization systems operate on the assumption that the correct building information is already known. Thus, the localization is performed with respect to the known building, e.g., in the case of the Wi-Fi based system, the map of the current building and the database is loaded to perform the localization. The correct building information of the user plays a pivotal role in such localization systems. Thus, many research works have proposed the integration of GPS with other sensors [5,6]. However, the problem is the uncertainty of GPS satellites, which is caused mainly by the signal fading. The signal fading on account of the canyons and closely constructed multi-structural buildings can hinder GPS positioning accuracy. Similarly, semi-outdoor environment affects GPS performance and can wrongly localize a pedestrian to a wrong building. Additionally, GPS localization is unreliable and can be inaccurate when the signal becomes weak e.g., in the proximity of tall buildings [7]. Moreover, GPS sensors become erroneous and uncertain in the case of sporadic unavailability of the satellite signals [8]. Many indoor localization schemes simply assume that a clear pre-knowledge on the building information has been known, but such assumptions hardly remain valid in real scenarios.
We propose the use of the magnetic field data to identify the building where the user is currently walking. The magnetic sensor in the smartphone provides magnetic x, y, and z values that can be used for this purpose. The earth’s uniform magnetic field within a small constrained area is disturbed by the presence of ferromagnetic materials like elevators, door, and concrete structures and causes direction anomalies. However, such disturbances are researched to serve as a unique signature also called the fingerprint [9] and can be leveraged to identify different buildings. The magnetic field has some inherent limitations, e.g., varying magnetic attitude where different devices show different values for the same magnetic field [10] as well as different values by the same device during the different time of the day. Similarly, low discernibility (strength of magnetic field is very weak, i.e., in few μ T) and sensitivity (magnetic field reading is affected by indoor infrastructure) also need to be considered. However, in spite of such limitations, many localization systems [11,12,13,14,15,16] have been proposed, which utilize the magnetic field for localization.
This research presents a novel technique which makes the use of the smartphone magnetometer for building identification and, to the best of authors’ knowledge, it is the very first attempt to utilize the magnetic field to identify buildings. The contributions of this research include an infrastructure free building identification model which solely works on smartphone sensors and a deep learning based ANN model which can predict a user’s activity of walking and stationary. Additionally, we use the Binary Grid (BG) to prepare the fingerprint database which stores the patterns formed by the magnetic field instead of magnetic magnitude itself. This overcomes the limitation of Dynamic Time Warping (DTW) whose performance is affected by the varying magnitude of magnetic data collected over different time.
The rest of the paper is organized in five sections. Section 2 describes the related work. Section 3 illustrates the proposed method and its working mechanism. The experiment setup and results are discussed in Section 4 while discussions and the conclusion are given in Section 5 and Section 6, respectively.

2. Related Work

The building identification is not a new problem and has been studied for quite a long time. GPS is considered the chief technology for building localization and it works quite fine. Besides GPS, other assisting technologies including cameras and most recently barometers are used to achieve a higher accuracy.
The authors in [5] presented a method to identify a building using a smartphone camera, local 2D Google maps, and GPS. A partial top view of the building, orientation, and distance relative to the camera are fed as inputs to a probability model which is based on kernel density estimation. In addition, it also utilizes smartphone accelerometer and magnetic sensors to estimate the camera ray directions as input features. The results indicate that the proposed system achieves an accuracy of 92.7% to correctly identify the buildings with a processing time of approximately six seconds for 87% of the cases.
The authors in [17] propose an approach for large area classification using a WiFi fingerprint based method. The approach determines whether the user to be localized is indoors in the area for which a radio map is already built or outdoors in the vicinity. The study includes the investigation of the accuracy of several techniques for classification including support vector data description (SVDD), self-organizing map (SOM), minimax probability machine (MPM) and principal component analysis (PCA). The results show that PCA can achieve a classification accuracy of 95.69%. The authors in [18] present a method which utilizes the SNR of GPS to locate a user near the building entrances. The SNR of GPS drops closer to the building walls while GPS provides the accurate location information for a short period of time before entering into the buildings. This transition time is used to find the most probable building location of the user. The technique makes the use of GPS satellites behind the user and at high altitudes to this end and asserts that such satellites can provide more reliable information. The research work also confirms that the accuracy of the GPS localization is affected near the buildings, especially, when LOS (line of sight) with GPS satellites is lost.
The authors in [19] propose the fusion of GPS signals with smartphone camera images to complement the deficiencies of each technique. The approach is based on a bags of words (BOW) approach which utilizes the important features selected from camera images to rectify the positioning error caused by GPS noisy signals. Both scenarios, where GPS signals correct the visual localization and vision-based localization to improve the GPS localization, are studied. The results show that the proposed method can perform the localization within a 7.5 m distance. The authors in [20] present a method to mitigate the error of GPS position estimates in the urban areas. The proposed approach reduces the effect of signal reflection from NLOS (non-line-of-sight) satellites. The approach utilizes the publicly available 3D models but re-calculates the heights using the smartphone camera. Using 3D models and height information, the model estimates the path inflation caused by the signal reflection and re-estimates the calculated location. The adopted method is able to reduce the localization error by 6 to 8 m.
Several similar research works focus on IO (indoor-outdoor) environment detection as it is one of the important tasks in the active field of indoor positioning and localization. The majority of existing research works on indoor localization operates on the assumption that the user is in an indoor environment already when they start to locate him indoors. However, this poses challenges in scenarios where the localization environment contains both the indoor and outdoor environments, like the open covered space between two buildings and over bridge open corridors, etc. Thus, building identification is also very important in such situations where the positioning system needs contextual status to switch between indoor and outdoor positioning modules. The authors in [21] propose a system for indoor–outdoor detection by leveraging the onboard Bluetooth module. Sparse low power Bluetooth devices are installed at the specified landmarks at intermediate regions e.g., covered corridors and entry/exit points. The conducted experiments reveal that the system achieves higher accuracy especially for semi-outdoor environments and consumes less battery than the existing schemes. The system achieves a localization accuracy of 10 m at 90 percent.
The authors in [22] use Bluetooth signals to detect the user indoor and outdoor location. The underlying fact about the GPS accuracy that it is good outdoors and worse indoors, is used in an inverse way for the Bluetooth. Thus, when the distance estimated from Bluetooth is larger, the user is outdoors and vice versa. The experimental results show good indoor–outdoor switching as compared to the GPS. The authors in [23] present an IO detector which is based on four various components including a signal serving cell tower, Wi-Fi, activity recognition, and light intensity captured from the smartphone. It makes the use of these modules and can discriminate four different areas of indoor, outdoor, urban, and complex environments. The experimental results demonstrate that the proposed system outperforms GPS in all four of the test environments. The discussed research works perform well in certain specific environments; however, they are limited in functionality on account of certain factors. First, most of the listed methods rely heavily on GPS, so the inaccessibility of GPS severely limits their functionality. Secondly, other similar systems pertain to additional installation, e.g., Bluetooth or Wi-Fi based systems that make them vulnerable and incur additional cost as well. Additionally, GPS based systems are power-hungry and consume more batteries. This research aims to present a solution which neither utilizes GPS nor necessitates any additional infrastructure. It rather makes use of the built-in sensors which are already made available in the smartphones.

3. The Proposed Method

The proposed building identification method utilizes the built-in sensors of the smartphone. Figure 1 shows the block diagram of the proposed system. Two built-in sensors including accelerometer and magnetometer are utilized in the proposed method. The accelerometer data is used to identify whether the user is walking or stationary. On the other hand, the magnetometer data is utilized to identify the building where the user currently is.
The fingerprint database is built using the magnetometer data for this purpose. The concept of the fingerprint is to connect a fingerprint/signature to relevant locations in a given indoor environment. The fingerprint represents a feature like signal strength, a pattern of a signal or any other similar characteristic which makes it possible to distinguish between various locations. Analogous to the Wi-Fi fingerprinting where RSSI (Received Signal Strength Indicator) [10] serves as a fingerprint, in magnetic fingerprinting, the magnetic flux density, also referred to as the magnetic field strength, is used as a fingerprint. The area is divided into grid points separated by a distance of 1 meter. A total of 100 samples are collected at each point and their normalized value serves as the fingerprint for the associated location. There are two possibilities for a user to be in a specific building:
(i)
The user is entering a specific building now.
(ii)
The user is already in a building.
For the first option, the building identification can be performed by making a fingerprint database of only the portion close to the entrances. Since we use only 4 sec data, we need to collect the fingerprints of only a 4 to 6 meter area, starting from the entrances. However, the second scenario requires building the database for the complete building, as we do not know where the user is exactly right now. Thus, keeping these two possibilities in mind, we make the fingerprint database of the whole building. Since during the building identification the magnetic data is collected while the user is walking, we need the fingerprints between the selected location points as well. The spline interpolation is applied to generate the intermittent values between the grid points. The fingerprint collection process and the resulting interpolated values are shown in Figure 2.
Traditional magnetic fingerprint-based systems use the magnetic intensity as the fingerprint and thus have two major limitations. First, the magnetic intensity value may be different during different collection times even with the same device, which limits the performance. Second, various devices show different magnetic intensity even for the same location, which leads to device dependence. These issues are handled by using the magnetic field patterns in [24]. The magnetic field intensity is transformed into magnetic patterns for this purpose. The patterns are stored as a matrix called Binary Grid (BG) and Algorithm 1 is used for that purpose. The BG contains 1’s and 0’s only; 1 where a magnetic field value is present and 0 otherwise. The pattern forming procedure is added here for completeness.
Algorithm 1 Generate the magnetic pattern
1:
m a x v = m a x ( G w ) ;
2:
m i n v = m i n ( G w ) ;
3:
M l e n g t h ( f ) ;
4:
N r o u n d ( m a x v m i n v ) + 1 ;
5:
Define B m of N × M order ;
6:
for j t o M do
7:
     r r o u n d ( m a x v G w ( j ) ) + 1 ;
8:
     B m ( r , j ) 1 ;
9:
end for
Let’s assume that the magnetic values shown in Figure 3 are to be transformed into a magnetic pattern. First, a BG is declared with columns equal to the length of the magnetic data. The number of rows in the grid is the difference between the maximum and minimum magnitude of the given magnetic data. First, a matrix containing zeros of N × M size is declared where N shows the number of rows and M is the number of columns. Then, each magnetic data point is taken and converted to a row number by subtracting it from the maximum magnitude of data and rounding it. Afterwards, a 1 is added to the calculated row and this process is repeated for all the data values. The BG shown in Figure 3a is for the first ten values only of the graph shown in Figure 3b.
The matching between the user collected samples and magnetic pattern database is performed using the Dynamic Time Warping (DTW). The DTW was first proposed by Berndt and Clifford in 1994 [25]. It was originally designed for speech recognition systems; however, it was later adopted by other domains as well. The DTW is a similarity measure that is used to calculate the distance between two time series. A time series is a sequence of measurement data over time. The DTW is used to measure the similarity for time series where the varying speed of the data collection source may result in a different length of the measured data. Similarly, the shape (magnitude) of the measured data may also change due to the speed, which makes it difficult for simple distance measuring methods to find the similarity. Simple distance measuring techniques are one-to-one linear alignment techniques while the DTW is one-to-many non-linear alignment, which makes it possible to find the similarity between the samples of different length. Consider that the X = { x 1 , x 2 , , x n } and Y = { y 1 , y 2 , , y n } are two time series that we want to match. A warping path W shows a contiguous set of matrix elements which defines a mapping between the given elements of X and Y. The warping path is built by arranging the elements of X and Y on the sides of a grid as shown in Figure 4. Both sequences start from the bottom left of the grid.
Each cell of the grid shows the distance between the elements of two sequences. The warping path is through the cells that show the minimum distance. The overall distance represents the minimum of the sum of distances between the individual elements of given sequences. The DTW technique is good at comparing the sequences of varying lengths, yet it compares the magnitude of the given sequences. This limitation severely confines the systems which are based on the magnetic field data. The reason is the varying magnitude of the magnetic data. For example, Figure 5 shows the magnetic data samples collected during the different time of the day with the same smartphone and the calculated distance using the DTW. It shows the Euclidean distance of 11.94 and 26.92 for the samples of the same place. Thus, although the samples are for the same location taken during different collection time, the distance is very different.
We already mentioned that the magnetic data for a given location may show different magnitudes every time we collect the data. Thus, if we use traditional DTW, it will produce erroneous results. Experiments reveal that the magnetic data magnitude may change; however, the patterns of magnetic data remain almost similar. Thus, we utilize the patterns formed by the magnetic data. Figure 6 shows the distance calculated by using the DTW for the magnetic patterns and the fingerprint database. It is also important to mention that the fingerprint database also contains the magnetic patterns now. The magnetic pattern fingerprint database is built using Algorithm 1 discussed above.
The Euclidean distance calculated using the magnetic pattern of the given samples are very similar. Contrary to the previously calculated distance of 11.94 and 26.92, now the distance is 11.31 and 12.72 for the given samples. It shows that, when the DTW is used with the BG of magnetic patterns, it becomes more accurate and less prone to the changes in the magnitude of magnetic field data. The data collected from the magnetic sensor is used to make the fingerprint database while the building identification process uses the data from the accelerometer and magnetometer. The data from these sensors are collected over 4 sec and split into four frames each containing 1 sec data. Each frame is processed separately and the final decision is made after the processing of four frames is completed.

3.1. The Accelerometer

The accelerometer is used to identify the user’s state of walking or stationary in a given time frame f. The size of a frame is 1 sec and it contains 10 measured values of acceleration data along x, y, and z-axis as the data is collected at a sampling rate of 10 Hz (new measurement after 100 ms). Using the given three axes of accelerometer, the total acceleration is calculated as:
a i = a x i 2 + a y i 2 + a z i 2 ,
where i shows the measurement for the given frame f. We want to use the acceleration magnitude to detect if the user is walking. The acceleration data as shown in Figure 7 is very different for the user’s activities of walking and being stationary.
A simple threshold-based movement detection can also be used to identify if the user is walking or standing stationary. However, the limitation of using the threshold-based heuristic approach is its low accuracy in many cases. Occasionally, phone shaking during the stationary mode generates the acceleration and the data crosses the threshold set to detect the user walking state. The ANN (Artificial Neural Network) identifies the sequence patterns formed while walking and its accuracy is higher than that of a simple threshold-based movement detection. The ANN has shown good performance even in such cases. We use an ANN for the classification of user activities as many types of research [26,27,28] have utilized ANN for similar tasks and showed good classification results. The correct classification of user’s activity of walking is very important for the proposed method. The magnetic patterns need to be collected while the user is walking as when standing stationary there is no change in the magnetic field data. Thus, the magnetic pattern is a straight line as a result which will affect the overall accuracy of building identification.
The ANN is the mathematical modeling of human brain which imitates the function of brain neurons. Similar to a neuron, it is comprised of three layers: an input layer, an output layer and hidden layer(s). Edges are used to connect these layers and each edge bears a weight. Edge weights are determined during the process called back-propagation. An important process in ANN modeling is the selection of the appropriate feature set. Thus, a feature importance analysis is desirable before features are used for training. The Repetitive Feature Elimination (RFE) is performed for the current study to select the most suitable features. The RFE recursively eliminates less important features, and builds the prediction model on those features only, which remain present after the specified iterations. We use a set of eight features including x, y, z, and total acceleration, and variance of x, y, z, and total acceleration. The variance of acceleration in x, y, z, and total acceleration have higher importance so they are used in the ANN model. The Soft-max activation function is used for ANN. A total of 3000 samples of each feature are used for supervised training. The data is collected at a sampling frequency of 10 Hz and a low pass filter is used in the pre-processing phase to reduce the effect of noise. The ANN achieves an accuracy of 92.67% with 10,000 samples tested.

3.2. The Magnetometer Module

The pivotal part in identifying a building is performed by the magnetometer module as the identification process is totally performed using the data collected by the magnetometer. The correct building is found by matching the collected data against the fingerprint database which is built during the offline phase of the system. The proposed algorithm BLocate is used for localization. Table 1 shows the notations used in algorithm 2 which identifies the buildings.
Algorithm 2BLocate Building identification with sensors’ data.
  1:
if User is walking then
  2:
    for j 1 t o 4 do
  3:
         G s ( j ) generate Pattern using G f ;
  4:
        for k 1 t o N do
  5:
             E b i j calculate Euclidean Distance using G s and d B k ;
  6:
             m E b i j get minimum Euclidean distance from E b i j ;
  7:
        end for 
  8:
         E b k N ˜ normalize Euclidean distance using m E b i j and N b ;
  9:
         B c get minimum from E b k N ˜ ;
10:
    end for
11:
end if
12:
B finally localize building by removing outliers using B c ;
The algorithm follows these steps to predict the building where the user is currently walking.
Step 1: The data is collected using magnetometer and accelerometer with a smartphone. First of all, the accelerometer data is utilized to classify the user’s mode of walking or stationary. If the user is in a walking state, then the magnetic data is used for further processing.
Step 2: The magnetic data is transformed into magnetic patterns. As it is previously mentioned that the magnetic fingerprint database is made up of magnetic patterns during the offline phase, we need to transform the magnetic data to magnetic patterns during the online phase to match them against the fingerprint database.
Step 3: During the third step, the online magnetic field pattern is matched against the database of all the floors of all buildings. Since the user’s walking speed varies, it results in different magnetic patterns depending upon the walking speed. We use the DTW for matching as it serves as a tool to compare two time-dependent sequences of varying length [25]. The DTW can become computationally expensive when long sequences are matched. Thus, we take a database sample equal to user sample (1 sec data) and match them to calculate the Euclidean distance:
E b i j = ( x s x b i ) 2 + ( y s y b i ) 2 .
Step 4: Once the Euclidean distance between the user sample and the fingerprint database is calculated, we need to find the point where the error/distance is the minimum as that point is the most suitable candidate. Thus, each floor’s candidate is the lowest error estimate.
Step 5: Once the minimum error for each floor of each building is calculated, these errors are to be normalized. Since each building has a different number of floors and each floor may have a different error depending upon which floor the user is actually on. The magnetic field shows higher similarity to floors of the building where they are taken from. It infers that the magnetic data collected from a floor of a building A should show similar matching results to the other floors of building A as well. Thus, comparing the error value of a single floor is not appropriate. Instead, if we normalize the error with the total number of floors that would give more accurate results. The normalization is done using:
E b k N ˜ = i = 1 N b i m E b i k N b ,
where m E b i k is the minimum Euclidean distance for a floor of the given building and N b represents the number of floors in the given building.
Step 6: After normalization, the minimum error value represents the building where the user is right now. As mentioned earlier, the total user collected data is split into four consecutive frames, so this process of building identification is repeated for the four frames. Each frame possesses a vote and the final decision is based upon the votes of the four frames. After this process is complete, we have four predicted buildings which are called building candidates. In certain situations, it is also possible that the predicted buildings are very different so we need to correct the predictions. Since we use four frames data so the output candidates are four buildings and can have one of the following forms:
  • The prediction set has only one building as output.
  • The prediction set has three predictions for one building and one prediction for the other.
  • The prediction set has two predictions each for two different buildings.
  • The prediction set has one prediction for four different buildings.
The first set is very perfect. As the prediction is only one building, there are no outliers. In the second case, the building that has three predictions in the prediction set is selected as the building where the user is positioned. For the third option, where we get two various buildings, the building with lower error is selected as the target buildings. However, if the error is the same as well, then the building with the higher number of floors is the target building. The same procedure is adopted for the fourth case and first priority is given to the candidate with the lower error, and then to the building with a higher number of floors, when each building candidate possesses the same value of error:
B = min x E b k N f ( x ) , max x N b f ( x ) .

3.3. Accuracy Measures

We need to understand four basic notations used in the classification before we move forward to calculate the accuracy measures of a classifier [29].
True Positives (TP): These represent the positive tuples of a class that are correctly labeled by the classifier.
True Negatives (TN): These represent the negative tuples that are correctly labeled by the classifier.
False Positives (FP): These are the negative tuples that are incorrectly labeled as positive by the classifier.
False Negatives (FN): These are the positive tuples that are incorrectly labeled as negative by the classifier.
Accuracy is a measure widely used to evaluate the performance of a classifier and it is defined in terms of the percentage of the buildings predicted correctly [29]. Using the above described terms of TP, TN, FP, and FN, accuracy is calculated using:
a c c u r a c y = T P + T N T P + T N + F P + F N × 100 .
Precision and recall are two measures which are commonly used to evaluate the performance of a classifier. Precision is a measure which tells what percentage of all tuples are labeled positive that are actually positive. Precision is calculated as:
p r e c i s i o n = T P T P + F P .
The recall is often referred to as the measure of completeness and it represents the percentage of true positive tuples which are labeled as such. It is also called the sensitivity and calculated as:
r e c a l l = T P T P + F N .
The F score is a statistical analysis measure of classification, which considers both precision and recall of the classifier and computes a score between 0 and 1. The values closer to 1 represent the higher performance of the classifier and F reaches 1 when the classifier performs 100% correct classification. The F score reflects the average effect of both precision and recall. It is calculated as:
F = 2 p r e c i s i o i n . r e c a l l p r e c i s i o n + r e c a l l .
The Cohen’s kappa coefficient [30] also represented as k is a statistic that is used to measure the true inter-rater agreement [31]. It defines the agreement between two evaluators, whereas we define it as the automatic prediction of the building and already defined label of the buildings. It takes the following mathematical form:
k = P o P c 1 P c ,
where P o represents the observed agreements while P c is the portion of the agreement that is expected by chance. There are many interpretations of Kappa value, although no values are universally accepted upon. The authors in [29] state that if the Kappa value is higher than 0.80 it represents the higher strength of agreement and shows that the classification model has high classification accuracy. The values between 0.61 and 0.80 represent good agreement, between 0.41 to 0.60 moderate, between 0.21 to 0.40 fair, while the value lower than 0.20 shows very poor agreement.

4. Performance Evaluation

Experiment Setup

The experiment is conducted in various buildings located in Yeungnam University, Republic of Korea. The buildings are selected with two points in consideration. First, the buildings should have a various number of floors and different indoor infrastructure. Secondly, two groups of buildings are selected including closely located buildings and buildings separated geographically apart by at least 1/2 mile. The goal of this setting is to make the scenario more realistic so that the algorithm’s performance can be evaluated for real applications. Table 2 shows the relevant information of the buildings selected for the experiment.
Figure 8 shows the location of the selected buildings on Yeungnam University’s map. Three buildings including ITE, EE, and TE are connected within a block and they are very close to each other. Similarly BEN and BEO are two different parts of the same building; however, their indoor infrastructure is very different. The BEN is a new building built with iron filled concrete and shows magnetic fluctuations; the BEO, on the other hand, is built with old bricks lacking any concrete or iron thus showing somewhat smooth magnetic attitude. The MSE, CRC, and IACT are separated from each other and have a different number of floors. Few buildings share very similar indoor infrastructure in terms of offices, laboratories and corridor including ME, TE and EE. Thus, the experiment is quite complicated and poses a real challenge.
The indoor space available for the data collection is different within each building as well as for each floor in some cases. The details of indoor maps of each building and the area used for the experiment is shown in Figure 9. The data is collected at different times of the day on different dates to make the experiment more realistic.
Initially, we tested the algorithm with four buildings including IACT, ITE, MSE, and CRC to evaluate its performance with respect to both the response time and accuracy. Figure 10 shows its results for accuracy as well as true positive, true negative, false positive, false negative, F- score and Cohen’s kappa value.
The results show that the algorithm performs very well both for the classification accuracy and the response time. The response time is averaged over 5000 user requests and it includes only the processing time. The processing is done on the server side which is an Intel Core i5 3.2 GHz (Intel, California, USA.) operating on Windows 8.1 (Microsoft Corporation, Washington, USA.) with 8 GB RAM. Table 3 shows the results for other accuracy measures including F score and Kappa etc. A kappa value of 0.86 shows high inter-rater agreement while F score, precision, and recall values also depict the good performance of the proposed method. The average processing time for one user request is 0.21 sec only which involves the processing of 4 sec data from accelerometer and magnetometer. Moreover, the accuracy of 90.54% is excellent as well.
The second experiment is conducted with eight various buildings. The purpose of this experiment is twofold: to analyze how the prediction accuracy is affected and what impact it has on the processing time.
The classification results with eight buildings are shown with a confusion matrix in Figure 11. The classification with eight classes has reduced both the overall accuracy as well as the accuracy of individual classes. The classification accuracy of CRC, ITE, and IACT buildings is reduced by 3.2%, 0.9% and 2.0% only; however, the accuracy of the MSE building is affected severely. Additionally, the average response time has been increased too. The results for other accuracy parameters are given in Table 4.
The reason for an increase in the response time is quite obvious; the higher number of databases led to the increased processing time for matching the user given sample. The rationale for lower performance is that when the number of fingerprint database increases, the probability of databases with similar fingerprint increases likely. This is caused by two factors. First, the closely located buildings may have a similar magnetic field. Second, although still located separately, a similar internal infrastructure may lead to a similar magnetic field. The second reason is more logical and valid because, in university campuses, traditionally many departments are built in an identical internal design which may lead to very similar magnetic behavior. We perform an experiment to check the similarity of magnetic databases with each other. We match each building database to the database of every other building to analyze which buildings exhibit similar magnetic behavior and the results are shown in Table 5.
Results indicate that the magnetic databases of MSE and TE and MSE and EE (shown bold in Table 5) have higher similarity. This explains the lower classification accuracy of MSE (67.7%) and TE (69.9%) as given in Figure 11. It is also shown that the highest misclassification (18.1%) that MSE has is against TE building. We further investigate this by matching floor level databases of these buildings to find which floors of these buildings show similar behavior.
Figure 12 shows the results of the comparison between various floor fingerprint databases done using the DTW. The databases are aligned to analyze how much similarities do they have. The results demonstrate that the fingerprint databases of TE floor 1 and MSE floor 5 and TE floor 3 and MSE floor 1 have very identical magnetic patterns. Thus, when we perform pattern matching between the user samples taken from MSE floor 5, it shows more similarity with the TE database than that of MSE at specified locations. As a result, the classification accuracy is decreased. Similarly, the data collected from MSE floor 1 behaves in an identical manner for classification. To further corroborate the above findings, we took additional data from each floor of the MSE building and run a separate classification for validation, and the results are shown in Figure 13.
It further indicates that, when we match the data collected from MSE floor 1 and floor 5, the matching results make wrong predictions associated with TE building as shown in Figure 13. The ground truths for these graphs are MSE floor 1 and floor 5. Only the results for floor 1 and floor 5 are shown because these floors have high misclassification; the prediction for other floors’ data is quite good.
In spite of these incorrect predictions, the presented method performs well for the building identification and achieves an accuracy of 86.37% for all the buildings, while the individual class accuracy can go up to 97.4%. In addition, the average response time is also very nominal, which is only 0.32 sec for one user request. The one critique of the method is that the database fingerprinting process is laborious and time-consuming. However, the databases are built just once and no updating is required unless huge internal infrastructural changes are made. The primary experiment is performed with the database built from the data collected at points separated by 1 m. However, we made experiments with fingerprint databases of buildings which involve data collection at points which are at a distance of 2 m. The purpose is to analyze the changes in the prediction accuracy of the algorithm. The procedure described above is replicated for the experiment with 2 m fingerprint database.
The results given in Figure 14 demonstrate that, when we use a fingerprint database of 2 m distance, every class suffers a reduction in the classification accuracy, which ultimately causes reduced overall accuracy of the algorithm. The overall accuracy is reduced to 81.47% from 86.37%. The incorrect predictions are primarily resulting from the erroneous pattern matching results. Interpolation generates intermittent values using surrounding points. When data is collected at 2 m distance, the values used for the interpolation are lower, which results in smoothed generated values. The uniqueness of interpolated values is reduced as a result. The results for UAR, and Kappa value for each building are given in Table 6.
An auxiliary analysis to validate the above-mentioned notion results in Figure 15. The resulting interpolated values from 2 m data become more even and smooth. This leads to incorrect matching results and lowers the prediction accuracy. Thus, we have to make a trade-off between the surveying labor for the fingerprinting database and accuracy when we consider the fingerprint database.

5. Discussion

This study presents an approach to identify the building where a pedestrian is present now. The proposed approach is totally infrastructure free and works without any additional assisting technology. The technique is founded on the built-in sensors of the smartphone and leverages the accelerometer and magnetometer data only. The user collected data is matched against the fingerprint databases of each building of the university departments. The fingerprint databases are pre-built during the surveying phase. However, contrary to a traditional fingerprinting approach which stores magnetic magnitude as the fingerprint, we adopt the Binary Grid (BG) approach which transforms the magnetic magnitude into magnetic patterns and then stores them. The BG approach overcomes the limitation of Dynamic Time Warping (DTW) as well. The DTW approach shows different results for the data of the same place collected during different times. The BG approach followed in this paper shows very similar results for the data collected over different times. The data is collected at points which are 1 m apart and then interpolation is applied to generate the intermittent values between these points. The two important factors associated with a successful model i.e., response time and accuracy are investigated using two scenarios.
The first scenario involves the localization with four buildings which are geographically well separated. The proposed method performs very well both in terms of accuracy and response time and obtains an accuracy of 90.54% and a response time of 0.21 sec, which involves processing 4 sec data gathered from the accelerometer and magnetometer. The second scenario is more realistic where the experiment involves eight buildings with 29 floors in total. In spite of the fact that with an increased number of databases the accuracy can be severely affected, the overall accuracy of the proposed method is 86.37% and the average response time is 0.32 sec only. The accuracy of only two buildings is depraved and lowers under 70%, while other six buildings sustain the accuracy over 80%. In addition, Cohen’s Kappa value for classification with eight buildings is 0.84, which shows the strong inter-rater agreement. Supplementary experiments are carried out to investigate the factors which reduce the accuracy. The fundamental cause of the reduced accuracy is the higher similarity between the fingerprint databases which reduces the classification accuracy in essence. Despite the fact that the results illustrate that the proposed method has huge potential and can be utilized to work in GPS denied environments.
One criticism of the traditional process of fingerprinting approach is the laborious survey that requires both cost and time. Traditionally, during surveys, the data are collected at specified points separated by 1 m; we followed the same procedure. In addition, we, however, performed experiments with a database built using the data collected at points separated by 2 m. The results demonstrate that the overall accuracy is reduced to 81.47% from 86.37%. The elementary reason is the incorrectness of the interpolated values that are generated using the interpolation. The higher the distance between the points used for the interpolation, the more smoothed the interpolated values are that affect the uniqueness of the fingerprints. Thus, the labor for surveys can be reduced, but there is a trade-off between the surveying cost and accuracy.

6. Conclusions

Recent indoor localization systems that leverage the smartphone built-in sensors operate on the assumption that the system has former information of the building where the user is currently walking. It is assumed that the system knows the starting position as a priori or use a naive approach that the GPS calculated position is correct. Such assumptions may plot a pedestrian in the building other than where he currently is. Additionally, GPS deprived environments make it very challenging to know the building information for such systems to operate properly. This research presents a building identification scheme which utilizes the pervasive magnetic field to identify the specific building where the user is now. The magnetic patterns based fingerprinting database approach is used and two databases are built with data collected at 1 m and 2 m separated points to investigate the impact of isolated points on the prediction accuracy. The proposed scheme is able to predict accurately at 86.37% considering eight buildings that contain twenty nine floors in total. Similarly, the proposed system is able to accomplish a precision of 0.85, UAR (Unweighted Average Recall) of 0.84, F score of 0.84 and Cohen’s Kappa value of 0.84, respectively, which show high prediction as well as higher inter-rater agreement. The F score and Kappa values show very strong agreement between the predicted and labeled buildings. The prediction accuracy of the proposed scheme is 81.47% when we use the fingerprint database with data points which are 2 m apart. However, the system accuracy is reduced by a margin of 4.9%, yet the surveying labor can be reduced by 50% with a 2 m database. The proposed system is totally infrastructure free and leverages the data collected using the smartphone built-in sensors alone. The system utilizes only four frames of magnetometer and accelerometer data collected at 10 Hz. We intend to perform further experimentation with an increased number of buildings and database building using crowdsourcing for public places including the shopping malls in the future.

Author Contributions

The conceptualization is performed by Y.P. Data curation and fingerprinting database are done by S.H. The methodology design, software-related work, algorithm design, experiment, and results analysis are performed by I.A. The draft is also written by I.A.

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.

References

  1. Menard, T.; Miller, J. Comparing the GPS capabilities of the iPhone 4 and iPhone 3G for vehicle tracking using FreeSim Mobile. In Proceedings of the 2011 IEEE Intelligent Vehicles Symposium (IV), Baden, Germany, 5–9 June 2011. [Google Scholar]
  2. Mok, E.; Retscher, G.; Wen, C. Initial test on the use of GPS and sensor data of modern smartphones for vehicle tracking in dense high rise environments. In Proceedings of the 2012 Ubiquitous Positioning, Indoor Navigation, and Location Based Service (UPINLBS), Helsinki, Finland, 3–4 October 2012. [Google Scholar]
  3. Anquela, A.B.; Martín, A.; Berné, J.L.; Padín, J. GPS and GLONASS static and kinematic PPP results. J. Surv. Eng. 2012, 139, 47–58. [Google Scholar] [CrossRef]
  4. Yassin, A.; Nasser, Y.; Awad, M.; Al-Dubai, A.; Liu, R.; Yuen, C.; Raulefs, R.; Aboutanios, E. Recent advances in indoor localization: A survey on theoretical approaches and applications. IEEE Commun. Surv. Tutorials 2016, 19, 1327–1346. [Google Scholar] [CrossRef]
  5. Xiong, X.; Yang, Z.; Shangguan, L.; Fei, Y.; Stojmenovic, M.; Liu, Y. SmartGuide: Towards single-image building localization with smartphone. In Proceedings of the 16th ACM International Symposium on Mobile Ad Hoc Networking and Computing, Hangzhou, China, 22–25 June 2015. [Google Scholar]
  6. Parnandi, A.; Le, K.; Vaghela, P.; Kolli, A.; Dantu, K.; Poduri, S.; Sukhatme, G.S. Coarse in-building localization with smartphones. In Proceedings of the International Conference on Mobile Computing, Applications, and Services, San Diego, CA, USA, 26–29 October 2009. [Google Scholar]
  7. Kroll, N.; Jäger, M.; Süb, S. Context-aware Indoor-Outdoor Detection for Seamless Smartphone Positioning. Available online: https://pdfs.semanticscholar.org/489b/f8b594b9dd35aa11e2a225b3067ca310f3b8.pdf (accessed on 8 November 2018).
  8. Maier, D.; Kleiner, A. Improved GPS sensor model for mobile robots in urban terrain. In Proceedings of the 2010 IEEE International Conference on Robotics and Automation, Anchorage, AK, USA, 3–7 May 2010. [Google Scholar]
  9. Le Dortz, N.; Gain, F.; Zetterberg, P. WiFi fingerprint indoor positioning system using probability distribution comparison. In Proceedings of the 2012 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Kyoto, Japan, 25–30 March 2012. [Google Scholar]
  10. Vossiek, M.; Wiebking, L.; Gulden, P.; Weighardt, J.; Hoffmann, C. Wireless local positioning-concepts, solutions, applications. In Proceedings of the Radio and Wireless Conference, Boston, MA, USA, 10–13 August 2003. [Google Scholar]
  11. Subbu, K.P.; Gozick, B.; Dantu, R. LocateMe: Magnetic-fields-based indoor localization using smartphones. ACM TIST 2013, 4, 73. [Google Scholar] [CrossRef]
  12. Haverinen, J.; Kemppainen, A. Global indoor self-localization based on the ambient magnetic field. Rob. Autom. Syst. 2009, 57, 1028–1035. [Google Scholar] [CrossRef]
  13. Ashraf, I.; Hur, S.; Park, Y. MDIRECT-Magnetic field strength and peDestrIan dead RECkoning based indoor localizaTion. In Proceedings of the 2018 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Nantes, France, 24–27 September 2018; IEEE: Piscataway, NJ, USA, 2018. [Google Scholar]
  14. Ashraf, I.; Hur, S.; Park, Y. MagIO: Magnetic Field Strength Based Indoor-Outdoor Detection with a Commercial Smartphone. Micromachines 2018, 9, 534. [Google Scholar] [CrossRef] [PubMed]
  15. 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. [Google Scholar] [CrossRef]
  16. Kasmi, Z.; Norrdine, A.; Blankenbach, J. Towards a decentralized magnetic indoor positioning system. Sensors 2015, 15, 30319–30339. [Google Scholar] [CrossRef] [PubMed]
  17. He, S.; Tan, J.; Chan, S.H.G. Towards area classification for large-scale fingerprint-based system. In Proceedings of the 2016 ACM international joint conference on pervasive and ubiquitous computing, Heidelberg, Germany, 12–16 September 2016. [Google Scholar]
  18. Kim, Y.; Lee, S.; Lee, S.; Cha, H. A GPS sensing strategy for accurate and energy-efficient outdoor-to-indoor handover in seamless localization systems. Mob. Inf. Sys. 2012, 8, 315–332. [Google Scholar] [CrossRef]
  19. Vishal, K.; Jawahar, C.V.; Chari, V. Accurate localization by fusing images and GPS signals. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, Boston, MA, USA, 7–12 Jun 2015. [Google Scholar]
  20. Liu, X.; Nath, S.; Govindan, R. Gnome: A Practical Approach to NLOS Mitigation for GPS Positioning in Smartphones. In Proceedings of the 16th Annual International Conference on Mobile Systems, Applications, and Services, Munich, Germany, 10–15 June 2018. [Google Scholar]
  21. Zou, H.; Jiang, H.; Luo, Y.; Zhu, J.; Lu, X.; Xie, L. Bluedetect: An ibeacon-enabled scheme for accurate and energy-efficient indoor-outdoor detection and seamless location-based service. Sensors 2016, 16, 268. [Google Scholar] [CrossRef] [PubMed]
  22. Anagnostopoulos, G.G.; Deriaz, M. Automatic switching between indoor and outdoor position providers. In Proceedings of the 2015 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Banff, AB, Canada, 13–16 October 2015. [Google Scholar]
  23. Ali, M.; ElBatt, T.; Youssef, M. SenseIO: Realistic Ubiquitous Indoor Outdoor Detection System Using Smartphones. IEEE Sens. J. 2018, 18, 3684–3693. [Google Scholar] [CrossRef]
  24. Ashraf, I.; Hur, S.; Park, Y. mPILOT-magnetic field strength based pedestrian indoor localization. Sensors 2018, 18, 2283. [Google Scholar] [CrossRef] [PubMed]
  25. Müller, M. Information Retrieval for Music and Motion; Springer: Berlin, Germany, 2007; pp. 69–84. [Google Scholar]
  26. Ayrulu-Erdem, B.; Barshan, B. Leg motion classification with artificial neural networks using wavelet-based features of gyroscope signals. Sensors 2011, 11, 1721–1743. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  27. 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. [Google Scholar] [CrossRef]
  28. Kupke, J.; Willemsen, T.; Keller, F.; Sternberg, H. Development of a step counter based on artificial neural networks. J. Location Based Serv. 2016, 10, 161–177. [Google Scholar] [CrossRef]
  29. Han, J.; Pei, J.; Kamber, M. Data Mining: Concepts and Techniques; Elsevier: Waltham, MA, USA.
  30. Cohen, J. A coefficient of agreement for nominal scales. Educ. Psychol. Meas. 1960, 20, 37–46. [Google Scholar] [CrossRef]
  31. Fleiss, J.L.; Levin, B.; Paik, M.C. Statistical Methods for Rates and Proportions; John Wiley & Sons Inc.: Hoboken, NJ, USA, 2013. [Google Scholar]
Figure 1. The diagram of the proposed localization scheme.
Figure 1. The diagram of the proposed localization scheme.
Sensors 18 03862 g001
Figure 2. (a) data collection at indexed locations; (b) interpolated magnetic data after data collection.
Figure 2. (a) data collection at indexed locations; (b) interpolated magnetic data after data collection.
Sensors 18 03862 g002
Figure 3. (a) Sample binary grid for first 10 data points; (b) magnetic field data.
Figure 3. (a) Sample binary grid for first 10 data points; (b) magnetic field data.
Sensors 18 03862 g003
Figure 4. The process of dynamic time warping.
Figure 4. The process of dynamic time warping.
Sensors 18 03862 g004
Figure 5. The distance of two samples of the same location during the different time. (a) Euclidean distance for sample 1; (b) Euclidean distance for sample 2.
Figure 5. The distance of two samples of the same location during the different time. (a) Euclidean distance for sample 1; (b) Euclidean distance for sample 2.
Sensors 18 03862 g005
Figure 6. The distance between the magnetic patterns over different time. (a) Euclidean distance for pattern 1; (b) Euclidean distance for pattern 2.
Figure 6. The distance between the magnetic patterns over different time. (a) Euclidean distance for pattern 1; (b) Euclidean distance for pattern 2.
Sensors 18 03862 g006
Figure 7. Acceleration data for walking and stationary states.
Figure 7. Acceleration data for walking and stationary states.
Sensors 18 03862 g007
Figure 8. Buildings for the experiment in Yuengnam University.
Figure 8. Buildings for the experiment in Yuengnam University.
Sensors 18 03862 g008
Figure 9. Indoor space of buildings used for the experiment.
Figure 9. Indoor space of buildings used for the experiment.
Sensors 18 03862 g009
Figure 10. Classification results for four buildings.
Figure 10. Classification results for four buildings.
Sensors 18 03862 g010
Figure 11. Classification results with eight buildings.
Figure 11. Classification results with eight buildings.
Sensors 18 03862 g011
Figure 12. Aligned databases of MSE and TE buildings (a); and Aligned databases of TE and EE buildings (b).
Figure 12. Aligned databases of MSE and TE buildings (a); and Aligned databases of TE and EE buildings (b).
Sensors 18 03862 g012
Figure 13. Predictions result using MSE building user data.
Figure 13. Predictions result using MSE building user data.
Sensors 18 03862 g013
Figure 14. Classification results using a 2 m database with eight buildings.
Figure 14. Classification results using a 2 m database with eight buildings.
Sensors 18 03862 g014
Figure 15. Comparison of databases prepared with 1 m and 2 m separated points.
Figure 15. Comparison of databases prepared with 1 m and 2 m separated points.
Sensors 18 03862 g015
Table 1. Notations used in Algorithm 1.
Table 1. Notations used in Algorithm 1.
NotationDescription
ASet of acceleration data
GSet of geomagnetic data
fThe length of one frame which is 10 values (1 sec data at 100 ms sampling rate)
BThe building, where currently the user is in
B c The building candidates, where currently the user is in
NThe total number of floors in all buildings
N b i Floor i in building b
E b i k Set of Euclidean distances between sample k and floor i of building b
m E b i k The minimum of Euclidean distances between sample k and floor i of building b
E b k ˜ The normalized Euclidean distance for sample k and building b
Table 2. Buildings’ description used in the experiment.
Table 2. Buildings’ description used in the experiment.
Complete NameAbbreviationFloors
LED-ITCRC6
Material Science & EngineeringMSE5
Information Technology (College of Eng.)ITE3
Industry Academic Cooperation TechnologyIACT3
College of Business & Economics-NewBEN4
Electrical EngineeringEE3
School of Textile EngineeringTE3
College of Business & Economics-NewBEO3
Table 3. Accuracy parameters result for four building classifications.
Table 3. Accuracy parameters result for four building classifications.
ClassPrecisionRecallF Score
CRC0.90800.86920.8882
MSE0.88830.84950.8685
ITE0.89260.91810.9052
IACT0.93050.95520.9427
Overall accuracy90.54%
UAR0.9011
Kappa Value0.8586
Avg. response time0.21 s
Table 4. Accuracy parameters result for eight building classification.
Table 4. Accuracy parameters result for eight building classification.
ClassPrecisionRecallF Score
CRC0.87640.98100.9258
MSE0.67670.79580.7315
ITE0.88400.94190.9121
IACT0.91150.75870.8281
BEN0.92031.00000.9585
EE0.87430.83700.8552
TE0.69860.51730.5944
BEO0.97430.95810.9661
Overall accuracy86.37%
UAR0.8464
Kappa Value0.8421
Avg. response time0.32 s
Table 5. The distance between fingerprint databases of all buildings.
Table 5. The distance between fingerprint databases of all buildings.
CRCMSEITEIACTBENEETEBEO
CRC05750.9613396.805736.934668.806611.005825.076481.80
MSE5750.9602893.872586.331995.331123.47904.671232.40
ITE13396.802893.8703587.442569.003470.223168.442772.00
IACT5736.932586.333587.4401938.083677.002799.222447.33
BEN4668.801995.6525699.001938.0802384.002095.422009.25
EE6611.001123.473470.223677.002384.0001393.222092.67
TE5825.07904.673168.442799.222095.421393.2201254.33
BEO6481.801232.402772.002447.332009.252092.671254.330
Table 6. Accuracy parameters result for eight building classification with a 2 m database.
Table 6. Accuracy parameters result for eight building classification with a 2 m database.
ClassPrecisionRecallF Score
CRC0.89950.95910.9284
MSE0.61980.70120.6580
ITE0.85250.89550.8735
IACT0.81740.71990.7656
BEN0.84410.98970.9111
EE0.82740.70780.7629
TE0.64520.51670.5739
BEO0.93420.88400.9084
Overall accuracy81.47%
UAR0.7977
Kappa Value0.7827

Share and Cite

MDPI and ACS Style

Ashraf, I.; Hur, S.; Park, Y. BLocate: A Building Identification Scheme in GPS Denied Environments Using Smartphone Sensors. Sensors 2018, 18, 3862. https://doi.org/10.3390/s18113862

AMA Style

Ashraf I, Hur S, Park Y. BLocate: A Building Identification Scheme in GPS Denied Environments Using Smartphone Sensors. Sensors. 2018; 18(11):3862. https://doi.org/10.3390/s18113862

Chicago/Turabian Style

Ashraf, Imran, Soojung Hur, and Yongwan Park. 2018. "BLocate: A Building Identification Scheme in GPS Denied Environments Using Smartphone Sensors" Sensors 18, no. 11: 3862. https://doi.org/10.3390/s18113862

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