Full text
MASTER THESIS An approach to some classical libration point orbit problems by means of artificial intelligence techniques Sara Cecilia Abecia Hernanz SUPERVISED BY Josep Joaquim Masdemont Soler Universitat Politècnica de Catalunya Master in Aerospace Science & Technology November 2021
Título: Aplicación de técnicas de Inteligencia Artificial a problemas clásicos de orbitas alrededor de puntos de libración Autor: Sara Cecilia Abecia Hernanz Director: Josep Joaquim Masdemont Soler Fecha: 22 de noviembre de 2021 Resumen Los rápidos avances de la última década en el campo de la Inteligencia Artificial (IA) han demostrado el potencial de estas nuevas técnicas como enfoque eficaz para resolver diferentes problemas clásicos en el área de la astrodinámica. Las estrategias de búsqueda de rutas en regiones dinámicas de sistemas multicuerpo en el espacio implican algunos desafíos que tradicionalmente se han basado en simplificaciones del modelo dinámico o cargas computacionales pesadas. Sin embargo, es probable que las técnicas modernas de aprendizaje automático proporcionen soluciones más ligeras que puedan aplicarse a los sistemas de navegación automatizada a bordo de futuras misiones que viajen a través de entornos complejos. Este trabajo tiene como objetivo aprovechar las técnicas de Redes Neuronales Artificiales (RNAs) para estudiar cómo estas se pueden aplicar a Orbitas de Puntos de Libración en el Problema Restringido de Tres Cuerpos. En particular, se proponen nuevos enfoques por medio de modelos de RNAs para calcular conexiones heteroclínicas entre órbitas planas de Lyapunov, y su rendimiento se compara con el de las metodologías clásicas. Para entrenar, validar y testear las RNAs utilizadas a lo largo del trabajo, se requieren conjuntos de datos suficientemente grandes que contengan información representativa y precisa sobre la dinámica del Problema Restringido de Tres Cuerpos. A tal efecto, los conjuntos de datos se generan mediante la resolución del problema utilizando las técnicas clásicas conocidas, ya que es la única forma disponible de adquirir un conjunto de observaciones precisas de lo que ocurre en modelo. Se siguen los siguientes pasos: primero, las conexiones heteroclínicas se calculan con una precisión arbitrariamente alta mediante la propagación numérica de las variedades inestables/estables de las órbitas de salida/llegada respectivamente, utilizando un integrador numérico de tipo Runge-Kutta 45; en segundo lugar, los datos de las propagaciones se tabulan y almacenan en conjuntos de datos; tercero, dichos conjuntos de datos se utilizan para entrenar y validar una serie de RNAs; y finalmente, se analiza el desempeño de los modelos de RNAs obtenidos y se compara con los resultados de referencia. Además, se estudia la influencia de la técnica de muestreo optada a la hora de generar los conjuntos de datos sobre el rendimiento del modelo, así como la robustez del método desarrollado. Como resultado de este trabajo, se puede concluir que los dos nuevos métodos de RNAs aquí desarrollados, pueden considerarse tan buenos como el método clásico en términos de su aptitud para ser utilizados como semilla en un modelo de efemérides realista, ya que en cualquier caso, el modelo Restringido de Tres Cuerpos utilizado aquí como referencia no es una representación precisa de las trayectorias realistas, aunque sí se considera una aproximación aceptable en las primeras etapas del diseño de misiones.
Title : An approach to some classical libration point orbit problems by means of artificial intelligence techniques Author: Sara Cecilia Abecia Hernanz Advisor: Josep Joaquim Masdemont Soler Date: November 22, 2021 Abstract Rapid developments in the last decade have demonstrated the potential of new techniques within the Artificial Intelligence (AI) field as an effective approach for different classical problems in the area of astrodynamics. Pathfinding strategies in multi-body dynamical regions of space implies some challenges which have traditionally relied on simplifications of the dynamical model or heavy computational loads. However, modern machine learning techniques are likely to provide more lightweight solutions that could be applied to automated on-board guidance systems in future missions traveling though complex environments. This work aims to leverage Artificial Neural Network techniques to study how they can be applied to Libration Point Orbits in the Circular Restricted Three-Body Problem. In particular, new ANN-approaches to compute heteroclinic connections between planar Lyapunov orbits are proposed, and their performance is compared to that of classic methodologies. In order to train, validate and test the ANNs used throughout the work, sufficiently large datasets containing information that accurately represents the dynamics of the Circular Restricted Three-Body Problem are required. To this effect, the datasets are generated by means of solving the problem using well-known classic techniques, since it is the only way to acquire an ensemble of accurate observations of the model. The following steps are taken: first, the heteroclinic connections are computed with arbitrarily high accuracy by numerical propagation of the unstable/stable invariant manifolds of the departure/arrival orbits respectively, using a Runge-Kutta 45 integrator; second, the data from the propagations are tabulated and stored in datasets; third, the datasets are used to train and validate a series of ANNs; and finally, the performance of the obtained ANN models is analysed and compared to the benchmark results. Also, the influence of the sampling technique when generating the datasets and the robustness of the developed method are studied. As a result of this work, it can be concluded that the two new ANN methods developed here can be considered as good as the classical method on terms their fitness to be used as a seed in a realistic ephemeris model, since the Restricted Three Body Problem model used here as a reference is also not an accurate representation of realistic trajectories anyways, but it is an acceptable approximation in early stages of mission design.
Nere eredu izan diren hiru emakumeei, To my three female role models,
CONTENTS Introduction ....................................... 1 CHAPTER 1. Theoretical framework of libration orbits ........ 3 1.1. The n-body problem ................................. 3 1.2. The Circular Restricted Three Body Problem .................. 3 1.2.1. Equations of motion . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2.2. First integral of the CRTBP and zero velocity curves . . . . . . . . . . 6 1.2.3. Equilibrium points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.3. Libration orbits .................................... 9 1.3.1. Stability of collinear libration points L1and L2............. 9 1.3.2. Planar Lyapunov orbits . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.4. Heteroclinic connections .............................. 11 1.4.1. Hyperbolic invariant manifolds . . . . . . . . . . . . . . . . . . . . . . 12 1.4.2. Poincaré sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 CHAPTER 2. A brief intoduction to Artificial Intelligence ....... 15 2.1. Artificial Intelligence ................................. 15 2.2. Artificial Neural Networks (ANN) .......................... 16 2.2.1. Basic elements of the neural model . . . . . . . . . . . . . . . . . . . 17 2.2.1.1. Synapses........................... 17 2.2.1.2. Summing junction . . . . . . . . . . . . . . . . . . . . . . 18 2.2.1.3. Activation function . . . . . . . . . . . . . . . . . . . . . . 18 2.2.1.4. Bias.............................. 20 2.2.2. Arquitecture of ANNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.2.2.1. Single-Layer feedforward networks . . . . . . . . . . . . 21 2.2.2.2. Multilayer Feedforward Networks . . . . . . . . . . . . . . 21 2.2.3. Feedback .................................. 21 2.3. Data preparation process .............................. 21 2.3.1. Generation of the data . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.3.2. Data preprocessing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.3.3. Dataset splitting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.3.3.1. Training set . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.3.3.2. Validation set . . . . . . . . . . . . . . . . . . . . . . . . . 23 2.3.3.3. Testset............................ 23
INTRODUCTION The n-body problem consists of describing the temporal evolution of multiple bodies in space under the influence of their own gravitational forces. This work focuses on a particular model of this problem for the specific case of three bodies. Within this framework, the problem under study is the computation of heteroclinic connections between planar libration point orbits, which is a mathematical problem for which a closed solution exists if we take the simplifying hypotheses that one of the three bodies has negligible mass and that the trajectory of the other two bodies is restricted to circular motion. This simplified model is known as the Circular Restricted Three Body Problem (CRTBP), and it is used in this work as a benchmark to test the usefulness of new AI techniques in the field of celestial mechanics. In nonlinear dynamical environments such as the CRTBP model, traditional trajectory design and optimization strategies rely on either simplifying assumptions in the dynamical model or on computationally-heavy processes. Thus, through the implementation of modern machine learning techniques a more lightweight solution is pursued, which has the potential to facilitate automated in-flight pathfinding and guidance in future onboard computers travelling within complex environments. It is worth highligting that although the mathematical methods to solve the problems presented in this work already exist, it is not intended to replace them but to leverage the new tools that AI provides us with to complement these classic methods, since techniques such as ANNs have been proven to provide accurate solutions for other multi-body system problems at a fraction of the computational cost, and potentially 100 million times faster than other state-of-the-art solvers [27]. The main research publication that triggered the idea for this master thesis is the one carried by De Smet and Scheeres’ about the identification of heteroclinic connections using ANNs [4], which inspired some of the approaches used in the present work. Regarding the method used to asses the feasibility of the new ANN technique as compared to the classical solution to the Lyapunov orbit problems, the workflow of the process has been inspired by the one presented in that work. However, the algorithm used to compute the heteroclinical connections has been adapted so that the Poincaré surface defined for that purpose is the same as the one used by Canalías in her work [3]. With regards to the mentioned workflow, it can be generally summarized as follows: first, the proposed problem is solved in the classical way, that is, propagating the state vector in the six-dimensional space (three coordinates in positions and three coordinates in velocities) by means of numerical integration. For this purpose, the Runge Kutta 45 algorithm is implemented throughout the entire work. Then, these solutions are saved in the form of tabulated datasets to be used for the training of the ANNs. Finally, in order to asses the performance of the obtained ANN models, a comparative analysis is carried out between the results predicted by the models and the actual expected responses that had been stored in the reference datasets. Furthermore, the influence of various factors on the predicting ability of the ANN is analysed, such as the sampling technique used to generate the training set or the random shuffle of the training and test data. Also, the robustness of the methods proposed here to develop the predictors is assessed by means of training an ensemble of equivalent models and verifying that the solutions are as well equivalent in terms of how large or small is the standard deviation of the performance indicators as 1
2 An approach to some classical libration point orbit problems by means of artificial intelligence techniques compared to their mean. The present work is divided into three chapters. The first one serves as a way of framing the problem by providing some concepts on the dynamics governing the libration regions. The second one is aimed at giving some insight on the Artificial Intelligence notions used in the development of this project. Lastly, this work ends with a summary of the conclusions drawn from the discussion of the results and a list of suggestions on how this research can be extended in future work.
CHAPTER 1. THEORETICAL FRAMEWORK OF LIBRATION ORBITS 1.1. The n-body problem The well-known n-body problem in physics is the problem of solving the equations of motion of a group of celestial bodies under their own gravitational force in order to predict their individual trajectories. Rosenberg stated it as follows [21]: Given the quasi-steady orbital properties (instantaneous position, velocity and time) of a group of celestial bodies, predict their interactive forces; and consequently, predict their true orbital motions for all future times. The n-body problem has no general solution due to its chaotic dynamics as discovered by Henri Poincaré in [19]. Nevertheless, there are two special cases for which the problem can be completely solved: the Two-Body Problem, and the Restricted Three Body Problem. The later forms the focus of this study and its formulation and dynamical equations are presented hereunder. 1.2. The Circular Restricted Three Body Problem Multi-body dynamical regions in space can be challenging as the nonlinearity of the environment makes Keplerian-based approaches infeasible. For this work, the Circular Restricted Three Body Problem (often referred to in literature as CRTBP or just RTBP for short) will be employed to model the motion of a small mass moving under the influence of two main massive bodies that move in circular orbits around their center of mass. In this problem, the mass of the smallest body is reasonably neglected as its relative gravitational impact is assumed to be much less significant, and the equations are defined in a rotating frame of reference frame whose origin lies at the center of mass of the two large masses. This can be applied to different scenarios, e.g., a spacecraft traveling within the Cislunar space or the Earth-Sun system. The equations of motion that describe the CRTBP are presented in the following section. 1.2.1. Equations of motion According to Newton’s law of universal gravitation and the second law of motion, for each particle of a system of n point-like masses, the gravitational force acting upon a particle of mass miis, F=d dt¡mi . ri¢=mi .. ri= − G n X j=1,j6=i mimj krjik3rji (1.1) 3
4 An approach to some classical libration point orbit problems by means of artificial intelligence techniques where mjis the mass of particle j(with j=1,...,n) and Gis the gravitational constant. Note that the notation used hereafter to represent a vector that points in the direction from particle j to particle i is rji, meaning that rji =ri−rj. For the restricted three body problem, three objects are considered: two massive bodies called primaries and an object of negligible mass. The bigger primary is referred to as m1while the smaller one is m2. Taking equation (1.1) and making that simplification, the system of equations that describes the problem results in, .. r1= − Gm2 r21 kr21k3 .. r2= − Gm1 r12 kr12k3 .. r3= − Gm1 r13 kr13k3−Gm2 r23 kr23k3 (1.2) where the two first equations in (1.3) are equivalent to the Keplerian equations of the primary masses and the third describes the restricted three body problem. The equations are defined in the inertial frame and because they are independent of any particular frame, we chose the inertial frame fixed in space so that the orbital plane described by the motion of the primaries is contained in the xIyIplane and the origin can be set to the barycenter, so that the distance from the barycenter to m1and m2are d1and d2respectively: d1=kr12k 1+m1 m2 ;d2=kr12k 1+m2 m1 (1.3) Now, supposing the two primaries describe circular orbits around the barycenter, a convenient change of frame that allows for the simplification of the equations for the CRTBP is to introduce a new frame of reference known as the synodic frame. This frame is rotating with constant angular velocity ω=(0,0,ω)Twith respect to the described inertial frame, so that its xaxis is aligned with the line passing through the two primaries and pointing at the big primary, m1. Taking the inertial acceleration in the third equation of (1.3) that describes the motion of the particle of negligible mass and referring to it as .. rI 3, the expression that relates it with the new acceleration seen from the rotating synodic frame, .. r3is, .. rI 3=.. r3+2ω×. r3+ω×(ω×r3)(1.4) In the above expression the Coriolis and the centripetal accelerations can be calculated as, 2ω×. r3=2ω . y −. x 0 (1.5) ω×(ω×r3)=ω2 x y 0 (1.6)
CHAPTER 1. THEORETICAL FRAMEWORK OF LIBRATION ORBITS 5 where x,yand zdenote the position of m3in synodic coordinates. Thus, taking .. r3= (. x,. y,. z)Tand substituting (1.4) in (1.3), one can arrive to, .. x−2ω. y−ω2x= − Gm1 x−x1 kr13k3−Gm2 x−x2 kr23k3 .. y+2ω. x−ω2y= − Gm1 y kr13k3−Gm2 y kr23k3 .. z= − Gm1 z kr13k3−Gm2 z kr23k3 (1.7) where (x1,0,0) and (x2,0,0) correspond to the positions of the primaries in synodic coordinates. Figure 1.1: The synodic frame of reference Taking adequate units of mass, length and time in (1.7) the equations of motion can be simplified in such a way that the distance between the primaries (kr12k), the angular velocity (ω) and the sum of the masses of the primaries (m1+m2) become unitary. With these changes, the gravity constant (G) equals one, while the mass of the primaries are µfor the smaller and 1−µfor the bigger one. As a result the small and big primaries remain at (µ-1,0,0) and (µ,0) respectively (see figure 1.1). The resulting equations, which are often the starting point when the CR3BP is described in literature, are the following: .. X−2. Y=ΩX .. Y+2. X=ΩY .. Z=ΩZ (1.8) where ΩX,ΩYand ΩZdenotes the derivative of the following function with respect to X, Yand Zrespectively, Ω(X,Y,Z)=1 2¡X2+Y2¢+1−µ r1+µ r2+1 2µ(1−µ)(1.9)
6 An approach to some classical libration point orbit problems by means of artificial intelligence techniques and, r12=¡X−µ¢2+Y2+Z2(1.10) r22=¡X−µ+1¢2+Y2+Z2(1.11) For the numerical implementation of the problem, it is convenient to have the vectorial form of the equations, so the procedure is explained here below. On the other hand, by doing a change of variables, it is possible to reduce the system of three second-order differential equations to a system of six first-order differential equations: x= x1 x2 x3 x4 x5 x6 = X Y Z . X . Y . Z →. x= . x1 . x2 . x3 . x4 . x5 . x6 = . X . Y . Z .. X .. Y .. Z (1.12) As a result the problem can be defined by six first-order differential equations. . x=f(x) . x1=x4 . x2=x5 . x3=x6 . x4=Ωx1(x1,x2,x3)+2x5 . x5=Ωx2(x1,x2,x3)−2x4 . x6=Ωx3(x1,x2,x3) (1.13) 1.2.2. First integral of the CRTBP and zero velocity curves The first integral of the Circular Restricted Three Body Problem, which is known as the Jacobi constant and is noted as CJhereunder, is derived from the previous equations by following the steps below: •First, the first, second and third equations of the CRTBP system in (1.8) are multiplied by . X,. Yand . Zrespectively, and adding all three results in, ³.. X−2. Y−ΩX´. X+³.. Y+2. X−ΩY´. Y+³.. Z−ΩZ´. Z=0 •Second, equation (1.2.2.) is simplified so that it yields, .. X. X−2. Y. X−ΩX . X+.. Y. Y+2. X. Y−ΩY . Y+.. Z. Z−Ωz . z=0 dµ. X2 2¶ dt− * 2. Y. X−∂Ω ∂X dX dt+ dµ. Y2 2¶ dt+ * 2. X. Y−∂Ω ∂Y dY dt+ dµ. Z2 2¶ dt−∂Ω ∂Z dZ dt=0 dµ. X2 2+ . Y2 2+ . Z2 2¶ dt−dΩ dt=0
CHAPTER 1. THEORETICAL FRAMEWORK OF LIBRATION ORBITS 7 •Third, (1.2.2.) is derived in order to obtain the first integral, . X2+. Y2+. Z2−2Ω=cte.(1.14) Rearanging the terms, the Jacobi constant, CJ, can be expressed as: CJ=2Ω(X,Y,Z)−. X2−. Y2−. Z2(1.15) Although this definition is not unique and one might find different expressions for the Jacobi constant in literature ([4],[3]) by taking the convention in 1.15 the CJequals the exact value of 3 at the two triangular libration points, L4and L5. 1.2.3. Equilibrium points We refer to the equilibrium points of the problem as the points where the velocity and the acceleration of a particle at that given position equals zero so that the particle would never change its state. Or equivalently, when the vectorial equations of the problem (1.13) are equal to zero. . X=.. X=0 . Y=.. Y=0 . Z=.. Z=0 (1.16) That implies that the derivatives of Ωmust also equal zero at the equilibrium points; thus, one shall find the solution for the equilibrium points of the CR3BP by solving the following system of equations: ΩX=0=X−1−µ r13¡X−µ¢−µ r23¡X+1−µ¢ ΩY=0=Y−1−µ r13Y−µ r23Y ΩZ=0= − 1−µ r13Z−µ r23Z (1.17) It is known that five solutions exist for system (1.17), which are known as libration points or Lagrange points (see figure 1.2). It is easy to see that all of them must be contained in the Z=0plane in order to satisfy the third equation of the system. Three of these libration points are located in the synodic Y=Z=0axis, which are known as the collinear points and are commonly denoted by L1,L2and L3, while the last two are known as triangular points and they are often referred to as L4and L5. For the scope of this work, we focus on the collinear points of equilibrium, whose positions are calculated in a similar manner, as explained below. To this effect, the first equation in (1.17), which only depends on the X coordinate, is studied. Because of its non-linear nature, its changes in sign across the X axis are studied, which means there are three intersections of function f(X)=∂Ω ∂Xwith that axis, since the function is continuous for every value of Xother than µand µ−1(where the two primaries lie).
8 An approach to some classical libration point orbit problems by means of artificial intelligence techniques Figure 1.2: The five libration points of the Circular Restricted Three Body Problem The equilibrium solution at X<µ−1, which corresponds to L2, its position can be calculated by introducing a new variable for the distance between L2and the small primary: γ. By doing so, X=µ−1−γand the first equation in (1.17) can be expressed as the following Euler’s quintic equation (the quintic equations presented in this section as well as their solutions can be found in [24]): γ5+¡3−µ¢γ4+¡3−2µ¢γ3−µγ2−2µγ −µ=0(1.18) whose solution can be written as, γ=³µ 3´1 3+1 3³µ 3´2 3+1 9³µ 3´3 3+... (1.19) As for the equilibrium solution at µ−1<X<µ, which corresponds to L1, its position can be calculated by introducing the new variable γ, this time representing the distance between L1and the small primary. Now X=µ−1+γand the first equation in (1.17) can be expressed as following Euler’s quintic equation: γ5−¡3−µ¢γ4+¡3+2µ¢γ3−µγ2+2µγ −µ=0(1.20) whose solution can be written as, γ=³µ 3´1 3−1 3³µ 3´2 3−1 9³µ 3´3 3+... (1.21) Lastly for L3, which is located at µ<X, it is calculated by introducing the variable γso that the distance between the big primary and the equilibrium point is γ; that is, the point lies in X=µ+1+γ. This way, the first equation in (1.17) can be expressed as the following Euler’s quintic equation: γ5−¡7+µ¢γ4+¡19+6µ¢γ3−¡24 +13µ¢γ2+¡12 +14µ¢γ−7µ=0(1.22)
CHAPTER 1. THEORETICAL FRAMEWORK OF LIBRATION ORBITS 9 whose solution can be written as, γ=7 12µ+2372 124µ3+... (1.23) For each collinear point, the only real root of Euler’s quintic equation provides the distance to its closest primary. In the code, its value is numerically computed with high accuracy using Newton’s method with the following seed values, L1,L2→γ=³µ 3´1 3 L3→γ=7µ 12 (1.24) which correspond to the first term of the power series solutions (see equations (1.19), (1.21) and (1.23)). 1.3. Libration orbits Extensive work has been done in the last decades in order to study the dynamics of the regions surrounding the collinear libration points (see for example [3], [14], [9] and [10]), resulting in effective methods to compute various types of libration point orbits near the collinear points, such as planar and vertical Lyapunov orbits, Lissajous, halo and quasihalo orbits. 1.3.1. Stability of collinear libration points L1and L2 The CR3BP is a Hamiltonian dynamical system, and although it is not linear, its equations can be linearised around the equilibrium points in order to study their stability, since given matrix Bof the linearised problem . x=Bx, the eigenvalues of that matrix of constant values provide a means for analysing the stability. As the first step to linearising the problem around the libration points that are of interest for this work, that is, L1and L2, the following change of coordinates consisting of a translation with homothety, is applied to the equations in (1.7): x= −1 γ¡X−µ+1∓γ¢ y= −1 γY z=1 γZ (1.25) With these new coordinates the equations in (1.7) become, .. x−2. y=1 γ2Ωx .. y+2. x=1 γ2Ωy .. z=1 γ2Ωz (1.26)
16An approach to some classical libration point orbit problems by means of artificial intelligence techniques On the other hand, AI is also often classified in a hierarchical way. As is illustrated in figure 2.1, the first layer in Artificial Intelligence is known as Machine Learning. This is the ability of machines and programs to learn by imitating human behaviour and it can be considered as a subset of AI techniques, that is composed of algorithms that process and classify data in order to find patterns. One of its biggest advantages as compared to traditional programming techniques is that it does not require being explicitly programmed for a particular problem. The next layer contained within Machine Learning, is Artificial Neuron Networks (ANNs) which is inspired in the human brain neurons and how these are able to process information [13]. Finally within ANN, we can find the set of techniques known as Deep Learning, which make use of complex multi-layer networks. Figure 2.1: Taxonomy of artificial intelligence It is commonly misunderstood that any of these AI techniques can be totally autonomous in a way that they could generate knowledge by themselves. The reality is, however, that they still depend on humans to a very large extent, on the one hand to be fed with new useful information and on the other hand, to optimize the algorithms for the target problem. For this reason, AI must be understood as a powerful tool that we can leverage to gain new insight on the problem, but it is not a self-contained alternative solution in most cases. For this work, we focus on Artificial Neural Network techniques, which are explained in detain in the next section. 2.2. Artificial Neural Networks (ANN) Haykin defines ANN as follows [13], A neural network is a machine that is designed to model the way in which the brain performs a particular task or function of interest; the network is usually implemented by using electronic components or is simulated in software on a digital computer.
CHAPTER 2. A BRIEF INTODUCTION TO ARTIFICIAL INTELLIGENCE 17 The term Artificial Neural Network was originally motivated by the idea of modeling networks of real biological neurons in the brain. Nowadays, it is known that the artificial neurons used to construct artificial neural networks are very primitive approximations to those found in the brain. Therefore, the neural network architectures used are also extremely simple approximations of the brain structure. However, the remarkable progress has been made during the past decades inspired by this neuro-biological analogy. Biological neurons receive information from other neurons through the dendrites to then process the information in a cell body called soma. In order to send information, they have a connecting element called an axon. The point of connection between the axon branches and the dendrites of other neurons are called synapses. The information generated has the form of a spike in the electric potential (voltage) of the axon. Depending on the particular connections of the neurons, the information sent by one neuron can excite or inhibit other neurons. All of this is possible because the brain contains billions of these information processing units that are connected each to other forming complex networks. Although the capacity to work with information is limited for only one neuron, their true power comes across when they are interconnected with each other. 2.2.1. Basic elements of the neural model For a better understanding of ANNs, the components that constitute them are defined and explained in this section. As we can see in figure 2.2, a basic neuron is formed by six main elements: the input signals, the synaptic weights, the bias, the activation function and the output signal. The n input signals are referred to as x1,x2,...xnand to each one of them corresponds a synaptic weight, accordingly referred to as w1,w2,...wnwhich can be qualitatively seen as the force or implicate grade of connection between two neurons. uk= m X j=1 wk j xj(2.1) The third factor is the summing junction (2.1), that calculates the inputs reading with the bias bkto transmit the data to the activation function to finally give an output (2.3) as a result. yk=ϕ(uk+bk)(2.2) yk=ϕ(vk)(2.3) 2.2.1.1. Synapses The weights between neurons, the summing junction and the activation functions, altogether, model whether neurons excite or inhibit each other. As mentioned above, we described to the synapses in biological terms, which refers to a small structure in the neuron which has the main purpose of transmitting nervous impulses in an electrical or chemical
18An approach to some classical libration point orbit problems by means of artificial intelligence techniques Figure 2.2: Schematic representation of the model of a neuron way to other neurons. In other words, they constitute the bridge between every pair of connected neurons in the system. For that reason, synapses play a fundamental part in our neural systems and without them, we would not be able to communicate, process or memorize information. In a similar way, in Artificial Neural Networks the synapses acts as a connecting link characterized by a weight or strength [13] that controls the relevance of the signals coming from the inputs of the system (or from the outputs of other neurons). The synaptic weight of neuron k related to input xnis denoted as wkn and it can take a range of positive or negative values that depend on its degree of connection within the neural network. 2.2.1.2. Summing junction This is the element of the neuron that performs the weighed sum of all the input signals. If the sum results in a value equal to zero, the bias can be added in order to make the output non-zero or to scale up for a different response in the system. 2.2.1.3. Activation function The activation function provides a way to control the desired output of a neuron. This means that the activation function enables us to limit the amplitude of the outputs to convenience. The activation function of a neuron k, is denoted by ϕ(vk)(see equation (2.3)). Also according to [13] activation functions can be classified into two different types: •Types of Activation Function
CHAPTER 2. A BRIEF INTODUCTION TO ARTIFICIAL INTELLIGENCE 19 – Threshold Function: As can appreciated in figure 2.3, a threshold function acts like a logical Boolean, that is, it can take one of two values: either one or zero. The value of vthat appears in (2.4) is known as the threshold gate. ϕ(x)=½0if v >x 1if v ≥0(2.4) Figure 2.3: Threshold Function – Sigmoid Function: A sigmoid function has a non-negative derivative at every point and is also known as an S-shape function. The main purpose of this function is to convert real values into probabilities. It can written as follows [13], ϕ=1 1+e(−ax)(2.5) where a is the slope parameter of the sigmoid function and x is the the synapse. Out of the many functions of this type, one of the most popular ones for its use in ANNs is the logistic function. However, depending on the problem, another type of function might be more appropriate in order to find the perfect balance between linear and nonlinear behavior in our neural network system. The first derivative of all sigmoid functions is bell-shaped and monotone. There are several sigmoid functions, and some of the most well-known are included here. – Some examples of sigmoid activation functions: *Logistic function ϕ(x)=1 1+e−x(2.6)
20An approach to some classical libration point orbit problems by means of artificial intelligence techniques Figure 2.4: Sigmoid Function *Hyperbolic tangent function ϕ(x)=tanh(x)(2.7) *Arctangent function ϕ(x)=arctan(x)(2.8) 2.2.1.4. Bias Depending on whether it is positive or negative, this parameter provides a way to increase or decrease the net input of the activation function. 2.2.2. Arquitecture of ANNs Once the elements that conform a single neural network have been presented and explained, it is interesting to know the different ways in which they can interact with each other, since their true potential lies when they work in the form of networks. For this reason, some structures or architectures are shown in this section that allow the user to have a certain level of performance according to the level of complexity, size and organization of the network. The connection between neurons through nodes and edges, describes the topology of a neural network. Each layer can be connected to different activation functions, thus increasing the complexity of the network. The layers can be stacked together in order for each layer to perform sequential processing. These types of networks are referred to as deep neural networks.
CHAPTER 2. A BRIEF INTODUCTION TO ARTIFICIAL INTELLIGENCE 21 As explained in [13], different types of networks exist, which can be classified in the sections below. Feedforward networks On the one hand, feedforward networks are named in such manner because the information from the input units is transmitted to the next layer units. Then, new output is calculated for the next layer and the output is again passed to the next layer units. This is repeated again and again until the information reaches the output. 2.2.2.1. Single-Layer feedforward networks If we have a network that is arranged with all the connections going in the same direction and without any cycles, it is known as a feed-forward neural network. 2.2.2.2. Multilayer Feedforward Networks With this kind of NN we can observe that their architecture is composed by an input layer that receives the inputs to transform and prepare them to enter in the next layer. Second, there are what are called the Hidden layers, that are the intermediate layers which do all the computations and extract features form the data. Finally, there is an output layer that takes all the information processed by thee previous hidden layers and computes a final prediction or classification based in the learning models. Recurrent Networks The recurrent neural networks are distinct from the other networks because they have the presence of feedback loops and that produces a significant impact on the learning capability and performance in the network. As a result of the loops, this architecture has a nonlinear dynamic behavior in all the system. 2.2.3. Feedback From the observation of how biological neural networks work, it is understood that biological ANNs are also dynamic systems, and for that reason there may be feedback in these models. As explained in [13], due to the feedback, the system allows one or more closed paths for the transmission of the signal around the system, which results in a concept known as short-term memory. 2.3. Data preparation process For most cases, preparing and applying certain transformations to the raw data can be a critical step to obtain good results in our model.
22An approach to some classical libration point orbit problems by means of artificial intelligence techniques 2.3.1. Generation of the data Depending on the nature of the problem to be studied, the dataset can be formed by collecting data by means of a field study or, if an appropriate model is available, by generating data through numerical methods. For the present work, all the necessary datasets have been created through the implementation of an algorithm that is able to compute heteroclinic transfers between periodic orbits with arbitrarily high accuracy by numerically integrating a series of initial conditions of the problem (see section 3.2.1. for an extended explanation of the algorithm and other computational details of the implementation). 2.3.2. Data preprocessing In data preprocessing the first step is always to manipulate the dataset to clean and remove unnecessary information, and standardize the values in numerical or categorical format. This is an important task because it allows for big improvements in the performance and the accuracy of the model. In many cases, this step is one of the most important tasks of the process. We call data preprocessing to a series of tasks, which are summarized as follows: •Formatting: The format in which we work with our data sets can be numerical and categorical, and deciding which is the best will depend on the problem and the goal to be achieved. •Cleaning: Before entering the information in our neural model it is important to clean the datasets of errors, otherwise, we can only can expect errors in the computations. For that reason it is highly recommended to find all the ’NaN’ values in the datasets and replace or remove them. If we have many errors but the dataset is not very big, it is better to replace these errors with some equivalence that would not alter the other features, rather than eliminating them completely; that way, a more convenient approach would be to simply remove the instances for those values. 2.3.3. Dataset splitting The evaluation of the learning model is given for a simple methodology or strategy, where we divide our dataset into three parts, data test, data train, and validation data. This is to know well the performance in our model. 2.3.3.1. Training set This dataset has the main to help our model to learn the parameters and how can adapt them to solve the problem. In the neural networks for each iteration, the training data provide some feedback that is assimilated for the neurons, and in this way, the ANN can continue learning.
CHAPTER 2. A BRIEF INTODUCTION TO ARTIFICIAL INTELLIGENCE 23 2.3.3.2. Validation set The validation set is used to avert over-fitting the model, and that validation is realized simultaneously in the model trained performed on the validation set after every epoch. 2.3.3.3. Test set At the moment that we finish training our model it is necessary to test if it is working, and for that, we use some data that the model never use previously, for all of this is denominated as data test or model evaluation. Basically, this dataset computes the performance of the implemented method. An important aspect to take into consideration is the fact that when the data is split, the proportion to train should be enough to learn but not to copy the patterns so closely that we can obtain over-fitting in our model. For that reason, a good compromise between having enough training data to ensure the accuracy of the model and having enough test data as a reliable source to evaluate the performance is required. As a rule-of-thumb while working with ANNs, the recommended percentage to split the data is 70 % for training and 30% for testing. Also, when we use K-Fold cross-validation as explained in section 2.4.1. all data is used to make the validation. 2.3.4. Data transformation 2.3.4.1. Reescaling of the data A crucial step before feeding the training data to the network for it to start the learning process is to scale the variables for a better performance of the model. Scaling a variable means that its values are shifted by a certain constant and then divided by another constant. The most common scaling methods used in statistics and AI are normalization and standardization. Although these two terms are mathematically defined differently, in the field of AI the two words are used non-strictly and they are often used interchangeably. Generally speaking, if we consider a single variable of the set given as a vector x={x1,x2,..., xn}, its normalized value x’ can be defined according to the mentioned scaling methods [1]: •Normalization: the division of a vector by its norm (most often the Euclidean norm). x’ =x kxk(2.9) Also, it is not uncommon in ANN bibliography to see the term used as a synonym for min-max scaling, that is, reescaling a variable in order for it to fall within the range from 0 to 1. x’ =x−min(x) max(x)−min(x)(2.10) •Standardization: scaling of the variable so that the resulting data has zero mean and unit standard deviation.
24An approach to some classical libration point orbit problems by means of artificial intelligence techniques x’ =x−µ σ(2.11) where µis the average of the variable and σis its standard deviation. In this work the data is standardized following equation (2.11). 2.4. Validation of the model Many techniques are available for cross-validation. Among the most common are the following [18]: •K-fold •Holdout •Leaveout •Repeated random sub-sampling •Stratify •Resubstitution The technique used in this work is the K-fold cross-validation, which is described below. 2.4.1. K-Fold cross validation This popular cross-validation technique consists of partitioning the data into K nearly equal-sized groups called folds, at random. The model is then trained and validated once for each partition of the data. This step is repeated K times to ensure that each subset is validated exactly once. At the end of the training/validation process, the mean error among the different partitions is provided as a measurement of performance. This provides a way to asses the model performance without the need of devoting a certain percentage of the available data to validation. That is, it offers the advantage that all the data (except for the test dataset) can be used for training, but at the cost of multiplying the training process time by the number of folds (K). 2.5. Statistical error indicators for the evaluation of the models In order to make an exhaustive analysis of the performance of the ANN predictive engines developed throughout the present work, it is necessary to make use of error indicators, understanding as error the difference between the target and output values measured by means of different formulas. This section presents different indicators of error that are
CHAPTER 2. A BRIEF INTODUCTION TO ARTIFICIAL INTELLIGENCE 25 popular in the field of AI due to their ability to show different aspects related to such errors (such as their absolute and relative magnitude or their distribution). While the misclassification rate and the classification loss are indicators of how well the multiclass classification is performed by the ANNs, other indicators such as MAE, MAPE, RMSE and RMSRE reflect the capability of the regression ANNs to match the output values with the exact values comprehended in the test sets. 2.5.1. Mean absolute error (MAE) MAE =Pn i=1|yi−xi| n(2.12) •MAE : Mean absolute error •yi : Prediction •xi : True value •n: Total number of data points 2.5.2. Mean absolute percentage error (MAPE) MAPE =1 n n X t=1¯¯¯¯ At−ft At¯¯¯¯(2.13) •MAPE : Mean absolute percentage error •n: Number of times the summation iteration happens •At: Actual value •ft: Forecast value 2.5.3. Root mean square error (RMSE) RMSE =sPN i=1ky(i)−by(i)k2 N(2.14) •RMSE : Root mean square error or root mean square deviation •n: Number of data points •y(i):i−th measurement •by(i): Corresponding prediction
32An approach to some classical libration point orbit problems by means of artificial intelligence techniques Figure 3.1: Schematic representation of the procedure used to compute the intersections in the Poincaré section (step 1) Figure 3.2: Schematic representation of the procedure used to compute the intersections in the Poincaré section (step 2) τs∗=τis+¡τi+1s−τis¢Ycut −Yis Ys i+1−Yis(3.1) where Ycut is determined by the intersection between the straight segments, while Yisand Yi+1sare the Ycoordinates of the endpoints of the stable segment. Equivalently for the unstable manifold, we can write that, τu∗=τju+¡τj+1u−τju¢Ycut −Yju Yu j+1−Yju(3.2) With the obtained values of τs∗and τu∗, we can now integrate the stable and unstable manifolds that correspond to these values of their respective τparameter. In doing that, we find a new pair of crossings of the manifolds in the Poincaré section, thus obtaining four new segments as outlined in figure 3.2. Among those four segments, the two segments that intersect are identified and the procedure explained above is iterated for these by applying equations (3.1) and (3.2) again, until sufficient level of accuracy is obtained for the solution.
CHAPTER 3. COMPUTATION OF HETEROCLINIC CONNECTIONS BETWEEN PLANAR LYAPUNOV ORBITS 33 When a solution is reached, the values of τsand τuare used to build a representation of the heteroclinic trajectory by propagating the unstable and stable manifolds forward and backward in time. 3.2.2. ANN approaches to predict heteroclinic connections 3.2.2.1. Prediction of the manifold cuts with the Poincaré section The first of the two ANN approaches used to predict the heteroclinic connections, which is from this point forward referred to as the ANN refinement method, consists of training multiple ANNs to develop a prediction engine that is able to find the cuts of the manifolds with the Poincaré section. Said prediction engine consists of a sequence of ANNs that work in two steps to infer the results: •First, a classification-type ANN assigns one of the three classes to each instance of the input data: positive, negative or collision (see the schematic representation in figure 3.3). •Once an instance has been predicted to belong to a certain class, it enters a regressiontype ANN, where the coordinates of its corresponding manifold cut are predicted. The specific ANN model that an input instance enters depends on its assigned class. This means that an instance that has been classified into the positive group will enter the regression-ANN that models the manifold cuts that belong to the positive group. Similarly for an instance that has been classified into the negative group, it will enter the ANN that models the cuts of the negative group. As for the input that are predicted to fall into the collisions class, they do not enter any ANN, since their manifold cuts are not computed. Thus, given the CJof a trajectory and the parameter τthat defines the exiting point of the unstable/stable manifold from the departure/arrival orbit as the two input values, the prediction engine shall output the Yand . Ycoordinates that define the cut of the said manifold with the Poincaré section. Regarding the hyper-parameter fitting of these ANNs, the use of different types of activation functions were compared and it was concluded that with a hyperbolic tangent type function a better fit was obtained, according to the error measurements provided by the k-fold cross validation data. Once this prediction engine is built, it can be used as a black-box that given a CJ-τinput, it outputs the Yand . Ycoordinates at the Poincaré section almost instantaneously, since evaluating the ANN functions requires very little computational cost. This black-box can be used as a means to generate an approximation of the curves in the Poincaré section for a fixed Jacobi constant. It can also be used to refine the intersections between the curves, when integrated into the refinement procedure explained in 3.2.1.4.. Similarly to the classic method, when such an intersection is found, the τsand τuare used to integrate backwards and forward in time respectively, so as to obtain the heteroclinic trajectory.
34An approach to some classical libration point orbit problems by means of artificial intelligence techniques 3.2.2.2. Curve fitting to predict heteroclinic connections The method presented here will be hereinafter referred to as "ANN curve fitting". As will be seen in the benchmark results, the pairs of CJ-τvalues that correspond to heteroclinic connections form continuous curves. The basis of the ANN curve fitting method lies on the generation of a dataset that contains a series of points of the heteroclinic connections curve. Then, the dataset is fed to a neural network as for it to fit the data and create a model of the curve. Because the heteroclinic connections considered here are from L1 to L2, it is necessary to generate the (CJ,τu) and (CJ,τs) pairs corresponding to the manifolds that form the connections. For the design of the neural networks, different numbers of fully connected layers (between one and three) and different numbers of neurons for each of the layers (between 1 and 300 per layer) were tested by means of Bayesian optimization with 30 iterations, and a 44-node single-layer network was found to give good results for all the regressions. As the performance of these neural networks is going to be tested comparing them with the cubic interpolation shown in section 3.3., and the validation to prevent overfitting is performed through k-fold cross validation (thus, there is no need to set aside part of the data for the validation as explained in section 2.4.1.), we have chosen to use all the available data that had been calculated for obtaining the benchmark results as a training set (100 pairs of points in total corresponding to the heteroclinic connections). As an alternative to this ANN curve fitting, it would also be possible to adjust the same points used for training by means of a cubic interpolation producing very good results. However, because of the shape of the heteroclinic connections curves (which can map two different values of τto a single value of CJand vice versa and therefore, it cannot be fitted with a single continuous function as it is) this requires the additional step of converting the curve from the Cartesian coordinates CJand τ, to auxiliary polar coordinates. By contrast, ANN curve fitting in this context has the advantage of being more straightforward once the points that represent the heteroclinic connections have been properly sorted in the datasets (since the ANNs for fitting the upper τvalues and the ANN for fitting the lower τvalues are independent, they must be sorted into separate training sets). The cubic interpolation alternative, which is the same as the one presented in section 3.3. as a benchmark of the heteroclinic connections curve, will be used to compare the results of the ANN curve fitting method. 3.2.3. Generation of the datasets In order to train an ANN on a chaotic problem, a set of solutions obtained from multiple initializations of the input variables of interest is required. For the ANN to be able to provide sufficiently accurate predictions of the solutions, numerous and varied observations must be fed to the network [27]. As aforementioned, this set of solutions is generated by finding heteroclinic connections using the scheme described for the classic method (section 3.2.1.). The data is stored in tables that are then used as the learning material for the ANNs. Each table contains the variables that correspond to the inputs and the outputs of the networks. Thereby, the networks try to match the correspondence among them. As explained in the Methodology section, multiple neural networks are trained independently. That means that a unique dataset is given to each one of them. The interval of CJ
CHAPTER 3. COMPUTATION OF HETEROCLINIC CONNECTIONS BETWEEN PLANAR LYAPUNOV ORBITS 35 where the heteroclinic connections are searched, is the same for the three methods and corresponds to: CJ∈[3.1823,3.1133] (3.3) These values were chosen so as to stay within the range where there are no tangencies of the manifolds with the Poincaré section. Although this is a small range of the Jacobi, but it allows for considerable variation of the amplitudes of the Lyapunov orbits (see examples of multiple planar Lyapunov orbits for different values of the Jacobi constant in figure 1.3). As for the parameter τ, because of the periodic nature of the orbits, the inverval considered is: τ∈[0,360] (3.4) 3.3. Benchmark results from the classic method The results here presented are the outcome of applying the classic method for finding heteroclinic connections explained in section 3.2.1.. Throughout this work, the considered direction of the connecting trajectories is from the planar Lyapunov orbits around the lunar point L1to orbits around lunar point L2. Therefore, the unstable manifolds are computed for L1and the stable manifolds for L2. 3.3.1. Manifold cuts in the Poincaré section Given a pair of values of CJand τthat determines a single manifold of the departure or arrival orbit, the cut of that manifold on the Poincaré section (Ssurface as defined in equation 1.33) can be classified according to the value of the Ycoordinate that it takes at the crossing. This section shows how the input variable space formed by CJand τis divided according to where the manifold corresponding to a point in that space falls. See for example in figure 3.8 for the case where CJ=3.1140, the cuts of the unstable manifolds on S (in red) that have a positive coordinate of Yform a continuous curve on the Y>0half-space, while the cuts of the unstable manifolds with a negative coordinate of Yform a separate continuous curve on the Y<0half-space. This is also true for the stable manifolds. In the other two cases of the same figure, however (where CJ=3.1823 and CJ=3.1600), none on the manifold cuts fall into the Y<0half-space, resulting in a single continuous curve on the Y>0half-space for L1and for L2. Doing this division is important because depending on whether a manifold falls into the positive region or the negative region, the patterns that are intended to be grasped with the ANNs differ (as can be clearly appreciated in the bottom left plot of figure 3.6) Therefore, the positive and the negative regions are modelled separately, each with a ANN that is trained with data within its own region only. On the other hand, being able to detect collisions is also critical, because given that the position of the small primary is a singularity of the problem, the numerical propagation of the trajectory might pose some problems when getting too close to said point. This
36An approach to some classical libration point orbit problems by means of artificial intelligence techniques problem is easily solved by discarding the trajectories that intersect with a sphere of a radius slightly greater than the radius of the small mass. The value of the Moon’s radius used to define these collisions is the one shown in the table 3.1 applying a conservative margin of 1%. Regarding the terminology used in following figure legends, the three possible cases are referred to as: •Positive: Ycoordinate of the manifold cut on the Ssection is positive. •Negative: Ycoordinate of the manifold cut on the Ssection is negative. •Collision: Ycoordinate of the manifold cut on the Ssection is within the collision radius. This classification of the manifold cuts on the Ssection is schematically depicted in figure 3.3 (the coloring scheme of the different regions is the same as the one that is being used to show the results in the figures below: blue for the positive group, red for the collision group and yellow for the negative group). Figure 3.3: Schematic representation of the classification of the manifold cuts on the Poincaré section according to the Ycoordinate where they fall Once the three categories have been defined, the benchmark datasets can be sorted to define the different areas in which the CJ−τplane is divided. Each one of these datasets contains 39700 points (that is, almost four times the number of points used for the training and test of the ANNs) for the sake of higher resolution of the reference solution. Figures 3.4 and 3.5 show the classification into the three regions for the case of unstable manifolds of L1and stable manifolds of L2, respectively.
CHAPTER 3. COMPUTATION OF HETEROCLINIC CONNECTIONS BETWEEN PLANAR LYAPUNOV ORBITS 37 Figure 3.4: Classification of the cuts of the unstable manifolds of L1 according to the sign of the Ycomponent. Manifolds that approach the small primary within a given radius (see table 3.1) belong to the group named as "Collision". Additionally, in these figures the curves that give the CJand τpairs corresponding to the heteroclinic connections are drawn from the interpolation of the data points. From the curves, it is inferred that for each fixed value of the Jacobi constant, two heteroclinic connections can be found up to CJ≈3.164. For greater values of the Jacobi constant (which correspond to orbits of smaller amplitudes around L1and L2), no heteroclinic connection is found.
38An approach to some classical libration point orbit problems by means of artificial intelligence techniques Figure 3.5: Classification of the cuts of the stable manifolds of L2 according to the sign of the Ycomponent. Manifolds that approach the small primary within a given radius (see table 3.1) belong to the group named as "Collision". The periodic nature of the problem is made clear in both figures, meaning that the results show continuity from values of τ=0◦to τ=360◦. Furthermore, the values of the Yand . Ycoordinates of the aforementioned manifold cuts are plotted and shown in figures 3.6 and 3.7. These coordinates can be seen to form surfaces that are continuous within the boundaries of each group (considering the aforementioned periodicity in τ).
CHAPTER 3. COMPUTATION OF HETEROCLINIC CONNECTIONS BETWEEN PLANAR LYAPUNOV ORBITS 39 Figure 3.6: . Ycoordinate of the cuts of the unstable manifolds (L1) with the Poincaré section For both libration orbits, comparing the surfaces corresponding to the coordinate Ywith the surfaces corresponding to . Y, a remarkable observation is that there is a difference of one order of magnitude between the two, being the values of the velocity coordinate greater than the position coordinate.
40An approach to some classical libration point orbit problems by means of artificial intelligence techniques Figure 3.7: . Ycoordinate of the cuts of the unstable manifolds (L2) with the Poincaré section Taking a section with CJ=C∗ Jin the surfaces depicted in the previous figures, so that C∗ J is a constant value within the studied interval, it is possible to construct the Poincaré maps. The curves formed in some of these sections are shown in the following section. 3.3.2. Some examples of heteroclinic connections In order to compute the heteroclinic connections, the Poincaré section defined by (1.33) is used as explained in section 1.4.. Recalling that for an heteroclinic connection to exist for a given constant value of CJ=C∗ J, the curves formed by the manifold crossings in the Poincaré section must intersect in at least one point. In figure 3.8, three example cases of these curves are shown. It can be observed that while the Poincaré section for CJ=3.1823 does not show any intersection between the curves of the stable and unstable manifolds and thus, a pair of heteroclinic connections can be found for these cases (one pair for each Jacobi constant).
CHAPTER 3. COMPUTATION OF HETEROCLINIC CONNECTIONS BETWEEN PLANAR LYAPUNOV ORBITS 41 Figure 3.8: Examples of different curves of the manifold cuts in the Poincaré section computed for different values of the Jacobi constant The corresponding pairs of heteroclinic connections computed for these two cases are depicted in figure 3.9. As can be appreciated, the states of the stable and unstable manifolds closely match at the Xcoordinate given by the Poincaré section, due to the refinement of the intersections, which gives the τvalue that corresponds to these solutions as an output. Figure 3.9: Examples of heteroclinic trajectories connecting the libration regions of L1and L2computed for different values of the Jacobi constant These are the results that are intended to be found by means of the ANN methods presented in this work. Therefore, the ultimate goal is to develop different methodologies that can compute these heteroclinic at a fraction of the computational cost of the classic refinement method.
48An approach to some classical libration point orbit problems by means of artificial intelligence techniques Figure 3.16: Relative error of the predictions of the L1 manifold cuts’ coordinates
CHAPTER 3. COMPUTATION OF HETEROCLINIC CONNECTIONS BETWEEN PLANAR LYAPUNOV ORBITS 49 Figure 3.17: Relative error of the predictions of the L2 manifold cuts’ coordinates This can be further discussed by looking at the statistical error measurements given in table 3.2 for the regression ANNs: MAE, MAPE, RMSE and RMSRE (see for the formulas on how the statistical indicators are calculated). By comparing the values of the errorindicators between the ANNs trained with different distributions of input data, it is clear that the networks that had been trained with randomly scattered data have smaller error rates than the ones that had been trained with gridded datasets in all the studied cases, for the predictions of both coordinates and for both libration points. Although not very significant (the difference does not always reach one order of magnitude), there is a slight difference in the value of the error rates between the two data distribution types, nor big differences are observed in the regions where larger errors are concentrated. Thus, it is concluded from this observation that randomly scattered data can provide a more accurate match of the results, and is therefore considered hereunder as the default distribution of the inputs when generating data for such ANNs.
50An approach to some classical libration point orbit problems by means of artificial intelligence techniques Table 3.2: Statistical error measurements. Comparison between random and gridded datasets. MAE L1 L2 Y˙ Y Y ˙ Y Uniformly gridded 1.63E-003 5.23E-003 1.63E-003 5.23E-003 Randomly scattered 1.48E-003 4.52E-003 1.48E-003 4.52E-003 MAPE L1 L2 Y˙ Y Y ˙ Y Uniformly gridded 7.72E+000 3.22E+001 7.72E+000 3.22E+001 Randomly scattered 5.67E+000 7.57E+000 5.67E+000 7.57E+000 RMSE L1 L2 Y˙ Y Y ˙ Y Uniformly gridded 2.42E-003 7.27E-003 2.42E-003 7.27E-003 Randomly scattered 2.22E-003 6.31E-003 2.22E-003 6.31E-003 RMSRE L1 L2 Y˙ Y Y ˙ Y Uniformly gridded 1.41E-001 5.63E+000 1.41E-001 5.63E+000 Randomly scattered 9.39E-002 4.71E-001 9.39E-002 4.71E-001 The reason behind the predictions showing better overall accuracy for the randomly scattered data despite having the same number of entries as the gridded data, seems to lay behind the fact that by randomly initializing the input variables, we are introducing 10,000 unique values of CJand 10,000 unique values of τ, instead of having 100 different values respectively, as in the gridded set. To summarize, it has been concluded from the analysis of the statistical errors that using randomly scattered dataset results in better predictions. Thus, datasets of this type are recommended for training such ANNs. 3.4.2. Robustness analysis of the ANN By studying a series of different but similar models of the same problem, the robustness of the method can be analysed. In the case of AI, a method is said to be robust if the model trained with a unique dataset has a similar performance when trained over a range of similar but unique datasets. This analysis is useful to reveal when the obtained results depend
CHAPTER 3. COMPUTATION OF HETEROCLINIC CONNECTIONS BETWEEN PLANAR LYAPUNOV ORBITS 51 on the hyper parameters of the network that were chosen [26]. Therefore, because the good results obtained in the previous section do not guarantee equally good performance for other similar ANNs trained with different random partitions of the datasets, 5 similar ANN models of the prediction engines are created, each one trained with a different 70/30 partition of the training/test data. Then, a statistical analysis of the results is performed in order to evaluate if similar rates of error are achieved or not. First, a comparison among the performances of equivalent classification models is carried out. As apparent from the confusion matrices of each model as shown in figure 3.18, good consistent classification results are obtained for the different models. With a total of 13 positive instances mistakenly classified as collisions, the worst results are shown for the classification of L2manifolds with Model 1. However, even the worst model behaves adequately, and that good overall performance seems to remain regardless of the particular shuffle of data used for training.
52An approach to some classical libration point orbit problems by means of artificial intelligence techniques Figure 3.18: Comparison of the classification performance by means of the confusion matrix among five equivalent models
CHAPTER 3. COMPUTATION OF HETEROCLINIC CONNECTIONS BETWEEN PLANAR LYAPUNOV ORBITS 53 Now, to see where in the CJ−τplane do the misclassifications take place, the test set for each model is used to predict the group for every case, leading once again to very similar results accross all the variations of the model: the misclassifications occur near the limits of the regions. As a means to quantify the variation of the results among the different models, the errors in the classification are summarized in table 3.3, along with their mean value and the standard deviation computed accross the set of 5 models. The coefficient between the standard deviation σand the mean value µ, is called coefficient of variation and denoted like cv, and it can be used to evaluate whether the fluctuations within a sample are big or small as compared to the mean value. As a rule of thumb, values of cvgreater than 1 indicate a big amount of dispersion of the error rates, whereas values smaller than 1 indicate little dispersion of the error. For our set of 5 models, the dispersion of both the misclassification rate and the classification loss is observed to be little since it takes values of the order of magnitude of 10−1. Table 3.3: Statistical error measurements of 5 classification models for the manifolds of L1 (unstable) and L2(stable) trained with different partitions of the data Misclassification rate Model 1 Model 2 Model 3 Model 4 Model 5 µ σ cv L1 3.00E03 1.66E-03 1.00E-3 3.33E-04 1.33E-03 1.47E-03 9.89E-04 6.74E-01 L2 6.00E-03 2.33E-03 3.00E-3 1.67E-03 3.33E-03 3.27E-03 1.66E-03 5.07E-01 Classification loss Model 1 Model 2 Model 3 Model 4 Model 5 µ σ cv L1 2.96E-03 1.67E-03 9.88E-04 3.35E-04 1.32E-03 1.46E-03 9.78E-04 6.72E-01 L2 6.01E-03 2.34E-03 3.09E-03 1.70E-03 3.33E-03 3.29E-03 1.65E-03 5.02E-01
54An approach to some classical libration point orbit problems by means of artificial intelligence techniques Figure 3.19: Comparison of the classification results among five equivalent models
CHAPTER 3. COMPUTATION OF HETEROCLINIC CONNECTIONS BETWEEN PLANAR LYAPUNOV ORBITS 55 After assessing the differences and similarities among different but equivalent classification models, a comparison among the performances of equivalent regression models is carried out. In order to do so, the Yand . Ycoordinates are predicted using the corresponding test set for each model. As a result, the predictions are shown in figures 3.20 and 3.21, and their respective relative error in figures 3.16 and 3.17. For all the models, a behaviour similar to what was described in the previous section is obtained; that is, for Y, an accumulation of higher error regions at the limits of the different regions can be perceived, while for the . Y, some higher errors seem to be concentrated around the heteroclinic connection area.
56An approach to some classical libration point orbit problems by means of artificial intelligence techniques Figure 3.20: Comparison of the regression results in terms of the prediction of the Y coordinate among five equivalent models
CHAPTER 3. COMPUTATION OF HETEROCLINIC CONNECTIONS BETWEEN PLANAR LYAPUNOV ORBITS 57 Figure 3.21: Comparison of the regression results in terms of the prediction of the Y coordinate among five equivalent models
64An approach to some classical libration point orbit problems by means of artificial intelligence techniques Figure 3.27: Case 2 - Representation of the trajectories of the planar heteroclinic connections from L1(in red) to L2(in green) computed though three different methods Figure 3.28: Case 3 - Representation of the trajectories of the planar heteroclinic connections from L1(in red) to L2(in green) computed though three different methods In order to study the differences in the accuracy obtained for each method in detail, a compilation of the errors made by each one of them when computing the tau parameter where an heteroclinic connection is found (using the method classic as a reference) is shown in table 3.5. Moreover tables 3.6 and 3.7 show the matching gaps between the unstable and stable manifold, in terms of the Yand . Ycoordinates.
CHAPTER 3. COMPUTATION OF HETEROCLINIC CONNECTIONS BETWEEN PLANAR LYAPUNOV ORBITS 65 Table 3.5: Comparison of the τparameter of the heteroclinic connections obtained by the three different methods. The reference value, τref , is shown as computed by the classic method (a), as well as the difference between the reference and the τobtained with the ANN refinement method (b) and with the ANN curve-fitting method (c). That difference for method kand manifold of Liis computed as |∆τLi (k)|=|τLi (k)−τLi ref .| L1-unstable L2-stable τref .|∆τ(b)| |∆τ(c)|τre f .|∆τ(b)| |∆τ(c)| Case 1 CJ=3.117648 1st H.C. 103.99 2.56E+00 1.12E-03 112.21 4.83E-01 1.70E-04 2nd H.C. 233.18 2.79E+01 6.44E-04 350.93 1.26E+01 2.48E-03 Case 2 CJ=3.158603 1st H.C. 169.72 1.61E-01 6.06E-03 47.93 6.26E-01 8.77E-03 2nd H.C. 220.72 4.87E-01 3.20E-03 353.42 1.24E+00 9.67E-03 Case 3 CJ=3.115433 1st H.C. 100.65 4.88E+00 4.78E-03 115.03 1.98E+00 7.32E-04 2nd H.C. 232.59 2.96E+01 4.24E-04 351.89 1.27E+01 2.11E-03 Analyzing the data for the τparameter (see table 3.5), a clear difference is observed between the accuracy of the methods (b) and (c): while the values obtained from |∆τ(b)| are in orders of magnitude between 10−1and 101, the values of |∆τ(c)|are in orders of magnitude between 10−4and 10−3. In other words, we obtain greater accuracy in calculating the τusing the ANN curve-fitting (c) method than using the ANN refinement method (b). Table 3.6: Matching gap between coordinate Yof the unstable and stable manifold cuts with the Poincaré section, for the three different methods: (a) classic method, (b) ANN refinement method and (c) ANN curve-fitting method. The matching error for method k, is computed as ²Y (k)=|YL1 (k)−YL2 (k)| ²Y (a)²Y (b)²Y (c) Case 1 CJ=3.117648 1st H.C. 3.11E-14 1.19E-03 4.91E-07 2nd H.C. 1.01E-11 1.27E-02 5.91E-06 Case 2 CJ=3.158603 1st H.C. 2.15E-13 3.30E-04 1.23E-05 2nd H.C. 7.99E-12 1.28E-03 9.65E-06 Case 3 CJ=3.115433 1st H.C. 2.67E-13 2.58E-03 1.47E-06 2nd H.C. 1.02E-11 1.13E-02 3.78E-06 As for the data in tables 3.6 and 3.7, it shows how well the unstable manifold that departs from L1matches the stable manifold that approaches L2to form an heteroclinic connection. Once again, a better performance can be observed with method (c) than with (b) in terms of the closeness between the states of the ends of the manifolds. While for the classic method, said maximum distance is set to a fixed value (in our case the error both in Yand . Yis limited to 10−10 at most), for the ANN methods greater errors are obtained: while the order of magnitude of ²Y (b)and ² . Y (b)is between 10−4and 10−2, for ²Y (c)and ² . Y (c) their order of magnitude is between 10−7and 10−5.
66An approach to some classical libration point orbit problems by means of artificial intelligence techniques Table 3.7: Matching gap between coordinate . Yof the unstable and stable manifold cuts with the Poincaré section, for the three different methods: (a) classic method, (b) ANN refinement method and (c) ANN curve-fitting method. The matching error for method k, is computed as ² . Y (k)=| . YL1 (k)−. YL2 (k)|. ² . Y (a)² . Y (b)² . Y (c) Case 1 CJ=3.117648 1st H.C. 1.56E-11 1.41E-02 7.09E-06 2nd H.C. 8.62E-11 1.99E-02 2.87E-05 Case 2 CJ=3.158603 1st H.C. 3.28E-12 1.83E-03 7.73E-06 2nd H.C. 1.59E-11 1.62E-03 1.33E-05 Case 3 CJ=3.115433 1st H.C. 1.87E-11 1.43E-02 4.71E-05 2nd H.C. 4.06E-11 2.68E-02 1.36E-05 Besides the above-mentioned indicators of accuracy, a major consideration that must also be taken into account when evaluating and comparing the usefulness of the two ANN methods in the context in which they are to be used, is the computational cost that is required to build the prediction engine related to each one, together with the corresponding time that that supposes. The prediction engine that uses the ANN refinement method does not require to be fed with the “exact” solution of the heteroclinic connections for the training process; the only training data needed to obtain a successful solution is a sufficiently densely populated collection of the Yand . Ycoordinates of the manifold cuts with the Poincaré section. On the other hand, in order to be trained, the predictor that uses the ANN curve-fitting method does require a collection of exact solutions (CJand τvalues) that provide the initial conditions for the heteroclinic connections. The significant advantage of not needing a collection of highly accurate solutions in the case of the ANN refinement method, is a great reduction of the computational cost when generating the training data, since the refining of the solution by means of successive propagations that make use of numerical integration is the most time-consuming part of the numerical implementation.
CONCLUSION In this work, some new ANN-based methods for numerically computing heteroclinic connections between planar Lyapunov orbits in the Earth-Moon system for a given Jacobi constant is proposed. To ensure that the predictive engine formed by a combination of ANNs can be used in the range of application with confidence, an analysis of the sensitivity of the networks to the specific data used for training is required, and only when its performance does not show great variance among the equivalent models can the model be considered valid. As for the predictive model developed in this work by means of the ANN refinement method, the results showed that it was able to produce robust results. On the other hand, with regards to the hyper-parameter fitting of the networks for the ANN refinement method, the use of different types of activation functions resulted in the hyperbolic tangent type function being the best choice to minimise the error of the predictions, according to the error measurements provided by the k-fold cross validation data. The two new ANN methods developed in this work, can be considered as good as the classical method to be used as a seed in a realistic ephemeris model. This is because real trajectories of the bodies in the Solar System are not as close to the Restricted Three Body Problem model used here as a reference, and despite the fact that said model is an acceptable approximation in early stages of mission design where preliminary guesses are enough, it is necessary when defining a real mission to use more realistic models of ephemeris [3]. Future work A list of suggestions on how this research can be extended in future work is presented here: •In order to obtain better results from the ANN refinement method, a broader hyperparameter fitting can be performed such as the optimisation of the number of fully connected layers and neurons per layer. •It would be interesting to see how the size of the datasets used in the training of ANNs influences their predicting performance and try to identify some criteria for determining the minimum amount of data that would provide a sufficiently accurate model of the problem, as well as the maximum amount of data that would be allowed before signs of overfitting start to appear. •With the aim of seeing how well the proposed ANN-based methods generalize to other problems with different primary bodies, the same approaches could be extended and applied to the Sun-Earth system. •Other similar ANNs can be designed and employed to predict if given a state in the neighbourhood of the small primary, its trajectory would propagate to be transit or non-transit orbits. The transit orbits are the trajectories that pass from one realm of the Restricted Three Body Problem to another [20]. Because the invariant manifolds 67
68An approach to some classical libration point orbit problems by means of artificial intelligence techniques of the libration orbits act as the separatrices of the transit and non-transit orbits, the ones that can be [15] are those inside the tubes. This could be a useful tool for mission design since given any state of a spacecraft going through a space of interest, its direction could be easily predicted at a very low computational cost. •Similarly to the previous idea, other ANNs can be designed to classify the neighbouring states of a libration orbit depending on whether the would move away from the orbit to the right of the left.
BIBLIOGRAPHY [1] Bishop, C.M. Neural Networks for Pattern Recognition. New York: Oxford University Press, ISBN 0198538642, (1995). 23 [2] Canalias E and Masdemont, J. J. “Homoclinic and heteroclinic transfer trajectories between Lyapunov orbits in the Sun-Earth and Earth-Moon systems”. Discret and continuous dynamical systems.14(2006), 261–279. 30 [3] Canalias Vila, E. Contributions to Libration Orbit Mission Design using Hyperbolic Invariant Manifolds [online]. Docoral thesis, UPC, Escola d’Enginyeria de Telecomunicació i Aeroespacial de Castelldefels, 2007. ISBN 9788469089736. [Retrieved: 24 May 2021]. Available at: <http://hdl.handle.net/2117/93242>1,7,9,31, 63,67 [4] De Smet, S. and Scheeres, D.J. “Identifying heteroclinic connections using artificial neural networks”. Acta Astronautica.161(5), 192–199. (2019) 1,7,12,15,31,42 [5] Everitt, B. The Cambridge dictionary of statistics [on line]. Repr. with corrections. Cambridge: Cambridge University Press, 1998. ISBN 0521593468 [Retrieved: 11 November 2021]. Available at: <https://archive.org/details/ cambridgediction00ever_0/page/n7/mode/2up>. 27 [6] Garnham, Alan. “Introduction”. Artificial intelligence : an introduction. (Routledge Kegan Paul. 1988): 01–24. 15 [7] Garnham, Alan. “Knowledge representation”. Artificial intelligence : an introduction. (Routledge Kegan Paul. 1988): 24–44. 15 [8] Garnham, Alan. “Vision, Thinking and reasoning, Language, Learning, ”. Artificial intelligence : an introduction. (Routledge Kegan Paul. 1988): 57–270. 15 [9] Gómez, G.; Jorba, À.; Simó, C.; Masdemont, J. Dynamics and Mission Design Near Libration Points. Volume III: Advanced Methods for Collinear Points. Barcelona: World Scientific Monograph Series in Mathematics, 2001. 9 [10] Gómez, G.; Jorba, À.; Simó, C.; Masdemont, J. Dynamics and Mission Design Near Libration Points. Volume I: Fundamentals: The Case of Collinear Libration Points. Barcelona: World Scientific Monograph Series in Mathematics, 2001. 9 [11] Guzzetti, D. “Reinforcement Learning and Topology of Orbit Manifolds for Stationkeeping of Unstable Symmetric Periodic Orbits.”. AAS/AIAA Astrodynamics Specialist Conference.Portland (2019).15 [12] Greer, Dale. “Constants and Equations for Calculations”. USEnet SCI.SPACE. Available at: <https://science.ksc.nasa.gov/facts/faq04.html>,(1994). 29 [13] Haykin, Simon. “Introduction”. Neural networks and learning machines. (Prentice Hall/Pearson): 11–17.(2009) 16,18,19,21 69
[14] Jorba, A. and Masdemont, J. J. “Dynamics in the Center Manifold of the Collinear Points of the Restricted Three Body Problem”. Physica D.132(1999), 189–213. 9, 10 [15] Koon, W. S.; Lo, M. W.; Marsden, J. E.; Ross, S. D. “Heteroclinic Connections between Periodic Orbits and Resonance Transitions in Celestial Mechanics”. Chaos. 10, 427–469. (2000) 68 [16] LaFarge, N., Howell, K. and Linares, R. “A Hybrid Closed-Loop Guidance Strategy for Low-Thrust Spacecraft Enabled by Neural Networks”. 31st AAS/AIAA Space Flight Mechanics Meeting, Charlotte, North Carolina (Virtual). Orlando, Florida (2021). 15 [17] MATLAB. “loss”. . [Retrieved: 25 May 2021]. Available at: <https://www. mathworks.com/help/stats/classificationlinear.loss.html>. 26 [18] MATLAB. “Cross-Validation”. . [Retrieved: 5 June 2021]. Available at: <https:// www.mathworks.com/discovery/cross-validation.html>. 24 [19] Poincaré, H. “Sur le problème des trois corps et les équations de dynamique”. Acta Mathematica.13, 1–270. (1890) 3 [20] Qi, Rui Xu, Shijie Zhang, Yao Wang, Yue. (2012). Earth-to-Moon Low Energy Transfer Using Time-dependent Invariant Manifolds. AIAA/AAS Astrodynamics Specialist Conference 2012. 10.2514/6.2012-4431. 67 [21] Rosenberg, R. M. “Títol del capítol”. Chapter 19: About Celestial Problems. (Plenum Press. New York. 1977): 364–371. 3 [22] Ross, S.; Koon, W.; Lo, M.; Marsden, J. (2011). Dynamical Systems, the Three-Body Problem, and Space Mission Design [on line]. 2011. [Retrieved: 13 June 2021]. Available at: <http://www.cds.caltech.edu/~koon/book/>. 12 [23] Sullivan, C.J. and Bosanac, N. “Using Reinforcement Learning to Design a Low- Thrust Approach into a Periodic Orbit in a Multi-Body System”. 20th AIAA Scitech Forum. Orlando, Florida(2020). 15 [24] Szebehely V. Theory of Orbit. Academic Press, 1967. ISBN 9780123957320. 8 [25] The MathWorks, Inc. Machine Learning with MATLAB [Self-Paced Online Course]. [Retrieved: 24 May 2021]. Available at: <https://matlabacademy.mathworks. com/details/machine-learning-with-matlab/mlml>. 26 [26] Weisberg, M. “Robustness Analysis”. Philosophy of Science.73(5), 730–742. (2006) 51 [27] Williams David R. Breen, P. G.; Foley, C. N.; Boekholt, T.; Portegies Zwart, S. “Newton versus the machine: solving the chaotic three-body problem using deep neural networks”. Monthly Notices of the Royal Astronomical Society.494(2), 2465–2470. (2020) 1,31,34,42 [28] Williams, David R. “Moon Fact Sheet”. NASA Goddard Space Flight Center. Available at: <https://nssdc.gsfc.nasa.gov/planetary/factsheet/moonfact. html>,(2020). 29