Abstract
This paper focuses on the positioning algorithm suitable for harsh indoor environment such as manufacturing workshop in which the interferences from different directions cannot be neglected. The positioning algorithm is an improved Received Signal Strength Indication- (RSSI-) based ranging method. To preprocess the RSSI data Gaussian filter and mean filter are adopted. A sector transmission model is constructed and applied to divide the area around the anchor node into several sectors, and the shadowing model of each sector is measured. Then the average of all RSSI values in a particular sector is considered as the final RSSI value for distance calculation. The calculated distances designated for trilateration are also optimized to eliminate the abnormal distances from positioning calculations. Positioning experiment is designed via ZigBee facilities. The results show that the proposed algorithm greatly improves the positioning accuracy and stability; for instance, the average positioning error is reduced from 1.32 m to 0.79 m. Moreover, this study also proves that the node position has great influence on the positioning accuracy.
1. Introduction
Nowadays, the widely used positioning technology is changing our daily lives. The GPS (Global Positioning System) technology, as the representative of positioning technology, is mainly used to track a person, car, or any mobile body outdoors. However, owing to its attenuation of signals and insufficient accuracy, tracking objects inside a house or a factory may not be possible by using GPS technology. Indoor positioning has emerged as a hot topic that gained gradual interest from both academia and industry. For example, in the manufacturing workshop, it is very valuable to obtain the real-time locations of all the mobile resources such as the material delivery vehicles, the WIP (work-in-process), the machining tools or other auxiliary tools, and the workers [1, 2]. Such location information can then be used to facilitate the vehicles scheduling, the WIP's progress monitoring, searching and evaluation of the residual useful life of tools, and the performance assessment of the workers [3, 4]. Due to these advantages, the production efficiency can be improved to a significant extent.
Localization algorithm is the key of positioning technology that greatly affects the level of the positioning accuracy and stability directly. As we know, GPS is the most widely used method for outdoor localization and it provides global coordinates with high accuracy (10 m). GPS signals could also be used indoors when special hardware and powerful digital signal processing techniques are considered. For example, the Time-of-Flight (ToF) information could be extracted from the noisy signals before computation of estimated position. Nevertheless, GPS is not suited for indoor decimeter-level applications due to its low accuracy and high cost [5, 6]. Therefore, low-cost, low-power, high-precision positioning of wireless sensor networks becomes the first choice for many indoor positioning problems.
Localization techniques can be categorized into the range-based and range-free approaches; the range-based algorithm has higher positioning accuracy, and it is better to meet the need of positioning. Among the range-based approaches, the RSSI-based algorithm is relatively simple, less demanding on the hardware, and with low cost. So there are more studies on RSSI-based algorithm. Most of the researches improve the localization accuracy by using various optimization methods or combining a variety of positioning algorithms, with little regard to the actual environment. This paper focuses on the positioning algorithm suitable for manufacturing workshop. The study is carried out through the deployment of wireless sensor networks in the manufacturing plant to achieve localization of manufacturing resources. A new RSSI-based positioning algorithm is proposed to combine data preprocessing methods (Gaussian filter and mean filter), sector transmission models, and distance optimization techniques. The experimental study shows that the positioning accuracy is significantly improved.
The rest of this paper is organized as follows. In Section 2, we briefly review the relevant research on the range-based positioning algorithm of wireless sensor networks. The details of the proposed positioning algorithm are described in Section 3. An indoor positioning experiment to validate the improvement of the positioning accuracy and to analyze its influencing factor is designed in Section 4. Section 5 concludes this study and provides some ideas for future works.
2. Literature Review
In this section we briefly review the relevant research on the range-based positioning algorithm of wireless sensor networks, which is used to calculate the distance between two nodes. The review of the measurement techniques in WSN localization and the corresponding localization algorithms are provided in [7, 8]. Langendoen and Reijers [9] compared three distributed localization algorithms (ad hoc positioning, robust positioning, and N-hop multilateration) on a single simulation platform. There are four general algorithms, the Time of Arrival (ToA), the Time Difference of Arrival (TDoA), the Angle of Arrival (AoA), and the RSSI-based methods. In the ToA-based algorithm, after recording the transmission time
The core idea of RSSI-based algorithm is the uses of shadowing transmission model to estimate the distance between the anchor node (known position) and the blind node (unknown position) and then calculate the coordinate by trilateration. The theoretical transmission model is shown in
The above RSSI-based algorithm has been widely used to locate the indoor items. Shang et al. [14] presented a new location algorithm based on RSSI vector similarity degree and designed a location system to locate sensor nodes indoors. Ng et al. [15] introduced an improved algorithm, which can track moving crowd by building an indoor positioning and tracking system. This technique was applied by Oliveira et al. [16] into the relative positioning of mobile robot. They introduced a relative velocity estimation framework based on the RSSI measurements. This framework used consecutive distance measurements and position estimates to provide the relative velocity vectors for all the nodes in the network. e-healthcare is a popular healthcare application of Wireless Body Area Sensor Network, where RSSI-based algorithm is applied to disease prevention and reduces the occurrence of potential injury [17]. Lloret et al. [18] proposed a new stochastic approach which is based on a combination of deductive and inductive methods whereby wireless sensors could determine their positions using WLAN technology inside a floor of a building. Due to the surrounding environment fluctuations and defects of position estimation method, the positioning accuracy of basic RSSI-based algorithm is not very high and frequently changes. Garcia et al. [19] proposed a dual system positioning algorithm, adopting heuristic training measurement system and adding some fixed access point in the triangular model, which made the localization algorithm adapt to harsh environment of multipath, high temperature, and multibarrier. The introduction of k-nearest neighbor algorithm in ZigBee-based indoor positioning system also improved the positioning accuracy and stability greatly [20]. In this method, the measured RSSI values are divided into four classes. RSSIs belonging to different classes will be adjusted in different proportions, and then the distances and coordinates are calculated. Galván-Tejada et al. [21] determined the transmission models according to the measured RSSI by Bluetooth, and the distance was estimated by using RSSI that was measured by WiFi technology. They found that the positioning accuracy is greatly improved. In another study [22], an adaptive distance estimation algorithm is proposed to reduce the great influence of changing environment by real-time dynamic correction to the shadowing transmission model. Finally, a fuzzy positioning algorithm based on information fusion is presented in a recent study [23], in which the fuzzy theory is used to deal with the randomness and fuzziness in the WSNs, and the information fusion is introduced to improve the localization accuracy.
3. The Proposed Positioning Algorithm
The proposed positioning algorithm consists of two steps, modeling and positioning. The first step aims to set up the positioning models including the integrated models and the sector transmission models for all anchor nodes by analyzing the RSSI values obtained through experiments, while the second step aims to locate the blind node by using the positioning models and the measured RSSI values of all anchor nodes.
3.1. RSSI Data Preprocessing
Due to the environmental noise, the measured RSSI values in the same place are fluctuant with time; sometimes they even vary widely. Table 1 shows 7 sets of RSSI values, where the distances from blind node to anchor node are
The fluctuation of RSSI values.
In order to eliminate the errors of experimental results caused by accidental factors, Gaussian filter is used to remove all the abnormal RSSI values produced by the outside interference fluctuations. The probability densities function of Gaussian distribution (μ,
Figure 1 shows the probability density curve of Gaussian distribution

Gaussian probability density function.
Taking the second column in Table 1, for example, the
The RSSI values in the Gaussian filter range are in the normal range but still have great variations; hence the distance will also undergo significant change. Therefore, the positioning accuracy will be unstable. So it is necessary to return to the average filtering and regard the average
3.2. Sector Transmission Model
3.2.1. Introduction of Sector Transmission Model of Anchor Node
During the experiment, it can be noticed that, at the same distance, the RSSI values may vary with region in which the blind node located. As shown in Figure 2, the area around the anchor node is divided into 12 zones; each zone is a sector of 30°.

The sector partition of anchor node.
The measured average RSSI values 1 meter around the anchor node within these 12 sectors are presented in Table 2. It is clear that the RSSI values are fluctuant. This phenomenon may be attributed to the obstacle site and the antenna of the experimental devices. Therefore, in order to make the positioning algorithm available for the production site applications, it is reasonable to use different transmission model for each sector of anchor node. Also, the distance from the anchor node to the blind node should be estimated according to the sector transmission model.
The RSSI average values within different sectors around the anchor node.
3.2.2. Least Squares Fitting of Transmission Models
In the simplified formula of shadowing transmission model (2), the values of A and n are affected by the environment. The traditional method is first to determine some sets of RSSI value at 1 m and then calculate the average for A. Finally, calculate the value of n from several sets of data. Different directions of all the anchor nodes will use the resultant model. In this study, a different method has been used. First, some sets of
The core idea of the least squares method is to make the sum of squared deviations of all data minimum; the sum of MSE (mean squared error) can be expressed as follows:
3.2.3. Determination of Sector Transmission Model
At first the angular size of the partition is set before the determination, which should be based on the positional accuracy according to the actual application requirements and environmental conditions.
In the specific test as shown in Figure 3, the anchor node A is placed in a corner, and the blind node M moves in the lower right corner of the area around A when positioning. The angular size of each sector is set to 30° for the balance of positioning accuracy and calculation efficiency. When the transmission model of each partition is determined, the blind node M is adjusted to move within the fan-shaped area. The curve of RSSI and d is fitted by the least square method. Three sector models and the whole 90° integrated model are determined for each anchor node. These models are illustrated in Figure 4. It can be observed that there is a large difference between the shadowing model of sector 1 and sector 2, which leads to large differences in the estimated distance. So it is more reasonable to use different transmission models in different sectors instead of an integrated model within the whole area.

Example of sector division.

Sector transmission models of anchor node A.
3.2.4. Flowchart of Sector Transmission Modeling
The whole procedure of the nodes modeling is summarized in Figure 5. In order to calculate the suitable

Flowchart of sector transmission modeling.
3.3. Distance Optimization
The geometric relations are accorded to represent the distance d (Figure 6) where

Triangular geometry principle.
The large distances which do not meet

The principle of distance optimization.
From (9) two new distances can be obtained and denoted by
3.4. Flowchart of the Positioning Algorithm
The positioning process is summarized in Figure 8. All sector transmission models of all anchor nodes are determined based on different application contexts in the proposed algorithm before practical positioning. For determining the partition model, Gaussian filter and mean filter are used to preprocess RSSI values; thereafter fitting the curve of RSSI values by the least square method shadowing partition model was calculated. In practical positioning, the RSSI values are also measured repeatedly to obtain the optimum RSSI value, and then the distance is measured according to the sector transmission model.

Flowchart of the proposed positioning algorithm.
There are two key features concerning the proposed algorithm.
The positioning accuracy is improved compared to the general RSSI range localization algorithm by introducing several techniques including filtering, model partitioning, and distance optimization. These techniques are used in both modeling phase and positioning phase. The positioning process is gradually convergent. Firstly, the integrated model of each anchor node is used to preliminarily determine the location of blind node. Then the sector transmission models are used repeatedly to reposition the blind node. For any anchor node, as long as the coordinate of blind node obtained at this time does not locate in the same partition of the last time, the positioning process will be continued and the positioning accuracy will be improved gradually. It is understandable that when the sector size is larger, the convergence speed will be slow.
4. Experimental Study
4.1. Experimental Layout and Model
In this experiment a wireless sensor network positioning solution based on ZigBee technology is adopted. CC2530 chips produced by TI Company serve as the basic nodes of positioning network. ZigBee network, one of the PANs (Personal Area Networks) complying with IEEE802.15.4 standard, has the character of short-range and low-power. The ZigBee nodes with CC2530 microprocessor can detect the RSSI values of other nodes within the region. The ZigBee-based positioning modules for the experimental design are illustrated in Figure 9. The blind node in the middle is located according to the RSSI values that received from its neighbour anchor nodes.

Deployment of ZigBee nodes and the information flow.
The wireless sensor network is established by the coordinator node. All anchor nodes and blind nodes are joined in the network and accessed by other nodes automatically on the localization experiment. At first, all anchor nodes receive the signal of positioning instruction sent by the coordinator node. The anchor nodes then sent signals to the blind node which in return transmits these data to the coordinator and the coordinator extracts the RSSI values which are then used for the position estimation using the Microsoft Visual Basic program. This program automatically carries out the positioning algorithm and gives the values of the distances between the nodes and the position of the target node as a coordinate.
The experiment is conducted in an indoor rectangle area of

Experimental model.
By using the method described in Section 3.2, the sector transmission models and the single integrated model are obtained without partition, as shown in Table 3. Each anchor node has three sector transmission models. The single integrated model, used for comparison, is applied to the entire areas of anchor node.
The transmission model of anchor nodes.
In this study, the sector size of each anchor node is set to 30°. This is a balance between positioning accuracy and measurement complexity. Theoretically, the smaller size of the sector is characterized by higher accuracy and stability of positioning. When the angle size is close to zero, the highest positioning accuracy is obtained. But more time-consuming measurements are required to set up the sector models. Moreover, the RSSI values of the dynamic space will always change with signal fluctuation affected by the barriers, so it is not necessary to set too small sector size.
4.2. Experiment Results and Analysis
4.2.1. Experiment Results
These experiments are designed to compare the positioning results of the proposed algorithm with the ordinary RSSI-based localization algorithm. We conduct the tests at 46 points within the area ABCD. This area is assumed as a rectangle and the anchor nodes are placed at four corners. This is not obligatory since the practical environment is always complex. If the area has another shape, we have to determine the sector transmission models of each anchor node according to respective angular size. But the main difference lies in the modeling phase rather than the positioning phase.
The positioning results are shown in Table 4, where the actual coordinates are the location of test points, the estimate coordinates are the positioning results, and the positioning errors are the distances between actual coordinates and estimate coordinates.
Experiment results.
Unit: m.
4.2.2. Error Improvement Analysis
Positioning accuracy is the main index for measuring positioning algorithm, which is shown by the positioning errors. As shown in Table 4, the fourth column denotes the positioning errors of the ordinary RSSI-based model without sector partition and distance optimization. The average positioning error is 1.32 m and the standard deviation is 0.53 m. As stated before, there are two major features of the proposed algorithm. One is the introduction of the anchor node sectors and the other is the process to delete or optimize the unusual distances. The experimental results of the proposed algorithm are shown in the last column of Table 4. The average positioning error is 0.79 m and the standard deviation is 0.36 m, indicating a relatively big improvement to reduce the positioning error. For those manufacturing workshops in which high accuracy is not required, this positioning accuracy is more sufficient.
The error curve of the ordinary RSSI-based model and the proposed model are presented in Figure 11. It can be noticed that the positioning error is decreased in the proposed method leading to better accuracy compared to an ordinary RSSI-based model.

Positioning error comparison.
4.2.3. Blind Node Location and Location Accuracy Relationship
The positioning errors of the proposed algorithm in different experimental coordinates are pointed by the bubble chart in Figure 12. The two dimensions X-Y indicate the coordinate location of blind node, and the bubble size represents the level of positioning errors for a certain coordinate point tested during the experiment.

The correlation between the blind node's location and the positioning error.
From Figure 12 it can be noticed that less positioning errors occur when the blind node is located at the central area of the localization model, while much more positioning errors are observed when the node is located among the fringe area of the model. Therefore, it can be concluded that the location of blind node plays an important role in the outcome of localization accuracy. There are many reasons for this phenomenon: the interference of radio signal while gauging the location on anchor nodes or the attenuation of radio signal caused by fringe-setting nodes mode with much obstruction. So we are supposed to put the location-required area into the central area formulated by the anchor nodes to improve the accuracy of localization during the experimental study.
4.2.4. Other Analyses
As proven by the above experimental results, the positioning accuracy is superior to that of other methods. For example, Shang et al. [14] reported that the mean location error is about 1 m by using the RFID-based indoor positioning technique. The shortcoming of the proposed method is that it is time-consuming to construct the sector transmission model. So some self-learning techniques, which will be introduced in the future, may be useful to deal with this problem.
5. Conclusion
The proposed indoor positioning algorithm combines the use of filters with the implementation of sector modeling and distance optimization, which helps improve the positioning accuracy when the indoor environment is harsh with signal interference. In this study filters are used twice when preprocessing the RSSI values, once by using the Gaussian filter technique after which the mean filter technique is applied. The sector transmission models are used to deal with the directional differences when calculating the RSSI values. Distance optimization further reduces the abnormalities of distance due to measure errors or interferences. The experiment results show that the positioning accuracy improves a lot compared to the ordinary method. In order to balance the positioning accuracy, the measurement complexity, and the calculation convergence, the sector size should be chosen reasonably.
There are several directions for future research. Firstly, the current method is more suitable for the localization of static object or mobile one with low speed due to its computational time. It is necessary to combine the RSSI-based algorithm with other methods such as Monte Carlo method for mobile objects localization. Secondly, only the planar partition is considered. In the actual circumstance, the spatial differences of RSSI values may not be negligible when the environment is harsher, for example, the warehouse. The spatial sector transmission models should be adopted to deal with this situation.
Footnotes
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
Acknowledgments
This research paper was supported by the National Natural Science Foundation of China (NSFC) under the Grant no. 51275191, as well as the National Science and Technology Major Project of China under the Grant no. 2014zx04014101. Authors are also thankful to the editor and the referees for their valuable comments and suggestions that have led to a substantial improvement in the paper.
