Special Issue

## Advanced Intelligent Fuzzy Systems Modeling Technologies for Smart Cities

View this Special Issue

Research Article | Open Access

Volume 2020 |Article ID 8830891 | https://doi.org/10.1155/2020/8830891

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

Revised27 Oct 2020
Accepted30 Oct 2020
Published12 Nov 2020

#### 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 low-dimensional space are obtained by NMDS solution. Finally, according to the actual coordinates of the reference node, the coordinate transformation is performed by the planar four-parameter model, and the position of the node in the actual coordinate system is obtained. The simulation results show that the proposed method has strong anti-RSSI 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 information-processing 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 .

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 . 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 .

However, RSSI-based positioning methods are susceptible to insufficient indoor wireless signals, time differences in indoor signals, and multipath effects . In order to solve the problem that RSSI ranging technology introduces large errors in complex and variable indoor environments, multidimensional scaling (MDS) is introduced . 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

In indoor environments, the strength of wireless signals is unpredictable due to multipath propagation and shadowing effects, and log-distance models are often used to represent signal propagation losses . 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 near-ground reference point power, respectively.

Since the transmit power of each AP and the power of the near-ground 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.

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 RSSI-based 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 low-dimensional 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)Double-centering , 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 double-centering, 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 low-dimensional 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 two-dimensional network, the first two largest eigenvalues and their eigenvectors are taken to construct an optimal two-dimensional approximation. For a three-dimensional network, the first three largest eigenvalues and their eigenvectors are taken to construct an optimal three-dimensional 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 RSSI-NMDS 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 low-dimensional 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 one-way 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 low-dimensional 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 four-parameter model according to the actual coordinates of the reference node, thereby obtaining the position of the mobile node in the actual coordinate system. The four-parameter coordinate transformation model iswhere is the relative coordinate of the nodes in the two-dimensional 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 RSSI-NMDS algorithm. Among them, the red circle represents the true coordinate position of each unknown node, the blue triangle represents the coordinates estimated by RSSI-NMDS, 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.

 Nodes Actual coordinates Estimated coordinates Error (m) N1 (0.9, 9.0) (1.7, 8.9) 0.81 N2 (1.1, 7.4) (1.7, 6.8) 0.85 N3 (1.4, 4.2) (0.9, 3.6) 0.78 N4 (1.1, 8.0) (4.9, 8.1) 0.91 N6 (5.5, 6.6) (4.9, 5.9) 0.92 N7 (3.0, 4.8) (3.7, 4.5) 0.76 N8 (4.5, 3.1) (5.2, 2.9) 0.94 N9 (3.8, 1.9) (4.2, 1.3) 0.72 N10 (5.7, 8.5) (6.7, 9.1) 1.17 N11 (7.2, 6.5) (6.8, 5.6) 0.98 N12 (9.1, 6.8) (8.6, 6.0) 0.94 N13 (7.2, 2.5) (8.1, 3.4) 1.27 N14 (9.5, 2.5) (8.8, 3.1) 0.92 N15 (7.2, 1.5) (6.2, 0.7) 1.28

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 RSSI-NMDS 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 RSSI-NMDS algorithm proposed in this paper is compared with the traditional RSSI-based 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 RSSI-NMDS 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 RSSI-NMDS 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 RSSI-NMDS 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 RSSI-NMDS algorithm proposed in this paper is compared with the algorithm in reference , the algorithm in reference , and the algorithm in reference . Figure 4 shows the location error distribution of several algorithms. According to Figure 4, the positioning error of RSSI-NMDS algorithm proposed in this paper is smaller than that of other three algorithms. According to the actual coordinates of the reference node, the proposed RSSI-NMDS algorithm uses the plane four-parameter 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 anti-RSSI interference ability and high positioning accuracy.

#### 5. Conclusions

In order to solve the problem that the RSSI-based positioning algorithm is easily affected by the complex environment of the interior and the actual positioning accuracy is low, this paper proposes the RSSI-NMDS 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.

1. 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
2. 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
3. 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
4. H. H. Liu and C. Liu, “Implementation of Wi-Fi signal sampling on an android smartphone for indoor positioning systems,” Sensors, vol. 18, no. 1, p. 3, 2018. View at: Google Scholar
5. B. Maqsood and I. H. Naqvi, “Sub-nyquist 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
6. 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
7. Z. Han, C. S. Leung, H. C. So, and A. G. Constantinides, “Augmented Lagrange programming neural network for localization using time-difference-of-arrival measurements,” IEEE Transactions on Neural Networks and Learning Systems, vol. 29, no. 8, pp. 3879–3884, 2018. View at: Publisher Site | Google Scholar
8. 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
9. Z. Wang, H. Zhang, T. Lu, and T. A. Gulliver, “A grid-based 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
10. Y. Yuan, B. Xiao, and G. Wu, “Multi-channel 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
11. 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
12. M. G. Jadidi, M. Patel, and J. V. Miro, “Gaussian processes online observation classification for RSSI-based low-cost,” Indoor Positioning Systems, vol. 24, no. 3, pp. 63–68, 2017. View at: Google Scholar
13. 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
14. 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
15. W. Sun, S.-l. Duan, and Y. A. N. Hui-fang, “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
16. X. Fang, Z. Jiang, and N. Lei, “Noise-aware 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
17. Y. L. Wang, Y. Wu, S. C. Yi, W. Wu, and S. L. Zhu, “Complex multidimensional scaling algorithm for time-of-arrival-based mobile location: a unified framework,” Circuits, Systems, and Signal Processing, vol. 36, no. 4, pp. 1754–1768, 2017. View at: Publisher Site | Google Scholar
18. 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
19. 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
20. 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

#### More related articles

We are committed to sharing findings related to COVID-19 as quickly as possible. We will be providing unlimited waivers of publication charges for accepted research articles as well as case reports and case series related to COVID-19. Review articles are excluded from this waiver policy. Sign up here as a reviewer to help fast-track new submissions.