SlideShare a Scribd company logo
Project	2:	Algorithms	
for	Global	Positioning		
Kevin Le (A11727120)
Professor: Ken Kreutz-Delgado
ECE 174
12/1/2016
Introduction
The Global Positioning System (GPS) is a network of dozens of satellites that hover out in space
with the purpose of allowing people to identify their location on earth. Signals from the GPS
satellites are transmitted to a GPS receiver on earth’s surface to pinpoint the satellite’s location
in space. With knowledge of the satellite’s orbit and utilizing time information, a GPS receiver is
able to determine its own location under the condition that four satellites are within range.
However, due to the inaccuracy of the receiver’s clock when utilizing commercial GPS units for
low cost, the distances calculated, called pseudo-ranges, are not accurate. Ideally, these four
pseudo-ranges should intersect at a single point for a true receiver-satellite distance, but the
unsynchronized clocks prevent this. To accurately determine a location, a few algebraic
computations are necessary to make the adjustment for the imperfect information. These
algebraic computations consist of deriving, implementing, and testing two algorithms, the
Gradient Descent and Gauss Newton algorithms. Throughout this project, we will be exploring
how these algorithms contribute to resolving the clock error when determining the true pseudo-
range under noiseless conditions.
Procedure
Step 1 Linerazation:
Both algorithms begin with minimizing the nonlinear weighted least squares loss function: given
by
where 𝑦 is the pseudo-range vector to the satellites, consisting of a collection of vector-
measurement equations, and ℎ 𝑥 	is the vector of true ranges calculated from the position vector
𝑥. The pseudo-range measurement for satellite 𝑙 is denoted by 𝑦 and modeled as
𝑦 = 𝑅 𝑆 + 𝑏 + 𝑣
where 𝑅 𝑆 is a nonlinear function of the receiver location, 𝑏 is the (constant) systematic clock
bias error, and 𝑦 is the random noise. To proceed with determining the pseudo-range, we use the
multivariate Taylor Series Expansion to estimate 𝑅 𝑆
𝑅 𝑆 ≈ 𝑅 𝑆- +
𝜕
𝜕𝑆
𝑅 𝑆- Δ𝑆
where Δ𝑆 = 𝑆 − 𝑆-, and the higher order terms have been discarded. With this expansion, we are
able to linearize 𝑅 𝑆 , turning into the following form through vector derivative identities.
∇2 𝑅 𝑆 =	
𝜕
𝜕𝑆
𝑅 𝑆 =	
∆𝑆4
𝑅(𝑆)
The pseudorange equation can now be expressed as
𝑦 = 𝑅 𝑆- +
∆𝑆4
𝑅(𝑆)
Δ𝑆 + 𝑏 + 𝑣	
It can be seen that as the true range increases, the linearized approximation becomes more
accurate, because the difference term is driven to zero.
Step 2 Algorithm Development:
Now to derive the gradient descent algorithm, we begin with the loss function.
If we take the gradient of l(x), then we also end up with the derivative of l(x) with respect to x
𝑙7
𝑥 =	∇𝑙 𝑥 =	
𝑑
𝑑𝑥
𝑙 𝑥 = −𝐻4
(𝑥)(𝑦 − ℎ 𝑥 )	
where ℎ7
𝑥 = −𝐻4
. If we linearize about the current estimate	𝑥:, we can claim that
allowing us to replace the difference term of x with the gradient of l(x) and completing our
algorithm.
αk is the step size parameter and is critical for good performance, because of the potential
overshoot and instability. For this reason, αk was chosen as 0.25. H(X) is the Jacobian matrix
and can be determined from Rl (S).
Q(X) is chosen as I, because the correction is given along the direction of the steepest descent.
As mentioned before, both algorithms are derived from the loss function, however, for deriving
the Gauss Newton algorithm, we need to expand h(x) about the current estimate of xk, which
yields
and therefore the loss function would be
Minimizing the loss function with respect to xk would yield the unique correction of
which provides a solution to our linearized inverse problem where
is the pseudoinverse H(ˆxk). The iterative algorithm can now be derived as
Similar to before, αk is used as the step-size parameter, but for the Gauss-Newton algorithm, it is
less sensitive. Therefore, it was recommended to have a choice of αk = 1.
While this is the usual case, our problem states that H(X) is a square matrix, implying that it is
invertible, which changes the pseudoinverse in our algorithm to and overall
yielding the Gauss Newton to be
Step 3 Simulation:
Applying these algorithms to accurately determining the location, we first begin by setting the
actual receiver position as S = S0 and satellite positions as Sl with l = 1-4.
A total of four satellites will be used. Our clock bias error,b, is taken as b = 2.35478806 x 10^-3
ER. As for initial estimates, we use
as the vehicle location and b(0) = 0. Since we are dealing with a zero noise case, where vl = 0
and sigma = 0, our pseudorange vector equation becomes
𝑦 = 𝑅 𝑆 + 𝑏 + 𝑣, l = 1,2,3,4
Given the previous steps on linearizing the pseudorange equation and deriving the algorithms, to
begin testing the algorithms, we need to determine a termination condition. The termination
condition is designed to terminate once it reaches past the maximum number of steps. For the
gradient descent, the max iteration was 50,000 while the Gauss Newton was set to 4.
Results
Testing the algorithms with the synthetic data, we can now present our findings through plots of
the loss function l(x), receiver position estimate error in units of meters, and clock bias estimate
error in units of meters as a function of the iteration step. From our results, we will be observing
for the observed convergence rates of the gradient descent verses the Gauss-Newton method.
Final Receiver Position Values
Gradient Descent Gauss Newton
1.00000000000031 0.999999999999999
5.71887423485670e-13 -1.57293703511202e-15
5.74338363736638e-13 -1.42373846869791e-15
Clock Bias Error
0.00234547880742619 0.00234547880679832
Given the vast difference in iterations between the two algorithms, it can be seen that the
Gradient Descent and Gauss Newton both return similar answers. These answers are quite
satisfactory in the accuracy of determining the location, presumably, because there is no noise in
generation of the synthetic data. The noise is meant to represent the modelling errors that occur
in the real world. If we were to consider noise when determining the location, we would have to
approximate the noise with the mean of m, variance s2
, and the normally distributed numbers to
each pseudorange. We would expect that with the noise, we are unable to calculate the accurate
location, because the algorithms are focused on minimizing the loss function and does not
correspond with the location. Luckily, we are not dealing with the noise case and are able to
produce optimistic results.
Focusing on the accuracy between the two algorithms, it could be seen that the Gaussian Newton
is much more superior than the Gradient Descent, as the final position values converge much
faster based on the number of iterations taken to converge. This can be supported through an
analysis of the loss function, position error, and clock bias error plots between the two
algorithms. To begin with, we see that if we take the log of the loss function, the Gauss Newton
converges right at the maximum number of steps, 4, while the Gradient has still not converged
with iterations over 50,000. Minimizing the loss function is important in determining the
location, because it is also minimizing the difference of the pseudorange equation and the vector
of the true range. The minimization brings us to our convergence and location. The position error
also follows a similar minimization structure that will give us an error of how far our estimated
position is from the true position. Within 2 iterations, the Gauss Newton is already approaching a
convergence while the Gradient Descent takes approximately 10,000 iterations, demonstrating
the Gauss Newton’s superiority. Finally, we observe the clock bias error between the two
algorithms to come to our final justification. Already anticipating the clock bias error to also
converge, we can confirm this by observing that the Gauss Newton converges at 3 iterations
while the Gradient converges at 10,000. From all these plot observations, we can justify the
Gaussian Newton algorithm as a more optimal choice than the Gradient Descent algorithm.
Conclusion
From our results, it was determined that the Gaussian Newton algorithm was far superior than
the Gradient Descent. While the Gaussian Newton did involve fairly complicated calculations,
the number of iterations in comparison to the Gradient Descent proves its efficiency by hundreds
or thousands of times better. Having more measurements from each satellite generally reduces
the error in our calculation and brought us to our final results.

