Next Article in Journal
Resistance Separation of Polymer Electrolyte Membrane Fuel Cell by Polarization Curve and Electrochemical Impedance Spectroscopy
Next Article in Special Issue
Guest Editorial: Special Issue on Designs and Algorithms of Localization in Vehicular Networks
Previous Article in Journal
Influence of Silica Nano-Additives on Performance and Emission Characteristics of Soybean Biodiesel Fuelled Diesel Engine
Previous Article in Special Issue
Machine Learning-Based Cooperative Spectrum Sensing in Dynamic Segmentation Enabled Cognitive Radio Vehicular Network
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Mathematical Analysis of Line Intersection and Shortest Distance Algorithms †

1
Department of Advanced Parts and Materials Engineering, Chosun University, Gwangju 61452, Korea
2
Interdisciplinary Program in IT-Bio Convergence System, School of Electronic Engineering, Chosun University, Gwangju 61452, Korea
3
Mechanical, Manufacturing Engineering and Technology, Oregon Institute of Technology, Klamath Falls, OR 97603, USA
*
Author to whom correspondence should be addressed.
This paper is an extended version of our paper published in Joint 7th International Conference on Soft Computing and Intelligent Systems and 15th International Symposium on Advanced Intelligent Systems (SCIS & ISIS), Kitakyushu, Japan, 3–6 December 2014; pp. 1219–1223.
Energies 2021, 14(5), 1492; https://doi.org/10.3390/en14051492
Submission received: 30 December 2020 / Revised: 17 February 2021 / Accepted: 4 March 2021 / Published: 9 March 2021
(This article belongs to the Special Issue Designs and Algorithms of Localization in Vehicular Networks)

Abstract

:
The time of arrival (TOA) trilateration is one of the representative location detection technologies (LDT) that determines the true location of a mobile station (MS) using a unique intersection point of three circles based on three radii corresponding to distances between MS and base stations (BSs) and center coordinates of BSs. Since the distance between MS and BS is estimated by using the number of time delays, three circles based on the estimated radii are generally increased and they may not meet at a single point, resulting in the location estimation error. In order to compensate this estimation error and to improve estimation performance, we present two advanced TOA trilateration localization algorithms with detail mathematical expressions. The considered algorithms are the shortest distance algorithm, which calculates an average of three interior intersection points among an entire six intersection points from three intersecting circles, and the line intersection algorithm, which calculates an intersection point of three lines connecting two intersection points of two circles among the three circles, as the estimated location of the MS. In this paper, we present both algorithms with detailed mathematical expressions. The computer simulation results are provided to compare the location estimation performance of both algorithms. In addition, in this paper, mathematical analysis is provided to indicate the relation between the line intersection algorithm and the shortest distance algorithm. In this analysis, we verify that line equations based on the intersection points obtained from the shortest distance algorithm are identical to those obtained from the line intersection algorithm.

1. Introduction

The location detection technique of mobile stations (MSs) is of great importance in the development of the modern wireless cellular communication system. The information available about the MS location is used in various vital fields from the security level to the entertainment level, which is increasingly challenging. Many researchers around the world are working on achieving MS location accuracy at low cost, with precision, reliability, and reusability in its components [1,2].
In the wireless communication system, the accurate location detection of the MS has gained considerable interest, particularly since the U.S. Federal Communications Commission (FCC) made the rule to cellular providers to generate precise locations of the MS for enhanced 911 (E-911) services. The mandated rule specified that for a minimum of 95% of emergency calls, in a network-based system, a resolution of 300 m should be achieved, and in a handset-based system, the resolution should be 150 m. Furthermore, in the case of 67% of calls, it should locate within an error of 100 m in the network-based system and at 50 m in the handset-based system [3,4]. In addition, the European Union has been taking similar steps towards regulation for E-112, which is the location-enhanced version of 112 (the emergency telephone number most commonly used in European countries) to provide emergency services, with growing awareness of the mobile subscriber safety.
The location-based service (LBS) enables finding the geographical location of the MS and provides services based on its location information, which is broadly categorized into emergency services, informational services, tracking services, entertainment services, etc. The essential objective of these services is to assist with the exact information in real time at the right place. Emergency services include security alerts, warning systems for natural disasters, such as flood, earthquake, heat waves, volcanic eruptions, tsunamis, and fire, and the public safety. Informational services provide user with nearby cafeteria, fuel station, news, sports event, weather, routing assistance, stock, etc., and tracking services include logistic monitoring, tracking person, missing child, Alzheimer’s patients, and doctor tracking inside hospitals. In addition, entertainment services are related to a variety of industries about games, friend finding, dating, etc. For all the location-based wireless services, the location information is an essential parameter for anyone and anywhere with high accuracy and reliability measurements [5,6,7,8]. Furthermore, location detection technology plays a vital role for LBSs relating to the modern world technique using mobile humanoid robots.
The reliable received signal strength (RSS), angle of arrival (AOA), TOA, and time difference of arrival (TDOA) are typical methods used for estimating the MS location. RSS and TOA can be directly changed to the range measurement, and then the ranges are calculated based on the considered reference points of base stations (BSs), where their location coordinates of BSs are already identified. In order to estimating the MS location, TDOA measures the difference of the arrival times from difference BSs. TOA and TDOA methods, which are based on trilateration method, must have at least three BSs for the 2D localization. AOA requires only two BSs, which is based on triangulation method for the MS location, but a small error in the angle measurement may cause a large location error [9,10,11,12]. In an indoor scenario, for the purpose of a high-precision range, TOA and AOA are well known methods. The various approaches for accurately estimating the coordinates of the MS have also been given in [13,14,15,16,17,18,19,20,21].
Typically, the various approaches in determining the MS location are classified into two main categories: network-based and handset-based. In case of network-based, the measurement is performed at BSs and the information is collected to BSs for processing to determine the MS location. The advantage of this technology is that MS is not involved in a process of the location determination, so it does not require changes in existing handset. Whereas, in case of handset-based, MS itself uses signals transmitted from multiple BSs to calculate its position. Therefore, this system is more secure and does not require network resources, and network capacity is also not affected for estimating the MS location [22,23,24,25].
The location of the MS can be determined by measuring parameters of radio signals that travel between BS and MS. From geometric approach, the TOA trilateration method forms three circles with the centers being coordinates of BSs and the radii being distances between MS and BSs, and the MS location is determined by an intersection of these three circles. Since the TOA method generally determines the distance between the MS and BS, by counting the number of time delays, the estimated distance may be slightly increased comparison to the original distance. As a result, three circles based on the estimated distances usually may not intersect at a single point, but there may exist six intersection points, which results in the estimation error. In order to solve this problem, recently, the shortest distance algorithm, which selects three nearest interior intersection points among entire six intersection points and determines the location of the MS as an average coordinate of the selected three intersection points, has been proposed in [26]. This algorithm has good performance in general cases, but it may have a high estimation error in the extreme cases because it does not consider the increasing factor for each circle. In order to improve the estimation performance for the MS location, the line intersection algorithm, which considers the increasing factor of the calculated circles, has been proposed in [27]. In this algorithm, there are six intersection points; these are based on three circles and three lines connecting two intersection points corresponding to a specific two circles among the entire three circles. It calculates the intersection point of these three lines and determines the location of the MS from the calculated line intersection point. This algorithm is more efficient and has better performance for the MS location compared to the shortest distance algorithm; this is because it does not need to select three interior intersection points among six intersection points and considers the increasing factor of the calculated circles. In this paper, both algorithms are minutely described using detailed equations for the mathematical analysis.
The purpose of this paper is to present enhanced TOA trilateration algorithms with detailed mathematical analysis in order to improve the location estimation performance. The line intersection algorithm must assume that three intersection lines meet at a single point. However, this assumption is not required, because it is easily verified that three lines always intersect at a single point for the accurate location estimation of the MS, as shown in this paper. Each line is usually formed by connecting each two intersection points of a specific two circles among three circles based on three BSs, and we determine this line intersection point as the location of the MS. In addition, we provide the mathematical approach to present the relation between the shortest distance and the line intersection algorithms in this paper. This analysis shows that line equations based on intersection points obtained from the shortest distance algorithm are identical to line equations obtained from the line intersection algorithm.

