Advanced Intelligent Fuzzy Systems Modeling Technologies for Smart Cities
View this Special IssueResearch Article  Open Access
Shuxia Wang, "Wireless Network Indoor Positioning Method Using Nonmetric Multidimensional Scaling and RSSI in the Internet of Things Environment", Mathematical Problems in Engineering, vol. 2020, Article ID 8830891, 7 pages, 2020. https://doi.org/10.1155/2020/8830891
Wireless Network Indoor Positioning Method Using Nonmetric Multidimensional Scaling and RSSI in the Internet of Things Environment
Abstract
Aiming at the problem that the indoor target location algorithm based on received signal strength (RSSI) in the IoT environment is susceptible to interference and large fluctuations, an indoor localization algorithm combining RSSI and nonmetric multidimensional scaling (NMDS) is proposed (RSSI NMDS). First, Gaussian filtering is performed on the received plurality of sets of RSSI signals to eliminate abnormal fluctuations of the RSSI. Then, based on the RSSI data, the dissimilarity matrix is constructed, and the relative coordinates of the nodes in the lowdimensional space are obtained by NMDS solution. Finally, according to the actual coordinates of the reference node, the coordinate transformation is performed by the planar fourparameter model, and the position of the node in the actual coordinate system is obtained. The simulation results show that the proposed method has strong antiRSSI perturbation and high positioning accuracy.
1. Introduction
With the development of Internet of things and mobile Internet technology, smart home is gradually entering people’s daily life. As an important informationprocessing technology in the field of smart home, indoor positioning technology is the key to improve the comfort, safety, and intelligence of home environment and build an efficient smart home system [1–3].
At present, the positioning algorithm can be divided into two categories: based on ranging positioning algorithm and no ranging positioning algorithm [4, 5]. The ranging algorithm is commonly used based on received signal strength indicator (RSSI), based on time of arrival (TOA), time difference of arrival (TDA), and AOA based on the signal arrival angle (angle of arrival) positioning method [6–8]. No distance and angle information is needed without the ranging positioning algorithm, and the algorithm implements node positioning based on information such as network connectivity [9].
Due to the popularity and improvement of indoor wireless local area network (WLAN), rangingbased positioning usually uses an RSSIbased approach. Compared with the other wireless positioning technologies, the RSSIbased positioning technology performs position estimation according to the law that the received signal strength changes with the signal propagation distance, so no additional equipment for precise time synchronization and angle measurement is needed [10]. At the same time, the RSSIbased positioning technology has the characteristics of wireless low power consumption and strong adaptability to complex nonvisual indoor environments. It is also possible to make full use of the networking functions of existing wireless network facilities and expand the application range of the positioning system. Therefore, the RSSIbased positioning technology is currently a research hotspot for indoor positioning [11, 12]. In reference [13], based on the existing research, an improved location fingerprint location method based on RSSI was proposed from the aspects of offline fingerprint database construction, subregion division, and online position estimation. Reference [14] proposed a dynamic interval particle filter algorithm based on pedestrian dead reckoning (PDR) information and RSSI localization information. With PDR azimuth information, the algorithm can adaptively control the interval derivative particle number to enhance the filtering real time ability; meanwhile, the building map information, RSSI positioning information, and certainty factor are integrated into the particle weight calculation to improve the positioning accuracy. Aiming at the problem of the information jump in WIFI indoor location based on the RSSI, which influences the positioning accuracy, the authors in [15] proposed an improved adaptive weighted Knearest neighbor (AWKNN) localization method based on the Kalman filter. Experiments show that these methods have achieved good results.
However, RSSIbased positioning methods are susceptible to insufficient indoor wireless signals, time differences in indoor signals, and multipath effects [16]. In order to solve the problem that RSSI ranging technology introduces large errors in complex and variable indoor environments, multidimensional scaling (MDS) is introduced [17]. The MDS technology in statistics has strong fault tolerance to the data sample, so the technology can be introduced into the indoor RSSI positioning, which will improve the antijamming ability of the positioning and obtain better positioning effect. In order to improve the positioning performance, this paper applies Gaussian filtering to RSSI signal and adopts nonmetric multidimensional scaling (NMDS) to enhance the resistance to RSSI perturbation and improve the positioning accuracy.
2. The Principle of RSSI Ranging
2.1. RSSI Ranging
In indoor environments, the strength of wireless signals is unpredictable due to multipath propagation and shadowing effects, and logdistance models are often used to represent signal propagation losses [18]. Let the distance between the receiving node and the transmitting node be , then the loss caused by the signal during propagation can be expressed aswhere is the distance between the transmitting node and the receiving node; is the path loss index, indicating how fast the path loss increases with distance, and is related to the surrounding environment; is the mean in decibels, and the standard deviation is the Gaussian distribution random variable; is the reference distance, usually 1 m; and represents the path loss when the reference distance is .
The signal strength received at the receiving end iswhere represents the transmit power of the signal and is the path loss after the distance .
According to the above theoretical model, for a single wireless access node (AP), the size of the RSSI value read by the receiving end is closely related to the distance from the AP. However, as shown in Figure 1, for a single AP, the difference in signal strength between pairs of different locations does not effectively characterize the distance between them. For example, the distance between A and C in Figure 1 is much larger than the distance between A and B. However, according to the foregoing signal propagation theory, the difference in signal strength received at two points A and C is smaller than the difference in signal strength received at two points A and B. This problem still exists when the number of APs is small.
When the number of APs in the system increases, the consistency between the RSSI difference obtained between pairs of nodes at different locations and the actual physical distance is improved.
In other words, the farther the two locations are apart, the greater the RSSI difference obtained at these two locations, and vice versa. Next, we analyze the relationship between the signal strength distance between different pairs of locations and the actual physical distance in the case of multiple APs. Assume that each point in the area can receive signals from N APs, and the RSSI obtained at the A position can be expressed aswhere , , is the distance from the A position to the AP, and and are the transmit power of the AP and the nearground reference point power, respectively.
Since the transmit power of each AP and the power of the nearground reference point are unchanged, equation (3) can be expressed aswhere . Similarly, we can write the RSSI read at the B and C positions.
From equation (4), the Euclidean distance between the RSSIs read by A and B iswhere and are the distances from A and B to the AP, respectively.
2.2. RSSI Filter Processing
The RSSI value between nodes has a certain relationship with the distance. The overall trend is that the farther the distance between the two nodes is, the smaller the RSSI value is, and the closer the distance is, the larger the RSSI value is. However, since the RSSI value extracted during transmission is not stable, its volatility is large, and the RSSI value of the node near the distance is often smaller than the RSSI value of the node farther [19, 20]. Since the RSSI value is easily affected by air or occlusion in the environment, the RSSI value received by the same unknown node will fluctuate to varying degrees when the distance is constant. Therefore, in practical applications, the RSSI value is received multiple times for the same node for a period of time, and the RSSI values are processed to avoid the accuracy of the data in the case of individual abnormalities. Substituting the processed RSSI value into equation (5) yields a more accurate internode distance.
Commonly used filtering models include maximum likelihood filtering, mean filtering, least squares estimation filtering, and Gaussian filtering. It has been studied that most of the variables in the natural environment are subject to positive or similar distributions, so Gaussian functions are often used in the processing of some data variables. To this end, Gaussian filtering is used to process the extracted sets of data.
In this paper, Gaussian models are used to filter multiple RSSI values. Selecting the data information that occurs in the high probability region among a large amount of sampled data, eliminating the small probability event, thus avoiding the influence of the small probability zone data on the accuracy of the whole experiment, is essential for improving the accuracy of the entire laboratory data. In this paper, the RSSI value of the selected high probability data area is geometrically averaged, which reduces the influence of data volatility on experimental performance, makes the experimental data more representative and stable, and the positioning experiment results are more convincing. Usually, the probability density function of a Gaussian function can be expressed aswhere
In practical system applications, according to engineering experience, the numerical range of event occurrence probability greater than 0.6 is defined as the high probability event data generation area. Therefore, the Gaussian distribution function occurs in the interval , which leads to
Therefore, it can be obtained from the Gaussian filter distribution function in the range of the above equation. The size of the sampled RSSI data value shall be ; here, the relationship between the RSSI value and , is
The values of and are substituted into the range of the RSSI value to obtain an accurate range of RSSI values. All the RSSI data sampled are filtered by the value range. Filter data are not in this range and save all sampled data within this range. Finally, the RSSI values occurring in the high probability occurrence area are geometrically averaged to obtain the RSSI values between the nodes in the communication process.
3. Multidimensional Scaling Technology
Robustness is one of the important indicators to evaluate the quality of a positioning algorithm. In the indoor environment, the RSSI is disturbed by many unfavorable factors such as multipath, diffraction, and obstacles, which may cause the signal strength value to deviate. Therefore, the accuracy of the positioning algorithm is difficult to guarantee.
The fluctuation of RSSI will cause a large error in the distance of the conversion, which leads to the fact that most RSSIbased positioning algorithms cannot obtain the positioning accuracy comparable to the simulation in the actual environment. However, it is worth mentioning that RSSI can indeed reflect the relationship between nodes. The closer the receiving point is to the transmitting point, the stronger the measured signal strength; the farther the receiving point is from the transmitting point, the weaker the measured signal strength. This monotonic relationship between the wireless signal strength RSSI and the distance satisfies the requirements for the dissimilarity data between objects in the multidimensional scaling. Considering this feature, it can be directly located by RSSI. The RSSI is used to construct the dissimilarity matrix in the multidimensional scaling method to calculate the relative coordinates of each node in lowdimensional space.
MDS is a data analysis technique commonly used for exploratory data analysis or information visualization, which was originally used for data analysis in psychometrics. At present, multidimensional scaling analysis has been used as a general data analysis technique, not only in the scope of psychology, but also widely used in various fields. Multidimensional scaling techniques use the dissimilarity between entities to construct a relative coordinate map of points on a multidimensional space, and make the construction points correspond to the individual entities in the multidimensional space. The distance between two points in a multidimensional space is closely related to the similarity of the entities it corresponds to. The more similar entities, the closer they are in the multidimensional space.
3.1. Classic Multidimensional Scaling
Classical multidimensional scaling (Classic MDS) is the simplest multidimensional scaling method, the data are quantitative, and the similarity between objects can be characterized by Euclidean distance. The goal of the multidimensional scaling method is to determine the relative position coordinates of the analysis object in the multidimensional space. The Euclidean distance between the objects through some transformations (such as linear transformation) will be related to the similarity provided. Without considering the error, if the similarity data are measured in Euclidean space, the classical multidimensional scaling algorithm will accurately reproduce the positional distribution of the analysis object.
Assume that represents the similarity measured between the analysis objects and (), and the Euclidean distances of the points and in the multidimensional space are expressed as
The goal of the classic multidimensional scaling technique is to minimize the stress strength coefficient, where the threat strength factor is
The classical multidimensional scaling solution process is divided into the following three steps:(1)Square the individual elements of the dissimilarity matrix , denoted as .(2)Doublecentering , that is, both sides of are multiplied by the central matrix at the same time, as defined below: where is an order identity matrix, and after doublecentering, matrix is obtained:(3)Perform singular value decomposition on B, and obtain the largest eigenvalues and the corresponding eigenvectors to form the matrix A of the diagonal matrix and , respectively, to obtain the relative coordinates of the analysis object in the multidimensional space:
The first maximum eigenvalues and eigenvectors () are reserved, resulting in a solution in the lowdimensional space. This means that the sums in equation (10) are run from 1 to , not 1 to . In the least squares sense, this is the optimal low rank approximation. For example, for a twodimensional network, the first two largest eigenvalues and their eigenvectors are taken to construct an optimal twodimensional approximation. For a threedimensional network, the first three largest eigenvalues and their eigenvectors are taken to construct an optimal threedimensional approximation.
3.2. Nonmetric Multidimensional Scaling
The nonmetric multidimensional scaling is a kind of multidimensional scaling technique, and the requirement for constructing the object dissimilarity matrix is not as strict as the classical multidimensional scaling, as long as the monotonic relationship of the distance is satisfied.
The nonmetric multidimensional scale reconstructs the coordinates and distances of things in a multidimensional space according to the dissimilarity between given things. This is a process of iterative judgment. Assuming that the dissimilarity matrix between things is , the specific process can be described as follows:(1)Arbitrarily generate the initialization coordinates of each thing and calculate the distance between them, and initialize the coordinate only to satisfy the different coordinates of each thing.(2)Generate an intermediate value , which is generated by constructing a monotonic regression relationship between and . and need to satisfy the weak monotonic relationship, that is, for any , if , that is . The following approximation can be used to obtain . Starting from the minimum value of , the adjacent is compared with each to determine whether the monotonic relationship is satisfied. When there is a continuous that violates the monotonic relationship with , the average of these values is taken for the next iteration.(3)Calculate the new coordinates according to and , and calculate the distance between them , and determine whether the stress coefficient meets the requirements. If does not meet the requirements, repeat the second and third steps until meets the requirements. Here, the stress strength coefficient is defined as
3.3. Construct Dissimilarity Matrix Based on RSSI
The RSSINMDS algorithm proposed in this paper directly uses the RSSI value for positioning. Based on RSSI, the dissimilarity matrix P in the multidimensional scaling method is constructed, and the relative coordinates of each node in lowdimensional space are calculated.
The multidimensional scaling method dissimilarity matrix P is a symmetric matrix. However, due to the nonuniformity of antenna transmission, in the actual environment, there is often . Therefore, in order to obtain a symmetric matrix, the average value of the two may be taken, or one of them may be selected to construct the dissimilarity matrix. In practical applications, the difference between the two is small. To reduce communication overhead, usually choose one of these values. For example, the reference node is set to a number, and the N reference node is sent to all reference nodes whose number is less than N, and the mobile node sends a message to the reference node, and uses the oneway communication to obtain the RSSI value to construct a symmetric dissimilarity matrix P:where denotes the dissimilarity correction index for correcting the rank order of the RSSI values. Taking 4 nodes as an example, directly construct the dissimilarity matrix P using RSSI:
The dissimilarity matrix is constructed based on the RSSI value, and the relative coordinates of the nodes in the lowdimensional space are obtained by the multidimensional scaling method. In order to obtain the actual position of the mobile node, the coordinate transformation can be performed by using the planar fourparameter model according to the actual coordinates of the reference node, thereby obtaining the position of the mobile node in the actual coordinate system. The fourparameter coordinate transformation model iswhere is the relative coordinate of the nodes in the twodimensional space, is the actual coordinate after the transformation, , , , are the four to be determined parameters.
In order to reduce the error in the coordinate conversion process and ensure the accuracy of the actual coordinates of the moving node, the parameter should be selected to minimize the sum of the deviations of the coordinates of the reference nodes after conversion and their true coordinates (). The deviation performance function measures the appropriateness of the parameters of the coordinate transformation model:
The smaller the deviation difference, the smaller the positioning error caused by the coordinate transformation. With the goal of minimizing equation (19), appropriate optimization algorithms must be used to select the appropriate parameters.
4. Simulation and Analysis
4.1. Simulation Settings
Set up 45 unknown nodes and perform simulation experiments in the Microsoft Visual Studio 2010 programming environment. The distance between nodes is obtained according to the node coordinates, and then substituted into the wireless signal propagation model to obtain the RSSI value of each node in the communication process. When constructing the dissimilarity matrix based on the RSSI values between nodes, the value of affects the final precision of the algorithm. Usually takes values from 0.2 to 0.4, making the average positioning error small, so is taken as 0.3 in this simulation experiment. The random variable when simulating the RSSI value between nodes is selected as a Gaussian random variable with a variance of 4 mean values of zero.
4.2. Analysis of Positioning Results
Figure 2 shows the coordinates of each node and the actual coordinates of the nodes estimated by the RSSINMDS algorithm. Among them, the red circle represents the true coordinate position of each unknown node, the blue triangle represents the coordinates estimated by RSSINMDS, and the coordinate line represents the distance error between the estimated position of the algorithm and the real position. Table 1 shows the actual coordinates of 15 nodes and the estimated coordinates calculated by the algorithm and the distance error.