More Related Content

What's hot

Obtaining three-dimensional velocity information directly from reflection sei...
Obtaining three-dimensional velocity information directly from reflection sei...Obtaining three-dimensional velocity information directly from reflection sei...
Obtaining three-dimensional velocity information directly from reflection sei...
Arthur Weglein
 
Ch r ssm
Ch r ssmCh r ssm
Ch r ssm
Marta Díaz
 
Response spectrum
Response spectrumResponse spectrum
Response spectrum
abak2
 
Ch30 ssm
Ch30 ssmCh30 ssm
Ch30 ssm
Marta Díaz
 
gravitywaves
gravitywavesgravitywaves
Very brief highlights on some key details 2
Very brief highlights on some key details 2Very brief highlights on some key details 2
Very brief highlights on some key details 2
foxtrot jp R
 
Rich Mathematical Problems in Astronomy
Rich Mathematical Problems in AstronomyRich Mathematical Problems in Astronomy
Rich Mathematical Problems in Astronomy
smiller5
 
Ch02 ssm
Ch02 ssmCh02 ssm
Ch02 ssm
Marta Díaz
 
Ondas Gravitacionales (en ingles)
Ondas Gravitacionales (en ingles)Ondas Gravitacionales (en ingles)
Ondas Gravitacionales (en ingles)
Bishop's University, Canada
 