2. Issues for TOA Trilateration Method

The mobile location has received considerable attention over the past few years and a number of technological methods for determining the MS location have been studied and developed. The TOA trilateration technique is based on the measurement of distances between at least three BSs and MS [28,29,30,31,32,33,34,35]. It determines the MS position by calculating the intersection of three circles with radii corresponding to distances between MS and BSs and centers corresponding to the coordinates of BSs. The TOA technique, which is widely applied to various wireless positioning localization systems [36,37,38,39,40,41], utilizes the signal propagation time to determine the distance between BS and MS [42,43,44].
For the TOA trilateration approach, the MS location is determined by solving at least three quadratic equations based on circles with radii corresponding to distances between MS and BSs and centers corresponding to coordinate of BSs [14,19]. In this approach, the true distance between MS and i th BS, d i , is given by
d i = ( x x i ) 2 + ( y y i ) 2 , i   = 1 ,   2 ,   and   3 ,
where ( x , y ) is the true coordinate of the MS, and ( x i , y i ) is the coordinate of i th BS. The distances between MS and BS1, BS2, and BS3 are defined as d 1 , d 2 , and d 3 , respectively, as shown in Figure 1, which presents the TOA trilateration algorithm.
In the TOA trilateration technique, the distance between MS and BS is same as the signal propagation multiplied by the speed of light [23,44]. Since TOA estimates the distance between MS and BS by counting the number of time delays, the estimated distance between MS and BS is generally increased from the original distance [27]. The number of delay samples in the particular sampling rate, N i , is given by
N i = ceil ( d i c × F )
where c is the velocity of light, F is the particular sampling rate, and “ceil” is the round up function employed in order to make the right hand side in (2) to the integer number, which results in the expansion of the radius. The estimated distance between MS and i th BS, e d i , is calculated
e d i = N i × c F .
This estimated distance in (3) is generally longer than the original distance, due to the round up processing presented in (2).
Due to the increased distances, each radius has been expanded and three circles do not intersect at a single point. In general, there are six intersection points of three intersecting circles based on the estimated distances, as shown in Figure 2. This unmatched intersection point may cause the location estimation error to find an exact location. In order to solve this problem, the shortest distance algorithm and the line intersection algorithm, described in the next section, have been proposed.

3. Enhanced TOA Trilateration Algorithms

In this section, we mathematically present the shortest distance algorithm and the line intersection algorithm to solve the problem for the MS location estimation that was caused by the unmatched intersection points of three circles based on the estimated distances between MS and BSs, described in the previous section. These two algorithms enhance the performance of the MS location of the TOA trilateration.

3.1. Shortest Distance Algorithm