It can be seen from Figure 2 that the error lines of each node are different in length. This is because the fluctuation of the RSSI value is different, which results in different error sizes when performing position estimation. If the RSSI value fluctuates greatly, the estimated node coordinate error increases. It can be seen from Table 1 that the error of the indoor positioning of the unknown node by the RSSINMDS algorithm is relatively stable, and is basically maintained at about 1 m, and the minimum error can reach 0.7 m or less.
4.3. Comparison of Positioning Performance
The RSSINMDS algorithm proposed in this paper is compared with the traditional RSSIbased positioning algorithm. Figure 3 shows the positioning results of 15 points. The circular and triangular identifiers are the same as in Figure 2. The black square indicates the node coordinates obtained by the RSSI ranging method, the solid line indicates the estimation error of the RSSINMDS algorithm, and the broken line indicates the estimation error of the RSSI ranging algorithm.
It can be seen from Figure 3 that the average error of the positioning result based on RSSI is significantly larger than that of the RSSINMDS algorithm. This is because the minimum error based on the RSSI ranging algorithm can only reach 2 m under relatively good conditions, and the error will increase significantly in a more complicated environment. In addition, after the actual distance between each communication node obtained in the RSSI ranging algorithm, an appropriate algorithm needs to be selected, and the position coordinates are estimated according to the distance. However, the positioning result is also different because the number of beacon nodes is different, and the position estimation algorithm is selected differently, thereby generating different positioning precisions. However, the positioning result of RSSINMDS algorithm is stable, and the positioning accuracy of the algorithm is not affected by the number of beacon nodes. The algorithm does not need to convert the RSSI value into distance and then coordinate estimation. It can directly obtain the node with the RSSI value. The relative position coordinates also avoid the effect of converting the RSSI value into a distance on the positioning accuracy.
Then, the RSSINMDS algorithm proposed in this paper is compared with the algorithm in reference [13], the algorithm in reference [14], and the algorithm in reference [15]. Figure 4 shows the location error distribution of several algorithms. According to Figure 4, the positioning error of RSSINMDS algorithm proposed in this paper is smaller than that of other three algorithms. According to the actual coordinates of the reference node, the proposed RSSINMDS algorithm uses the plane fourparameter model to transform the coordinates and get the position of the node in the actual coordinate system. The simulation results show that the method has strong antiRSSI interference ability and high positioning accuracy.
5. Conclusions
In order to solve the problem that the RSSIbased positioning algorithm is easily affected by the complex environment of the interior and the actual positioning accuracy is low, this paper proposes the RSSINMDS algorithm. The nonmetric multidimensional scaling method is applied, and the RSSI value is directly used for positioning, thereby avoiding the calculation amount and error of the ranging. The simulation shows that the proposed algorithm can resist the disturbance of RSSI value and has high positioning accuracy. In the future research, we can study from the following perspectives: in addition to the classical multidimensional scaling method, there are many other derived algorithms in the multidimensional scaling method. In the process of indoor positioning, we can compare it with other multidimensional scaling methods as much as possible, and select the best method for indoor positioning. In the process of wireless sensor network node localization, the use of more regular node area, so in the irregular node area positioning is worth further discussion. Although complex algorithms can improve the positioning accuracy of sensor network nodes, the energy consumption in wireless sensor networks is also a problem, so the balance between energy consumption and positioning accuracy in the network is worth further discussion and research.
Data Availability
The data included in this paper are available without any restriction.
Conflicts of Interest
The authors declare that they have no conflicts of interest regarding the present study.
References
 E. Ronen, A. Shamir, A.O. Weingarten, and C. OFlynn, “IoT goes nuclear: creating a zigbee chain reaction,” IEEE Security & Privacy, vol. 16, no. 1, pp. 54–62, 2018. View at: Publisher Site  Google Scholar
 L. Wei and Y. Hu, “Research on new and old kinetic energy transformation supported by smart city construction in big data era,” Journal of Advanced Computational Intelligence and Intelligent Informatics, vol. 23, no. 1, pp. 102–106, 2019. View at: Publisher Site  Google Scholar
 M. Jiang and Z. Liu, “Research on solid waste transfer strategy based on Internet of things,” Journal of Advanced Computational Intelligence and Intelligent Informatics, vol. 22, no. 7, pp. 1104–1108, 2018. View at: Publisher Site  Google Scholar
 H. H. Liu and C. Liu, “Implementation of WiFi signal sampling on an android smartphone for indoor positioning systems,” Sensors, vol. 18, no. 1, p. 3, 2018. View at: Google Scholar
 B. Maqsood and I. H. Naqvi, “Subnyquist rate UWB indoor positioning using power delay profile and time of arrival estimates,” in Proceedings of the Vehicular Technology Conference, Toronto, Canada, September 2017. View at: Google Scholar
 E. Hu, Z. L. Deng, and Y. Lu, “Efficient and robust convex relaxation methods for hybrid TOA/AOA indoor localization,” in Proceedings of the China Satellite Navigation Conference, pp. 172–176, Shanghai, China, May 2017. View at: Google Scholar
 Z. Han, C. S. Leung, H. C. So, and A. G. Constantinides, “Augmented Lagrange programming neural network for localization using timedifferenceofarrival measurements,” IEEE Transactions on Neural Networks and Learning Systems, vol. 29, no. 8, pp. 3879–3884, 2018. View at: Publisher Site  Google Scholar
 H. Nawaz, A. Bozkurt, and I. Tekin, “A novel power efficient asynchronous time difference of arrival indoor localization system using CC1101 radio transceivers,” Microwave and Optical Technology Letters, vol. 59, no. 3, pp. 550–555, 2017. View at: Publisher Site  Google Scholar
 Z. Wang, H. Zhang, T. Lu, and T. A. Gulliver, “A gridbased localization algorithm for wireless sensor networks using connectivity and RSS rank,” IEEE Access, vol. 6, no. 99, pp. 8426–8439, 2018. View at: Publisher Site  Google Scholar
 Y. Yuan, B. Xiao, and G. Wu, “Multichannel based sybil attack detection in vehicular ad hoc networks using RSSI,” IEEE Transactions on Mobile Computing, vol. 18, no. 2, pp. 362–375, 2019. View at: Google Scholar
 C. H. Tseng and J. S. Yen, “Enhanced Gaussian mixture model of RSSI purification for indoor positioning,” Journal of Systems Architecture, vol. 81, no. 2, pp. 172–178, 2017. View at: Publisher Site  Google Scholar
 M. G. Jadidi, M. Patel, and J. V. Miro, “Gaussian processes online observation classification for RSSIbased lowcost,” Indoor Positioning Systems, vol. 24, no. 3, pp. 63–68, 2017. View at: Google Scholar
 S. Gao and X. Feng, “Indoor clustering fingerprint localization algorithm based on RSSI signal characteristics,” Computer Engineering and Design, vol. 41, no. 4, pp. 1093–1098, 2020. View at: Google Scholar
 X. Zheng and J. Fu, “Study on PDR and RSSI based indoor localization algorithm,” Chinese Journal of Scientific Instrument, vol. 36, no. 5, pp. 1177–1185, 2015. View at: Google Scholar
 W. Sun, S.l. Duan, and Y. A. N. Huifang, “AWKNN indoor location methods based on kalman smoothing,” Journal of University of Electronic Science and Technology of China, vol. 47, no. 6, pp. 829–833, 2018. View at: Google Scholar
 X. Fang, Z. Jiang, and N. Lei, “Noiseaware localization algorithms for wireless sensor networks based on multidimensional scaling and adaptive Kalman filtering,” Computer Communications, vol. 101, pp. 23–28, 2016. View at: Google Scholar
 Y. L. Wang, Y. Wu, S. C. Yi, W. Wu, and S. L. Zhu, “Complex multidimensional scaling algorithm for timeofarrivalbased mobile location: a unified framework,” Circuits, Systems, and Signal Processing, vol. 36, no. 4, pp. 1754–1768, 2017. View at: Publisher Site  Google Scholar
 A. M. Zungeru, J. Chuma, M. Mangwala, B. Sigweni, and O. Matsebe, “Signal propagation and analysis in wireless underground sensor networks,” International Journal of Engineering Research in Africa, vol. 41, pp. 60–78, 2019. View at: Publisher Site  Google Scholar
 Z. Cheng, J. Yuan, and H. Liu, “Bluetooth indoor positioning based on RSSI and Kalman filter,” Wireless Personal Communications, vol. 96, no. 3, pp. 4115–4130, 2017. View at: Google Scholar
 J. Svečko, M. Malajner, and D. Gleich, “Distance estimation using RSSI and particle filter,” ISA Transactions, vol. 55, no. 16, pp. 275–285, 2015. View at: Google Scholar
Copyright
Copyright © 2020 Shuxia Wang. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.