Review robot-collisions-survey
Review robot-collisions-surveyReview robot-collisions-survey
Review robot-collisions-survey
Hancheol Choi
 
Black hole entropy leads to the non-local grid dimensions theory
Black hole entropy leads to the non-local grid dimensions theory Black hole entropy leads to the non-local grid dimensions theory
Black hole entropy leads to the non-local grid dimensions theory
Eran Sinbar
 
Accuracy of the internal multiple prediction when a time-saving method based ...
Accuracy of the internal multiple prediction when a time-saving method based ...Accuracy of the internal multiple prediction when a time-saving method based ...
Accuracy of the internal multiple prediction when a time-saving method based ...
Arthur Weglein
 
Warrp sesimic_ aghazde
Warrp sesimic_ aghazdeWarrp sesimic_ aghazde
Closed-Form Solutions For Optimum Rotor in Hover and Climb
Closed-Form Solutions For Optimum Rotor in Hover and ClimbClosed-Form Solutions For Optimum Rotor in Hover and Climb
Closed-Form Solutions For Optimum Rotor in Hover and Climb
William Luer
 
Passivity-based control of rigid-body manipulator
Passivity-based control of rigid-body manipulatorPassivity-based control of rigid-body manipulator
Passivity-based control of rigid-body manipulator
Hancheol Choi
 
Cs221 lecture8-fall11
Cs221 lecture8-fall11Cs221 lecture8-fall11
Cs221 lecture8-fall11
darwinrlo
 
Programming project
Programming projectProgramming project
Programming project
MuireannSpain
 
One particle to_onepartlce_scatteringsqrdcpy1
One particle to_onepartlce_scatteringsqrdcpy1One particle to_onepartlce_scatteringsqrdcpy1
One particle to_onepartlce_scatteringsqrdcpy1
foxtrot jp R
 
Wigner Quasi-probability Distribution of the Cosecant-squared Potential Well
Wigner Quasi-probability Distribution of the Cosecant-squared Potential WellWigner Quasi-probability Distribution of the Cosecant-squared Potential Well
Wigner Quasi-probability Distribution of the Cosecant-squared Potential Well
John Ray Martinez
 
Introduction to Quantum Monte Carlo
Introduction to Quantum Monte CarloIntroduction to Quantum Monte Carlo
Introduction to Quantum Monte Carlo
Claudio Attaccalite
 

What's hot (20)