In this subsection, the shortest distance algorithm for solving the problem caused by the unmatched intersection points of the estimated three circles is presented in detailed mathematical expressions. Since the estimated distances between MS and BSs are generally increased from the original distances, three circles based on the estimated distances may not intersect at a single point and there are six intersection points of them. The shortest distance algorithm selects the three closest interior intersection points of the entire six intersection points of three circles and determines the location of the MS to the average coordinate of the selected three intersection points, as shown in Figure 3. First of all, we find two intersection points of two circles, assuming that the estimated distance between MS and BS1, e d 1 , is shorter than the estimated distance between MS and BS2, e d 2 . In this case, the distance from the center coordinate BS1 to the line-joining point of the intersection is given by [45]
p = ( δ 2 + e d 1 2 e d 2 2 ) 2 δ ,
where
δ = δ x 2 + δ y 2 .
In (5), the values of δ x and δ y are the differences between coordinates of two BSs, defined as
Δ x x 2 x 1 ,
and
Δ y y 2 y 1 .
Utilizing (4) and (5), we find two coordinates of circle intersection points given by
I x = x 1 + ( δ x × p δ ) ( δ y δ × ( e d 1 2 p 2 ) ) ,
I y = y 1 + ( δ y × p δ ) + ( δ x δ × ( e d 1 2 p 2 ) ) ,
and
I x = x 1 + ( δ x × p δ ) + ( δ y δ × ( e d 1 2 p 2 ) ) ,
I y = y 1 + ( δ y × p δ ) ( δ x δ × ( e d 1 2 p 2 ) ) .
Using a similar procedure, four other coordinates of the intersection points corresponding to (BS2, BS3) and (BS3, BS1) can be obtained. After finding all six intersection points using the above procedure, we select three points with the shortest distance between the coordinates of three BSs and intersection points. As an example, three interior intersection points (I, J, K) are shown in Figure 3. The first process in selecting the interior intersection points is to compare distances between a coordinate of BS3 and two intersection points (I and I′) of circles based on BS1 and BS2. In this example, we choose an interior intersection coordinate (I) corresponding to the shorter distance between two distances. The same process is repeated for determining two other interior intersection coordinates (J and K). Finally, we calculate an average of the selected three intersection coordinates for determining the MS location coordinate, ( x ^ ,   y ^ ) , given by
x ^ = I x + J x + K x 3 ,  
and
y ^   =   I y + J y + K y 3 .
The shortest distance algorithm for determining the MS location is summarized in Table 1, and Figure 4 shows the flow chart for it.
Although the shortest distance algorithm has a generally good performance, it may have a serious location estimation error in extreme cases because it does not consider the increasing factor of the estimated circles.

3.2. Line Intersection Algorithm

The shortest distance algorithm determines the location of the MS to an average of the selected three intersection points of the entire six intersection points without considering the increased factor of each estimated circle. In general, it has good performance for estimating the MS location, but it sometimes has a high location estimation error in extreme cases due to it not considering the increasing factor of the extended circles. In order to overcome this problem, the line intersection algorithm, which considers the increasing factor of them and does not require the selection of three interior intersection points, is mathematically presented in this subsection. This algorithm determines the intersection point of three lines connecting two intersection points of a specific two circles of the entire three circles as the location of the MS shown in Figure 5. Three circle equations corresponding to each BS are written as
x 2 + y 2 + α 1 x + β 1 y + γ 1 = 0 ,
x 2 + y 2 + α 2 x + β 2 y + γ 2 = 0 ,
x 2 + y 2 + α 3 x + β 3 y + γ 3 = 0 ,
where α i = 2 x i , β i = 2 y i , and γ i = x i 2 + y i 2 e d i 2 . These three circle equations are applied to obtain three lines of intersection equations, as given by
( α 1 α 2 ) x + ( β 1 β 2 ) y + ( γ 1 γ 2 ) = 0 ,
( α 2 α 3 ) x + ( β 2 β 3 ) y + ( γ 2 γ 3 ) = 0 ,
( α 3 α 1 ) x + ( β 3 β 1 ) y + ( γ 3 γ 1 ) = 0 .
where (17)–(19) are intersection line equations of two circles based on BS1 and BS2, BS2 and BS3, and BS3 and BS1, respectively. Finally, we determine the MS location by solving two equations among three intersection line equations. Considering (17) and (18), two equations form a matrix to get a solution, yielding
[ ( α 1 α 2 ) ( β 1 β 2 ) ( α 2 α 3 ) ( β 2 β 3 ) ] [ x y ] = [ ( γ 2 γ 1 ) ( γ 3 γ 2 ) ] ,
and the estimated location of the MS, ( x ^ ,   y ^ ) , is given by
x ^ = ( γ 2 γ 1 ) ( β 2 β 3 ) ( γ 3 γ 2 ) ( β 1 β 2 ) ( α 1 α 2 ) ( β 2 β 3 ) ( α 2 α 3 ) ( β 1 β 2 ) ,
and
y ^ = ( α 1 α 2 ) ( γ 3 γ 2 ) ( γ 2 γ 1 ) ( α 2 α 3 ) ( α 1 α 2 ) ( β 2 β 3 ) ( α 2 α 3 ) ( β 1 β 2 ) .
Table 2 summarizes the line intersection algorithm for determining the MS location. This algorithm is more efficient and has better performance compared to the shortest distance algorithm, because it does not require the selection of three interior intersection points among the entire six intersection points and considers the increasing factor of the extended circle.

4. Mathematical Analysis of Enhanced TOA Trilateration Algorithms

The goal of this paper is to provide the validity of the line intersection algorithm and the shortest distance algorithm, as excellent location detection algorithms, through mathematical analysis and simulation results. In this section, we easily show that three straight lines considered in the line intersection algorithm, which connect two intersection points of a specific two circles of the entire three circles, always meet at a single point [46]. If we do not provide this mathematical proof, we cannot directly employ the line intersection algorithm without some sensitive conditions. In addition, the detailed analytic mathematic relation [47] between the shortest distance algorithm and the line intersection algorithm is presented.

4.1. Mathematical Verification for Line Intersection Algorithm

