Academic Journal of Science and Technology ISSN: 2771-3032 | Vol. 5, No. 3, 2023 61 Analysis of UWB Indoor Positioning Accuracy Based on TW‐TOF Fei Wang School of Geomatics and Urban Spatial Informatics, Beijing University of Civil Engineering and Architecture, Beijing 100044, China Abstract: UWB has the characteristics of low power consumption, low system complexity, strong anti-interference, high penetration, and high positioning accuracy. In this paper, the principle of ultra-wide-band ranging and positioning is introduced in detail, followed by the TOA positioning method based on two-way time-of-flight ranging, and the positioning results are solved by using the least-squares and Gauss-Newton iterative algorithms, and the experimental positioning The experimental positioning errors were analyzed. The experimental results show that UWB has good indoor ranging and positioning accuracy. Keywords: UWB, Localization, TW-TOF, TOA. 1. Introduction In recent years, ultra-wideband (UWB), a new high- precision wireless intersection positioning technology, has emerged as one of the top positioning technologies with its unique advantages. It has developed into a mainstream indoor high-precision ranging and positioning technology, especially in the fields of emergency positioning, intelligent storage, asset monitoring, smart prisons, nursing homes, and seamless navigation, etc. [1-2], because it has unparalleled advantages in positioning accuracy when applied to indoor wireless positioning systems. In order to study the UWB in indoor high-precision ranging and positioning, this paper adopts the popular UWB devices in the market, conducts ranging and positioning experiments using the TOA positioning method of bidirectional ranging TW-TOF, and solves the positioning coordinates using the least squares algorithm and Gauss-Newton iterative algorithm, and analyzes the accuracy of the positioning results of the simulation experiments to prove the accuracy and reliability of UWB positioning. 2. UWB Distance Measurement Principle This paper adopts the two-way time-of-flight (TW-TOF) ranging method of UWB system to measure the distance between the tag and the base station, which is a two-way ranging technique. The distance between the base station and the tag can be calculated by calculating the transmission time between the two. This method does not require the time synchronization of the base station, which can effectively improve the ranging accuracy. The two-way ranging process is shown in Figure 1. ` UWB Anchor Device T1 T4 T3 T2 UWB Label Device Figure 1. Two-way ranging process In the ideal case the distance between the UWB base station and the UWB tag can be expressed as in equation (1).   2/)3T4(T)1T2(T  cd (1) Formula:c is the speed of propagation of electromagnetic waves in a vacuum, 3*108m/s; T1 is the anchor transmitting signal time; T4 is the signal reception time of the anchor; T2 is the Label reception time of the signal; T3 is the Label transmitting signal time. 3. TOA Positioning Model According to the principle of wireless ranging, the high temporal resolution of UWB signals is used to achieve high positioning accuracy and low complexity of the positioning system without the need for base station time synchronization, and the TOA positioning model is selected in this paper. At least three UWB base stations are required in the positioning system, and the distance circle is formed by the radius of each base station and UWB tag, and the three circles intersect at one point to achieve positioning [3-4]. Assuming that the coordinates of the i th UWB base station in the positioning system are  iix y, , 321 ,,i The distance from each base station to the UWB label is id , 321 ,,i ,  x,y is the coordinates of the label to be determined., Then the UWB ranging distance model can be expressed as equation (2):    22 yyxxd iii  (2) The three distance values of the three distance circles can form the coordinate solution equation (3):                      2 3 2 33 2 2 2 22 2 1 2 11 yyxxd yyxxd yyxxd (3) 62 The three equations solve the two unknowns of the label coordinates  x,y ,can complete the positioning. Figure 2. TOA positioning model In the TOA-based positioning system, the positioning label is continuously ranging with the base station at a known location by transmitting a pulse signal of a certain frequency to obtain the measurements of the label with the base station at a known location. In this paper, we use the time-of-arrival (TOA) localization method to first derive the preliminary localization results of the label by the least squares algorithm [5-6] and solve the three-dimensional coordinates of the label using Gauss-Newton iterative method  x,y,z . The system of observation equations to solve for the label 3D coordinates  x,y,z is equation (4):                            222 2 2 2 2 2 12 2 1 2 1 2 11 nnnn zzyyxxp zzyyxxp zzyyxxp � (4) in the formula: nppp …,, 21 denotes the distance between the base station and the label.      nnn ,z,yx,z,yx,z,yx �,, 222111 indicates the coordinates of the anchor. After squaring the two sides of each equation in equation (4) and making the difference, and simplifying it to matrix form we get equation (5): bAX 0 (5)                 nn zzyyxx zzyyxx zzyyxx A 1121 313131 212121 2 ��� ;  zyxX ,,0  ;                   22 1 22 1 22 1 2 1 2 2 3 2 1 2 3 2 1 2 3 2 1 2 1 2 3 2 2 2 1 2 2 2 1 2 2 2 1 2 1 2 2 nnnn zzyyxxpp zzyyxxpp zzyyxxpp b � Based on the least squares principle, the coordinates of the initial position of the label are derived as in equation (6):   bAAAX TT 1 0   (6)    zyxXzyxX  ,,,,, 0000  are the initial value and correction number of label coordinates, respectively, nppp …,, 21 is the approximate distance between the base station and the label, and the position coordinates of the label are derived according to the Gauss-Newton iterative algorithm as shown in equation (7):   0 1 XLBBBX TT   (7)                         0, 0 0, 0 0, 0 0,2 02 0,2 02 0,2 02 0,1 01 0,1 01 0,1 01 n n n n n n p zz p yy p xx p zz p yy p xx p zz p yy p xx B ��� ,                 nn pp pp pp L 0, 20,2 10,1 � 0,0,20,1 ,, nppp … Indicates the distance between the Anchor and the initial position of the label. 4. Experiment and Analysis The instrumentation used for this experiment includes the software MATLAB2019a, a computer configured with Intel(R) Core(TM) i5 1.70GHz, Windows 7 64-bit operating system with 4GB RAM, and UWB positioning device.The environment of this experiment was selected at the address of Teaching Building F, College Building, Daxing Campus, Beijing University of Architecture. The experimental data collection site is shown in Figure 3. Figure 3. Experimental data acquisition In order to verify the positioning accuracy and algorithm robustness of TW-TOF UWB positioning model, eight UWB 63 anchors were deployed at the experimental site for testing experiments. The coordinates of UWB anchors are shown in Table 1, and the deployment of UWB anchors is shown in Figure 4: UWB anchor coordinates Table 1. Anchor ID Anchor coordinates(m) 34484127 (7.535, 0.698, 1.057) 34484126 (7.561, 2.440, 2.440) 3448411C (25.908, 0.037, 3.430) 34484133 (26.005, 2.586, 1.594) 34484A3D (43.573, 2.122, 1.656) 3448412E (43.567, 3.351, 1.977) 3448411E (60.062, 2.005, 1.447) 34484129 (59.539, 3.535, 0.965) Figure 4. UWB anchor deployment location Firstly, the UWB anchor deployment sites are reasonably selected and UWB anchor deployment is carried out in the experimental field. Then plan the pedestrian movement trajectory and use a high precision total station to measure a large number of localizations on the movement trajectory and compose a digital trajectory for later experimental accuracy analysis. Secondly, the experimenter carries the UWB label in the test field according to the pre-planned motion trajectory, and the UWB label and its surrounding UWB anchor measure each other's distance and transmit the data to the laptop record in real time through the serial port. Finally, the designed UWB positioning model is used to solve the real-time point position of the motion trajectory and make accuracy analysis. the motion trajectory generated by UWB positioning is shown in Figure 5, and the UWB positioning error is shown in Figure 6. Figure 5. UWB positioning trajectory The experimenter's motion trajectory solved by the TW- TOF-based UWB localization model proposed in this paper is the red curve in Figure 5, and it is obvious that the UWB localization coordinate trajectory fluctuates up and down slightly around the real planning trajectory curve. In the process of UWB positioning, there are inevitably large errors in the measured values due to the influence of many different factors, which leads to large deviations in the positioning results. On the one hand, the errors of UWB positioning coordinates solved by the positioning model are random, and some points have large errors, which may be caused by the flow of other people in the UWB test site or the experimenters themselves blocking the straight-line transmission of signals between the UWB anchor and the label during the experimental data collection. On the other hand, the trajectory floating indicates the existence of errors in UWB positioning, which is caused by the existence of UWB ranging errors and UWB positioning model perturbation. Figure 6. UWB positioning error As can be seen from the figure, the UWB positioning error is small and mainly concentrated between 0 and 0.4 m. Therefore, the positioning model can achieve UWB sub- meter positioning accuracy, which is the best among many indoor positioning technologies at present, fully verifying the high accuracy and effectiveness of UWB positioning technology and the UWB positioning model proposed in this paper. The specific values of UWB positioning accuracy were obtained: the maximum UWB positioning error was 1.09 m, the average positioning error was 0.21 m, the standard deviation of positioning error was 0.15 m, and the variance of ranging error was 0.02 m. The accuracy reliability of UWB positioning error less than 0.2 m was 54.12%, and the accuracy reliability of UWB positioning error less than 0.4 m was 87.81%. 5. Conclusion In this paper, through simulated positioning experiments and real UWB dynamic positioning experiments, the TOA positioning method based on bi-directional ranging TW-TOF is used for ranging and positioning experiments, and the least squares algorithm and Gauss-Newton iterative algorithm are used to solve the positioning coordinates. The accuracy and reliability of UWB positioning are proved by the accuracy analysis of the experimental positioning results. References [1] Abdulrahman A , Abdulmalik A S , Mansour A , et al. Ultra Wideband Indoor Positioning Technologies: Analysis and Recent Advances[J]. Sensors, 2016, 16(5):1-36. [2] Wang Chuanyang, Wang Jian, Yu Hang, Han Houzeng, Ning Yipeng. Research on ultra-wideband positioning system with range error correction[J]. Surveying and mapping 64 science,2019,44(01):98-103+117.DOI:10.16251/j.cnki.1009- 2307.2019.01.018. [3] Yang Deng, Wang Jian, Han Houzeng, Liu Fei. Ultra- wideband self-assembling network personnel positioning system for underground integrated mining face[J]. Mapping Science,2020,45(01):11-18+41.DOI:10.16251/j.cnki.1009- 2307.2020.01.003. [4] Du Jinzhan,Wang Jian,Liu Fei,Tian Dongwei,Zhao Xinyao.UWB ranging for the positioning of open-field grouping of boundary points in obscured areas[J]. Survey and Mapping Science,2022,47(11):1- 9+31.DOI:10.16251/j.cnki.1009-2307.2022.11.001. [5] Wang Chuanyang,Wang Jian. Research on the deployment of ultra-broadband emergency positioning base station[J]. Surveying and mapping science,2019,44(08):174- 181.DOI:10.16251/j.cnki.1009-2307.2019.08.025. [6] Yang Deng, Wang Jian, Wang Minmin, Zhang Yalei. Analysis of the impact of emergency environment base station deployment on positioning accuracy[J]. Survey and Mapping Bulletin,2020(05):90-94.DOI:10.13474/j.cnki.11- 2246.2020.0152.