Obtaining three-dimensional velocity information directly from reflection sei...
Obtaining three-dimensional velocity information directly from reflection sei...Obtaining three-dimensional velocity information directly from reflection sei...
Obtaining three-dimensional velocity information directly from reflection sei...
 
Ch r ssm
Ch r ssmCh r ssm
Ch r ssm
 
Response spectrum
Response spectrumResponse spectrum
Response spectrum
 
Ch30 ssm
Ch30 ssmCh30 ssm
Ch30 ssm
 
gravitywaves
gravitywavesgravitywaves
gravitywaves
 
Very brief highlights on some key details 2
Very brief highlights on some key details 2Very brief highlights on some key details 2
Very brief highlights on some key details 2
 
Rich Mathematical Problems in Astronomy
Rich Mathematical Problems in AstronomyRich Mathematical Problems in Astronomy
Rich Mathematical Problems in Astronomy
 
Ch02 ssm
Ch02 ssmCh02 ssm
Ch02 ssm
 
Ondas Gravitacionales (en ingles)
Ondas Gravitacionales (en ingles)Ondas Gravitacionales (en ingles)
Ondas Gravitacionales (en ingles)
 
Review robot-collisions-survey
Review robot-collisions-surveyReview robot-collisions-survey
Review robot-collisions-survey
 
Black hole entropy leads to the non-local grid dimensions theory
Black hole entropy leads to the non-local grid dimensions theory Black hole entropy leads to the non-local grid dimensions theory
Black hole entropy leads to the non-local grid dimensions theory
 
Accuracy of the internal multiple prediction when a time-saving method based ...
Accuracy of the internal multiple prediction when a time-saving method based ...Accuracy of the internal multiple prediction when a time-saving method based ...
Accuracy of the internal multiple prediction when a time-saving method based ...
 
Warrp sesimic_ aghazde
Warrp sesimic_ aghazdeWarrp sesimic_ aghazde
Warrp sesimic_ aghazde
 
Closed-Form Solutions For Optimum Rotor in Hover and Climb
Closed-Form Solutions For Optimum Rotor in Hover and ClimbClosed-Form Solutions For Optimum Rotor in Hover and Climb
Closed-Form Solutions For Optimum Rotor in Hover and Climb
 
Passivity-based control of rigid-body manipulator
Passivity-based control of rigid-body manipulatorPassivity-based control of rigid-body manipulator
Passivity-based control of rigid-body manipulator
 
Cs221 lecture8-fall11
Cs221 lecture8-fall11Cs221 lecture8-fall11
Cs221 lecture8-fall11
 
Programming project
Programming projectProgramming project
Programming project
 
One particle to_onepartlce_scatteringsqrdcpy1
One particle to_onepartlce_scatteringsqrdcpy1One particle to_onepartlce_scatteringsqrdcpy1
One particle to_onepartlce_scatteringsqrdcpy1
 
Wigner Quasi-probability Distribution of the Cosecant-squared Potential Well
Wigner Quasi-probability Distribution of the Cosecant-squared Potential WellWigner Quasi-probability Distribution of the Cosecant-squared Potential Well
Wigner Quasi-probability Distribution of the Cosecant-squared Potential Well
 
Introduction to Quantum Monte Carlo
Introduction to Quantum Monte CarloIntroduction to Quantum Monte Carlo
Introduction to Quantum Monte Carlo
 

Similar to Algorithms for Global Positioning

lost_valley_search.pdf
lost_valley_search.pdflost_valley_search.pdf
lost_valley_search.pdf
manuelabarca9
 
Basicnav
BasicnavBasicnav
Basicnav
Carlos Mateus
 
Optimal Estimations of Photometric Redshifts and SED Fitting Parameters
Optimal Estimations of Photometric Redshifts and SED Fitting ParametersOptimal Estimations of Photometric Redshifts and SED Fitting Parameters
Optimal Estimations of Photometric Redshifts and SED Fitting Parameters
julia avez
 