The line intersection algorithm has excellent performance for estimating the location of the MS and it is efficient in comparison to the shortest distance algorithm. However, it must assume that three lines, which connect two intersection points of two specific circles, meet at a single point. In this subsection, we mathematically show that they always meet at a single point and the above assumption is not required.
The solutions of the estimated MS location provided in (21) and (22) are the results from (17) and (18) based on BS1 and BS2, and BS2 and BS3. Therefore, if the estimated location coordinate, ( x ^ ,   y ^ ) , in (21) and (22) is satisfied to (19), three intersection lines should meet at a single point. In order to show this, we substitute (21) and (22) into the left side of (19) as follows:
( α 3 α 1 ) [ ( γ 2 γ 1 ) ( β 2 β 3 ) ( γ 3 γ 2 ) ( β 1 β 2 ) ( α 1 α 2 ) ( β 2 β 3 ) ( α 2 α 3 ) ( β 1 β 2 ) ] + ( β 3 β 1 ) [ ( α 1 α 2 ) ( γ 3 γ 2 ) ( γ 2 γ 1 ) ( α 2 α 3 ) ( α 1 α 2 ) ( β 2 β 3 ) ( α 2 α 3 ) ( β 1 β 2 ) ] + ( γ 3 γ 1 ) = ( α 3 α 1 ) ( γ 2 γ 1 ) ( β 2 β 3 ) ( α 1 α 2 ) ( β 2 β 3 ) ( α 2 α 3 ) ( β 1 β 2 ) ( α 3 α 1 ) ( γ 3 γ 2 ) ( β 1 β 2 ) ( α 1 α 2 ) ( β 2 β 3 ) ( α 2 α 3 ) ( β 1 β 2 ) + ( β 3 β 1 ) ( α 1 α 2 ) ( γ 3 γ 2 ) ( α 1 α 2 ) ( β 2 β 3 ) ( α 2 α 3 ) ( β 1 β 2 ) ( β 3 β 1 ) ( γ 2 γ 1 ) ( α 2 α 3 ) ( α 1 α 2 ) ( β 2 β 3 ) ( α 2 α 3 ) ( β 1 β 2 ) + ( γ 3 γ 1 ) [ ( α 1 α 2 ) ( β 2 β 3 ) ( α 2 α 3 ) ( β 1 β 2 ) ] ( α 1 α 2 ) ( β 2 β 3 ) ( α 2 α 3 ) ( β 1 β 2 )
Since, the numerator of (23) is calculated to
  ( α 3 α 1 ) ( γ 2 γ 1 ) ( β 2 β 3 ) ( α 3 α 1 ) ( γ 3 γ 2 ) ( β 1 β 2 ) + ( β 3 β 1 ) ( α 1 α 2 ) ( γ 3 γ 2 ) ( β 3 β 1 ) ( γ 2 γ 1 ) ( α 2 α 3 ) + ( γ 3 γ 1 ) ( α 1 α 2 ) ( β 2 β 3 ) ( γ 3 γ 1 ) ( α 2 α 3 ) ( β 1 β 2 ) = 0 .
(19) is satisfied when we substitute the estimated location coordinate, ( x ^ ,   y ^ ) , into (19). From this result, we easily show that three intersection lines, which connect two intersection points of two specific circles among three circles based on three BSs, meet at a single point. Therefore, the line intersection algorithm operates efficiently for all cases to estimate the location of the MS, unlike the shortest distance algorithm.

4.2. Mathematical Relations between Two Algorithms

In this subsection, we provide mathematical analysis to show the relation between the shortest distance and line intersection algorithms. The line equation based on two intersection points of two circles obtained from the shortest distance algorithm is given by
y I y = I y I y I x I x ( x I x ) .
From the shortest distance algorithm, we find two coordinates of two circle intersection points from (8) to (11). From these equations, we get,
I y I y = y 1 + ( δ y × p δ ) ( δ x δ × ( e d 1 2 p 2 ) ) [ y 1 + ( δ y × p δ ) + ( δ x δ × ( e d 1 2 p 2 ) ) ] = 2 × ( δ x δ × ( e d 1 2 p 2 ) )
I x I x = x 1 + ( δ x × p δ ) + ( δ y δ × ( e d 1 2 p 2 ) ) [ x 1 + ( δ x × p δ ) ( δ y δ × ( e d 1 2 p 2 ) ) ] = 2 × ( δ y δ × ( e d 1 2 p 2 ) )
and
y I y = y y 1 ( δ y × p δ ) ( δ x δ × ( e d 1 2 p 2 ) ) ,
x I x = x x 1 ( δ x × p δ ) + ( δ y δ × ( e d 1 2 p 2 ) ) .
Substituting and rearranging (26)–(29) in (25), it can be rewritten as
y y 1 ( δ y × p δ ) ( δ x δ × ( e d 1 2 p 2 ) ) = 2 × ( δ x δ × ( e d 1 2 p 2 ) ) 2 × ( δ y δ × ( e d 1 2 p 2 ) ) × [ x x 1 ( δ x × p δ ) + ( δ y δ × ( e d 1 2 p 2 ) ) ] .
By solving (30), we obtain
[ ( δ × δ y ) × y ] + [ ( δ × δ x ) × x ] + [ ( y 1 × δ × δ y ) ( x 1 × δ × δ x ) ( δ x 2 + δ y 2 ) × p ] = 0 .
By substituting (4)–(6), and (7) in (31), we get
[ ( ( x 2 x 1 ) 2 + ( y 2 y 1 ) 2 × ( y 2 y 1 ) ) × y ] + [ ( ( x 2 x 1 ) 2 + ( y 2 y 1 ) 2 × ( x 2 x 1 ) ) × x ] + [ ( y 1 × ( x 2 x 1 ) 2 + ( y 2 y 1 ) 2 × ( y 2 y 1 ) ) ( x 1 × ( x 2 x 1 ) 2 + ( y 2 y 1 ) 2 × ( x 2 x 1 ) ) ( ( x 2 x 1 ) 2 + ( y 2 y 1 ) 2 ) × ( ( x 2 x 1 ) 2 + ( y 2 y 1 ) 2 + e d 1 2 e d 2 2 ) 2 × ( x 2 x 1 ) 2 + ( y 2 y 1 ) 2 ] = 0 .
From (32), we also obtain
( 2 y 2 2 y 1 ) × y + ( 2 x 2 2 x 1 ) × x + [ ( 2 y 1 × ( y 2 y 1 ) ) ( 2 x 1 × ( x 2 x 1 ) ) ( ( x 2 x 1 ) 2 + ( y 2 y 1 ) 2 + e d 1 2 e d 2 2 ) ] = 0 ,
and (33) is finally simplified to
( 2 y 2 2 y 1 ) × y + ( 2 x 2 2 x 1 ) × x + y 1 2 + x 1 2 x 2 2 y 2 2 e d 1 2 + e d 2 2 = 0 .
Note that (34) is identical to the line equation connecting two intersections of two circles obtained from the line intersection algorithm in (17). From this process, we observe that line equations based on intersection points obtained from the shortest distance algorithm are identical to line equations obtained from the line intersection algorithm.

5. Computer Simulations

