Full text
A radiosity-based method to avoid calibration for Indoor Positioning Systems ´ Oscar Belmonte-Fern´andez∗, Ra´ul Montoliu∗, Joaqu´ın Torres-Sospedra∗, Emilio Sansano-Sansano∗, Daniel Chia-Aguilar∗ Institute of New Imaging Technologies, Jaume I University, 12071 Castell´on de la Plana. Spain. Abstract Due to the widespread use of mobile devices, services based on the users current indoor location are growing in significance. Such services are developed in the Machine Learning and Experst Systems realm, and ranges from guidance for blind people to mobile tourism and indoor shopping. One of the most used techniques for indoor positioning is WiFi fingerprinting, being its use of widespread WiFi signals one of the main reasons for its popularity, mostly on high populated urban areas. Most issues of this approach rely on the data acquisition phase; to manually sample WiFi RSSI signals in order to create a WiFi radio map is a high time consuming task, also subject to re-calibrations, because any change in the environment might affect the signal propagation, and therefore degrade the performance of the positioning system. The work presented in this paper aims at substituting the manual data acquisition phase by directly calculating the WiFi radio map by means of a radiosity signal propagation model. The time needed to acquire the WiFi radio map by means of the radiosity model dramatically reduces from hours to minutes when compared with manual acquisition. The proposed method is able to produce competitive results, in terms of accuracy, when compared with manual sampling, which can ∗Corresponding author Email addresses: [email protected] (´ Oscar Belmonte-Fern´andez), [email protected] (Ra´ul Montoliu), [email protected] (Joaqu´ın Torres-Sospedra), [email protected] (Emilio Sansano-Sansano), [email protected] (Daniel Chia-Aguilar) Preprint submitted to Expert Systems with Applications July 13, 2018
help domain experts develop services based on location faster. Keywords: Indoor positioning, Radiosity, Classification algorithm, Machine Learning 1. Introduction Indoor positioning is a core technique for ubiquitous and pervasive computing applications. Such applications can exploit user’s position information in the services they provide to the user (Schilit et al., 1994; Abowd & Mynatt, 2000; Hightower & Borriello, 2001; Kwon et al., 2005): a remote health-care5 monitoring system could use positioning information to recognise person’s activities and make decisions about health state (Yan et al., 2010); a position aware meeting service can provide mobile laptops with information regarding the meeting-room they are located at Castro et al. (2001); evacuation systems could provide the path to the nearest exit in an emergency case (Ingram et al.,10 2004). The position of the user can be estimated, for instance, in terms of latitude and longitude or at room level. The former is commonly used by guiding services where the position of the users in movement is used to guide them to their destination; the latter is used in applications where knowing the position of the15 user at room level is accurate enough to provide services, for example: healthcare applications, monitoring and security applications, and so on (Gu et al., 2009). Opposed to positioning systems that do not require any infrastructure to work with, like positioning systems based on the magnetic field of the Earth20 (Li et al., 2012), infrastructure based positioning systems need some kind of infrastructures to work with. Presented systems use cameras (Helal et al., 2009; Doukas & Maglogiannis, 2011), IR sensors (Noury et al., 2000; Demongeot et al., 2002; Costa et al., 2014); RFID technology (Calderoni et al., 2015); beacons (Tapia et al., 2012; Shirokov, 2012; Fern´andez-Llatas et al., 2013); and sound25 (Lopes et al., 2015; Cobos et al., 2016). 2
Opportunistic WiFi signals have been extensively used as base technology for indoor positioning systems due to: a) its ubiquitous presence in urban populations; b) its relatively low cost when compared with other technologies; c) its presence in most consumer mobile devices such as smart-phones, smart-watches30 or laptops. Different techniques have been used to exploit WiFi signals: Angle of Arrival (AoA) (Sen et al., 2013), triangulation (Lim et al., 2007) and trilateration (Mok & Retscher, 2007), being the most extended technique WiFi fingerprinting (He & Chan, 2016). The popularity of fingerprinting method is due to: a) its simplicity, b) it does not need any special hardware and, c) it is35 ubiquitously used. WiFi fingerprinting methods are based on the signal strength generated by a set of surrounding Wireless Access Points (WAPs) measured at different positions. This set of measures forms a WiFi map, also called radio map. Two stages are commonly used to create a WiFi map positioning system: calibration and operational stages. In the calibration stage, the set of WiFi40 intensity measures at different positions is taken to latter create the WiFi map. In the operational stage, a user’s device measures the WiFi signal strength of all surrounding WAPs, and this information is then used, by the positioning system, to provide an estimation of user’s position. WiFi intensity measuring is a time consuming and expensive task where different issues can happen (Casas45 et al., 2007; Deasy & Scanlon, 2007; Han et al., 2014), for example, any change in the environment, such as changing the location of some furniture elements, changing partition walls, changing the position of existing WAPs, deploying new WAPs, or removing existing WAPs, may degrade the positioning service, which implies the recalibration of the positioning system.50 Some works have appeared trying to reduce the effort needed in the calibration stage. In Gu et al. (2016) the authors reduce in a half the number of samples needed to create the WiFi map taking advantage of the hidden structure and redundancy characteristics of WiFi samples. Other works try to cope with re-calibration when changes in the environment are detected (Fet et al. (2016)),55 although an accuracy degradation is always present when moving furniture, new walls are lifted or removed, and so on. 3
The problem of signal propagation has been successfully solved in some other realms of science. In Physics, heat transfer between a bodies at different temperature has been described using the radiosity model (Howell et al., 2010). Later,60 the same radiosity model was adapted and applied in Computer Graphics to model light propagation indoors for global illumination (Cohen et al., 1986; Cohen & Wallace, 2012). The definition of radiosity is: ”the radiant flux leaving a surface by unit area”. In the case of a WiFi signal, the radiant flux is the intensity of the WiFi signal. This way, existing techniques to solve the radiosity65 equation can be used to model the WiFi signal propagation in the presence of obstacles like walls and doors. 1.1. Motivations and Hypothesis The main motivation of this work is to use the radiosity model to describe the WiFi signal propagation indoors. This way the WiFi map used for WiFi70 fingerprinting indoor location systems, can be generated analytically, reducing acquisition costs in terms of time devoted to obtain the WiFi radio map, and people involved in that task. This motivation is base on the following hypothesis: 1. Given that WiFi radio waves are an electromagnetic signal, its propagation75 model can be simulated using the radiosity model (Cohen et al., 1986; Heckhert, 1992). 2. A WiFi radio map can be analytically obtained from the radiosity model. 3. Walls are the most important structural elements to have into account when calculating the radiosity map of the WiFi signal.80 Given that the WiFi radio map can be calculated analytically, the main benefits of the proposed solution are: 1. No domain expert intervention is needed in the acquisition phase, thus reducing costs. 2. The time to create the radiosity map using current CPUs is two orders of85 magnitude faster than manual acquisition. 4
3. WiFi maps for new deployed WAPs, or for WAPs which changes its position, can be easily included at any time. 4. Any structural changes in the scenario can be easily taken into account to re-calculate the WiFi maps.90 1.2. Contributions The main goal of this work is to replace the manual acquisition of a Wifi radio map, which is a cost in term of time and people carrying out the task, by analytically calculating the WiFi radio map by means of the radiosity model. Our results show that the time consumend to analytically generate the WiFi95 radio map is one hundred times faster than manual acquisition. In addition, removing manual acquisition reduces the costs of creating a WiFi radio map. This main goal can be subdivided in the following contributions: 1. To model WiFi signal propagation using the radiosity technique. This way, the RSSI value is directly evaluated from the radiosity model.100 2. To modify the Gaussian distribution for RSSI values to mimic its real temporal variation. 3. To compare the performance between classifiers built using real measured RSSI data, and the RSSI data calculated by the proposed radiosity model using well known Machine Learning algorithms.105 4. To check if any improvement arises by mixing real measured RSSI and simulated RSSI when building a classifier. 5. To compare the impact on performance with regards to the size of the data sets used during the training phase between classifiers built using real and simulated data.110 To the best of our knowledge, this is the first work where the radiosity model to generate a WiFi map is applied for indoor positioning purposes. This technique would facilitate the development of new Expert Systems applications based on the users position information for ubiquitous and pervasive computing. This could relieve domain experts from the sampling task, substituting it by an115 5
assistive procedure based on a radiosity WiFi map. This will allow them to focus on adding value to their applications by including the spatial context to provide better services to final users. The rest of paper is organized as follows: Section 2 presents the different propagation models appeared in the literature, how WiFi maps can be used for120 indoor positioning, and the basics of the radiosity model. Section 3 presents the scenario used to perform the experiments, how the radiosity model has been applied to obtain the WiFi signals, the Machine Learning algorithms used, and how analytical data is perturbed to mimic the time series behaviour of real data. Section 4 presents the experimental results and discussion. Comparison with125 previous work, and the strengths and weaknesses of our work are presented in Section 5. Finally, the conclusions are presented in Section 6. 2. Background and Related work First, this section presents WiFi signal propagation modelling presented in previous works. Then, WiFi fingerprinting location technique is presented. Fi-130 nally, a detailed description of the radiosity propagation model is presented. 2.1. WiFi signal propagation and modelling WiFi is an electromagnetic signal, which may be reflected, transmitted, absorbed and diffracted by physical objects in the scene. The intensity of an electromagnetic signal decreases with the inverse of the squared distance to the135 source I3D∝1 r2in a 3D open space. If the dimensions of the space reduces to two, the signal decreases following an inverse of the distance rule I2D∝1 r. Decibels (dBm) are the common unit used for WiFi signal intensity, this unit takes the logarithm of the signal power, so the intensity of a WiFi signal decreases with the logarithm of the distance when measured in dBm I(dBm)∝log r.140 When there are objects in the scene that interact with the electromagnetic signal, the previous rules do not work well because they do not have into account the multipath effect due to reflections on object surfaces present in the scene, 6
absorption by objects, and diffraction on object with a size similar to the wave length of the electromagnetic signal. The most common frequency used by WiFi145 access points (WAPs) is 2.4GHz. which corresponds to a wavelength of 12.5cm. Different models have been presented to describe the electromagnetic propagation in complex scenes. One of the most simple models is the log normal shadowing model also know as path loss model (Seybold, 2005; Ficco et al., 2014). In this model, the different interactions with the objects in the scene are150 modelled as an exponent in the intensity formula, in such a way that the intensity of the electromagnetic signal decreases faster than in open space. The final result is that the intensity still remains linearly dependent with the logarithm of the distance. The main advantage of the path loss method is its simplicity. Its main drawback is the lack of accuracy. Path loss has been used in Deasy &155 Scanlon (2007) to calculate WiFi maps for localisation purposes, and the results presented underestimate the signal strength by up to 15 dBm. A combination of path loss WiFi modelling, Kalman filtering and RFID beacons is used in Chiou et al. (2010) to estimate the position of a user. Authors in Ali et al. (2017) use the floor plan/wall map and a path-loss model for WiFi signal propagation to160 estimate the WiFi signal intensity at any point on the floor plan. Ray tracing is a technique used in computer graphics to generate an image by tracing back the light rays arriving to a camera from all objects in a scene (Glassner, 1989). This model is more accurate than the path loss model because it has into account reflections, transmissions and refractions of the electromag-165 netic signal on objects in the scene (Kimpe et al., 1993; Yang et al., 1998). The main advantage of the ray tracing model is its accuracy when calculating the intensity of the electromagnetic signal for each point in the scene. Its main drawback is the computational time used to obtain the result. Ray tracing has been used to model WiFi signals for indoor locations in El-Kafrawy et al. (2010),170 Raspopoulos et al. (2012) and Ayadi et al. (2015). The radiosity method tries to directly solve the Rendering Equation (see Equation 1), which describes the interaction between an electromagnetic signal and all objects in the scene, and solves it by means of the finite elements 7
technique (Zienkiewicz & Taylor, 2005). A detailed description of the radiosity175 method is given in Section 2.3. The ray tracing and radiosity methods are global methods because both take into account inter reflections of the electromagnetic signal between the objects present in the scene. A performance comparison of the three previously presented methods re-180 garding its accuracy to calculate the WiFi intensity for an indoor 2D scenario is presented in Ayadi et al. (2015). The authors show that the path loss method provides the worst estimations in the scenario analysed by the authors. The most accurate method is radiosity, followed by the ray tracing method. Given the accuracy provided by the radiosity method to model WiFi signal propa-185 gation, it was chosen for testing its feasibility simulating data for developing indoor positioning services. 2.2. Indoor positioning using WiFi fingerprinting As previously mentioned, two stages are commonly used to create a WiFi fingerprinting positioning system: calibration and operational stages. In the190 calibration stage, the set of measures at different positions is taken to latter create the WiFi map. Lets denote this set as W={~wi(~xj)}where each vector ~wi={s1, s2, ..., sk}idenotes the WiFi signal strengths for the kvisible WAPs for the i-measure at position ~xj. Note that more than one measures can be taken at same position at different times.195 In the operational stage, a user measures the WiFi signal strength of all surrounding WAPs, and this is compared with all measures in the WiFi fingerprinting database. The estimated position for the user ~xuis such that its vector of WiFi signal intensities ~wuminimizes some distance metrics ~xu= ~xj|min(d(~wi(~xj), ~wu)) (Torres-Sospedra et al., 2015).200 Machine Learning (ML) techniques have been commonly applied to estimate the position of a user based on the WiFi map information. WiFi fingerprinting positioning is a candidate problem to be solved by means of ML techniques, due to the particular characteristics of the problem: a) it is difficult to obtain an 8
analytical result due to the complexity of modelling WiFi signal propagation, b)205 to build a computational model based on WiFi RSSI measures is a challenging problem due to its high variability over time, c) response time provided by ML algorithms is fast enough to be used in real-time applications. Extensive reviews about indoor positioning using WiFi fingerprinting can be found in Liu et al. (2007), Song et al. (2011) and He & Chan (2016).210 2.3. The radiosity method The radiosity method was first developed to solve heat transfer between systems at different temperatures. Later, the radiosity method was successfully applied to solve the rendering equation, which describes the illumination for each element in a 3D scene (Cohen et al., 1986). A simplified version of such a215 method can be used for 2D scenes (Heckhert, 1992). For each point in a scene s, the radiosity b(s), is defined as the sum of the emitted radiation e(s), plus the reflected and transmitted radiation at such point coming from any other points in the scene. When ideal diffuse reflection and transmission is assumed, the radiosity equation is given by:220 b(s) = e(s) + ρ(s)ZL 0 ds0cosθicosθ0 o 2rvrb(s0) + τ(s)ZL 0 ds0cosθicosθ0 o 2rvtb(s0) (1) where ρ(s) is the semicircular reflection coefficient of the diffuse material, τ(s) is the semicircular transmission coefficient of the diffuse material at point s,vr is the visibility term for reflection, vtthe visibility term for transmission, and the geometric values are those shown in Figure 1. Note that for convenience, the integral extends over all segments in the scene L=PiLi 225 The integral Equation 1 can be solved using the finite elements method, in which case, for any element in the scene i, the radiosity at this element bican be expressed as: bi=ei+ρi n X j=1 bjFij +τi n X j=1 bjTij (2) 9
for the corresponding office. For example, point for office TI1202 in Figure 5-a is the maxs∈S{RSSI +σs}for elements in first row of Table 1, where S≡ {1,2,3,4,5,6}. In the same way, each point in the dashed lower strip-line is the minimum of RSSI minus the standard deviation for the corresponding395 office mins∈S{RSSI −σs}. Remarkably, more than 80% of simulated RSSI values, for the four studied WAPs, are between these two limits. 4.3. Performace comparison The particular classification task used to compare the performance was a challenging problem, only four characteristics were used to estimate the label400 (office ID) in a 13 classes classification problem. It was expected that, even using real data to build the classifier, the performance will be moderate. But the objective of the comparison it was to asses how good are the results provided by the simulated classifiers compared with the real ones, not to asses the performance of the simulated classifiers themself.405 The following procedure was used to compare the classification performance using real classifiers and simulated classifiers: first, seven classifiers were built using one data set as training data (data sets: 1 to 6 for real data, and Sim. for simulated data); second, data sets 1 to 6 were used for testing. Tables 2-7 show the percentage of correct estimates for each classification algorithm used. For410 each row, the data set on the left most column was used as training data when building the classifier, and all data sets in other columns were used to test the classifiers. The elements in the diagonal, which corresponds to the result when the training and test data sets are the same, are omitted. The row with label Avg. corresponds to the averages of all six elements in the same column (same415 testing data set). The row with label Sim. corresponds to the classifier built using simulated data. The last column shows the performance average for all five data sets used for testing with the same training set. Table 2 shows the results when using a Bayes Network classifier, in all cases, the classifier built using simulated data never gave the worst result. The percent-420 age of correctly classified samples for the simulated classifier is always above 50% 16
of correctly classified rooms, far away from a random guess. The performance differences, for the same test set, between classifiers using real and simulated data ranges between 0.25 and 4.26. The mean performance for all tested data set in the case of real classifier was 55.18 (see Table 9), and the mean perfor-425 mance for the simulated classifier was 55.47, which is remarkably close to the real performance. Table 3 shows the results when using a KNN classifier. The simulated classifier gave the worst results for 4 of 6 tests sets, but in one case only, the performance was below 50% of correctly classified rooms. The performance dif-430 ferences between classifiers, for the same test set, using real and simulated data ranges between 1.17 and 11.92. The mean performance for the real classifier was 60.35, and the mean performance for the simulated classifier was 52.82. Table 4 shows the results when using a Multi Layer Perceptron. Again, in this case the classifier built using simulated data gave the worst results in 3 of435 6 tests sets, but in one case only the performance was below 50% of correctly classfied rooms. The performance differences between classifiers, for the same test set, using real and simulated data ranges between 0.20 and 23.25. The mean performance for the real classifier was 62.40, and the mean performance for the simulated classifier was 53.00.440 Table 5 shows the results when using a Random Forest classifier. Remarkably, the classifier built when using simulated data gave the best results in 2 of 6 test sets, and never gave the worst result. The performance differences between classifiers, for the same test set, using real and simulated data ranges between 0.72 and 13.31. The mean performance for the real classifier was 53.84, and445 the mean performance for the simulated classifier was 57.86, which is remarkably close to the real performance. In this case, the mean performance of the simulated classifier was higher than the real classifier. Table 6 shows the results when using a Sequential Minimal Optimization classifier. The simulated classifier gave the worst results in 2 of 6 test sets, but450 in these two case the percentage of correctly classified rooms were above 60%. The performance differences between classifiers, for the same test set, using real 17
and simulated data ranges between 6.57 and 11.91. The mean performance for the real classifier was 73.22, and the mean performance for the simulated classifier was 66.31.455 Table 7 shows the results when using a Support Vector Machine classifier. The simulated classifier never gave the worst result using this classifier. The performance differences between classifiers using real and simulated data ranges between 0.53 and 12.37 for the same test set. The mean performance for the real classifier was 68.98, and the mean performance for the simulated classifier460 was 64.95. Table 8 shows the results when using an ensemble classifier using the results of all six previous classifiers. The ensemble built using simulated data gave the worst result in one case only. The percentage of correctly classified data was 68.92% which means 2 of 3 correctly classified rooms on average. The465 performance differences between classifiers using real and simulated data ranges between 2.55 and 11.13 for the same test set. The mean performance for the real classifier was 70.36, and the mean performance for the simulated classifier was 65.96. Table 9 shows a summary comparing the average performance between real470 and simulated classifiers, and its differences. The last row in the Table 9 shows the difference between the averaged values. The biggest difference was 7.35 for KNN classifier and the smallest was -4.02 for the RF classifier, which remarkably performs better, averaging all results, for the simulated classifier. In the case of the Ensemble classifier, the mean performance value is 65.96 ±0.08, namely,475 the Ensemble correctly classifies 2 of 3 test samples. The difference in the mean, between real and simulated classifiers, for the Ensemble classifier is 4.40, this shows that simulated data generated using the radiosity algorithm provides accurate results when used to build indoor positioning classifiers. 4.4. Combining real and simulated data480 In this section, the classifier performance when real measures are combined with simulated data to create the classifiers is analysed. The objective of these 18
tests were to assess if it is possible to improve the performance of already built classifiers by adding new simulated data to the original training data set, without taking new real samples.485 For each experiment, one hundred simulated samples were added to one hundred real measures, so the total number of elements in the training set was two hundred. After that, the performance was measured following the same procedure than in Section 4.3. For the sake of brevity, average results are presented only.490 Table 10 shows a summary comparing the performance between real and simulated classifiers, and their differences. All results improved with regards those presented in Table 9, even the difference becomes narrower in all cases but for the Bayes Network classifier. In the case of the Ensemble classifier, the mean performance value was 78.18 ±0.07, so more than 3 of 4 test samples495 were correctly classified on average. The difference regarding the real Ensemble classifier was 1.89 ±0.08, that is less than two percentage points. 4.5. Leave-one-out performance comparison This set of experiments compares the results when building each classifier leaving one of the six data sets out for training, and using the left data set500 for testing. Five hundred measures were used to build each classifier. In the case of the simulated classifier, five hundred simulated measures were generated following the scheme presented in Section 3.4. Table 11 shows the leave-one-out experimental results. The percentage of correctly classified rooms for the simulated classifier is always below the corresponding real classifier. The smallest505 difference between real (78.08%) and simulated (76.77%) classifiers was for the Random Forest classifier when testing set was number 6, which is less than two percentage points. Although there is an improvement when more data is used to build real classifiers, there is not a clear improvement in the case of the simulated classifiers.510 In the next section it is studied how generalization improves with regards the size of the training data. 19
4.6. Generalization with regards the number of samples in the training set The performance of a classifier depends on how well it is classifying new data, in other words, how well it generalises when classifying new data. It is desirable515 that a learning algorithm will improve its performance with experience, namely, when the number of samples in the training set increases (Flach, 2012). The results presented in this section study how performance behaves when increasing the size of the training data set for real and simulated classifiers. Performance was compared when the number of training data was increased in520 one hundred new samples at each steps. In the case of real measurements, this was done just summing up a new real dataset to the previous training data. In the case of the simulated data, this were done generating a new simulated data set of one hundred samples, and adding it to the previous simulated data set. Results are shown in Table 12. The first column in this table refers to the525 size of the training data set, 1 means that only the samples in data set 1 were used to train the classifier, 12 means that samples in data sets 1 and 2 were used to train the classifier, and so on. Sim100 refers to a training data set composed on 100 simulated samples, Sim200 refers to a training data set composed on 200 simulated samples, and so on.530 Taken the results in Table 12 there is no clear increase in performance when increasing the number of samples used in the training phase. However, if results for 100 samples and 500 samples are compared, only, there is a clear improvement for all classifiers. Figure 6 shows the particular cases for the Bayes Network and MLP classi-535 fiers. Bayes Network real classifier clearly follows a linear trend with positive slope regarding the size of the training data set. On the contrary, when using simulated samples, the trend exhibits a negative slope. In the case of the Random Forest classifier, real and simulated training data sets show a linear trend with positive slope when increasing the size of the data sets used in training540 stage, even the performance in the simulated case exhibits a bigger value for the slope. Although for some classifiers the performance improves when more samples are used in the training data set, this is not true in general. 20
5. Discussion The radio propagation model for indoor positioning presented in Deasy &545 Scanlon (2007) uses an empirical model based on the radio signal absorption by walls, the final absorption is obtained by counting the number of walls between the radio signal emitter and the observer, no inter-reflexion between walls are taken into account as the radiosity model presented in this paper do. The work in Han et al. (2014) presents an ubiquitous application for indoor navigation550 based on the interpolation of the WiFi RSSI signal between sample points; although this approach reduces the number of samples, and so the acquisition time, they still need some manual data acquisition. The same interpolation approach, but using a different technique, is presented in Gu et al. (2016) where they use a sparsity rank singular value decomposition to interpolate the WiFi555 RSSI signal at sampled points; again, although the number of sampled points is reduced their solution still needs some manual data acquisition. In Ayadi et al. (2015) the authors compare three different empirical models to study its appropriateness to ITU accuracy statistics recommendation for 2.4 GHz indoor test environment, but they do not apply their conclusions to develop any application560 in the expert systems realm. In this paper, the data provided by the radio map obtained with the radiosity model is used to develop a positioning system based on machine learning algorithms commonly used in the expert system realm. Compared with previous works, the main strength of this work is to completely remove the manual acquisition step in the offside development of a posi-565 tioning system, which in turn dramatically reduces the time needed to develop them. Also, when the radio WiFi map is generated any number of sample points can be taken to build machine learning algorithms. Any change in the environment, as an addition or removal of a WiFi access point, or a relocation of an access point, can be easily taken into account by building a new WiFi radio map570 for the access point involved. To have the complete WiFi radio map might be a valuable tool for domain experts developing expert systems applications based on indoor location information. 21
The weaknesses of the presented work rely on the information needed to create the radiosity map. It is required to have a precise floor map of the area,575 on the contrary, the radiosity generated map could be degraded. To have an accurate measure of the material absorption for the walls is also important to obtain an accurate radiosity map. 6. Conclusions In this work, how to reduce or even completely remove the calibration stage580 when building radio maps for indoor positioning has been explored. The proposed alternative to sampling RSSI WiFi signal at different positions to create the radio map, is to calculate this radio map based on the radiosity model, which describes radio signal propagation for indoor scenarios in the presence of obstacles like walls and doors. Regarding the time consumed to generate simulated585 data sets, it is one hundred times faster to generate data using the radiosity model than with manual acquisition. Moreover, the radiosity map provides the RSSI level for each point in the floor plan, while manual acquisition provides data for the sampled point only. Additionally, removing manual data acquisition reduces the cost for creating WiFi maps. This might easy the use of positioning-590 based Expert Systems development in big scenarios where WiFi sampling is a high time consuming task (Casas et al. (2007); Han et al. (2014)). Experimental results, based on well known machine learning algorithms commonly used in expert systems development, showed that the accuracy of the presented method is close to manual acquisition of data. Even in those cases where positioning595 systems are already working, the results presented in this paper show that to add new samples from the radiosity map to real samples improves the final accuracy in almost 10% for the case of an ensemble of classifiers. The implication for already developed ubiquitous and pervasive applications based on positioning information is that it might be possible to improve their performances by600 adding new radiosity simulated data. As short-term future work, we plan to adapt our radiosity implementation 22
code to take profit of the power of modern GPUs, which could reduce the time consumed to generate the radiosity map two orders of magnitude. This improvement would provide near real-time tools for Expert Systems applications based605 on positioning information; as an example, this could allow domain experts to accurately fix the position of WiFi access points to maximize the accuracy of the positioning algorithms. In the medium term, we plan to extend the radiosity algorithm to three dimensions, this could provide better radiosity maps at the expenses of more calculus; again, we could use a GPU implementation of the 3D610 radiosity to reduce processing time. As stated in one result of this work, to mix real and radiosity information improves the accuracy of positioning algorithms, so in the medium term we plan to use a robot to take real samples without any manual intervention. Finally, in the long term, and for those cases where the floor map is not available, we plan to use artificial intelligence algorithms, based615 on the information provided by radiosity map, to estimate the position of the walls in the area of interest. Acknowledgements This work has been partially funded by the Spanish Ministry of Economy and Competitiveness through the “Proyectos I + D Excelencia” programme620 (TIN2015-70202-P) and by Jaume I University “Research promotion plan 2017” programme (UJI-B2017-45). References Abowd, G. D., & Mynatt, E. D. (2000). Charting past, present, and future research in ubiquitous computing. ACM Trans. Comput.-Hum. Interact.,7,625 29–58. URL: http://doi.acm.org/10.1145/344949.344988. doi:10.1145/ 344949.344988. Ali, M. U., Hur, S., & Park, Y. (2017). Locali: Calibration-free systematic localization approach for indoor positioning. Sensors,17 . URL: http:// www.mdpi.com/1424-8220/17/6/1213. doi:10.3390/s17061213.630 23
Alpaydin, E. (2004). Introduction to Machine Learning. MIT Press. Ayadi, M., Torjemen, N., & Tabbane, S. (2015). Two-dimensional deterministic propagation models approach and comparison with calibrated empirical models. IEEE Transactions on Wireless Communications,14, 5714–5722. Breiman, L. (2001). Random forests. Machine Learning,45, 5–32. URL: http:635 //dx.doi.org/10.1023/A:1010933404324. doi:10.1023/A:1010933404324. Calderoni, L., Ferrara, M., Franco, A., & Maio, D. (2015). Indoor localization in a hospital environment using random forest classifiers. Expert Systems with Applications,42, 125 – 134. URL: http://www.sciencedirect. com/science/article/pii/S0957417414004497. doi:http://dx.doi.org/640 10.1016/j.eswa.2014.07.042. Casas, R., Cuartielles, D., Marco, A., Gracia, H. J., & Falco, J. L. (2007). Hidden issues in deploying an indoor location system. IEEE Pervasive Computing,6, 62–69. Castro, P., Chiu, P., Kremenek, T., & Muntz, R. (2001). A probabilistic room645 location service for wireless networked environments. In Ubicomp 2001: Ubiquitous Computing (pp. 18–34). Springer. Chiou, Y.-S., Wang, C.-L., & Yeh, S.-C. (2010). An adaptive location estimator using tracking algorithms for indoor wlans. Wireless Networks, 16, 1987–2012. URL: http://dx.doi.org/10.1007/s11276-010-0240-8.650 doi:10.1007/s11276-010-0240-8. Cobos, M., Perez-Solano, J. J., Belmonte, ´ O., Ramos, G., & Torres, A. M. (2016). Simultaneous ranging and self-positioning in unsynchronized wireless acoustic sensor networks. IEEE Transactions on Signal Processing,64, 5993– 6004.655 Cohen, M. F., Greenberg, D. P., Immel, D. S., & Brock, P. J. (1986). An efficient radiosity approach for realistic image synthesis. IEEE Computer graphics and Applications,6, 26–35. 24
Cohen, M. F., & Wallace, J. R. (2012). Radiosity and realistic image synthesis. Elsevier.660 Cortes, C., & Vapnik, V. (1995). Support-vector networks. Machine Learning,20, 273–297. URL: http://dx.doi.org/10.1007/BF00994018. doi:10. 1007/BF00994018. Costa, N., Domingues, P., Fdez-Riverola, F., & Pereira, A. (2014). A mobile virtual butler to bridge the gap between users and ambient assisted living: A665 smart home case study. Sensors,14, 14302–14329. Cybenko, G. (1989). Approximation by superpositions of a sigmoidal function. Mathematics of Control, Signals and Systems,2, 303–314. URL: http://dx. doi.org/10.1007/BF02551274. doi:10.1007/BF02551274. Deasy, T. P., & Scanlon, W. G. (2007). Simulation or measurement: The effect of670 radio map creation on indoor wlan-based localisation accuracy. Wireless Personal Communications,42, 563–573. URL: http://dx.doi.org/10.1007/ s11277-006-9211-x. doi:10.1007/s11277-006-9211-x. Demongeot, J., Virone, G., Duchne, F., Benchetrit, G., Herv, T., Noury, N., & Rialle, V. (2002). Multi-sensors acquisition, data fusion, knowledge mining675 and alarm triggering in health smart homes for elderly people. Comptes Rendus Biologies,325, 673 – 682. Longevite et vieillissement. Doukas, C., & Maglogiannis, I. (2011). Emergency fall incidents detection in assisted living environments utilizing motion, sound, and visual perceptual components. Information Technology in Biomedicine, IEEE Transactions on,680 15, 277–289. El-Kafrawy, K., Youssef, M., El-Keyi, A., & Naguib, A. (2010). Propagation modeling for accurate indoor wlan rss-based localization. In 2010 IEEE 72nd Vehicular Technology Conference - Fall (pp. 1–5). doi:10.1109/VETECF. 2010.5594108.685 25
Figure 2: RSSI map generated using the radiosity method. WAP was located at office TI1202. Colours represents intensities in dBm. Black points show position of the four WAPs used in the experiments. 32
(a) Real data. (b) Simulate data. Figure 3: Histograms of the WiFi signal intensity for real data (left), and simulated data (right), for 100 samples. The values for simulated data were µ=−68.54, σ = 0.94. 33
(a) Real data. (b) Simulated data. (c) Simulated inertia. Figure 4: Temporal series of real data (a), simulated data (b), and simulated data with hysteresis. For simulated data the normal distribution was generated taken µ=−68.54 and σ= 0.94. The inertia factor keeps the current data 80% of times on average. 34
(a) (b) (c) (d) Figure 5: These figures show the measure intensity for each of the four WAP identified by their MAC address, compared with the simulated data. The upper limit of the light violet ribbon represents the maximum intensity measured in all six data sets. The lower limit of the ribbon represents the minimum. The solid line shows the RSSI signal for simulated data. On the horizontal axes, offices are sorted by code. 35
Figure 6: Overfitting comparison between classifiers built with real and simulated data. 36
Table 1: Statistics (mean ±standard deviation) for the RSSI of WAP with MAC address d0.ae.ec.dd.ec.30. Each row shows the data for an office, and for one of the six data sets acquired. Unit is dB. Data Set Office 1 2 3 4 5 6 TI1202 -39.22 ±3.17 -42.24 ±1.87 -38.51 ±1.31 -43.66 ±2.23 -35.58 ±2.77 -36.73 ±3.07 TI1203 -47.87 ±2.69 -42.08 ±1.76 -41.22 ±0.64 -42.72 ±1.46 -41.28 ±0.70 -43.20 ±0.73 TI1204 -54.35 ±1.91 -51.56 ±1.53 -45.51 ±1.81 -49.54 ±1.46 -46.87 ±1.23 -50.95 ±0.80 TI1206 -73.15 ±3.78 -66.51 ±4.81 -66.88 ±2.82 -62.58 ±1.43 -65.36 ±2.41 -65.66 ±2.85 TI1207 -72.57 ±1.16 -65.72 ±1.06 -64.09 ±1.11 -72.81 ±1.13 -68.78 ±2.81 -73.02 ±3.19 TI1208 -77.80 ±1.93 -72.67 ±0.83 -73.33 ±4.13 -73.98 ±0.86 -70.79 ±0.41 -77.66 ±1.33 TI1209 -84.64 ±0.81 -83.67 ±0.75 -85.59 ±0.99 -79.64 ±2.92 -82.58 ±4.30 -81.93 ±2.25 TI1210 -80.56 ±0.89 -80.26 ±2.11 -79.26 ±1.46 -77.60 ±1.04 -76.47 ±0.81 -83.92 ±1.98 TI1211 -76.20 ±2.63 -81.71 ±1.87 -79.28 ±1.31 -78.54 ±1.82 -77.22 ±1.27 -79.75 ±1.49 TI1212 -75.70 ±0.82 -73.73 ±2.62 -72.73 ±1.94 -72.33 ±1.64 -67.09 ±2.27 -67.39 ±1.67 TI1213 -69.29 ±1.17 -70.04 ±1.43 -70.22 ±1.13 -69.27 ±0.65 -69.03 ±1.15 -67.05 ±0.53 TI1214 -63.24 ±0.86 -67.70 ±1.71 -65.05 ±1.17 -64.42 ±0.88 -61.55 ±0.94 -66.95 ±0.74 TI1215 -70.89 ±2.51 -62.38 ±0.64 -67.62 ±1.40 -67.55 ±1.64 -67.81 ±0.87 -63.51 ±0.87 37
Table 2: Performance comparison results for the real and simulated Bayes Network. Train. Test 1 2 3 4 5 6 Avg. 1−50.00 ±0.25 56.77 ±0.24 44.08 ±0.25 31.77 ±0.28 59.54 ±0.22 48.43 ±0.05 2 48.23 ±0.25 −48.62 ±0.26 61.92 ±0.22 54.00 ±0.24 58.92 ±0.22 54.34 ±0.04 3 50.62 ±0.24 45.62 ±0.26 −57.23 ±0.22 68.38 ±0.20 64.77 ±0.21 57.32 ±0.04 4 51.77 ±0.24 53.15 ±0.23 55.08 ±0.23 −67.85 ±0.20 55.85 ±0.21 56.74 ±0.04 5 40.00 ±0.27 58.31 ±0.21 59.62 ±0.23 62.08 ±0.20 −54.46 ±0.23 54.89 ±0.04 6 63.31 ±0.21 66.08 ±0.21 55.46 ±0.23 64.00 ±0.22 47.85 ±0.23 −59.34 ±0.04 Avg. 50.79 ±0.11 54.63 ±0.10 55.11 ±0.11 57.86 ±0.10 53.97 ±0.10 58.71 ±0.10 55.18 ±0.02 Sim. 50.54 ±0.25 58.69 ±0.22 50.85 ±0.23 56.92 ±0.24 55.92 ±0.23 59.92 ±0.21 55.47 ±0.09 38
Table 3: Performance comparison results for the real and simulated K Nearest Neighbours. Train. Test 1 2 3 4 5 6 Avg. 1−56.69 ±0.26 65.92 ±0.23 59.31 ±0.25 46.69 ±0.29 70.54 ±0.21 59.83 ±0.05 2 44.38 ±0.29 −60.38 ±0.25 67.31 ±0.22 60.15 ±0.25 60.15 ±0.25 58.57 ±0.05 3 56.31 ±0.26 60.77 ±0.24 −57.92 ±0.25 58.77 ±0.25 60.54 ±0.25 58.87 ±0.05 4 49.69 ±0.28 71.62 ±0.21 74.69 ±0.20 −65.85 ±0.23 62.23 ±0.24 64.82 ±0.05 5 53.23 ±0.27 71.08 ±0.21 58.85 ±0.25 67.38 ±0.22 −57.77 ±0.25 61.66 ±0.05 6 54.46 ±0.26 68.54 ±0.22 63.62 ±0.24 54.08 ±0.27 51.46 ±0.27 −58.53 ±0.05 Avg. 51.61 ±0.12 65.74 ±0.10 64.69 ±0.11 61.20 ±0.11 56.58 ±0.11 62.25 ±0.11 60.35 ±0.02 Sim. 44.92 ±0.29 55.38 ±0.26 52.77 ±0.27 48.85 ±0.28 57.77 ±0.25 57.23 ±0.26 52.82 ±0.09 39
Table 4: Performance comparison results for the real and simulated Multi Layer Perceptron. Train. Test 1 2 3 4 5 6 Avg. 1−61.00 ±0.24 48.92 ±0.26 54.00 ±0.23 49.08 ±0.26 69.62 ±0.19 56.52 ±0.05 2 52.85 ±0.22 −40.31 ±0.26 53.23 ±0.23 62.31 ±0.22 65.00 ±0.21 54.74 ±0.05 3 56.23 ±0.24 59.00 ±0.22 −79.38 ±0.16 66.08 ±0.21 62.31 ±0.20 64.60 ±0.04 4 53.08 ±0.25 55.23 ±0.24 68.38 ±0.21 −62.00 ±0.21 65.62 ±0.21 60.86 ±0.04 5 64.62 ±0.22 70.15 ±0.20 68.77 ±0.18 76.92 ±0.18 −69.00 ±0.20 69.89 ±0.04 6 76.38 ±0.18 61.69 ±0.24 66.77 ±0.20 68.23 ±0.20 65.77 ±0.21 −67.77 ±0.04 Avg. 60.63 ±0.10 61.41 ±0.10 58.63 ±0.10 66.35 ±0.09 61.05 ±0.10 66.31 ±0.09 49.77 ±0.11 Sim. 37.38 ±0.29 63.77 ±0.21 46.85 ±0.26 53.15 ±0.25 60.85 ±0.22 56.00 ±0.23 99.23 ±0.03 40
Table 5: Performance comparison results for the real and simulated Random Forest. Train. Test 1 2 3 4 5 6 Avg. 1−54.77 ±0.24 54.62 ±0.24 37.08 ±0.28 37.46 ±0.28 69.92 ±0.17 50.77 ±0.05 2 41.46 ±0.24 −50.54 ±0.24 58.31 ±0.22 53.62 ±0.25 47.62 ±0.23 50.31 ±0.05 3 43.54 ±0.25 50.69 ±0.23 −54.85 ±0.22 51.38 ±0.21 51.69 ±0.23 50.43 ±0.05 4 61.08 ±0.23 58.00 ±0.23 79.62 ±0.16 −52.92 ±0.23 63.62 ±0.19 63.05 ±0.04 5 35.92 ±0.27 56.15 ±0.21 45.92 ±0.23 59.31 ±0.22 −55.69 ±0.23 50.60 ±0.05 6 70.46 ±0.19 53.85 ±0.25 51.77 ±0.23 62.00 ±0.21 51.31 ±0.24 −57.88 ±0.04 Avg. 50.49 ±0.11 54.69 ±0.10 56.49 ±0.10 54.31 ±0.10 49.34 ±0.10 57.71 ±0.10 53.84 ±0.02 Sim. 43.38 ±0.24 68.00 ±0.19 55.77 ±0.20 61.92 ±0.22 58.31 ±0.21 59.77 ±0.21 57.86 ±0.09 41
Table 12: Generalization comparison between real and simulated classifiers. The size of the training data set was increased in steps of one hundred samples. Train. Test Bayes Net. KNN MLP RF SMO SVM Ensemble 1 6 59.54 ±0.22 73.92 ±0.20 69.62 ±0.19 69.92 ±0.17 88.62 ±0.25 83.23 ±0.16 84.15 ±0.15 Sim100 6 59.92 ±0.21 60.08 ±0.25 56.00 ±0.23 59.77 ±0.21 72.23 ±0.25 69.38 ±0.22 68.69 ±0.19 12 6 69.46 ±0.19 59.54 ±0.25 75.15 ±0.18 69.62 ±0.18 83.46 ±0.25 62.69 ±0.24 80.15 ±0.16 Sim200 6 65.92 ±0.21 59.46 ±0.25 49.85 ±0.25 71.54 ±0.18 69.77 ±0.25 73.92 ±0.20 74.54 ±0.18 123 6 76.85 ±0.17 61.77 ±0.24 77.92 ±0.17 77.77 ±0.16 84.38 ±0.25 76.85 ±0.19 82.85 ±0.15 Sim300 6 57.15 ±0.23 57.69 ±0.25 50.85 ±0.26 71.54 ±0.18 70.23 ±0.25 72.00 ±0.21 72.08 ±0.19 1234 6 72.69 ±0.16 64.38 ±0.23 75.62 ±0.18 73.00 ±0.17 83.38 ±0.25 82.92 ±0.16 83.08 ±0.15 Sim400 6 60.85 ±0.22 57.69 ±0.25 53.31 ±0.25 76.77 ±0.18 72.46 ±0.25 71.85 ±0.21 72.15 ±0.18 12345 6 77.54 ±0.16 72.38 ±0.21 81.38 ±0.15 78.08 ±0.15 88.92 ±0.25 89.15 ±0.13 89.08 ±0.13 Sim500 6 60.85 ±0.22 57.69 ±0.25 53.31 ±0.25 76.77 ±0.18 72.46 ±0.25 71.85 ±0.21 72.15 ±0.18 48