Causality in special relativity
Causality in special relativityCausality in special relativity
Causality in special relativity
Muhammad Ishaq
 
Erwin. e. obermayer k._schulten. k. _1992: self-organising maps_stationary st...
Erwin. e. obermayer k._schulten. k. _1992: self-organising maps_stationary st...Erwin. e. obermayer k._schulten. k. _1992: self-organising maps_stationary st...
Erwin. e. obermayer k._schulten. k. _1992: self-organising maps_stationary st...
ArchiLab 7
 
MARGINAL PERCEPTRON FOR NON-LINEAR AND MULTI CLASS CLASSIFICATION
MARGINAL PERCEPTRON FOR NON-LINEAR AND MULTI CLASS CLASSIFICATION MARGINAL PERCEPTRON FOR NON-LINEAR AND MULTI CLASS CLASSIFICATION
MARGINAL PERCEPTRON FOR NON-LINEAR AND MULTI CLASS CLASSIFICATION
ijscai
 
An Extension of Linear Inverse Scattering Methods for Absorptive Media to the...
An Extension of Linear Inverse Scattering Methods for Absorptive Media to the...An Extension of Linear Inverse Scattering Methods for Absorptive Media to the...
An Extension of Linear Inverse Scattering Methods for Absorptive Media to the...
Arthur Weglein
 
Simulation of Interplanetary Trajectories Using Forward Euler Numerical Integ...
Simulation of Interplanetary Trajectories Using Forward Euler Numerical Integ...Simulation of Interplanetary Trajectories Using Forward Euler Numerical Integ...
Simulation of Interplanetary Trajectories Using Forward Euler Numerical Integ...
Christopher Iliffe Sprague
 
tw1979 Exercise 3 Report
tw1979 Exercise 3 Reporttw1979 Exercise 3 Report
tw1979 Exercise 3 Report
Thomas Wigg
 
Report Satellite Navigation Systems
Report Satellite Navigation SystemsReport Satellite Navigation Systems
Report Satellite Navigation Systems
Ferro Demetrio
 
Summer 2012 Project Report
Summer 2012 Project ReportSummer 2012 Project Report
Summer 2012 Project Report
Lalit Pradhan
 
1 Lab 3 Newton’s Second Law of Motion Introducti.docx
1 Lab 3 Newton’s Second Law of Motion  Introducti.docx1 Lab 3 Newton’s Second Law of Motion  Introducti.docx
1 Lab 3 Newton’s Second Law of Motion Introducti.docx
mercysuttle
 
Outgoing ingoingkleingordon ghp
Outgoing ingoingkleingordon ghpOutgoing ingoingkleingordon ghp
Outgoing ingoingkleingordon ghp
foxtrot jp R
 
Ill-posedness formulation of the emission source localization in the radio- d...
Ill-posedness formulation of the emission source localization in the radio- d...Ill-posedness formulation of the emission source localization in the radio- d...
Ill-posedness formulation of the emission source localization in the radio- d...
Ahmed Ammar Rebai PhD
 
Numeros complejos y_azar
Numeros complejos y_azarNumeros complejos y_azar
Numeros complejos y_azar
Rodrigo Bulnes Aguilar
 
Sanny omar esa_presentation_no_video
Sanny omar esa_presentation_no_videoSanny omar esa_presentation_no_video
Sanny omar esa_presentation_no_video
Advanced-Concepts-Team
 
Poster
PosterPoster
Poster
Rohan Kapoor
 
Kriging
KrigingKriging
Kriging
Aditi Sarkar
 
Experimental one-way
Experimental one-wayExperimental one-way
Experimental one-way
CAA Sudan
 
Using the Componentwise Metropolis-Hastings Algorithm to Sample from the Join...
Using the Componentwise Metropolis-Hastings Algorithm to Sample from the Join...Using the Componentwise Metropolis-Hastings Algorithm to Sample from the Join...
Using the Componentwise Metropolis-Hastings Algorithm to Sample from the Join...
Thomas Templin
 