In this section, the computer simulation results are provided to compare the location estimation performances for the shortest distance algorithm, the line intersection algorithm, and least square technique, which works by making the total of the square of the errors as small as possible technique [48]. For the simulation, we assume that three fixed BSs are located at coordinates of (−1000, 5000), (6000, −4000), and (−7000, 500), respectively. The unit of each BS coordinate is in meters (m), and we consider the different sampling rates of 10 MHz, 50 MHz, 100 MHz, 500 MHz, 1 GHz, 5 GHz, and 10 GHz. The MS location coordinates are randomly chosen with ranges from −100 m to +100 m, from −600 m to +600 m, and −1000 m to +1000 m, for the first case, the second case, and the third case, respectively.

5.1. Error Model

The performance of the localization algorithm is generally evaluated by the mean square error (MSE) [49,50,51]. The error of the estimated distance between the MS and BS is defined as
E r r o r dist ( d i e d i ) 2 , i = 1 , 2 , 3 ,
and MSE of the estimated distance is calculated as
M S E dist = E [ E r r o r dist 2 ] ,
where E [ ] is an expectation operator. Similarly, the error between the true and the estimated MS location coordinates is defined as
E r r o r pos ( x x ^ ) 2 + ( y y ^ ) 2 ,
where this error is represented in the Euclidian distance. In addition, MSE for estimating the MS position is given by
M S E pos = E [ E r r o r pos 2 ] .
In order to accurately calculate MSE, the simulations are performed 100,000 times for each sampling rate.

5.2. Simulation Results

The simulation results for the distance MSE versus sampling rates are shown in Figure 6, Figure 7 and Figure 8, for the first, second, and third cases, respectively. From figures, we observe that MSEs for estimating the distances between MS and BSs are decreased as the sampling rate is increased. In addition, we show simulation results to observe the MSE performances versus sampling rate for estimating the MS location and to compare them, for the shortest distance, the line intersection algorithms, the least square technique, in Figure 9, Figure 10 and Figure 11, for the first, second, third cases, respectively. Note that we include the simulation results of the conventional technique based on the least square algorithm to compare both algorithm to the conventional algorithm in figures. From these results, we observe that the MSE curves of the line intersection algorithm are lower than them of the shortest distance algorithm and the least square algorithm for all cases. For a close-up look of the differences of MSE between three algorithms, we enlarge the plot in the sampling rate range from 109 Hz to 1010 Hz, in Figure 12, Figure 13 and Figure 14, for the first, second, third cases, respectively. From these figures, we see slightly distinct variations between algorithms in that range, though they seem to be closely overlapped in Figure 9, Figure 10 and Figure 11. Table 3 shows the comparison between the line intersection algorithm, the shortest algorithm, and the least square algorithm, in terms of the location accuracy for specific sampling rates. From this table, we observe that the line intersection algorithm has the best performance compared to others, and that the least square technique has the worst performance compared others.
The MSEs of the algorithms decreases as the sampling rate increases, which means that the performance of the estimated location of the MS based on the higher sampling rate is better than that of the lower sampling rate. Since the frequency is generally proportional to the sampling rate but inversely proportional to the time period, the resolution for estimating the distance between MS and BS is improved for the higher sampling rate, expecting the higher localization accuracy. Consequently, we verify that the location estimation performance of the line intersection algorithm is better, and it is more efficient than that of the shortest distance algorithm because the line intersection algorithm does not need to select three interior intersection points among the entire six intersection points unlike the shortest distance algorithm. In addition, the line intersection algorithm does not require the assumption that three intersection lines, which connect two intersection points of two circles among three entire circles, must meet at a single point, because we easily showed that they are always met at a single point.

6. Conclusions

The TOA trilateration approach determines the MS’ location by using an intersection point of three circles based on the coordinates of three BSs and distances between MS and BSs. Since the distance between the MS and BS is generally estimated by counting the number of time delays, which should be an integer, the estimated distance may be elongated in comparison to the true distance. Thus, the radii of the circles based on BSs are increased, and three circles based on the estimated distances may not meet at a single point, causing a location estimation error. In order to solve this problem, the shortest distance algorithm, which selects three of the closest interior points among the entire six intersection points, was proposed. Although it has a generally good performance, it sometimes has a large error due to selecting the three nearest interior points in extreme cases. For this problem, we introduced the line intersection algorithm using the intersection point of three lines, connecting two intersection points of two specific circles. It has excellent performance and is efficient in comparison to the shortest distance algorithm because it does not need to choose three interior points. In this paper, we presented these two algorithms alongside detailed equations for the mathematical analysis. In addition, we easily showed that three intersection lines of the line intersection algorithm meet at a single point, to be used in all cases for estimating the location of the MS. In addition, we provided mathematical analysis to show the relationship between both algorithms.

Author Contributions

