Optical wireless communication based indoor positioning algorithms: performance optimisation and mathematical modelling

: In this paper, the performance of the optimal beam radius indoor positioning (OBRIP) and two-receiver indoor positioning (TRIP) algorithms are analysed by varying system parameters in the presence of an indoor optical wireless channel modelled in line of sight conﬁguration. From all the conducted simulations, the minimum average error value obtained for TRIP is 0.61 m against 0.81 m obtained for OBRIP for room dimensions of 10 m × 10 m × 3 m. In addition, for each simulated condition, TRIP, which uses two receivers, outperforms OBRIP and reduces position estimation error up to 30%. To get a better understanding of error in position estimation for different combinations of beam radius and separation between light emitting diodes, the 90th percentile error is determined using a cumulative distribution frequency (CDF) plot, which gives an error value of 0.94 m for TRIP as compared to 1.20 m obtained for OBRIP. Both algorithms also prove to be robust towards change in receiver tilting angle, thus providing ﬂexibility in the selection of the parameters to adapt to any indoor environment. In addition, in this paper, a mathematical model based on the concept of raw moments is used to conﬁrm the ﬁndings of the simulation results for the proposed algorithms. Using this mathematical model, closed-form expressions are derived for standard deviation of uniformly distributed points in an optical wireless communication based indoor positioning system with circular and rectangular beam shapes.


Introduction
Global positioning system (GPS) has revolutionised the realm of outdoor environment positioning and tracking systems [1][2][3][4], but its usability in the indoor environment is questionable [5,6] owing to attenuation effects and multipath interference [3,7,8].Radio frequency-based indoor positioning systems (IPS) suffer from electromagnetic (EM) interference [9,10] and give low accuracy [5,11].IPS based on radio frequency identification and ultrasound require additional infrastructure for its installation [9,10], thus increasing the overall cost of the system.Optical wireless communication (OWC) with light emitting diodes (LEDs) has been touted as the ultimate solution for IPS by many researchers based on advantageous factors such as immunity to EM interference, higher accuracy as compared to other technologies, less complexity and low cost implementation [12][13][14][15][16].The visible light implementation can also be simultaneously used for the purpose of illumination as well as communication [17].
OWC-based IPS can be used to track objects or people in an indoor environment.This system requires LED transmitters and optical receivers for its operation.The LED transmitters transmit their positional coordinates continually inside a room in the form of modulated optical signals.Upon signal reception at the receiver, positioning methods are used to decode the receiver location from the positional information of the LED transmitters [18].The most commonly used positioning methods include triangulation, proximity or fingerprinting [19].However, each has their own limitations [20,21] which have been discussed in the literature survey section of the paper.The principle motivation behind this research is to facilitate the design and development of a low-cost, reliable and highly accurate IPS by introducing new positioning techniques.This system can be used in hospitals and care homes, especially to better the care for people with dementia.Dementia is an ongoing illness which causes disorientation [22,23] and is a serious concern for caregivers as the people with dementia may get lost and walk into dangerous situations or places.This is one of the reasons that position tracking systems can be employed to improve their care [24,25].
A major impediment in the implementation of OWC-based IPS is separation of optical signals from multiple light sources at the receiver carrying distinct positional information.Owing to recently proposed techniques aiding signal separation at the receiver, discussed in the next section, a new positioning algorithm called the optimal beam radius indoor positioning (OBRIP) algorithm is proposed in [26].This algorithm takes the advantage of the overlapping LED light beam regions to further improve position estimation accuracy of proximity based IPS by generating more reference points for position assignment.It is designed for an indoor environment with an array of LEDs pre-installed at fixed positions continuously transmitting their location coordinates as modulated optical signals.An optical receiver attached to an object detects these signals and uses the transmitted coordinates to estimate its own location.Though the OBRIP algorithm is able to significantly improve the accuracy in position estimation, there is still scope for further improvement.
The two-receiver indoor positioning (TRIP) algorithm which builds upon the OBRIP algorithm is proposed in [27] to improve the performance of OBRIP for various system parameters.However, during their simulation the effect of propagation channel is not considered.In this paper, the OBRIP and TRIP algorithms and their corresponding setups have been simulated to analyse their performance in the presence of an indoor OWC channel in line of sight (LOS) configuration.Depending on the important channel parameter values including semi-angle at half power, field of view and physical area of detector, along with the geometrical position of the LED array and the receiver object, the impulse response at the receiver is determined which in turn helps find out the average error in position estimation.The result of the comparison between the geometrical simulation with the channel-incorporated simulation confirms the viability of the proposed algorithms in practical scenarios.In this paper, the performance of these algorithms is analysed in terms of root mean square error (RMSE), which is referred to as average error in this paper.
Mathematical validation of the results is the best way to confirm the findings of the simulations and it also helps in determining the optimal value of beam radius for minimum positioning error.Beam radius, is defined as the maximum extent up to which an LED light source can transmit with intensity greater than receiver threshold.In this paper, a novel mathematical model for positioning error is derived for single and multiple LED based IPS for circular, rectangular and square beam shapes.In addition, with the help of exhaustive parameter analysis in terms of 90th percentile value found from the cumulative distribution frequency (CDF) and average error for the proposed algorithms, this paper provides a large set of values for system parameters like beam radius, LED separation distance and receiver separation distance for which the error in position estimation is within sub-metre accuracy.The major contributions of this research paper include:

•
Proposing a novel mathematical model for calculating positioning error for an OWC-based IPS.This mathematical model is based on the concept of raw moments and helps in validating the results and inferences of the geometrical simulation.This leads to closed form expressions for standard deviation and average error for single and multiple LED IPS with different shapes which can be useful in other research domains as well.

•
The proposed algorithms are evaluated by emulating an indoor wireless communication channel in LOS configuration which helps in conforming the inferences drawn from the results of the geometrical simulation.

•
An exhaustive combinational analysis is carried out to determine optimal system parameter values for designing an efficient IPS for different indoor environments and desired positioning accuracy.

•
The OBRIP and TRIP algorithms are improved by proposing new concepts such as positioning using previous location, remedy for receiver blockage in the TRIP algorithm and room scaling.
The organisation of the paper is as follows: Section 2 presents the literature survey followed by the Section 3 which discusses the simulation setup for the OBRIP and TRIP algorithms.In Section 4, a LOS mathematical propagation model for the OWC channel is presented followed by Section 5, which presents the performance comparison of the proposed algorithms to the proximity method.Section 6 discusses the mathematical model for a single and multiple LED IPS for different beam shapes.In Section 7, effect of various parameters and conditions are analysed followed by Section 8, which includes the guidelines for installation.Finally, in Section 9, the major conclusions from the paper are discussed

Literature Survey
Among the existing positioning methods, the triangulation method utilises the geometric properties of the triangle to determine the absolute position of the receiver.In this method, the position of the receiver is estimated by measuring the distance of the receiver from multiple LED transmitters via received signal strength (RSS) [6], time of arrival (TOA) or time difference of arrival (TDOA) techniques [28], or by measuring the angles relative to multiple LED transmitters using angle of arrival (AOA) technique [19].Though this method has led to the development of various IPS which show a significant level of accuracy, their design involves various assumptions and are either too expensive or unsuitable for practical implementation [19,21].For time-based positioning, extremely accurate time measurement is required as the distance between the receivers is relatively short in indoor applications [29].In the RSS-based localisation, it is often assumed that the receiver is placed parallel to the transmitter, which results in incorrect position estimation when the receiver angle is tilted [6,12].In addition, the transmitted power in RSS-based localisation is uncertain which further creates a challenge for distance estimation [29].IPS with multiple receivers requires fixed orientation for which specific angles and heights are assumed [5], but in practice the receiver is often not restricted by a specific angle or height.In recent research [30], a positioning system based on angle difference of arrival (ADOA) technique is proposed which takes into account arbitrary tilting angles of the receiver and claims an accuracy of less than a half meter using image sensors or photodiode (PD) arrays.However, this system requires signals from at least three LED transmitters for position estimation and is computationally expensive.In addition, the accuracy of this system directly depends upon the size of the spatial step and the search area.The main challenge with angulation based positioning is the use of multiple PD receivers or image sensors which increases the hardware complexity [31].In [32], localisation with the help of single transmitter and single tilted receiver achieves an accuracy of less than 4 cm based on the experimental results.However, the analysis is performed for a relatively small indoor environment where the receiver is required to be calibrated to a particular direction before the positioning.
Fingerprinting is another positioning method that compares real-time measurement data to the fingerprints of the pre-measured signal features at all points in the room to estimate the position of the receiver.Positioning using fingerprinting method is less complex as it does not rely on any specific hardware or theoretical model, thus eliminating the need for complex calculation [33].However, this method requires redesigning of the fingerprints database when there is any change to the indoor environment which can prove to be expensive [34].As compared to these methods, proximity method is the simplest and most inexpensive positioning method used for designing an OWC-based IPS [35].This method directly employs the optical signal transmitted by the LED to infer the position of the receiver which makes the proximity-based IPS hardware-friendly and less complex [36].It is also less dependent on environment changes.However, the accuracy of this method is poor as it depends on the factors such as size of the room and the LED coverage area [37].To further increase the accuracy of the proximity method, additional devices are used.A constructive method is proposed in [38][39][40] which uses 6-axis sensors to reduce the positioning error from several meters to the range of 0.3 m to 0.6 m for the OWC-based positioning system.However, the accuracy claimed by these systems highly depends on the accuracy of angulation data obtained from the 6-axes sensor.
Analysis of the existing positioning methods further leads to the identification of the challenge to separate optical signals from two or more different light sources which are carrying different decoded positional information [41,42].This situation happens when the light beam regions of LEDs of the OWC system, which are transmitting their location information in the form of modulated optical signal, overlap.In recent research [43], the multiple LED estimation model (MLEM) is proposed to establish an explicit coordination between LEDs and separate signals at the receiver.In MLEM, the positional information is encoded using pulse duration multiplexing (PDM) and the data is modulated using on-off keying (OOK) to a higher frequency.It reduces the interference caused by multiple LEDs transmitting at the same time and at the same wavelength by using low duty cycle protocol and packet based PDM.In order to deduce the location of the receiver, MLEM uses both the content and pattern of reception of data carrying packets from single or multiple LEDs.In a separate research [44], to overhaul the overlapping problem caused by multiple unsynchronized light sources over a shared light medium the entire spectrum is channelized into multiple evenly-spaced sub-carriers and possible collisions among light sources are mitigated by employing random channel hopping technique.Experimental performance analysis of the MLEM model has shown promising results in separating optical signals, and thus it is preferred for signal power separation over the other signal separation techniques.Considering that interference in the overlapping light regions can be moderated, OBRIP and TRIP algorithms are proposed in [26,27], respectively, which helps to address the shortcomings of the proximity-based IPS.Unlike the proximity method, these algorithms employ the centroid of all the received signals to locate the object instead of assigning the coordinates of the strongest received signal.Thus, the overlapping regions are used as an advantage to increase the accuracy in position estimation.The system setup for both the algorithms is discussed in the following section.

System Setup
To conduct simulation-based performance analysis of the OBRIP and TRIP algorithms, a room with dimensions 10 m × 10 m × 3 m is considered.A 3 × 3 grid array of nine equally spaced LEDs are assumed to be installed on the ceiling of the room as shown in Figure 1.An object whose position is to be estimated is placed in the room.To ensure stable error values and simulate all possible positions, 25,000 randomly generated and uniformly distributed positions of the object at a height of 1 m from the floor plane of the room are used to perform the error calculations for position estimation.The LED light beams form a geometrical shape (circular in this case) when seen from the top view of the room.The midpoints of these regions are the first set of reference points for position estimation.The second set of reference points is obtained from the centroid points of the overlapping light beam regions.

Optimal Beam Radius Indoor Positioning Algorithm
In the OBRIP algorithm, each LED in the LED array continuously transmits its location information inside a room in the form of a modulated optical signal.This signal is intercepted by an object with an optical receiver.Based on its position, if the object receives signal from only one LED, the coordinates of that LED are assigned as the reference position of the object.However, if the object lies in an overlapping region and receives multiple signals from two or more LEDs, the centroid of all the received coordinates is assigned as the reference position of the receiver.In case the object lies in the non-coverage region where it receives no signal, the centre of the room is assigned as the reference position of the object.Figure 2 illustrates the working of the OBRIP algorithm with the help of a flowchart.For the system setup discussed previously, consider a set of randomly generated positions of the receiver object, (x Ai , y Ai ), i = 1,•••, N (N = 25,000).For each of these random positions, an estimated position (x Ri , y Ri ) is determined using the OBRIP algorithm.Based on the randomly generated and estimated position of the receiver object in the ith iteration, the average error in position estimation is calculated for the performance evaluation of the OBRIP algorithm.The mathematical expression for calculation of RMSE, or average error (E), as referred to in this research, can be written as Equation ( 1): (1)

Two-Receiver Indoor Positioning Algorithm
The TRIP algorithm works with the same system setup as for the OBRIP algorithm with the exception that it employs two optical receivers on an object instead of one.When the receiver object enters a room, each of the receivers on the object independently receives one or more optical signals from the transmitting LEDs.The receivers then independently estimate their position using the principle of OBRIP algorithm.As per the TRIP algorithm, the final estimated position of the object is the midpoint of the estimated positions of both the receivers.Figure 3 shows the position assignment process in the TRIP algorithm with the help of a flow chart.For performance evaluation of TRIP algorithm, the average error in position estimation can be calculated using Equation (1).In this research, the TRIP algorithm assumes the object to be an average size adult human being with an optical receiver attached to each of their shoulders.Therefore, the distance between the two receivers is kept 0.5 m, which is the upper ceiling value of the average shoulder length for an adult human being [45].In addition, as the algorithm is being designed for an IPS for elderly people with dementia, increasing the number of receivers beyond two can make the device uncomfortable, or impractical to wear.Furthermore, it will inherit the issue of angular dependency and the performance of the algorithm will have to be analysed as a three-dimensional problem.

Line of Sight Propagation Model for an Optical Wireless Communication Channel
Understanding the characteristics of the underlying communication channel associated with an indoor environment is imperative to designing an efficient indoor optical wireless positioning system.The impulse response of the channel is used to characterize the OWC channel.Considerable research has been done to model this communication channel and various experimental and computer-generated models have been proposed [46].
In an indoor optical wireless channel, the link length is relatively short because of which scattering and absorption due to attenuation is negligible [46].Considering a simulation setup similar to OBRIP and TRIP algorithms as described in the previous section, along with an OWC link with a Lambertian source, a PD receiver, an optical band-pass filter of transmission T s (ψ) and a nonimaging concentrator of gain g(ψ), a LOS propagation model, as shown in Figure 4, is designed to approximate the DC channel gain, H(0), for individual LED transmitters.LOS propagation channel takes into consideration the optical signals which travel in a direct path to the receiver without any obstruction.Equations ( 2)-( 5) are derived to model a LOS optical wireless channel [28,[46][47][48][49][50]: where A r is the area of the receiver, d tr is the LOS transmitter-receiver separation, φ is the angle of irradiance and ψ is angle of incidence as shown in Figure 4. T s (ψ) is the gain of the optical filter, g(ψ) is the gain of the optical concentrator and ψ c denotes the field of vision (FOV) of the receiver.The order of Lambertian emission, m, can be expressed as function of LED semi-angle at half power, Φ 1/2 : The gain of the concentrator g(ψ) depends upon the internal refractive index of the concentrator n and is given by The power received by the receiver inside a room depends on the optical power transmitted by individual LEDs.This received power, P r , can be written as where P t is the optical power transmitted by individual LEDs.Table 1 shows the parameter values which have been considered for the calculation of optical power received by the receiver and correspondingly the error in position estimation.It is initially assumed that φ and ψ are equal to each other i.e., the surface of the receiver is placed parallel to the transmitter and the surface of the room.For the purpose of performance analysis, tilting of the receiver surface is also considered.

Performance Comparison of Proposed Algorithms with Proximity Method
The proposed algorithms claim to improve the performance of the proximity method by taking the advantage of overlapping regions to reduce the error in position estimation.In this research, the performance comparison between the proximity method, OBRIP and TRIP algorithms are carried out using the system setup discussed above.
For the purpose of analysis, the average error is estimated for the three methods with change in beam radius.The simulation results shown in Figure 5 are for beam radius values ranging from 1.5 m to 3.5 m where the effect of overlapping regions is noticeable.It can be observed that the average error difference between the OBRIP and the proximity method keeps on increasing as the area of the overlapping regions increases with beam radius.After a certain point, when the area of the overlapping region becomes larger than the individual LED coverage area, thus increasing positional uncertainty, the difference in performance of the two techniques starts reducing.At the optimal point, where the error is minimum in the case of OBRIP algorithm, OBRIP improves the accuracy of the proximity method by 28%.The TRIP algorithm further reduces the error obtained from the OBRIP algorithm by up to 30%.This analysis proves that the proposed algorithms lead to a superior performance as compared to the proximity method.

Mathematical Model for Indoor Positioning System
The concept of raw moments is used to derive a mathematical model to find the standard deviation of randomly distributed points around the centre of a geometrical shape [51].Raw moment µ n , or 'crude moment', is the n-th moment about zero of a probability density function f (x) [52].
In this paper, the mean represents the position coordinates of the LED, or reference point for position estimation.The second raw moment is used for the calculation of standard deviation of uniformly distributed random position around the mean within a finite radius, which corresponds to beam radius of the LED.With the value of mean being 0, the second moment about the mean µ 2 is equal to the variance.Standard deviation, σ, can be expressed as the square root of variance [51]: In Section 6.1, a brief study is presented to discuss the closed form expressions used to find the standard deviation for a single LED IPS having circular, rectangular and square beam shapes.

Single LED Indoor Positioning System
There exists a large amount of research to find the standard deviation of uniformly distributed random points around the centre of a circle, rectangle or a square [53-56], which gives closed form expressions for the second raw moment of these geometrical shapes.In this paper, these closed form expressions are used to find the standard deviation for different values of beam radius using the normalised second raw moment with respect to area of the shape, and then compared with simulation results.
For a circular beam shape, there exists an expression for standard deviation in terms of radius r.This represents the average error in position estimation in case of an LED with a circular beam shape and beam radius r.For the purpose of calculation, the LED position coordinates are taken as (0, 0).The standard deviation of uniformly distributed random points around the centre of a circle with radius r can then be written as [53,57]: As the number of LEDs with circular beam shape used for indoor positioning increases, it also becomes increasingly difficult to mathematically validate the results of simulation for the proposed algorithms.This is because overlapping of the light beam regions of these LEDs gives rise to new shapes for which standard deviation has to be calculated.However, if a new quadrilateral beam shape, like a square or rectangle, is designed, keeping half the length of the shorter side equal to the beam radius of the circular beam shape, any number of overlapping regions will always lead to creation of a new quadrilateral shape for which standard deviation calculation is easier.For the purpose of analysis, exhaustive simulation is carried out to find the average error in position estimation, as discussed in the following section (Section 7), and it is observed that, for rectangular and square beams shapes, average error is similar to that obtained for a circular beam shape.In addition, according to an energy mapping technique proposed in a recent research, it is possible to obtain LED beam patterns [58] with varying geometrical shapes, like square or rectangle, and uniform distribution of light intensity.Taking these points into consideration, if a mathematical expression exists for the standard deviation of a rectangle, it will also help in validating the mathematical model for a larger system of LEDs with varying beam shapes.
For a rectangular beam shape with length h and breadth b, standard deviation σ r can be expressed as [54][55][56][57]: Considering that square is a special case of a rectangle where the length and breadth are equal, Equation ( 9) is used to derive the expression for standard deviation for a square beam shape with side s: As the focus of this paper is on overlapping light beam regions, the expressions presented in this section are used to derive the closed form expressions for standard deviation for a multiple LED IPS, as discussed in Section 6.2.

Multiple LED Indoor Positioning System
As discussed in the previous section, there is ample existing research to find the standard deviation of uniformly distributed points around the centre of a circle or a rectangle, but, surprisingly, no closed form expression exists for the standard deviation of two overlapping circles.One of the main inferences of the OBRIP algorithm is that increase in the number of overlapping regions leads to reduction in average error in position estimation [26,27].In this paper, an expression for standard deviation is derived by taking two overlapping circles, with beam radius r and distance between centres as 2d, where d is the distance between the centre of the circle and eye, while validating the inferences of the proposed positioning algorithm.
As can be seen in Figure 6, overlapping circles lead to formation of three regions, Region 1 and Region 3 which are in the shape of a 'crescent' and are identical, and Region 2, which is in the shape of an 'eye'.As per the OBRIP algorithm each region has its own reference point.According to the concept of raw moments, the expression for the second moment of the eye shape µ 2e can be written as: where The solution for (10) is given in Appendix A, which leads to the expression for the second moment of the eye shape around its centre, µ 2e : where The standard deviation of the eye shape, σ e , can be obtained from the normalised second raw moment of the eye shape: where A e is given as: After calculating the standard deviation for the eye shape, the next task is to find the standard deviation for the crescent shapes, µ 2cr .This value can be calculated if second moment for the eye shape around the centre of circle, µ 2ec , is subtracted from the second moment of an entire circle, µ 2c , where µ 2ec can be written as a function of second moment of the eye around its own center, µ 2e , area of the eye, A e , and d: The standard deviation of the crescent shape can now be written as a function of the second moment of the crescent shape and area of crescent shape as shown in Equation ( 19): where To analyse the effect of change in overlapping region area on average error, two LEDs with circular beam shapes and a fixed beam radius of 3 m are brought close to each other, and change in average error in position estimation is observed.To find the overall error of the entire system with the eye and crescent shapes, the weighted average method is used as given in (21): where The overlapping distance, 2 (r − d), is then varied and the average error of the entire system is found using the mathematical model and geometrical simulation, and plotted in Figure 7.The initial observation is that average error decreases rapidly with increase in overlapping distance up to a certain minimum point.This decrease can be attributed to the increase in the area of the overlapping regions which encompasses more number of random points for position estimation.After this minimum point when the overlapping distance is further increased, the area of the overlapping region becomes larger than the individual LED beam area.This results in increasing the positional uncertainty, thus the error starts increasing again.The results obtained from both the mathematical model and geometrical simulation are identical which validates the accuracy of the approach.The two LED-system with room edge effects can then be considered as three different rectangles as shown in Figure 8.The edge effect occurs when the LED light beam regions are cut-off by the opaque walls of the room.Using Equation ( 8), standard deviation for each of these rectangles can be calculated.The overall standard deviation of the system is then calculated using the weighted average expression which can be written as: where E 1 and A 1 are the standard deviation and area of the two similar beam regions (Region 1 and Region 3), respectively, and E 2 and A 2 represent the standard deviation and area of the middle light beam region (Region 2), respectively.The equations used to find the values of these variables are given in Appendix B. For a system with more LEDs, a similar approach can be used to find the expression for overall standard deviation.Using (23), the overall average error of the three-rectangle system is plotted against beam radius (half the length of the shorter side of the rectangle) as shown in Figure 9.It can be observed that, as the overlapping of the two LEDs increases, the average error starts decreasing, but after a certain 'optimal' point, when the area of the overlapping region becomes larger than the area of actual LED light beam, error in position estimation starts increasing again.This optimal point occurs at a beam radius of 4.17 m when the standard deviation is 3.04 m (Case I).
In Figure 8, the condition with two rectangular overlapping light beams in a room with length h and breadth b is shown.Taking the length of the overlap region as x, this paper also tries to find the relationship between x and the actual length of the room h, where the average error is minimum, by using the method of derivatives.Going by intuition, the minimum standard deviation should occur when the area of all the regions is same, which leads to the occurrence of three equal rectangular regions i.e., the length of each of the region is h/3.To confirm this, the method of derivatives is applied on (23), which also gives the relation, x = h/3, at which minimum error occurs.The calculation to get this expression is shown in Appendix B. The value of standard deviation at this condition can be written as: Using the above derived relationship, for a room of size 10 m × 10 m, minimum standard deviation should occur when the length of each region is 3.33 m, or all regions have the same area, 3.33 m × 10 m.This situation is possible when the length of the actual LED light beam with the room edge effect is 8.33 m or the beam radius is 4.17 m.This is the same value as obtained from the plot between beam radius and average error from the simulation results as shown in Figure 9 (Case I).In addition, using (24), the minimum standard deviation value obtained is 3.04 m, which is same as the value obtained from the simulation.Based on the intuition and the results obtained from two rectangular LED beams, a generalised scenario is considered where an array of m × n LEDs is installed in a room with length h g and breadth b g .This results in 2m − 1 × 2n − 1 light beam regions.As discussed previously, minimum error should occur when all the resulting light beam regions have equal areas.Under this condition, the overlapping distance along the length, x g , and along the breadth, y g , of the room can be written as a function of h g and n, and b g and m as given by ( 25) and ( 26), respectively: The approximate value of minimum standard deviation for this system is given by (27) and can be used to calculate standard deviation for a room with any size and any number of LED transmitters: The value of beam radius for this system, r g , can be expressed as: For m = n and h g = b g , the approximate value of minimum standard deviation is: One of the main conclusions from the simulation of the proposed algorithm is that, with an increasing number of LEDs, the overall error reduces due to an increase in the number of overlapping regions.This is because more overlapping regions lead to a larger number of reference points which reduces the distance between the actual and estimated position of the object.Using ( 29), the minimum standard deviation for four (2 × 2) and nine (3 × 3) LED systems in a room with dimensions 10 m × 10 m comes out to 1.36 m and 0.82 m, respectively.This result matches the result obtained from simulation for four overlapping rectangular LED systems exactly, as shown in Figure 9 (Case II).For nine overlapping rectangular beams, this value is very close to the simulation results as shown in Figure 10, but not an exact match.This is because, in the case of nine overlapping rectangular beams, there does not exist a situation where all overlapping region areas are same.Thus, the generalised equation derived above gives the exact error value for a smaller number of rectangular LEDs, but, as the number of LEDs increase, the error value does not exactly match, but is very close to simulation results.In addition, when these error values are compared to a two LED systems for the same room size (Case I), the error values for a four and nine LED system are considerably less, as can also be observed in Figures 9 and 10.This validates the inference of the proposed algorithm that increasing the number of overlapping regions causes further reduction in average error values.For LEDs with circular beam shapes, in case of more than two overlapping beams, calculating the error in position estimation can become more complex.However, looking closely at Figure 11, it can be observed that the multiple LED system can be viewed as a combination of various shapes like rectangles and triangles.Triangles, in this case, can be considered as one-fourth the area of a rectangle, and therefore equations stated previously can be used to find the standard deviation of these shapes and consequently the entire system.In case of an LED system with a numerous positioning of LEDs in a very large room, it can be thought of as a repeating smaller grid of LEDs.Thus, if the effect of the edges of the room is excluded, the error can be calculated for the smaller grid and used to generalise for the entire system.

OBRIP and TRIP Algorithms with Channel Modelling
In the related research, the performance analysis of OBRIP and TRIP algorithms is carried out without considering the effect of channel parameters.It is observed that TRIP outperforms OBRIP and leads to further reduction in average error in position estimation by 30% which is also exhibited in Figure 12.To validate these findings in the presence of an optical wireless channel, an LOS propagation model, as discussed in Section 4, is simulated and the performance of OBRIP and TRIP algorithms are analysed.On comparison, the results of the non-channel implementation of OBRIP and TRIP algorithms are identical to the implementation incorporating the indoor optical wireless channel as shown in Figure 12.This also confirms that further reduction of 30% in average error is possible using TRIP algorithm as compared to OBRIP algorithm.

Optimisation of System Parameters
In order to find the optimal values for the system parameters, beam radius and LED separation distance, an exhaustive simulation is performed with various possible combinations of values for both of these parameters in the presence of an optical wireless channel.The beam radius is varied from 0.25 m to 8 m at intervals of 0.05 m, and for each value of the beam radius, the LED separation distance is varied from 1.5 m to 5 m at intervals of 0.25 m.For each of these 2340 combinations of beam radius and LED separation distance, the error in position estimation is then calculated.These error values are used to find the 90th percentile error and the average error in position estimation.The 90th percentile error value is found from the CDF plot of the error values for each of the combinations of beam radius and LED separation distance.In order to get the complete picture for designing an IPS, both performance metrics are required.These metrics can help in the selection of a range of values for beam radius and LED separation distance to adapt any room size and shape, while providing acceptable values of positioning error.
In Figure 13a,b shown for selected values of LED separation and beam radius, it can be observed that, for the channel-included OBRIP algorithm simulation, the smallest 90th percentile error obtained is 1.2 m at a beam radius of 3 m and LED separation distance of 3.75 m.From the results of the simulation, in terms of average error, the smallest average error of 0.81 m is obtained at a beam radius of 3.4 m and separation of 4 m.For the TRIP algorithm, the smallest 90th percentile error value is 0.94 m at a beam radius of 3 m and LED separation distance of 3.75 m.In terms of average error, the smallest average error obtained is 0.61 m at a beam radius of 3.2 m and a separation of 3.75 m.These exhaustive simulation results confirm the practical feasibility of proposed indoor positioning algorithms as error values are within sub-metre accuracy for various combinations of system parameters.The performance of TRIP and OBRIP can also be compared through the contour plots shown in Figure 14a,b obtained from the simulation performed above.It can be observed that, for the TRIP algorithm, the 1 m average error contour line covers a larger area and thus a larger set of values of beam radius and LED separation distance lead to error values of 1 m or less as compared to OBRIP, which demonstrates that the TRIP algorithm's performance is more robust to variability of system parameters than the OBRIP algorithm.

Receiver Tilting
Up until now, it is assumed that the receiver surface is always parallel to the LED array plane.To prove the robustness of the OBRIP and TRIP algorithms, the receiver angle is varied and corresponding average error is calculated.All randomly generated positions of the receiver are tilted by the same angle, from −25 • to 25 • at intervals of 5 • .From the detailed analysis, it is observed that the minimum average error of 1.16 m and 0.82 m is obtained at a beam radius of 2.75 m and 2.5 m, when the receiver tilting angle is 0 • (i.e., no tilting) for OBRIP and TRIP algorithms, respectively.On comparing the contour plots shown in Figure 15a,b, where the contour lines represent the average error in position estimation, it is observed that, for TRIP, a larger set of beam radius and receiver tilting angles combinations produce an average error of 1 m or less as compared to OBRIP.

Distance between Two Receivers in a TRIP Algorithm
In the performance analysis of TRIP algorithm, the distance between the two receivers is kept constant at 0.5 m until now.This leaves the window of opportunity to analyse the effect of varying this separation on average error in position estimation.In this section, the distance between the receivers is varied in the presence of channel parameters from 0.25 m to 5 m, in steps of 0.25 m.This range of receiver distances should be able to include everything from the shoulder length of an average adult human being to large shipment containers in warehouses.From the simulation results of selected receiver separations shown in Figure 16, it is observed that the minimum average error is obtained at a beam radius of 2.5 m.In addition, as the receiver distance increases, up to 3.5 m, the average error values keep on decreasing, after which no significant variation in average error is noticeable at higher values of beam radius.
A detailed analysis is also performed using the values of beam radius and LED separation distance obtained from analysis performed in Section 7.2, which gives minimum average error to observe the effect on average error when the distance between two receivers is varied from 0.25 m to 5 m.Two cases are considered to observe this effect.In the first case, separation between the LEDs is fixed at 3.75 m and beam radius is varied from 2.5 m to 3.5 m in steps of 0.20 m.In the second case, the beam radius is fixed at the value of 3.2 m and the separation between the LEDs is varied from 3 m to 4.25 m in steps of 0.25 m.From the simulation results for the two cases above shown for some values in Figure 17a,b, respectively, it is observed that the average error values are under 1 m for majority of receiver separation distances.Thus, TRIP is giving a large range of operability values for LED separation distance, beam radius and receiver separation distance.

Different Beam Shapes of LEDs
LEDs used for indoor or outdoor lighting purposes have a major disadvantage that the illumination they produce is non-uniform with the centre having high intensity, and the edges having low intensity of illumination.A recent research presented an energy mapping technique for designing a free-form lens assuring uniform distribution of intensity in at least 95% of the illuminated area.Using this technology, it is possible to obtain LED beam patterns [58] with varying geometrical shapes and uniform distribution of light intensity.Considering the possibility of uniformly distributed multiple shapes for a LED beam, the shape of an LED beam might have some effect in calculation of average error in position estimation.For the purpose of analysis, average error is found for different beam shapes like circle, triangle, square, pentagon and hexagon in both OBRIP and TRIP algorithms while keeping the beam area constant.
From the simulations results, as shown in Figure 18, it is observed that the least minimum average error value is observed in case of a square shape beam for the OBRIP algorithm.For a triangular beam shape, the least minimum average error value is the highest as compared to other beam shapes.This is because, for all the other beam shapes, the covered room area is more inclusive.A similar trend is observed for the TRIP algorithm.

OBRIP and TRIP Algorithms with Previous Locations
As discussed previously, it is assumed in both the proposed algorithms that, if neither of the receivers received a signal, the centre of the room is assigned as the current location of the receiver.This assumption, though seems logical, but might lead to reduced accuracy when the majority of the positions of the receiver are in the non-coverage region.In this paper, a new approach is proposed in which the previous location of the object is assigned as its current location if the receivers are unable to detect a signal.Simulation results have proven that this approach leads to lowering in the average value of error as the previous location, in most of the cases, is nearest to the actual location as compared to the centre of the room.For the performance analysis, for both the OBRIP and TRIP algorithms, 25,000 uniformly distributed random points are generated in the room, with each point 0.5 m away from the previous generated location coordinate.To the points lying outside the LED coverage, the new approach of assigning previous location coordinates is applied and average error is calculated for the entire system.On comparing the results before and after implementation of this technique, it is observed that the previous location method performs better at smaller values of beam radius with average error decreasing by even 10% in some cases.After the optimal beam radius value, there is a small difference in the error values as shown in Figure 19.Exhaustive simulation taking multiple values of beam radius and LED separation distance also leads to the same inference.Thus, implementing this approach can help extract a higher accuracy from the IPS.

Receiver Blockage in the TRIP Algorithm
In the TRIP algorithm with two receivers, optical signals from the pre-installed LED array continuously transmitting their location coordinates are used for position estimation.The receivers are installed on each of the shoulders of the person taking the distance between them as 0.5 m.However, there exists a possibility that one of the receivers might get blocked or stop working and receive no signal at all.In this scenario, the blocked receiver leads to decrease in positional estimation accuracy.To overcome this situation, a position prediction method is proposed.Consider a situation where one of the two receivers, say RX 1 , is still receiving a signal, but the second receiver, RX 2 , is blocked.In this case, only the reference position of RX 1 is being calculated and used for position estimation.In the proposed solution, RX 2 's position is predicted based on RX 1 's reference position in such a way that the distance between the RX 1 's reference position and predicted RX 2 position is 0.5 m.Now, as both reference points are available, the average error calculation is performed as before in the TRIP algorithm.From the graph shown in Figure 20, it is observed that the TRIP algorithm with receiver blockage performs better than the OBRIP algorithm leading to a lower value of average error.When comparing its performance to TRIP algorithm without receiver blockage, the average error value difference at smaller and larger radii is almost negligible.

Room Scaling
The performance analysis which has been carried out for the proposed algorithms is for a fixed room size with floor dimensions of 10 m × 10 m.There can be an argument that the results might not hold true for rooms of different sizes.This poses a challenge on how to calculate the average error for different sized rooms.Either simulation can be carried out for each and every possible room size, or propose a simpler solution where error can be scaled as per the room dimensions relative to a standard room size.The latter option is preferred as it is less complex and time consuming, and simulations are carried out to verify the scaling concept.The fundamental hypothesis is, when the room size is scaled, average error is also scaled by the same factor.This scaling factor is calculated for the new room size based on the dimensions of a standard room size for which the error has already been calculated.A point to note is that room size in this case only refers to length and breadth of the room.Height is not considered while scaling as it depends on the threshold power of the optical receiver, thus it varies as this threshold value changes, making average error independent of the height of the room.
In this research, scaling is performed only for a square room shape with nine LEDs.The standard room size for calculating the scaling factor is taken as 10 m × 10 m.The corresponding average error value for each simulated condition is taken from the previously conducted performance analysis.The ratio of the new room size and the standard room size tells how many times the area of the room has increased or decreased.As area and error have different dimensions, error's dimensions being the square root of dimensions of area, the scaling factor for the average error is the square root of the ratio calculated earlier.This can be better explained with the help of an example.Say, for a standard room size of 10 m × 10 m, the positioning error is estimated to be 1 m.Now, this error value needs to be used for calculating the positioning error for a room of size 5 m × 5 m.The scaling factor in this case is √ 25/100 = 0.5.Thus, for the new room dimension, the average error will be 1 m × 0.5 = 0.5 m.This result is found to match the average error obtained through simulation for the proposed algorithms as shown in Figure 21.When the dimension of the room is changed from 10 m × 10 m to 5 m × 5 m, minimum average error and beam radius is scaled by a factor of 1/2.For a room dimension of 2.5 m × 2.5 m, average error and beam radius are scaled by one-fourth with respect to the 10 m × 10 m room, and by 1/2 with respect to the 5 m × 5 m room.An important point to note is that the position of the nine LEDs is also scaled by same scaling factor in both the algorithms.In addition, a similar trend is observed for TRIP algorithm.

Guidelines for Installation
With the performance of OBRIP and TRIP proving their ability to adapt to various indoor environments and providing accurate position estimation, this section provides guidelines for installation and parameter selection for an OWC-based IPS with the OBRIP or TRIP algorithm: 1.The first step in the installation process is to determine the size of the room in which the IPS is to be installed.Then, according to the application, the acceptable error in position estimation is chosen.These factors help in determining the value of system parameters.2. The next step is to determine the number of LEDs to be installed in the room.Referring to Equation ( 27), if the minimum standard deviation, or error in position estimation, and the room dimensions for a rectangular or square-shaped room are known, the relationship between the number of LEDs corresponding to the length and breadth of the room can be determined.3.After the number of LEDs are chosen, the position where the LEDs are to be installed on the ceiling of the room needs to be determined.The LED separation distance corresponding to the length and breadth of the room is the ratio of the side length and the number of LEDs along that side.4. Now, as the LEDs are installed, the next step is to choose the beam radius corresponding to which the desired minimum error can be achieved.This value can be obtained from (28), and the light intensity of the LEDs can be adjusted to obtain this value.A point to note is that this equation is for square and rectangular beam shapes.For a circular beam shape, the results of exhaustive analysis shown in Figure 14a,b can be used to determine the beam radius, depending on upon the chosen algorithm.As these plots are for a room size of 10 m × 10 m, the parameter and error values can be scaled depending upon the room dimensions. 5.The final step for completing the installation in the room is to connect the LEDs to their respective communication systems to enable them to transmit their location information encoded as an optical signal.The transmission module of the OWC-based IPS system is now functional.6.Now, an optical receiver programmed with an indoor positioning algorithm is attached to the object whose position is to be estimated.Depending on the application and budgetary constraints, the OBRIP or TRIP algorithm is chosen.In the case of the TRIP algorithm, a lower positioning error can be obtained with the same system parameter values by using one extra optical receiver.
Based upon the object size, the distance between the receivers is selected.For example, to track very large equipment, the distance between receivers can even be taken as 1.5 m.

Conclusions
Research on IPS has been gaining steam for the past few years since the success of GPS navigation systems in outdoor environments.The demand for less complex, low cost and highly accurate positioning algorithms for implementation of an IPS has led to the design of the OBRIP and TRIP algorithms.These algorithms take the advantage of the overlapping light beam regions to improve the accuracy of the IPS by generating more reference points for position assignment.This research proves the feasibility of using OBRIP and TRIP algorithms in an indoor environment, and confirms the performance analysis results achieved from the previous analysis, which did not take into account the effect of channel parameters, by producing similar results in the presence of a simulated indoor wireless optical channel in LOS configuration.The TRIP algorithm gives smallest average error value of 0.82 m against the value of 1.16 m obtained in the OBRIP algorithm before the optimisation of system parameters.In addition, in this research, the trend of average error variation when different beam shapes are used is showcased.From all the results, it can be concluded that all the shapes, with the exception of triangular beam shape, have similar average error values.Triangular shape, not being able to completely encompass the area of the room, leads to a higher value of average error in position estimation.
Exhaustive simulation performed in this research to find the 90th percentile error values with various combinations of beam radius and LED separation distance gives a highly accurate determination of possible values of error.From the analysis, the 90th percentile error obtained for the TRIP algorithm is 0.94 m against 1.2 m obtained from the OBRIP algorithm, which is a 21% drop in error value.In terms of average error, at optimal values of beam radius and LED separation distance of 3.2 m and 3.75 m, respectively, the smallest average error value obtained from the TRIP algorithm is 0.61 m, whereas, in the OBRIP algorithm at optimal values of 3.4 m and 4 m of beam radius and LED separation distance, respectively, the smallest average error value is 0.81 m, thus proving superior performance of TRIP algorithm over OBRIP and achieving an error value, which is 6% of the smallest room dimension along the floor plane.This level of accuracy is adequate for designing a position tracking system for people with dementia to determine if they are in the vicinity of dangerous objects or situations.In addition, it is observed that, for the TRIP algorithm, these optimal values of beam radius and LED separation can give average error values under 0.5 m if the distance between two receivers is varied.
This paper also helps to find the relationship between overlapping distance and length of the room for minimum standard deviation for a multiple LED system with rectangular and square beam shapes.It confirms the intuition that minimum error should occur when all the LED light beam regions have the same area.These expressions can be used to calculate system parameter values to obtain minimum position error for a room of any size.Another major contribution of this paper is derivation of the closed-form expression for standard deviation for overlapping circular beam shapes.
This research also provides a range of values for system parameters for which the average error is under 1 m, thus allowing custom selection of the values of these system parameters which are suitable for different room shapes, sizes and designs.These positioning algorithms being low-cost and highly accurate can revolutionize the indoor positioning domain, and lead to development of indoor positioning and tracking systems which can benefit the medical and commercial applications sectors.Some possible applications include tracking physical movement of patients in medical facilities, inventory management in large warehouses, and navigation within museums, airports, railway stations and large shopping malls.

Figure 1 .
Figure 1.System setup for the OBRIP algorithm.

Figure 3 .
Figure 3. System flowchart for the TRIP algorithm.

Figure 4 .
Figure 4. Line of sight model.

Figure 5 .
Figure 5. Average error vs. beam radius for proximity method, OBRIP algorithm and TRIP algorithm.

Figure 9 .
Figure 9. Average error vs. beam radius for two (Case I) and four (Case II) overlapping rectangular LED beams (simulation and mathematical model).

Figure 10 .
Figure 10.Average error vs. beam radius for nine overlapping rectangular LED beams (simulation and mathematical model).

Figure 12 .
Figure 12.OBRIP and TRIP algorithms with and without channel modelling.

Figure 13 .
CDF distribution for OBRIP and TRIP algorithms (a) different LED separation distance; (b) different beam radius of LEDs.

Figure 15 .
Implementation of proposed algorithms with different receiver tilting angles (a) OBRIP; (b) TRIP.

Figure 16 .Figure 17 .
Figure 16.Average error vs. beam radius in a TRIP algorithm for different distances between two receivers.

Figure 19 .
Figure 19.Average error vs. beam radius (OBRIP and TRIP with previous locations).

Figure 20 .
Figure 20.Average error vs. beam radius for OBRIP algorithm, TRIP algorithm and TRIP algorithm with receiver blockage.

Table 1 .
Parameters used for simulation.