Similar to Algorithms for Global Positioning (20)

lost_valley_search.pdf
lost_valley_search.pdflost_valley_search.pdf
lost_valley_search.pdf
 
Basicnav
BasicnavBasicnav
Basicnav
 
Optimal Estimations of Photometric Redshifts and SED Fitting Parameters
Optimal Estimations of Photometric Redshifts and SED Fitting ParametersOptimal Estimations of Photometric Redshifts and SED Fitting Parameters
Optimal Estimations of Photometric Redshifts and SED Fitting Parameters
 
Causality in special relativity
Causality in special relativityCausality in special relativity
Causality in special relativity
 
Erwin. e. obermayer k._schulten. k. _1992: self-organising maps_stationary st...
Erwin. e. obermayer k._schulten. k. _1992: self-organising maps_stationary st...Erwin. e. obermayer k._schulten. k. _1992: self-organising maps_stationary st...
Erwin. e. obermayer k._schulten. k. _1992: self-organising maps_stationary st...
 
MARGINAL PERCEPTRON FOR NON-LINEAR AND MULTI CLASS CLASSIFICATION
MARGINAL PERCEPTRON FOR NON-LINEAR AND MULTI CLASS CLASSIFICATION MARGINAL PERCEPTRON FOR NON-LINEAR AND MULTI CLASS CLASSIFICATION
MARGINAL PERCEPTRON FOR NON-LINEAR AND MULTI CLASS CLASSIFICATION
 
An Extension of Linear Inverse Scattering Methods for Absorptive Media to the...
An Extension of Linear Inverse Scattering Methods for Absorptive Media to the...An Extension of Linear Inverse Scattering Methods for Absorptive Media to the...
An Extension of Linear Inverse Scattering Methods for Absorptive Media to the...
 
Simulation of Interplanetary Trajectories Using Forward Euler Numerical Integ...
Simulation of Interplanetary Trajectories Using Forward Euler Numerical Integ...Simulation of Interplanetary Trajectories Using Forward Euler Numerical Integ...
Simulation of Interplanetary Trajectories Using Forward Euler Numerical Integ...
 
tw1979 Exercise 3 Report
tw1979 Exercise 3 Reporttw1979 Exercise 3 Report
tw1979 Exercise 3 Report
 
Report Satellite Navigation Systems
Report Satellite Navigation SystemsReport Satellite Navigation Systems
Report Satellite Navigation Systems
 
Summer 2012 Project Report
Summer 2012 Project ReportSummer 2012 Project Report
Summer 2012 Project Report
 
1 Lab 3 Newton’s Second Law of Motion Introducti.docx
1 Lab 3 Newton’s Second Law of Motion  Introducti.docx1 Lab 3 Newton’s Second Law of Motion  Introducti.docx
1 Lab 3 Newton’s Second Law of Motion Introducti.docx
 
Outgoing ingoingkleingordon ghp
Outgoing ingoingkleingordon ghpOutgoing ingoingkleingordon ghp
Outgoing ingoingkleingordon ghp
 
Ill-posedness formulation of the emission source localization in the radio- d...
Ill-posedness formulation of the emission source localization in the radio- d...Ill-posedness formulation of the emission source localization in the radio- d...
Ill-posedness formulation of the emission source localization in the radio- d...
 
Numeros complejos y_azar
Numeros complejos y_azarNumeros complejos y_azar
Numeros complejos y_azar
 
Sanny omar esa_presentation_no_video
Sanny omar esa_presentation_no_videoSanny omar esa_presentation_no_video
Sanny omar esa_presentation_no_video
 
Poster
PosterPoster
Poster
 
Kriging
KrigingKriging
Kriging
 
Experimental one-way
Experimental one-wayExperimental one-way
Experimental one-way
 
Using the Componentwise Metropolis-Hastings Algorithm to Sample from the Join...
Using the Componentwise Metropolis-Hastings Algorithm to Sample from the Join...Using the Componentwise Metropolis-Hastings Algorithm to Sample from the Join...
Using the Componentwise Metropolis-Hastings Algorithm to Sample from the Join...
 

Recently uploaded

Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 

Recently uploaded (20)

Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 

Algorithms for Global Positioning

  • 2. Introduction The Global Positioning System (GPS) is a network of dozens of satellites that hover out in space with the purpose of allowing people to identify their location on earth. Signals from the GPS satellites are transmitted to a GPS receiver on earth’s surface to pinpoint the satellite’s location in space. With knowledge of the satellite’s orbit and utilizing time information, a GPS receiver is able to determine its own location under the condition that four satellites are within range. However, due to the inaccuracy of the receiver’s clock when utilizing commercial GPS units for low cost, the distances calculated, called pseudo-ranges, are not accurate. Ideally, these four pseudo-ranges should intersect at a single point for a true receiver-satellite distance, but the unsynchronized clocks prevent this. To accurately determine a location, a few algebraic computations are necessary to make the adjustment for the imperfect information. These algebraic computations consist of deriving, implementing, and testing two algorithms, the Gradient Descent and Gauss Newton algorithms. Throughout this project, we will be exploring how these algorithms contribute to resolving the clock error when determining the true pseudo- range under noiseless conditions. Procedure Step 1 Linerazation: Both algorithms begin with minimizing the nonlinear weighted least squares loss function: given by where 𝑦 is the pseudo-range vector to the satellites, consisting of a collection of vector- measurement equations, and ℎ 𝑥 is the vector of true ranges calculated from the position vector 𝑥. The pseudo-range measurement for satellite 𝑙 is denoted by 𝑦 and modeled as 𝑦 = 𝑅 𝑆 + 𝑏 + 𝑣 where 𝑅 𝑆 is a nonlinear function of the receiver location, 𝑏 is the (constant) systematic clock bias error, and 𝑦 is the random noise. To proceed with determining the pseudo-range, we use the multivariate Taylor Series Expansion to estimate 𝑅 𝑆 𝑅 𝑆 ≈ 𝑅 𝑆- + 𝜕 𝜕𝑆 𝑅 𝑆- Δ𝑆 where Δ𝑆 = 𝑆 − 𝑆-, and the higher order terms have been discarded. With this expansion, we are able to linearize 𝑅 𝑆 , turning into the following form through vector derivative identities. ∇2 𝑅 𝑆 = 𝜕 𝜕𝑆 𝑅 𝑆 = ∆𝑆4 𝑅(𝑆) The pseudorange equation can now be expressed as
  • 3. 𝑦 = 𝑅 𝑆- + ∆𝑆4 𝑅(𝑆) Δ𝑆 + 𝑏 + 𝑣 It can be seen that as the true range increases, the linearized approximation becomes more accurate, because the difference term is driven to zero. Step 2 Algorithm Development: Now to derive the gradient descent algorithm, we begin with the loss function. If we take the gradient of l(x), then we also end up with the derivative of l(x) with respect to x 𝑙7 𝑥 = ∇𝑙 𝑥 = 𝑑 𝑑𝑥 𝑙 𝑥 = −𝐻4 (𝑥)(𝑦 − ℎ 𝑥 ) where ℎ7 𝑥 = −𝐻4 . If we linearize about the current estimate 𝑥:, we can claim that allowing us to replace the difference term of x with the gradient of l(x) and completing our algorithm. αk is the step size parameter and is critical for good performance, because of the potential overshoot and instability. For this reason, αk was chosen as 0.25. H(X) is the Jacobian matrix and can be determined from Rl (S). Q(X) is chosen as I, because the correction is given along the direction of the steepest descent. As mentioned before, both algorithms are derived from the loss function, however, for deriving the Gauss Newton algorithm, we need to expand h(x) about the current estimate of xk, which yields and therefore the loss function would be Minimizing the loss function with respect to xk would yield the unique correction of which provides a solution to our linearized inverse problem where
  • 4. is the pseudoinverse H(ˆxk). The iterative algorithm can now be derived as Similar to before, αk is used as the step-size parameter, but for the Gauss-Newton algorithm, it is less sensitive. Therefore, it was recommended to have a choice of αk = 1. While this is the usual case, our problem states that H(X) is a square matrix, implying that it is invertible, which changes the pseudoinverse in our algorithm to and overall yielding the Gauss Newton to be Step 3 Simulation: Applying these algorithms to accurately determining the location, we first begin by setting the actual receiver position as S = S0 and satellite positions as Sl with l = 1-4. A total of four satellites will be used. Our clock bias error,b, is taken as b = 2.35478806 x 10^-3 ER. As for initial estimates, we use as the vehicle location and b(0) = 0. Since we are dealing with a zero noise case, where vl = 0 and sigma = 0, our pseudorange vector equation becomes 𝑦 = 𝑅 𝑆 + 𝑏 + 𝑣, l = 1,2,3,4 Given the previous steps on linearizing the pseudorange equation and deriving the algorithms, to begin testing the algorithms, we need to determine a termination condition. The termination condition is designed to terminate once it reaches past the maximum number of steps. For the gradient descent, the max iteration was 50,000 while the Gauss Newton was set to 4. Results Testing the algorithms with the synthetic data, we can now present our findings through plots of the loss function l(x), receiver position estimate error in units of meters, and clock bias estimate error in units of meters as a function of the iteration step. From our results, we will be observing for the observed convergence rates of the gradient descent verses the Gauss-Newton method.
  • 5. Final Receiver Position Values Gradient Descent Gauss Newton 1.00000000000031 0.999999999999999 5.71887423485670e-13 -1.57293703511202e-15 5.74338363736638e-13 -1.42373846869791e-15 Clock Bias Error 0.00234547880742619 0.00234547880679832 Given the vast difference in iterations between the two algorithms, it can be seen that the Gradient Descent and Gauss Newton both return similar answers. These answers are quite satisfactory in the accuracy of determining the location, presumably, because there is no noise in generation of the synthetic data. The noise is meant to represent the modelling errors that occur in the real world. If we were to consider noise when determining the location, we would have to
  • 6. approximate the noise with the mean of m, variance s2 , and the normally distributed numbers to each pseudorange. We would expect that with the noise, we are unable to calculate the accurate location, because the algorithms are focused on minimizing the loss function and does not correspond with the location. Luckily, we are not dealing with the noise case and are able to produce optimistic results. Focusing on the accuracy between the two algorithms, it could be seen that the Gaussian Newton is much more superior than the Gradient Descent, as the final position values converge much faster based on the number of iterations taken to converge. This can be supported through an analysis of the loss function, position error, and clock bias error plots between the two algorithms. To begin with, we see that if we take the log of the loss function, the Gauss Newton converges right at the maximum number of steps, 4, while the Gradient has still not converged with iterations over 50,000. Minimizing the loss function is important in determining the location, because it is also minimizing the difference of the pseudorange equation and the vector of the true range. The minimization brings us to our convergence and location. The position error also follows a similar minimization structure that will give us an error of how far our estimated position is from the true position. Within 2 iterations, the Gauss Newton is already approaching a convergence while the Gradient Descent takes approximately 10,000 iterations, demonstrating the Gauss Newton’s superiority. Finally, we observe the clock bias error between the two algorithms to come to our final justification. Already anticipating the clock bias error to also converge, we can confirm this by observing that the Gauss Newton converges at 3 iterations while the Gradient converges at 10,000. From all these plot observations, we can justify the Gaussian Newton algorithm as a more optimal choice than the Gradient Descent algorithm. Conclusion From our results, it was determined that the Gaussian Newton algorithm was far superior than the Gradient Descent. While the Gaussian Newton did involve fairly complicated calculations, the number of iterations in comparison to the Gradient Descent proves its efficiency by hundreds or thousands of times better. Having more measurements from each satellite generally reduces the error in our calculation and brought us to our final results.