Conceptualization, S.P. and S.-s.H.; methodology, S.-s.H. and D.L.; software, S.P.; validation, S.-s.H. and D.L.; formal analysis, D.L.; investigation, S.P. and S.-s.H.; writing—original draft preparation, S.P.; writing—review and editing, S.-s.H.; supervision, S.-s.H.; project administration, S.-s.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education, Science and Technology (2018R1D1A1B07041644).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Abu-Shaban, Z.; Zhou, X.; Abhayapala, T.D. A Novel TOA-Based Mobile Localization Technique Under Mixed LOS/NLOS Conditions for Cellular Networks. IEEE Trans. Veh. Technol. 2016, 65, 8841–8853. [Google Scholar] [CrossRef]
  2. Khan, U.F.; Lazaridis, P.I.; Mohamed, H.; Albarracín, R.; Zaharis, Z.D.; Atkinson, R.C.; Tachtatzis, C.; Glover, I.A. An Efficient Algorithm for Partial Discharge Localization in High-Voltage Systems Using Received Signal Strength. Sensors 2018, 18, 4000. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  3. Federal Communications Commission (Ed.) Revision of the Commission’s Rules to Insure Compatibility with Enhanced 911 Emergency Calling Systems; FCC Docket No. 94-102; July 1996. Available online: https://www.fcc.gov/document/revision-commissions-rules-ensure-compatibility-enhanced-30 (accessed on 15 December 2020).
  4. Reed, J.; Krizman, K.; Woerner, B.; Rappaport, T. An overview of the challenges and progress in meeting the E-911 requirement for location service. IEEE Commun. Mag. 1998, 36, 30–37. [Google Scholar] [CrossRef]
  5. Rappaport, T.; Reed, J.; Woerner, B. Position location using wireless communications on highways of the future. IEEE Commun. Mag. 1996, 34, 33–41. [Google Scholar] [CrossRef]
  6. Adusei, I.; Kyamakya, K.; Erbas, F. Location-based services: Advances and challenges. In Proceedings of the Canadian Conference on Electrical and Computer Engineering 2004 (IEEE Cat. No.04CH37513), Niagara Falls, ON, Canada, 2–5 May 2004; Volume 1, pp. 1–7. [Google Scholar]
  7. Küpper, A. Location-based Services: Fundamentals and Operation; John Wiley & Sons: Hoboken, NJ, USA, 2005. [Google Scholar]
  8. Mohapatra, D.; Suma, S.B. Survey of location based wireless services. In Proceedings of the 2005 IEEE International Conference on Personal Wireless Communications (ICPWC 2005), New Delhi, India, 23–25 January 2005; pp. 358–362. [Google Scholar]
  9. Zhang, Y.; Fu, W.; Wei, D.; Jiang, J.; Yang, B. Moving target localization in indoor wireless sensor networks mixed with LOS/NLOS situations. EURASIP J. Wirel. Commun. Netw. 2013, 2013, 291. [Google Scholar] [CrossRef] [Green Version]
  10. Wang, Y. Linear least squares localization in sensor networks. EURASIP J. Wirel. Commun. Netw. 2015, 2015, 51. [Google Scholar] [CrossRef] [Green Version]
  11. Koh, J.Y.; Nevat, I.; Leong, D.; Wong, W.-C. Geo-Spatial Location Spoofing Detection for Internet of Things. IEEE Internet Things J. 2016, 3, 971–978. [Google Scholar] [CrossRef] [Green Version]
  12. Kim, P.; Chang, S. Intelligent positioning and optimal diversity schemes for mobile agents in ubiquitous networks. Int. J. Softw. Eng. Knowl. Eng. 2008, 18, 637–650. [Google Scholar] [CrossRef]
  13. Caffery, J.; Stuber, G. Overview of radiolocation in CDMA cellular systems. IEEE Commun. Mag. 1998, 36, 38–45. [Google Scholar] [CrossRef] [Green Version]
  14. Drane, C.; Macnaughtan, M.; Scott, C. Positioning GSM telephones. IEEE Commun. Mag. 1998, 36, 46–54. [Google Scholar] [CrossRef]
  15. Jami, I.; Ali, M.; Ormondroyd, R. Comparison of methods of locating and tracking cellular mobiles. In Proceedings of the IEEE Colloquium on Novel Methods of Location and Tracking of Cellular Mobiles and Their System Applications, London, UK, 17 May 1999. [Google Scholar]
  16. Spirito, M.A.; Pöykkö, S.; Knuuttila, O. Experimental performance of methods to estimate the location of legacy handsets in GSM. In Proceedings of the IEEE 54th Vehicular Technology Conference, Atlantic City, NJ, USA, 7–11 October 2001; pp. 2716–2720. [Google Scholar]
  17. Wann, C.-D.; Chen, Y.-M. Position tracking and velocity estimation for mobile positioning systems. In Proceedings of the 5th International Symposium on Wireless Personal Multimedia Communications, Honolulu, HI, USA, 27–30 October 2002; pp. 310–314. [Google Scholar]
  18. Yilin, Z.H. Standardization of mobile phone positioning for 3G systems. IEEE Commun. Mag. 2002, 40, 108–116. [Google Scholar] [CrossRef]
  19. Chen, C.-S.; Su, S.-L.; Lu, C.-D. Geometrical positioning approached for mobile location estimation. In Proceedings of the 2010 2nd IEEE International Conference on Information Management and Engineering, Chengdu, China, 16–18 April 2010; pp. 268–272. [Google Scholar]
  20. Shen, J.; Molisch, A.F.; Salmi, J. Accurate Passive Location Estimation Using TOA Measurements. IEEE Trans. Wirel. Commun. 2012, 11, 2182–2192. [Google Scholar] [CrossRef]
  21. Chan, S.K.C.; Kan, K.K.H.; Ng, J.K.-Y. A Dual-Channel System for Providing Location Estimation in Mobile Computing. J. Interconnect. Netw. 2003, 4, 271–290. [Google Scholar] [CrossRef]
  22. Caffery, J. A new approach to the geometry of TOA location. In Proceedings of the 52nd IEEE Vehicular Technology Conference (Cat. No.00CH37152), Boston, MA, USA, 24–28 September 2000; Volume 1944, pp. 1943–1949. [Google Scholar]
  23. Sayed, A.H.; Tarighat, A.; Khajehnouri, N. Network-based wireless location: Challenges faced in developing techniques for accurate wireless location information. IEEE Signal. Process. Mag. 2005, 22, 24–40. [Google Scholar] [CrossRef]
  24. Chen, J.C.; Wang, Y.C.; Maa, C.S.; Chen, J.T. Network-Side Mobile Position Location Using Factor Graphs. IEEE Trans. Wirel. Commun. 2006, 5, 2696–2704. [Google Scholar] [CrossRef]
  25. Go, S.; Chong, J. Improved TOA-based localization method with BS selection scheme for wireless sensor networks. ETRI J. 2015, 37, 707–716. [Google Scholar] [CrossRef] [Green Version]
  26. Pradhan, S.; Khadka, G.; Hwang, S.S. Mobile Location Estimation Based on the TOA Geometry. In Proceedings of the Conference of the Korean Institute of Communications and Information Sciences, Naju, Korea, 10 May 2013; pp. 40–43. [Google Scholar]
  27. Pradhan, S.; Hwang, S.-S.; Cha, H.-R.; Bae, Y.-C. Line Intersection Algorithm for the Enhanced TOA Trilateration Technique. Int. J. Hum. Robot. 2014, 11, 1442003. [Google Scholar] [CrossRef]
  28. Caffery, J.J. Wireless Location in CDMA Cellular Radio Systems; Kluwer Academic: Boston, MA, USA, 2000. [Google Scholar]
  29. Ying, L.; Liang, Y.-C.; Wang, S.-X. Location parameters estimation in mobile communication systems. In Proceedings of the 2000 International Conference on Communication Technology Proceedings (Cat. No.00EX420), Beijing, China, 21–25 August 2002; pp. 261–268. [Google Scholar]
  30. McGuire, M.; Plataniotis, K.N.; Venetsanopoulos, A.N. Location of mobile terminals using time measurements and survey points. IEEE Trans. Veh. Technol. 2003, 52, 999–1011. [Google Scholar] [CrossRef]
  31. Cheung, K.; So, H. A multidimensional scaling framework for mobile location using time-of-arrival measurements. IEEE Trans. Signal. Process. 2005, 53, 460–470. [Google Scholar] [CrossRef] [Green Version]
  32. Gustafsson, F.; Gunnarsson, F. Mobile positioning using wireless networks: Possibilities and fundamental limitations based on available wireless network measurements. IEEE Signal. Process. Mag. 2005, 22, 41–53. [Google Scholar] [CrossRef]
  33. Kbar, G.; Mansoor, W. Mobile Station Location Based on Hybrid of Signal Strength and Time of Arrival. In Proceedings of the International Conference on Mobile Business (ICMB’05), Sydney, NSW, Australia, 11–13 July 2005; pp. 585–591. [Google Scholar]
  34. Sun, G.; Chen, J.; Guo, W.; Liu, K.R. Signal processing techniques in network-aided positioning: A survey of state-of-the-art positioning designs. IEEE Signal. Process. Mag. 2005, 22, 12–23. [Google Scholar] [CrossRef]
  35. Porretta, M.; Nepa, P.; Manara, G.; Giannetti, F. Location, location, location. IEEE Veh. Technol. Mag. 2008, 3, 20–29. [Google Scholar] [CrossRef] [Green Version]
  36. Enge, P.P.K. The Global Positioning System: Signals, measurements, and performance. Int. J. Wirel. Inf. Netw. 1994, 1, 83–105. [Google Scholar] [CrossRef]
  37. Patwari, N.; Ash, J.N.; Kyperountas, S.; Hero, A.; Moses, R.; Correal, N.S. Locating the nodes: Cooperative localization in wireless sensor networks. IEEE Signal. Process. Mag. 2005, 22, 54–69. [Google Scholar] [CrossRef]
  38. Thomas, F.; Ros, L. Revisiting trilateration for robot localization. IEEE Trans. Robot. 2005, 21, 93–101. [Google Scholar] [CrossRef] [Green Version]
  39. Liu, H.; Darabi, H.; Banerjee, P.; Liu, J. Survey of Wireless Indoor Positioning Techniques and Systems. IEEE Trans. Syst. Man Cybern. Part. C Appl. Rev. 2007, 37, 1067–1080. [Google Scholar] [CrossRef]
  40. Gezici, S. A Survey on Wireless Position Estimation. Wirel. Pers. Commun. 2008, 44, 263–282. [Google Scholar] [CrossRef]
  41. Sand, S.; Dammann, A.; Mensing, C. Position estimation. In Positioning in Wireless Communications Systems; Wiley: Hoboken, NJ, USA, 2014; pp. 69–99. [Google Scholar]
  42. Ahonen, S.; Eskelinen, P. Mobile terminal location for UMTS. IEEE Aerosp. Electron. Syst. Mag. 2003, 18, 23–27. [Google Scholar] [CrossRef]
  43. Vossiek, M.; Wiebking, L.; Gulden, P.; Wieghardt, J.; Hoffmann, C.; Heide, P. Wireless local positioning. IEEE Microw. Mag. 2003, 4, 77–86. [Google Scholar] [CrossRef]
  44. Guvenc, I.; Chong, C.-C. A Survey on TOA Based Wireless Localization and NLOS Mitigation Techniques. IEEE Commun. Surv. Tutor. 2009, 11, 107–124. [Google Scholar] [CrossRef]
  45. Hussain, S.A.; Emran, M.; Salman, M.; Shakeel, U.; Naeem, M.; Ahmed, S.; Azeem, M. Positioning a mobile subscriber in a cellular network system based on signal strength. IAENG Int. J. Comput. Sci. 2007, 34, 245–250. [Google Scholar]
  46. Pradhan, S.; Hwang, S.-S. Mathematical analysis of line intersection algorithm for TOA trilateration method. In Proceedings of the 2014 Joint 7th International Conference on Soft Computing and Intelligent Systems (SCIS) and 15th International Symposium on Advanced Intelligent Systems (ISIS), Kitakyushu, Japan, 3–6 December 2014; pp. 1219–1223. [Google Scholar]
  47. Pradhan, S.; Pyun, J.-Y.; Kwon, G.-R.; Shin, S.; Hwang, S.-S. Enhanced location detection algorithms based on time of arrival trilateration. In Proceedings of the 2014 48th Asilomar Conference on Signals, Systems and Computers, Pacific Grove, CA, USA, 2–5 November 2014; pp. 1179–1183. [Google Scholar]
  48. Cheung, K.; So, H.; Ma, W.-K.; Chan, Y. Least Squares Algorithms for Time-of-Arrival-Based Mobile Location. IEEE Trans. Signal. Process. 2004, 52, 1121–1128. [Google Scholar] [CrossRef] [Green Version]
  49. Abramovich, Y.I.; Spencer, N.K. DOA estimation performance breakdown: A new approach to prediction and cure. In Proceedings of the 2002 11th European Signal Processing Conference, Toulouse, France, 3–6 September 2002; pp. 1–4. [Google Scholar]
  50. Van Trees, H.L. Optimum Array Processing: Part IV of Detection, Estimation, and Modulation Theory; Wiley: Hoboken, NJ, USA, 2004. [Google Scholar]
  51. Xu, W.; Baggeroer, A.; Richmond, C. Bayesian Bounds for Matched-Field Parameter Estimation. IEEE Trans. Signal. Process. 2004, 52, 3293–3305. [Google Scholar] [CrossRef]
