Multipath acoustic navigation
Full text
MULTIPATH ACOUSTIC NAVIGATION DIOGO MINHAVA LOPES DISSERTAÇÃO DE MESTRADO APRESENTADA À FACULDADE DE ENGENHARIA DA UNIVERSIDADE DO PORTO EM MIEEC - MESTRADO INTEGRADO EM ENGENHARIA ELECTROTÉCNICA E DE COMPUTADORES M 2014
FACULDADE DE ENGENHARIA DA UNIVERSIDADE DO PORTO Multipath Acoustic Navigation Diogo Minhava Lopes FOR JURY EVALUATION Mestrado Integrado em Engenharia Eletrotécnica e de Computadores Supervisor: Professor Aníbal Castilho Matos Co-Supervisor: Professor José Carlos Alves July 31, 2014
c Diogo Minhava Lopes, 2014
In loving memory of my Mother. i
Resumo Debaixo de água, as ondas eletromagnéticas não se propagam. Este facto leva a um problem sério para a robótica subquática: localizar veículos autónomos neste ambiente é muito desafiante, uma vez que sistemas como o GPS não podem ser usados. De qualquer forma, para um veículo autónomo ser capaz de navegar debaixo de água, precisa de se localizar. Assim, ao longo dos anos têm sido desenvolvidos sistemas que, em vez de utilizarem ondas eletromagnéticas, utilizam som para transmitir, no geral, sinais de baixo de água. Estes sistemas, quer sejam utilizados para localização ou navegação, sofrem quase sempre de múltiplos ecos, um fenómeno geralmente considerado mau. Um exemplo de vida real deste fenómeno são os ecos que nos fazem ouvir a mesma voz mais do que uma vez. Debaixo de água, quando um som é transmitido, navega para o destino por mais do que um caminho. Existe um caminho directo e existem caminhos reflectidos na superfície, no fundo, e em qualquer outro objecto que encontre. O resultado final é que, no recetor, temos várias cópias do mesmo sinal transmitido, todas atrasadas de um determinado tempo. O objetivo desta tese é o de perceber como, se for possível, é que se pode tirar partido destes múltiplos caminhos para realizar localização. Mais concretamente, será possível, utilizando apenas um transmissor, localizar o recetor em relação a ele? Se eliminarmos os múltiplos caminhos, a resposta é obviamente não. Com um só caminho, a única informação que se pode retirar é a distância entre transmissor e receptor. No entanto, se se conseguir identificar vários caminhos que a onda sonora tenha percorrido, talvez seja possível. A abordagem tomada começou por avaliar vários tipos de sinais e modulações para perceber quais as características que um sinal transmitido deve ter para facilitar esta tarefa. A seguir, foi construído um sistema de transmissão que permite, de forma fácil e flexível, recolher dados debaixo de água. De seguida, desenvolveu-se um simulador de acústica subaquática sobre o qual se implementou um algoritmo de localização relativa. O simulador foi usado para avaliar estatisticamente o algoritmo, para poder posteriormente testá-lo em dados reais. Concluí-se com uma avaliação do trabalho e considerações sobre trabalho futuro. iii
iv
Abstract Underwater, electromagnetic waves do not propagate. This facts leads to a serious problem in underwater robotics: localising robots underwater is very challenging, since it is not possible to use systems such as the GPS. Nevertheless, for a robot to be able to successfully navigate underwater, it still needs to locate itself. With this in mind, over the years the tendency has been to shift from electromagnetic waves to sound waves when trying to, in general, transmit signals underwater. These systems, whether intended for localisation or communication, typically suffer from multipath, a phenomenon usually regarded as bad. A typical real life multipath example is an echo, that makes us listen to the same voice more than once. Underwater, when sound is transmitted, it travels to the target by more than one path. There is a direct path, there are paths that have been reflected on the surface or on the bottom or on any other object. The end result is that at the receiver we have not one, but several copies of the same signal transmitted, all of them delayed by a different amount of time. The purpose of this thesis is to understand how, if it is possible, can we take advantage of these multiple paths to perform localisation. Specifically, is it possible, using only one transmitter, to localise the receiver with respect to it? If we eliminate multipath, the answer is obviously no. With one path alone, the only information possible to get is the distance between transmitter and receiver, at best. However, if we can identify the several paths that the sound wave has travelled, it might be possible. The approach taken is to firstly evaluate several types of signals and modulations to determine the best characteristics a signal should have to help us with this task. We then build an underwater transmission system to easily and flexibly collect data, and we develop an underwater acoustic simulator, on top of which a localisation algorithm is implemented. We use this simulator to statistically evaluate the algorithm, and proceed to test the algorithm on real data. We end by evaluating the work done, and give considerations on what should follow after. v
xii CONTENTS 7 Localisation Algorithm 35 7.1 TheAlgorithm ................................... 35 7.2 Parameters...................................... 37 7.3 Results........................................ 39 7.4 Shortcomings and Optimisations . . . . . . . . . . . . . . . . . . . . . . . . . . 40 8 Field Tests 45 8.1 22/May/2014 .................................... 45 8.2 SecondTest-3/Jun/2014.............................. 45 8.3 ThirdTest-20/Jun/2014 .............................. 46 8.4 FourthTest-11/Jul/2014.............................. 46 9 Conclusions 49 9.1 FinalAssessment .................................. 49 9.2 FutureWork..................................... 50 References 51
List of Figures 2.1 Rays calculated by Bellhop in a flat deep water waveguide. Taken from [1]. . . . 7 2.2 Multipath example in deep water. . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.3 Multipath example in shallow water. . . . . . . . . . . . . . . . . . . . . . . . . 9 2.4 A ray refracting through a stack of layers. Taken from [2]............. 10 2.5 Geometrical approach to obtain an eigenray interpolating the properties of two adjacentrays. .................................... 11 2.6 An example of 2D localisation using LBL. . . . . . . . . . . . . . . . . . . . . . 14 3.1 Directpathonly.................................... 18 3.2 Direct path and surface reflection. . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.3 Direct path, surface reflection and bottom reflection. . . . . . . . . . . . . . . . . 19 4.1 BFSK modulator block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.2 BPSK modulator block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.3 MLS generator block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.4 Gold sequence generator block diagram. . . . . . . . . . . . . . . . . . . . . . . 23 5.1 Correlation using a MLS with BFSK modulation. . . . . . . . . . . . . . . . . . 27 5.2 Correlation using a MLS with BPSK modulation. . . . . . . . . . . . . . . . . . 27 5.3 Correlation using a Gold sequence with BFSK modulation. . . . . . . . . . . . . 28 5.4 Correlation using a Gold sequence with BPSK modulation. . . . . . . . . . . . . 28 6.1 Simulationprocess.................................. 30 6.2 Ray tracing for different arclength steps. . . . . . . . . . . . . . . . . . . . . . . 32 6.3 Anglespanconcept.................................. 32 7.1 Localisationalgorithm................................ 35 7.2 Relative localisation algorithm. . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 7.3 Histogram for er. .................................. 41 7.4 Histogram for ez. .................................. 41 7.5 Unwanted summetry in rays. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 8.1 Spectrum of the received MLS sequence modulated in BPSK in the pool. . . . . 47 8.2 Section of the correlation for an MLS transmitted using BFSK at the Marina in Leixões........................................ 47 8.3 Cross correlation with a signal transmitted in Matosinhos on the 11/Jul/2014. . . 47 xiii
xiv LIST OF FIGURES
List of Tables 4.1 Comparison between FPGAs and Microcontrollers . . . . . . . . . . . . . . . . 22 7.1 Simulationresults. ................................. 39 xv
xvi LIST OF TABLES
List of Acronyms AUV Autonomous Underwater Vehicle BFSK Binary Frequency Shift Keying BPSK Binary Phase Shift Keying BSD Berkeley Software Distribution CSS Complimentary Sets of Sequences DFT Discrete Fourier Transform DVL Doppler Velocity Log FFT Fast Fourier Transform FPGA Field Programmable Gate Array GPS Global Positioning System HDL Hardware Description Language INS Inertial Navigation System LBL Long Baseline MLS Maximum Length Sequence PRN Pseudorandom Noise RTC Real Time Clock SBL Short Baseline USBL Ultra Short Baseline xvii
Chapter 1 Introduction Underwater acoustics is an extensively studied subject when dealing with underwater robotics. Since electromagnetic waves are very strongly attenuated in this medium, the alternative researched and implemented over the last decades has been to use sound waves to replace electromagnetic ones. There are two big areas for which this is required: communication, that is, when we want two AUVs, for example, to exchange information, and localisation, that is, when we need to have an underwater vehicle estimate its position with respect to some transmitter placed at known coordinates. Whether we’re interested in communicating or localising, however, there is a phenomenon that typically affects results in a very negative way: multipath. When we transmit a signal, whether acoustic or electromagnetic, whether underwater or in a street with lots of buildings, it will travel in every direction and reflect off surfaces it finds in the way. The end result at the receiver is that it gets not only the signal that travelled directly to it, but every reflection that finds its way to the place where it is located. This is known to affect GPS performance severely in big cities, for example, where large structures exist. Underwater, multipath is one of the major unwanted issues that cripples acoustic systems. These systems typically use signal processing techniques to eliminate the effects that the multiple paths cause. The purpose of this thesis is to do precisely the opposite. We’re interested in studying the usefulness of multipath. Typical localisation systems for AUVs include the LBL. In these systems, several transmitters are placed at known positions and transmit different signals each, at different, previously established, times. Upon receiving each one of them, the AUV calculates the distance to the respective transmitter, and knowing the distance to every transmitter it estimates its own position. We’re looking for something different, however. If the signal sent by a signal transmitter arrives at several different times at the AUV, it might be possible to figure out the paths that each reflected signal took to arrive. If this is, in fact, possible, then it is possible to localise the AUV with respect to the sender, using only one signal and one fixed position transmitter, and this is precisely what we propose to do. The rest of this document is organised in 8 chapters. First, in the state of the art chapter, we present some of the work that is known on underwater acoustics and localisation. We then proceed to describe our problem in more detail, and give some ideas on how to approach it. The rest of 1
2Introduction the thesis is developed upon almost entirely on these two chapters. We begin by describing the acoustic transmission system used to perform underwater tests. We follow with a brief study of different types of signals and modulations to determine the best options for our transmitted signals of choice. The goal is to find a signal that, when received several times at a target with different delays, makes it easy to identify these delays individually. The chapter following describes an underwater simulator built, with the purpose of analysing the algorithm detailed in the chapter 7. We then show results of real tests performed and finally discuss our work and present some considerations on what should follow.
Chapter 2 State of the Art In this chapter an overview of the current state of the art related to the subject of study is presented. In the first section, the basic acoustic properties of the ocean are discussed. The purpose is to show that, even at a glance, sound transmission in this medium is far from being a trivial matter. The first object of discussion is sound speed and how it changes with respect to, fundamentally, three quantities: temperature, salinity and pressure. While salinity can usually be considered constant in a given area, the same is not valid for temperature and pressure. An overview of how the first changes with depth is given. As for pressure, it can be related to depth using the Leroy-Parthiot equation, for example [3]. Transmission loss and Doppler effect both play important roles in understanding this subject, so they are discussed separately. With the basics gone through, some model is required to fully understand underwater acoustic wave propagation. Due to it’s intuitive nature, it’s simplicity and it’s natural adequacy to localisation problems, ray tracing is the model we choose to focus on. Other models are briefly mentioned but with no intent of providing much detail. After going through ocean acoustics, it is important to discuss localisation and navigation, which is the main purpose of this work. Extensive research has been done on these matters, and while a complete discussion is by no means be presented, the fundamental ideas for a basic understanding of what follows are discussed. 3
10 State of the Art Figure 2.4: A ray refracting through a stack of layers. Taken from [2] For an origin depth z0and corresponding declination angle θ0, the ray angle at a specified receiver depth zris given by θ(zr) = arccosk(z0) k(zr)cosθ(z0).(2.7) Considering Fig.2.4 again and letting rbe the horizontal axis and zthe vertical one (depth), and considering the limit case where the number of layers is infinite, we can write the following differential equation dr dz =cotθ(z),(2.8) which can be integrated to yield r(z) = Zzr z0 cotθ(z)dz.(2.9) When integrating the ray path, care should be taken so that when the ray becomes horizontal, the integration step dz becomes negative. While the geometrical approach just described has been used with some success [6], finding eigenrays by interpolating the properties of two adjacent rays that suffer the same number of rebounds such that the receiver is in the middle of them (see Fig. 2.5), the classical, more formal approach starts with the Helmholtz equation in Cartesian coordinates x= (x,y,z): ∇2p+ω2 c2(x)=−δ(x−x0),(2.10) where c(x)is the speed of sound and ωis the angular frequency of the source located at x0. A full derivation of the ray equations from this starting point can be found in [2]. These are typically
2.1 Ocean Acoustics 11 Figure 2.5: Geometrical approach to obtain an eigenray interpolating the properties of two adjacent rays. written in cylindrical coordinates: dr ds =cξ(s),dξ ds =−1 c2 ∂c ∂r,(2.11) dz ds =cζ(s),dζ ds =−1 c2 ∂c ∂z,(2.12) where [r(s),z(s)] is the ray trajectory, sis the arc length along the ray and, since the tangent vector to such a curve is given by [dr/ds,dz/ds], the pair c[ξ(s),ζ(s)] represents the tangent vector to the ray. The most common way of solving these equations is by using standard numerical integrators. One of the simplest of such methods is the Euler’s method. Though it’s a very simple first order method, it is very inefficient and yields an error per step proportional to the square of the step size. A second order Runge Kutta method might be more appropriate when accuracy is needed. In the case of the Bellhop program [1], a two step polygon method is used. Finally, it is worth noting that, although standard codes exist to solve the ray equations, the sound speed profile of a particular section of the ocean is not typically known. A further issue has to do with the reflections on the surface and the bottom of our waveguide. When this happens, the integration must then be restarted. While this might be straightforward for surface reflections, it is far from being trivial when bottom reflections must be considered, since the bathymetry of a given area it not likely to be available. It is also worth noting that currently almost all methods for modelling the acoustic underwater channel are two dimensional, considering only range and depth. The assumption made is that a sound ray launched into a particular vertical plane remains in that plane over the entire transmission path [17]. This assumption is reasonable if we take into account the fact that horizontal sound speed variations are negligible. In shallow waters, however, this assumption may not be accurate due to bottom interactions, since the acoustic wavelength might be comparable to the ocean depth. Under these conditions, a reflection in the bottom of the ocean (which will not always be flat) will cause rays to reflect to different vertical planes.
12 State of the Art 2.1.5.1 Problems with Ray Theory Although ray theory is widely used and provides good results under certain conditions, it suffers from some problems that make it diverge from experimental results. [4] provides a good summary on the efforts developed to understand these divergences, the first of which is diffraction. If we consider sound propagating from a point below which sound speed decreases, a shadow zone into which no rays penetrate appears [18]. The problem with this is that, such as light, shadow boundaries are not sharp. Light is diffracted around obstacles and so is sound. However, diffraction effects become bigger with increasing wavelengths (and consequently so does ray theory), and since for localisation applications we’re mostly interested in high frequency signals, this effect is bounded. Scattering effects are also not predicted by ray theory, but they may be responsible for the discrepancies shown with respect to experimental results. In the same fashion that sunlight scatters with raindrops to create rainbows, sound waves are known to suffer from scattering in the sea. Finally, even though the horizontal temperature gradient in the ocean is much smaller than the vertical one, it is not zero. Although this is mentioned by [4], more recent works such as [2] assume a zero gradient. The results achieved in, for example, [6], show that this is a reasonable assumption to make in most conditions. A more serious issue found in ray theory is the existence of singularities known as caustics [9]. According to ray theory, at these points ray intensity goes to infinity, which is obviously false. A workaround for this problem is presented in [2]. 2.1.6 Other Models Although ray tracing is a reasonable model that is still widely used, it is important to recognise that other models to describe sound waves underwater exist. Although different, they all have the same thing in common: their starting point. Every model naturally starts from the wave equation, and they differ essentially in the approach chosen to solve it. They furthermore assume harmonic solutions to this equation to obtain the Helmholtz equation, which is the one actually solved. There are fundamentally five methods to solve this equation [7,2], which are: ray methods,wavenumber integration techniques, normal modes,parabolic equations and finite differences and finite elements approaches. [2] gives a very detailed analysis of each one of these methods. As argued before, ray theory was the approach chosen for this work due to it’s adequacy to localisation problems, where the frequencies used are typically high.
2.2 Localisation and Navigation 13 2.2 Localisation and Navigation Localisation, in terms of mobile robots, is about the robot being able to determine where it is with respect to some reference. It is key for successful navigation and several challenges exist in this area. When considering underwater localisation, knowing where the robot is is critical to ensure that correct and repeatable measurements are being taken for, for example, reef surveying [19]. Good information on localisation is also essential for safe operation and recovery of an AUV [20]. The three primary methods for AUV navigation are dead-reckoning and inertial navigation, acoustic navigation and geophysical navigation [20]. Our focus is on acoustic navigation. In the end a brief description of sensor fusion and the Kalman filter is given. Before going into detail about these techniques, though, some challenges of localisation in general are first discussed. 2.2.1 Sensor Noise and Aliasing This section is mostly based on [21] who presents a very good discussion on this subject. The first thing to notice in our particular environment is that there is no access to a GPS system, since water is essentially opaque to electromagnetic waves. Even if we had access to GPS positioning, what we’re interested in most of the times is actually the relative position with respect to some object (a dam, for example) rather than the absolute position with respect to the Earth’s reference frame. Sensors are how a robot perceives it’s environment, so the correctness of their readings must be understood. Every sensor is affected by noise that limits the consistency of their readings, and the source of this noise cannot usually be compensated for. A typical case is the one of a sonar. When a sonar emits a sound towards a surface, it’s reflection will not be perfect, and some of the energy will not return. The distortion that the echoed sound suffers depends on a number of things, such as the roughness of the material it reflected on, for example. Multipath can also interfere with sonar readings. Other factors, such as variations on the speed of sound, introduce noise that cannot be factored out. The consequence of this is that noise reduces the amount of useful information that we can obtain from sensors. The solution is generally always taking multiple readings and combine information from several sensors while statistically the error of the readings. Sensor aliasing is a different but also important phenomenon that occurs frequently with sensor readings. Even without the presence of noise, aliasing can be a limiting factor when trying to localise a robot. The problem is that sensors will naturally give the same reading for different situations, so usually several readings from different sensors are required to uniquely determine a robot’s position. 2.2.2 Inertial Navigation One of the most common localisation and navigation techniques is based on integrating acceleration and velocity to obtain position. This is known as dead-reckoning. Common sensors merged to do this include accelerometers, gyroscopes and Doppler velocity logs [20,22]. Integrating inertial information with information from different sensors using a Kalman filter is a very common
14 State of the Art Figure 2.6: An example of 2D localisation using LBL. approach which largely improves performance over dead-reckoning alone. Two problems with relying on inertial navigation are: •Initialization of the system; •Position drift. The first problem has to do with the fact that, if we rely exclusively on an inertial navigation system (INS), we must be able to somehow determine where we’re starting, otherwise integrating velocity doesn’t help in determining the robots position. The second problem is related to the integration that has to be performed constantly. Since inertial sensors suffer from noise as any other sensor, when integrating their readings to obtain position we’re actually integrating error as well, which accumulates and translates into a position drift that grows bigger with time and must somehow be bounded. A common way of bounding this error is to have to vehicle come near the surface to get a position fix from, for example, a GPS receiver [20]. 2.2.3 Acoustic Navigation There are typically three types of systems that have been used for acoustic positioning: long baseline (LBL) or short baseline (SBL) and ultra-short baseline (USBL) [20]. They provide low frequency measurements that can be used to update predictions obtained by an INS using, typically, a Kalman filter. [22] employs this strategy. In LBL systems, an array of transponders with known locations is deployed. Periodically, the AUV send a ping and the transponders respond to this ping. From this response, the AUV can calculate the time of flight to every transponder and either calculate it’s position by intersecting spheres (or circumferences in a 2D scenario shown in Fig. 2.6) or use the raw time of flight measurements directly in a Kalman filter [20,23]. SBL systems similarly calculate the target’s distance to several transducers. USBL systems work in a different way: they have receiver arrays that can measure the angle and the range to an acoustic beacon [20]. A key issue in these systems is the problem of multipath interference, which may lead to an incorrect time of flight calculation.
2.2 Localisation and Navigation 15 2.2.4 Geophysical Navigation [20] provides a brief discussion on geophysical navigation. This type of navigation requires a known map of the environment including elements such as bathymetry and magnetic field. Matching sensor data with known data it is possible to develop navigation systems. However, no details will be given here about these techniques since they are out of the scope of our work. 2.2.5 Time of Flight calculation An important issue when using acoustic systems like LBL and USBL is how to calculate times of flight of received signals. A first approach is to actually measure the time from the moment the signal is sent to the moment it is received. This is a very poor approach, however, since received signals are very prone to be affected by noise, so there is no reliable way of determining when we actually started receiving it. The typical approach is to, instead, keep a local copy of the signal that’s received and cross correlate it with the one actually received. It is then an easy matter to get the time of flight from the correlation peak. Such an approach is taken in, for example, [6], and is the one typically used. Signals should, however, be chosen with some care. A receiver will get the following signal: r(t) = α0b0(t−t0)+α1b1(t−t1)+...+αnbn(t−tn),(2.13) where αiis some attenuation. We must then guarantee that the signals used exhibit good cross correlation properties. This means that the cross correlation between the sent and received signal should have very distinct peaks that tell us the times different rays have travelled. [6] uses what is known as Complementary Sets of Sequences, presented in [24], to code the signals used. Other options include PRN sequences, most notably Gold and Kasami codes. 2.2.6 Sensor Fusion and the Kalman Filter Sensor fusion is the group of techniques that merge information from several different sensors in order to obtain a better estimate than that that would be obtained by considering only single independent measurements. [25] presented one of the most widely used algorithms ever for performing this task, famously known as the Kalman filter. A very brief description of what it does is now given, without going into much detail. A simple introduction that provides the material required for implementation is given in [26]. First of all, we’re trying to estimate a certain state vector x= [x1,x2,...,xn]. A covariance matrix representing the error associated with this state vector is also maintained. The state vector typically includes the robot’s position but it may also include any other state variable of interest, such as a map representation. It is important to be aware that the Kalman filter assumes that all noise is Gaussian. In practice, however, it is used whether or not this is exactly true. A typical case where noise is not Gaussian is the GPS. The algorithm is recursive and consists of essentially two steps: a prediction and a correction. It is particularly suited to the case where we have high
16 State of the Art frequency sensors such as accelerometers that can be integrated to predict a position and low frequency sensors like GPS or LBL to correct the prediction made. A simple proof that the resulting error of combining these two steps is better than using either one of them separately is given in [21]. One of the most interesting aspects of the algorithm is that it keeps track of the errors of the state estimations (by means of the covariance matrix). This can be very useful in decision making by an AUV: it can decide whether or not it is safe to perform a certain action based on how certain it is that its position is the one on the current state vector, for example.
Chapter 3 The Problem The problem we’re interested in is the one of performing the relative localisation of an underwater receiver (an AUV, for example) with respect to some transmitter. As we’ve seen, multipath makes underwater communication challenging. The goal of this work is, however, understanding how we can use these multiple paths sound takes to help us localise the target and ultimately develop a system that performs this task. This section is dedicated to explaining how this might be possible and discuss some issues that may appear from trying to perform such a task. The approach taken here is to consider a single transmitter and a single receiver and explore possible solutions to the problem by firstly considering only a direct sound path, then a surface reflection and finally a surface and a bottom reflection. We assume that there is a way of calculating the time of flight for each ray. Considerations on how to do this are given in section 2.2. We also assume for now that accurate ray tracing has been performed so we have information on every eigenray, and that we can distinguish these eigenrays from each other at the receiver. Direct Path Considering only the direct path from sender to receiver is the simplest case, and it is shown in Fig. 3.1. In this case, the only information we have is the ray length and time of flight. It is possible to obtain the distance between the transmitter and the receiver but nothing else, as shown by the dashed line. In reality, the transmitter can be anywhere on the boundaries of a sphere centred in the source with radius equal to this distance measured. In this two dimensional problem considered, however, we consider that it lays somewhere on the circumference of the same radius. Surface Reflection When we consider one surface reflection added to the direct path, and if we add the assumption that sound propagates in straight lines (which is approximately true for shallow water), we have the situation illustrated in Fig. 3.2. If we assume that we have information on both rays that hit the 17
18 The Problem Figure 3.1: Direct path only. target, estimating its position is a trivial matter. However, scenarios are possible where two rays alone yield more than valid solution, so more information might be required. Surface and Bottom Reflections The final scenario considered is shown in Fig. 3.3. We again assume we know the distance between the reflection point on the bottom of the ocean and the transmitter. Having this information the problem is straightforwardly solved.
The Problem 19 Figure 3.2: Direct path and surface reflection. Figure 3.3: Direct path, surface reflection and bottom reflection.
26 Studied Signals 5.2 MLS The sequence used has the generator polynomial x4+x+1 with initial states of the shift register equal to 1011. The signal is 10 ms long with symbol time of 100 µs. Results for correlation using BFSK and BPSK are shown in Figs. 5.1 and 5.2. Results are, as expected, much better. Nevertheless, while we should see 4 distinct peaks, we see many more. In fact, some peaks that are unwanted are bigger that the ones we’re looking for. This alone would cause large errors in detecting the arrival times of different rays. The reason is that, even though we’re using a MLS sequence, its cross correlation properties are still not as good as we need them to be. 5.3 Gold Sequence The polynomials used to generate the gold sequence were x5+x2+1 and x5+x4+x+1 with initial states 01110 and 10110, respectively. The signal length and symbol time are the same as above. Results are shown in Figs. 5.3 and 5.4. Gold sequences perform better than the previous maximum length sequence due to their very good cross correlation properties. With either modulation, the peaks at the expected sample times are clear. Using BPSK yields better results than using BFSK, which might be justified by the fact that BPSK is a linear modulation (the bandwidth of the modulated signal is equal to that of the baseband signal) and BFSK is not. 5.4 Conclusion The best option, from the simple analysis presented, is clearly to use Gold sequences with BPSK modulation. While other sequences known for their good cross correlation properties (CSS [24] or Kasami, for example) could be interesting to study, the gain in using them would not be significant considering that Gold sequences are extremely easy to implement in an FPGA, our platform of choice. Hence, from now on, we assume that the transmitted signal of choice will always be a Gold sequence, modulated using BPSK.
5.4 Conclusion 27 1 1.2 1.4 1.6 1.8 2 2.2 2.4 2.6 x 104 0 500 1000 1500 2000 2500 3000 Sample Correlation using a BFSK modulated MLS Figure 5.1: Correlation using a MLS with BFSK modulation. 1 1.2 1.4 1.6 1.8 2 2.2 2.4 2.6 x 104 0 500 1000 1500 2000 2500 Sample Correlation using a BPSK modulated MLS Figure 5.2: Correlation using a MLS with BPSK modulation.
28 Studied Signals 1 1.2 1.4 1.6 1.8 2 2.2 2.4 2.6 x 104 0 500 1000 1500 2000 2500 3000 Sample Correlation using a BFSK modulated Gold sequence Figure 5.3: Correlation using a Gold sequence with BFSK modulation. 1 1.2 1.4 1.6 1.8 2 2.2 2.4 2.6 x 104 0 500 1000 1500 Sample Correlation using a BPSK modulated Gold sequence Figure 5.4: Correlation using a Gold sequence with BPSK modulation.
Chapter 6 Simulator Evaluating potential localisation algorithms and signal conditioning techniques by going out to the ocean with a real AUV is clearly not a viable option. With this in mind, one of the main goals of this work was the development of a simulator. The purpose of this simulator was to, given a signal to be transmitted, get an estimation of what the signal would be at the receiver. This is accomplished by finding eigenrays through ray tracing. The delays of each eigenray are individually computed as well as the estimated losses suffered by the signal, so that the result is the following function: y(t) = α0x(t−t0)+α1x(t−t1)+...+αnx(t−tn),(6.1) where tnis the delay of ray nand αnthe attenuation suffered by ray n. The inputs to the simulator would then be environmental parameters such as sound speed profile, water temperature and wind speed, and the outputs would be the attenuations and delays of the eigenrays found. 6.1 Architecture The simulator is constituted by two distributed components: an underwater acoustic simulator, which acts as a transmitter, and an AUV simulator. Both components are written exclusively in C and communicate through BSD sockets. The reason for distributing is that the simulations can get very heavy on the transmitter side, so this allows for running this component on a remote server. The AUV simulator keeps track of its real position and the one of the transmitter. These are assumed constant during one simulation. The AUV communicates with the transmitter through a set of commands, the most relevant of which sends its real position to the transmitter. The acoustic simulator then performs intensive ray tracing to find the eigenrays. When finished, it sends the eigenray information (delay and attenuation) back to the AUV. With this information plus an input signal, the AUV simulator builds the received signal that can then be processed. This sequence is depicted in Fig. 6.1. 29
30 Simulator Figure 6.1: Simulation process. 6.1.1 Acoustic Simulator The underwater acoustic simulator acts as a server and takes commands from incoming clients. When it receives a position from the client, it performs ray tracing starting at wherever we decided to place the transmitter. The equations implemented are the ones shown in (2.11) and (2.12). We rewrite them here in a discrete form: ri+1=ri+c(zi)ξids,ξi+1=ξi−1 c(zi)2αi,(6.2) zi+1=zi+c(zi)ζids,ζi+1=ζi−1 c(zi)2βi,(6.3) where αiand βiare the partial derivatives of cwith respect to rand z, respectively. It should be noted that the derivative of cwith respect to ris, according to our assumption that the speed of sound is horizontally constant, always zero. The direct implication is that ξi+1=ξifor every i. We further more keep the time each ray has travelled, integrating it at each step according to the following relation: ti+1=ti+ds c(zi)(6.4) Every ray is traced until either: •It has horizontally passed the AUV; •It is within the AUV’s receive radius (explained shortly). The simulator uses the following parameters: vertical step, arclength step, receive radius, transmitter position, angle span, angle spacing. A short explanation of each one of them follows. It should be noted that there are actually more parameters we need to define in (such as environmental parameters), but we’re considering only the ones that directly affect performance here.
6.1 Architecture 31 Arc Length Step This parameter is the step in arc length to use in the ray tracing equations. Vertical Step This defines the vertical step in the water. In other words, the depth divided by this step equals to the number of water rows we consider. It is used solely for calculating the derivative of the sound speed profile. Receive Radius The receive radius is the radius that defines the circumference centered at the receiver position. It is used to know when to stop ray tracing, since rays will rarely exactly hit the receiver. When any ray enters this circumference, we decide it is an eigenray. Angle Span This parameter, defines the angle span for which we want to simulate ray tracing. This concept is better illustrated in the Fig. 6.3. Angle Spacing The angle spacing is the step in angle between consecutive rays launched. Another way to look at it is that the total number of rays simulated is equal to the angle span divided by the angle spacing. These parameters should be carefully chosen. Although the concern here is not to have an extremely fast simulator, poorly chosen parameters can lead to extremely heavy simulations without any justifiable accuracy gain. An example of good parameters for shallow water, according to several simulations performed, is an arc length step of 0.1 metres, a vertical step of 0.1 metres and a receive radius of 2 metres. The only parameter that was found to lead to very poor ray tracing results when increased was the arc length step. Bigger steps obviously lead to much faster simulations, but they degrade in precision at a rate that might not be acceptable. This precision loss gets bigger the longer the rays are, as shown in Fig. 6.2. The blue ray is traced with a step of 0.1 metres and the red ray is traced with a step of 10 metres. At the third surface reflection, the rays are around 20 m apart. 6.1.2 AUV Simulator The AUV simulator is built as a simple shell that takes commands from the user. It fundamentally allows a user to define its real (r,z)coordinates and then connects to the server (the acoustic simulator described above) to get the eigenrays it would receive in a real situation. From this information plus the signal to be transmitted it generates the received signal. This is the end of
32 Simulator 430 440 450 460 470 480 490 90 92 94 96 98 100 r (metres) z (metres) Figure 6.2: In blue we see a ray traced with a step of 0.1 metres. The same ray is traced in red with a step of 10 metres. Figure 6.3: Illustrating the Angle span concept. Rays are traced only inside the depicted angle.
6.1 Architecture 33 the simulation part, and after this there is a section in the code that allows a developer to analyse the received signal. The intent is that whatever code goes in here to try and estimate the AUV’s location can be almost directly ported into a real system. A set of commands implemented allows to set the AUVs position, perform remote simulations on the server and estimate position, among other auxiliary functions. The simulation parameters of this part of the simulator directly affect the performance of the localisation algorithm implemented on top of it. Since this algorithm is to run on an embedded system, preferably online, it is important to understand how we can modulate these parameters according to our need for precision and how we wish to balance it with runtime. The parameters used to configure the AUV simulator are essentially the ones described before for the other part of the simulator. In the next chapter we will see how a set of parameters affects localisation performance.
34 Simulator
Chapter 7 Localisation Algorithm This chapter presents the relative localisation algorithm developed. It was built on top of the simulator with the goal of having it ready to deploy in a real platform very quickly with very few alterations. The inputs of the algorithm are the transmitted and received signals along with the position of the transmitter and the environmental parameters. Its output is the estimated (r,z) coordinates of the AUV. We first explain the fundamental idea behind the algorithm, after which we describe its implementation in detail. It is important to understand how the algorithm parameters affect performance and accuracy, so we dedicate a section to this topic. One of the main goals of having a simulator is to be able to test an algorithm such as this one intensively and get an idea of what kind of errors we mights expect from using it. Section 7.3 shows results for simulations performed and analyses them statistically. Finally, we end with a discussion of how this algorithm may fail and how it could be improved. 7.1 The Algorithm The basic idea behind the localisation algorithm is that if, upon receiving a certain signal we can determine how many different eigenrays we got and their travel times, we might be able to find a new set of rays that is very similar to the one we received. Our approach is the following: we take the received signal and cross correlate it with the transmitted. This should preferably be done using FFTs for efficiency (we have done so in this simulator using the library described in [28]). Figure 7.1: Localisation algorithm. 35
42 Localisation Algorithm seen as not a shortcoming of the algorithm, but rather an effect that there’s no way around of. To see this, consider that a receiver at (100,70)would indeed receive the exact same eigenrays as a receiver at (100,30). A workaround for this problem is to simply avoid the symmetry by not placing the transmitter in the middle of the water column. Another issue with the algorithm, and the simulator itself, is the fact that it assumes a flat bottom, which will seldom be the case. Applying this algorithm directly without account for this fact will certainly lead to poor results. The hard part, however, is not accounting for irregular bottoms, but rather having some sort of map of the bottom of the region. Even so, since the deflection angle of a ray will directly depend on the shape of what it hits, if the bottom is very irregular, very small steps need to be used to make sure that we’re not reflecting rays off the bottom in a completely wrong way. At this point, we’re talking about keeping very complex maps and using very small steps. These two factors combined would lead to an algorithm that would clearly be too expensive computationally to be valuable. In deep water, this problem can be partially avoided by placing the transmitter relatively close to the surface to guarantee that, even if any ray reflects of the bottom (which may not happen), it will reach the receiver with very little power. As for shallow water, the only way option is to keep a map of the bottom and allow for accuracy loss. A third issue with the algorithm is the fact that, at times, it does not find a solution. This has to do mostly with the fact that it tries to find a complete set E0. Many times, however, it finds a partially full set but ignores it. This is obviously easy to deal with, but accuracy will be lost by allowing smaller sets. The fact that the algorithm does not always find a complete set is related to the following two issues: •Our model is not perfect; •Our parameters have to be rough for runtime to be acceptable. To finalise, we note that there is one optimisation that would possibly lead to much faster results and help us use much tighter parameters. In our algorithm, we’re starting ray tracing from scratch everytime. In a realistic scenario, however, an AUV will perform two consecutive localisations in two not very different coordinates. This leads to the idea that when we finish estimating its position once, we should keep the information about the rays obtained. When running the algorithm again, ray tracing can just pick up where it was left off, tracing forward or backwards depending on the direction the AUV is moving in (we assume this is known by, say, a DVL that estimates velocity). If the flat is bottom or there are no bottom reflections, this will be valid whether or not the AUV has left the vertical plane we’re tracing in, since in this circumstance rays are traces equally for every vertical plane.
7.4 Shortcomings and Optimisations 43 Figure 7.5: Symmetry issue. The blue rays appear to their receiver exactly the same as the red rays to theirs.
44 Localisation Algorithm
Chapter 8 Field Tests This section describes some of the tests performed using the transmission system detailed in 4. One test was performed in a pool at FEUP and two others at the Leixões Marina in Porto, Portugal. We now proceed to explain the purpose and results of each one. For every test, the SR-1 hydrophone [29] was used. This hydrophone has a sampling frequency of 101562 Hz. 8.1 22/May/2014 At this point the FPGA was programmed only to modulate square pulses or maximum length sequences in BFSK. The purpose of this test was to validate the functionality of the transmitter system. Note that, since a pool has a very small amount of water when compared to the ocean, multipath will be overwhelming. In fact, for a transmitted signal of 10 ms, a signal of around 70 ms was registered. Figure 8.1 shows the FFT (using 2048 points) of the recorded signal. Since we’re using BFSK with 20 kHz and 25 kHz, and accounting for the sampling frequency of the hydrophone, the result is exactly what we expected, thus confirming that the system is working. 8.2 Second Test - 3/Jun/2014 This test was performed at the Marina, but before Gold sequences and BPSK were implemented. The only recorded signal was an MLS modulated with BFSK. Though the transmission worked, as again proven by the spectrum of the received signal, the conditions were very poor. Specifically, transmitter and receiver were placed around 10 m apart and the water depth at that location was, in this day, of around 3 m. Besides this, there were walls and other obstacles that caused too many reflections to use the collected data to effectively perform localisation. Furthermore, there is a big problem with this approach: there is no synchronization between transmitter and receiver. That is, after collecting the data, there is no way of knowing when the signal is transmitted, so it is very hard to determine the delays of the arrivals. Part of the correlation of the recorded signal with the transmitted one is reproduced in Fig. 8.2. As it is possible to notice, combining the poor signal 45
46 Field Tests used for transmission with the very bad environmental conditions, the result is not adequate to input to our algorithm. 8.3 Third Test - 20/Jun/2014 This test was, as the previous, performed at the Leixões Marina. However, the tests failed and we didn’t manage to record any signal. We tried to transmit both MLS and Gold sequences modulated with BFSK and BPSK. The recording showed lots of noise, but none of the frequencies we were looking for. The system was later tested once more in the pool and worked, but with a lot more noise than in the previous tests. The best hypothesis we currently have for this is that, since the filter used was changed between tests, some electrical issue such as a bad ground connection was the cause. The tests are to be repeated as soon as possible. 8.4 Fourth Test - 11/Jul/2014 This test was performed in the sea, off the coast of Matosinhos. The water depth was of around 10 m and both the transmitter and receiver were placed at around 2 m depth. Some considerations are in order: •No synchronization existed between transmitter and receiver; •Real distance between transmitter and receiver was measured with GPS; •The buoy holding the receiver in place naturally drifted. At 120 m, and with a 100 ms Gold sequence transmitted with 1 ms symbol time, the cross correlation between transmitted and received signal is shown in Fig. ??. The algorithm was tested with this received signal directly and yielded an output of (r,z) = (93.9,4.2), a positive result considering our expectations, since the real result should be (r,z) = (120,2).
8.4 Fourth Test - 11/Jul/2014 47 0 100 200 300 400 500 600 700 800 900 1000 0 0.5 1 1.5 2 2.5 3 FFT Bin Figure 8.1: Spectrum of the received MLS sequence modulated in BPSK in the pool. 9.6 9.7 9.8 9.9 10 10.1 10.2 10.3 x 104 750 800 850 900 950 1000 1050 1100 1150 Sample Figure 8.2: Section of the correlation for an MLS transmitted using BFSK at the Marina in Leixões. 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 x 105 20 40 60 80 100 120 Sample Cross Correlation Figure 8.3: Cross correlation with a signal transmitted in Matosinhos on the 11/Jul/2014.
48 Field Tests
Chapter 9 Conclusions We now conclude this thesis by analysing how it went according to the goals we set in the beginning. We explore what is new in this work, what could be better and what was successfull. To finalise, we consider what should be done next by anyone who starts where we left off. 9.1 Final Assessment Our ultimate goal when defining the topic for this thesis was clear: building a relative localisation system for underwater vehicles that was based on the multiple paths sound takes in this medium. To this end, we developed a transmission system, studied different types of signals evaluating their benefits in terms of signal processing, developed an underwater acoustic simulator and, finally, a localisation algorithm. This acoustic simulator is something new. There are codes for performing ray tracing (such as Bellhop [1]) as there are ways of detecting eigenrays (interpolation being the amongst the most common of them [2,6]). However, no complete simulator consisting of the components presented that automates both tasks together to ease algorithm development was found to exist. This can be, after further development, very useful for future research in the area, as it makes algorithm testing very quick. The localisation algorithm presented was also completely developed from scratch, and is furthermore completely written in C to allow for almost immediate deployment to a real AUV. Although no actual complete system was put together and developed (since using/building a real AUV would not have been viable), almost every piece to do so was presented in this thesis. Furthermore, although no sensor fusion system was implemented, since there was not a chance to evaluate the algorithm presented in a real platform and, as such, we have no other sensor information, a statistical analysis of the algorithm was performed, showing that it is possible to fit our estimation error in a satisfactory way to a Gaussian distribution. This makes integration in a Kalman filter, which is likely to be present in any good navigation system, extremely easy. As a negative point, the real data collected was not very good and did not allow for evaluating the algorithm in a real scenario. With experimental validation missing, everything else might be called into question. We need to realise, however, that this is a system intended to work in the open 49
50 Conclusions ocean, a medium hard to access. There was not an opportunity, during the course of this work, to perform any tests in such an environment. Despite the negative point, since interesting results were achieved and new ideas were presented, the overall balance is positive. 9.2 Future Work To conclude, we now present some considerations on the steps to take next. The first task would be to collect real data on the ocean. The water should be deep enough to avoid bad bottom reflections, and, more importantly, a synchronization method between transmitter and receiver should be developed. A possible way of doing this with an AUV is to have it surface periodically, get a GPS signal to record the current time and afterwards synchronize receptions with an internal RTC. Following this idea, it would now be important to implement the algorithm in an AUV and test it for known coordinates. A way of doing this would be using a validated LBL system at the same time and compare results. Another important aspect to improve upon is the models used by the simulator. Although it does account for losses, for example, it does so roughly, and the algorithm disregards this information. While geometrical spreading losses might be somewhat accurate, reflection and absorption losses are certainly not, since these losses depend on a very big number of factors difficult to estimate. Obviously, the better the model we use for the simulator, the more realistic the results any algorithm yields will be. Other things of interest are worth exploring in the simulator. One of them is the fact that it does an intensive ray search. A better approach would be the one of interpolation presented in [6], that would likely lead to largely reduced simulation times.
References [1] Orlando Camargo Rodríguez. General description of the BELLHOP ray tracing program (June 2008 release). Faculdade de Ciências e Tecnologia, Universidade do Algarve, June 2008. [2] Finn B. Jensen, William A. K Kuperman, Michael B. Porter, and Henrik Schmidt. Computational Ocean Acoustics. Springer, 2nd edition, 2011. [3] Claude C. Leroy and François Parthiot. Depth-pressure relationships in the oceans and seas. Acoustical Society of America, 1998. [4] Robert J. Urick. Principles of Underwater Sound. McGraw-Hill, 3rd edition, 1983. [5] C.-T. Chen and F. J. Millero. Speed of sound in seawater at high pressures. Acoustical Society of America Journal, 62:1129–1135, November 1977. [6] Joaquín Aparicio, Ana Jiménez, Fernando J Alvarez, Jesús Ureña, Carlos De Marziani, and Cristina Diego. Modeling the behavior of an underwater acoustic relative positioning system based on complementary set of sequences. Sensors (Basel, Switzerland), 11(12):11188–205, January 2011. [7] Paul C. Etter. Underwater Acoustic Modeling and Simulation. CRC Press, 2013. [8] L. M. Brekhovskikh and Yu. P. Lysanov. Fundamentals of Ocean Acoustics. Springer, 2003. [9] Jens M. Hovem. Modeling and Measurement Methods for Acoustic Waves and for Acoustic Microdevices, chapter Ray Trace Modeling of Underwater Sound Propagation, pages 573– 598. InTech, 2013. [10] R. E. Francois and G. R. Garrison. Sound absorption based on ocean measurements. part ii: Boric acid contribution and equation for total absorption. Acoustical Society of America, 1982. [11] H. W. Marsh and M. Schulkin. Absorption of sound in sea-water. Radio and Electronic Engineer, 1963. [12] R. Coates. An empirical formula for computing the beckmann-spizzichino surface reflection loss coefficient. Ultrasonics, Ferroelectrics and Frequency Control, IEEE Transactions on, 1998. [13] Milica Stojanovic. Underwater acoustic communications: Design considerations on the physical layer. Proc. IEEE / IFIP Fifth Annual Conference on Wireless On demand Network Systems and Services (WONS 2008), 2008. 51