Figure 1. Time of arrival (TOA) trilateration approach for the mobile station (MS) localization.
Figure 1. Time of arrival (TOA) trilateration approach for the mobile station (MS) localization.
Energies 14 01492 g001
Figure 2. Intersection of three circles based on the estimated distances.
Figure 2. Intersection of three circles based on the estimated distances.
Energies 14 01492 g002
Figure 3. The shortest distance algorithm.
Figure 3. The shortest distance algorithm.
Energies 14 01492 g003
Figure 4. Flow chart for the shortest distance algorithm.
Figure 4. Flow chart for the shortest distance algorithm.
Energies 14 01492 g004
Figure 5. Line intersection algorithm.
Figure 5. Line intersection algorithm.
Energies 14 01492 g005
Figure 6. Mean square error (MSE) of distances between MS and base stations (BSs) for the first case.
Figure 6. Mean square error (MSE) of distances between MS and base stations (BSs) for the first case.
Energies 14 01492 g006
Figure 7. MSE of distances between MS and BSs for the second case.
Figure 7. MSE of distances between MS and BSs for the second case.
Energies 14 01492 g007
Figure 8. MSE of distances between MS and BSs for the third case.
Figure 8. MSE of distances between MS and BSs for the third case.
Energies 14 01492 g008
Figure 9. MSE of MS position estimation using the shortest distance and the line intersection algorithms for the first case.
Figure 9. MSE of MS position estimation using the shortest distance and the line intersection algorithms for the first case.
Energies 14 01492 g009
Figure 10. MSE of MS position estimation using the shortest distance and the line intersection algorithms for the second case.
Figure 10. MSE of MS position estimation using the shortest distance and the line intersection algorithms for the second case.
Energies 14 01492 g010
Figure 11. MSE of MS position estimation using the shortest distance and the line intersection algorithms for the third case.
Figure 11. MSE of MS position estimation using the shortest distance and the line intersection algorithms for the third case.
Energies 14 01492 g011
Figure 12. The enlarged MSEs of the MS position estimation for the first case.
Figure 12. The enlarged MSEs of the MS position estimation for the first case.
Energies 14 01492 g012
Figure 13. The enlarged MSEs of the MS position estimation for the second case.
Figure 13. The enlarged MSEs of the MS position estimation for the second case.
Energies 14 01492 g013
Figure 14. The enlarged MSEs of the MS position estimation for the third case.
Figure 14. The enlarged MSEs of the MS position estimation for the third case.
Energies 14 01492 g014
Table 1. Summary of the shortest distance algorithm.
Table 1. Summary of the shortest distance algorithm.
1. Initialize the circles c1, c2, and c3 of BSs with radii corresponding to the estimated distances e d 1 , e d 2 , and e d 3 . The three estimated distances between BSs and MS are calculated by
e d i = N i × c F .
2. Find all six intersection coordinate points (I, I′, J, J′, K, and K′) formed by three circles of BS.
3. Calculate the distances between the center of the circle, c1 ( x 1 , y 1 ) , and each intersection point ( x j , y j ) formed by other circles of BSs (c2 and c3):
d 1 j = ( x 1 x j ) 2 + ( y 1 y j ) 2 , j = 2 , 3 .
4. Select the intersection point corresponding to the shorter distance from step 3.
5. Repeat step 3 and 4 for the center of circles, c2 and c3.
6. Decide the position of the MS by taking the average of the selected three points.
7. x ^ = I x + J x + K x 3 , y ^ = I y + J y + K y 3
Table 2. Line intersection algorithm.
Table 2. Line intersection algorithm.
1. Calculate three estimated distances between each BS and MS using
e d i = N i × c F .
2. Generate three circle equations using the three estimated distances and center coordinates of BSs:
x 2 + y 2 + α i x + β i y + γ i = 0 ,
where α i = 2 x i , β i = 2 y i , and γ i = x i 2 + y i 2 e d i 2 .
3. Determine the location of the MS, ( x ^ ,   y ^ ) , using
x ^ = ( γ 2 γ 1 ) ( β 2 β 3 ) ( γ 3 γ 2 ) ( β 1 β 2 ) ( α 1 α 2 ) ( β 2 β 3 ) ( α 2 α 3 ) ( β 1 β 2 )
and
y ^ = ( α 1 α 2 ) ( γ 3 γ 2 ) ( γ 2 γ 1 ) ( α 2 α 3 ) ( α 1 α 2 ) ( β 2 β 3 ) ( α 2 α 3 ) ( β 1 β 2 ) .
Table 3. Comparison between line intersection algorithm, shortest distance algorithm, and least square algorithm.
Table 3. Comparison between line intersection algorithm, shortest distance algorithm, and least square algorithm.
CasesSpecific Sampling RatesSpecific MSE Values (m)
Line Intersection AlgorithmShortest Distance AlgorithmLeast Square Algorithm
First case10 MHz11.580012.490617.0327
100 MHz1.15871.27171.7204
1 GHz0.11550.12680.1716
10 GHz0.01160.01270.0172
Second case10 MHz11.655713.255217.6510
100 MHz1.16621.35481.7876
1 GHz0.11560.13520.1779
10 GHz0.01160.01350.0179
Third case10 MHz11.816815.038419.1257
100 MHz1.17721.56581.9590
1 GHz0.11750.15620.1955
10 GHz0.01180.01570.0196
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Pradhan, S.; Hwang, S.-s.; Lee, D. Mathematical Analysis of Line Intersection and Shortest Distance Algorithms. Energies 2021, 14, 1492. https://doi.org/10.3390/en14051492

AMA Style

Pradhan S, Hwang S-s, Lee D. Mathematical Analysis of Line Intersection and Shortest Distance Algorithms. Energies. 2021; 14(5):1492. https://doi.org/10.3390/en14051492

Chicago/Turabian Style

Pradhan, Sajina, Suk-seung Hwang, and Dongbin Lee. 2021. "Mathematical Analysis of Line Intersection and Shortest Distance Algorithms" Energies 14, no. 5: 1492. https://doi.org/10.3390/en14051492

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop