scieee AI-readable full text Open interactive document viewer

Forecast of the global TEC by nearest neighbour technique

Monte Moreno, Enrique,Yang, Heng,Hernández Pajares, Manuel

Abstract

We propose a method for Global Ionospheric Maps of Total Electron Content forecasting using the Nearest Neighbour method. The assumption is that in a database of global ionosphere maps spanning more than two solar cycles, one can select a set of past observations that have similar geomagnetic conditions to those of the current map. The assumption is that the current ionospheric condition can be expressed by a linear combination of conditions seen in the past. The average of these maps leads to common geomagnetic components being preserved and those not shared by several maps being reduced. The method is based on searching the historical database for the dates of the maps closest to the current map and using as a prediction the maps in the database that correspond to time shifts on the prediction horizons. In contrast to other methods of machine learning, the implementation only requires a distance computation and does not need a previous step of model training and adjustment for each prediction horizon. It also provides confidence intervals for the forecast. The method has been analyzed for two full years (2015 and 2018), for selected days of 2015 and 2018, i.e., two storm days and two non-storm days and the performance of the system has been compared with CODE (24- and 48-h forecast horizons).

Full text

Citation: Monte-Moreno, E.; Heng, Y.; Hernández-Pajares, M. Title. Remote Sens. 2022,1, 0. https://doi.org/ Received: Accepted: Published: Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. Copyright: © 2022 by the authors. Submitted to Remote Sens. for possible open access publication under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). Article Forecast of the Global TEC by Nearest neighbour technique Enric Monte-Moreno 1,†,‡ 0000-0002-4907-0494, Heng Yang 2,1,3‡ 0000-0002-1583-2307 and Manuel Hernández-Pajares 3,4,‡ 0000-0002-9687-5850* 1Universitat Politècnica de Catalunya, (Department of TSC, TALP) Barcelona, Spain; [email protected] 2School of Electronic Information and Engineering, Yangtze Normal University, 408100, Chongqing, China; [email protected]. 3Universitat Politècnica de Catalunya (Department of Mathematics, UPC-IonSAT), Barcelona, Spain; [email protected] 4Institut d’Estudis Espacials de Catalunya (IEEC), Barcelona, Spain *Correspondence: Enric Monte-Moreno [email protected] ‡ These authors contributed equally to this work. Abstract: We propose a method for Global Ionospheric Maps of Total Electron Content forecasting 1 using the Nearest Neighbour method. The assumption is that in a database of global ionosphere 2 maps spanning more than two solar cycles, one can select a set of past observations that have similar 3 geomagnetic conditions to those of the current map. The assumption is that the current ionospheric 4 condition can be expressed by a linear combination of conditions seen in the past. The average these 5 maps leads to common geomagnetic components being preserved and those not shared by several 6 maps being reduced. The method is based on searching the historical database for the dates of the 7 maps closest to the current map and using as a prediction the maps in the database that correspond 8 to time shifts on the prediction horizons. In contrast to other methods of machine learning, the 9 implementation only requires a distance computation and does not need a previous step of model 10 training and adjustment for each prediction horizon. Also provides confidence intervals for the 11 forecast. The method has been analyzed for two full years (2015 and 2018), for selected days of 2015 12 and 2018, i.e., two storm days and two non-storm days and the performance of the system has been 13 compared with CODE (24- and 48-hour forecast horizons). 14 Keywords: Global Ionospheric Maps; Total Electron Content forecasting; Machine Learning, Nearest 15 Neighbour method 16 1. Introduction 17 The variations in electron density, and correspondingly in its line-of-sight integral, 18 the vertical total ionospheric electron content (TEC) affect satellite telecommunication 19 services and Global Navigation Satellite Systems (GNSS) due to the effect these fluctuations 20 have on radio wave propagation. The TEC variations induce changes that affects the 21 transmission quality either, as reduced transmission rate or positioning errors. This justifies 22 the importance of monitoring and predicting global TEC maps, as the knowledge of the 23 spatial distribution of TEC would allow corrections to be made. The TEC measurement 24 consists of the total number of electrons integrated along a 1 m2 cross-section tube, using 25 as a unit the TECU defined as = 10 16electrons/m2 . The prediction of Global Ionospheric 26 Maps (GIM) at different horizons is important because the ionospheric delay is main 27 limiting factor in high-accuracy positioning. These predictions may allow achieving sub- 28 meter accuracy for mass-market single-frequency receivers [ 1 ]. In this paper we propose 29 a method for Global Ionospheric Maps of Total Electron Content forecasting using the 30 Nearest Neighbour method which we denote as NNGIM. 31 1.1. Issues related to previous work in TEC map prediction. 32 The difficulty in predicting TEC maps of the ionosphere stems from the fact that the 33 quality of the prediction depends on geomagnetic activity, season, geographical location, 34 Version February 21, 2022 submitted to Remote Sens. https://www.mdpi.com/journal/remotesensing Version February 21, 2022 submitted to Remote Sens. 2 of 23 ionospheric structures, such as equatorial ionization anomaly (EIA), and storm-enhanced 35 density (SED). Besides, the sparsity in the geographical distribution of stations leads to 36 problems related to interpolation in regions not covered by these stations. Added to the 37 problem of variability and dependence on external factors, the prediction of GIM maps by 38 machine learning techniques is affected by the need for machine learning techniques to 39 infer prediction rules from examples. This means that the database to train the system has 40 to be rich enough to represent most of the combinations of effects acting on the ionosphere. 41 One intrinsic limitation of machine learning-based systems is the availability of a database 42 that sufficiently covers the multiple forms of phenomena that can occur. In the works cited 43 below, most of the prediction proposals are made using databases covering at most one solar 44 cycle. In this work, we will be using UPC-IonSAT’s database (for more information about 45 the IonSAT group, i.e., Ionospheric determination and navigation based on Satellite And 46 Terrestrial systems group see [ 2 ]), which covers more than two solar cycles. It is important 47 to highlight the importance of having more than one solar cycle to infer the structure and 48 parameters of the forecasting system. Within the long-term solar cycle periodicity, there is 49 large variability. As an example analized in this paper, we can mention two dates when 50 storms occur. For instance, the Saint Patrick storm of 17 March 2015 (maximum of solar 51 cycle C23) and the storm of 25-26 August 2018 (minimum of solar cycle C23). These are 52 dates in different phases of the solar cycle, in which we have high solar and geomagnetic 53 activity superimposed on different basal levels of ionization. The Tables 5and 7, summarise 54 the hourly Kp values on these days. In these two days, the activity in terms of Kp values 55 and magnitude of the flares is similar. Therefore, within the periodicity associated with the 56 solar cycles and the season of the year, there is a high variability that makes it difficult to 57 infer prediction rules. This high variability, in addition to the baseline levels of activity due 58 to the periodicity components, justifies the need for a long enough database. 59 The need for a database that sufficiently covers the variability of GIMs presents 60 significant technical problems from the point of view of prediction algorithms. In the case 61 of two solar cycles, with maps at a rate of one every 15 minutes, the resulting database 62 consists of more than one million maps. The use of databases of this size makes the 63 hardware requirements demanding, and the computational time requirements to perform 64 topology and parameter tuning of the machine learning system are substantial. 65 To address the above mentioned problem, ie., of training a machine learning system 66 for forecasting the GIMs, making, there are two approaches. 67 68 Local approach: In this case, a specific subset of the database is constructed from the 69 current observation. An example is [ 3 ], in which maps immediately before the current 70 map are used, and the forecasting method is based on these maps and the associated 71 tangent spaces, which are linearly combined to generate the predicted maps. This approach 72 assumes that the change in the maps has inertia that determines the future evolution. In [ 4 ] 73 they apply a similar idea to calculate the autoregression coefficients that predict the values 74 of the spherical harmonics that allow the GIMs to be reconstructed. Another approach is 75 the one followed in this article, in which prediction is made based on past examples that 76 have a small distance to the current observation. This approach assumes that conditions 77 similar to the one observed in the current map have occurred in the near past and that 78 the temporal evolution of the current map can be inferred from the evolutions seen in the 79 previous history. A noteworthy aspect of the local approximation is that increasing the 80 number of prediction horizons does not lead to a significant increase in computation time, 81 as most of the computation time comes from determining the coefficients in a window that 82 spans a limited amount of time. 83 Global approach: In this case, the prediction model uses all the historical GIMs. One 84 consequence of this is that to make a reliable prediction, the model has to be estimated from 85 a sufficiently rich set of examples. This leads to problems of implementation. For Support 86 Vector Machines, this approach is infeasible, since it is necessary to create the Gram matrix, 87 which is the square of the number of examples, and it must be kept in memory. In the 88 Version February 21, 2022 submitted to Remote Sens. 3 of 23 case of Deep Learning [ 5 ], the training has to be carried out in Graphical Processing Units 89 (GPU), which have limited memory. 90 Another significant limitation in the approach using Deep Learning and similar meth- 91 ods is that either a completely new model or a more complicated topology has to be trained 92 when increasing the number of prediction horizons. In contrast, the method we propose, 93 the Nearest Neighbour GIM algorithm (NNGIM), is based on finding the nearest set of 94 maps, increasing or changing the values of the horizons has minimal repercussions on the 95 execution time. 96 A natural model for forecasting the GIM maps that has been used literature (see Section 97 1.2) is the Long Short Time Memory (LSTM) [ 5 ] architecture. A very significant limitation 98 of the LSTM architectures is that they consist of units that have saturating nonlinearities, 99 such as hyperbolic tangent and sigmoid. Since the GIM statistics are long tail (see the 100 last section of [ 3 ]), the units work much of the time in saturation and cannot model large 101 amplitudes. For a complete explanation see Subsection 4.4. One consequence is that 102 precisely the regions of interest where there are large TEC gradients cannot be modelled 103 correctly by these units, as the gradient is zero due to the saturation of the nonlinearities. 104 The complexity of using Deep Learning based methods was one of the motivations for 105 seeking a more simple approach to the problem. 106 1.2. Approaches and limitations to the GIM forecast 107 We will now discuss some antecedents to set the NNGIM in context. The features 108 and limitations of other GIM prediction methods will allow us to justify NNGIM design 109 decisions. This section will also serve to highlight the limitations of the global approach to 110 forecasting. 111 Global approach: A first approach to the problem of predicting TEC maps consists 112 of predicting TEC values for specific stations, thus obtaining a local description of the 113 TEC distribution. This is the case of [ 6 ], where they predict the TEC over China using a 114 variant of the LSTM type networks (ED-LSTM). This type of method differs from ours 115 in the sense that the prediction is done at the station level and there is no interpolation 116 process. One point to note is the use of data from one solar cycle (Jan 2006 to April 2018). 117 The authors use training data from 2006 to 2016, validation between Jan 2017 and April 118 2018. To avoid the problem of the solar cycle-dependent baseline TEC level, and to adapt 119 the data to the structure of the LSTM grids, the authors normalise the data. This assumes 120 that the variations around the baseline TEC value are similar between different times of the 121 solar cycle. One problem related to their approach is that the neural network units they 122 apply have saturation-type non-linearities, which has as a consequence that for extreme 123 values, the units work on saturation (i.e., the gradients are null, and the extreme value is 124 set to the limit of the saturation function). Note that the statistics of the TEC distribution 125 is Leptokurtic, i.e., long tail, which means that extreme values are much more common 126 than expected in the case of a Gaussian or Exponential distribution. On the other hand, an 127 advantage of the type of neural network they employ is that it allows the use of external 128 data naturally in the architecture (solar flux and geomagnetic activity data). In addition 129 to the LSTM architecture (ED-LSTM), the authors explore other architectures and provide 130 a performance hierarchy. The forecast horizons are 2-hour, 3-hour, and 4-hour, using as 131 input a window of past samples between one day and three days. An important lesson 132 from this work is that the inertia hypothesis, in the sense that the temporal evolution of 133 the TEC follows a trajectory specified by the near past, leads to a prediction barrier at a 134 horizon of a few hours. This limit on the prediction horizon under these conditions was 135 also found in [3]. 136 Another paper working on the prediction of TEC values using a network of local 137 stations in Turkey is [ 7 ]. Unlike the present paper which deals with stations distributed 138 all over the globe, the authors use five stations, all located in the mid-latitude region. The 139 training implementation uses inputs corresponding to the current TEC value, together with 140 measurements affecting the evolution of ionization, such as Kp, Solar Flux (F10.7 cm), Mag- 141 Version February 21, 2022 submitted to Remote Sens. 4 of 23 netic Field (Bx, By and Bz) and proton density and EUV radiation in two bands. The neural 142 network they use is based on LSTM structures, which suffer from the above-mentioned 143 drawback, i.e., the input signal has a Leptokurtic statistic. In other words, outliers are 144 common (for instance figures 5 to 7 of the article), while the prediction mechanism is based 145 on LSTM units that saturate at high levels of any of the inputs. This means that in situations 146 of high ionization variations, this approach does not allow the prediction model to learn 147 from these variations. Another aspect that concerns us in the current implementation is the 148 robustness of the prediction system with respect to the measurements. The fact of using 149 heterogeneous measurements as input to the network makes the prediction susceptible to 150 events of loss of some type of measurement. 151 A similar paper is [ 8 ] that performs the map prediction on a single meridian, 120 152 degrees, in a range of latitudes between 80 degrees north and 80 degrees south, (in contrast 153 to our case, where we perform a global prediction). They use as input to the system a 154 history of past measurements of daily TEC sampled at 2-hour intervals, together with the 155 mean value of the solar flux. An interesting feature of this work is that the use of external 156 information (kp and Dst) had a different influence depending on the phase of the solar 157 cycle. Another limitation, which is common to other applications using neural networks, is 158 the partitioning between train, test and validation. In this case, for the validation partition, 159 the years 2015 and 2018 were used, which correspond to the time after the peak of activity 160 and when the activity decreases. Since the statistics of the TEC variation and the external 161 information used are different according to the phase of the solar cycle, this partition 162 introduces a bias in the architecture and parameters selected for the predictor. Moreover, 163 the use of sigmoid/hyperbolic nonlinearities in LSTM/MLP prediction methods leads to 164 the limitations discussed in Subsection 4.4.165 An article reporting a related architecture is [ 9 ]. Unlike the previous case, the objective 166 was to predict global TEC maps, with a resolution of 5 by 2.5 degrees in longitude and 167 latitude. The temporal resolution was 2 hours. To solve the diurnal cyclicity problem, 168 they use a solar centred reference frame. The authors propose the prediction of global 169 maps with prediction horizons increasing in two-hour steps up to 48 hours. The input data 170 were the maps for the three immediately preceding days. The type of architecture they 171 propose is based on a sequence to sequence, in which CNN-type networks are combined 172 with memory networks, either LSTM or Gated Recurrent Units (GRU), both with saturating 173 nonlinearities. The authors report that prediction at intervals longer than 24 hours did not 174 achieve good results; in fact, in the 24-hour prediction, they obtain a result that improves 175 the cyclic prediction by only 6%. The study was conducted using the data from 1/1/2014 176 to 12/31/2016. Note also, that the use of LSTM or GRU also suffers from the limitation that 177 the observations are leptokurtic, which means that the nolinearities work in saturation for 178 extreme values. 179 In [ 10 ] the authors propose a system based on the use of two LSTM layers followed 180 by a fully connected dense layer for the prediction of the global TEC maps. Unlike the 181 previous cases, the prediction is performed directly on the spherical harmonic (SH) used to 182 build the GIMs. In this approach, in addition to using the information in the recent past 183 (24h) regarding the SH, they also use external information that helps to make the prediction, 184 such as the solar extreme ultraviolet (EUV) flux, the hour of the day, and disturbance storm 185 time (Dst) index. The prediction horizon is set to 1 hour and 2 hours. It is interesting to 186 note that the prediction has an error with respect to frozen maps (defined as persistence, 187 i.e., ˆ Mapfrozen(t+τ) = Map(t) ) of 60 % at one hour and 63 % at two hours. Note that 188 (although the experiment is not totally comparable) this gain is similar to the obtained by 189 the frozen cyclic approach vs. the persistence hypothesis, in section 2.5 of the current paper. 190 As a test base, the intervals before and after the interval used for the training base were 191 used. That is, for the training base the interval: 1 January 2015 to 26 May 2016 and for the 192 test base the intervals 19 October to 31 December 2014 and 27 May to 31 December 2016, 193 thus ensuring a similarity between the training and test conditions. 194 Version February 21, 2022 submitted to Remote Sens. 5 of 23 The methodology of the above-mentioned works is correct from the point of view 195 of Deep Learning type network design, however, despite the correctness, it reflects the 196 limitations of this type of technique. These limitations are typical of the general approach 197 to the TEC prediction problem using Deep Learning and do not indicate a misuse of the 198 technique by the authors. The limitations of Deep Learning are the need to process the input 199 data such as normalisation or de-trending of the TEC, the difficulty of performing a test 200 under train-like conditions, the fact that some networks require saturating nonlinearities 201 that are not fit for long-tail input distributions, and the limitations for predictions at horizon 202 greater than 24 hours. 203 A different approach to the GIMs prediction problem is the one proposed by [ 11 ], 204 employing GANs (Generalized Adversarial Networks), which consists of a generative 205 method, with a training criterion based on generating maps that compete with a system 206 that generates impostors. It is a method that, by observing the current GIM map, generates 207 the future one. Unlike most prediction systems, it does not depend on a previous history of 208 GIM measurements, so it is robust to loss/reinitialization of the GIM data source. Like our 209 method, it implicitly assumes that the external conditions that determine the evolution of 210 the maps are included in the current measurement. However, an important limitation of 211 this method is that the quality depends on the data used for training and validation. In the 212 case of this publication this limitation is crucial, because the partition that was performed 213 to train the method ((1) a training data set (2001-2011), (2) a validation data set (2012), and 214 (3) a test data set (2013-2017)) makes that the criteria to determine the characteristics of the 215 experiment given by the year of validation, induce a bias that makes the behavior of the 216 predictions on unseen data depend on the accidental conditions of this partition and the 217 peculiarities of the chosen cycle. This method does not have the limitations of the above 218 mentioned methods in the sense that it does not use nonlinearities with saturation, and 219 does not depend on additional measures to the GIM, which makes it robust to data loss. 220 Local approach: This approach uses information from recent past to estimate the 221 parameters of the prediction model. 222 In [ 4 ], the authors describe a system based on autoregressive models, with coefficients 223 computed from a history covering the previous 30 days. The prediction is made on the 224 SH coefficients, which allow the GIM to be reconstructed. By estimating the model locally, 225 they can adapt the system to short-term climatology. This allows them to test the model at 226 different times of the solar cycle, without the need for special partitioning of the database, 227 as is done in the case of deep learning. The performance of the model is tested against 228 CODE, IGS products, and TEC measurements via JASON. The prediction result is different 229 depending on the activity at the time, with worse results at times of high activity. One 230 result is that the RMSE error of prediction during a low activity period was 1.5 TECUs at 231 24 hours. In [ 12 ] the authors use autoregressive moving average (ARMA) for vertical TEC 232 (VTEC) prediction for stations in Northern Europe. In this article, they use information 233 related to the analysis in wavelets to establish the prediction at 1, 2, and 3-hour horizons, 234 calculating the ARMA coefficients from the last 7 days. The TEC profiles follow a daily 235 pattern, so an ARMA-type method is suitable for modeling the cyclicities. 236 In [ 1 ], the authors propose a method for the prediction of GIMs with horizons of up to 237 2 days. It is based on a method that predicts the coefficients of the discrete cosine transform 238 (DCT) by an autoregressive method. The autoregressive coefficients are calculated locally 239 using information from the last week’s maps. From the predicted DCT coefficients, the 240 map at the horizon of interest is computed. By calculating the coefficients using a recent 241 past and using the maps of the previous 24 hours for the prediction, the system can adapt 242 to the current weather conditions. The results were validated with JASON measurements. 243 In [3] a prediction system is proposed based on an autoregressive model of the maps 244 of the last 24 hours, updated using only recent observations. The forecast uses also the 245 components of the tangent spaces associated with each of the previous maps. The forecast 246 horizons range from half an hour to 24 hours. The tangent space information allows 247 to increase the information on the possible trajectory and deformation of the map over 248 Version February 21, 2022 submitted to Remote Sens. 6 of 23 time, and in some way to reflect how the ionospheric climatology changes the shape of 249 the high ionization regions. One feature related to the comparison with other methods, 250 is percentage improvement of the prediction method compared to a frozen reference in 251 a sun-fixed reference frame. The reference will be the prediction error of keeping the 252 map frozen (see section 2.5 for more information). As shown in Table 1, the prediction 253 performance has a concave profile. The performance is computed using the recent past, 254 and with autoregressive model coefficients calculated with recent values as well. The best 255 prediction compared to frozen is at a 3-hour horizon, increasing thereafter. At 24 hours, the 256 improvement is only 5 %, which is in line with methods based on deep learning. This leads 257 us to think that there is a certain horizon barrier in terms of prediction using the recent past 258 as input. 259 Table 1. Forcast vs. Frozen (% RMSE) for the Tangent Space. Horizon: 1/2 h 1 h 2 h 3 h 6 h 24 h Forcast vs. Frozen: 84.99 % 77.65% 71.35% 69.34% 87.23% 95.76% The analysis of the previous approaches leads us to the conclusion that the information 260 immediately prior to the current map does not allow reliable predictions of GIM maps 261 at horizons longer than a few hours. They also indicate the limitations and difficulties of 262 training prediction models, and the complexity of the models and partitions of the database. 263 This leads us to look for a different approach, in which the prediction is made by 264 searching for situations similar to the current one in a sufficiently large database. A by- 265 product of this approach is that it allows to create confidence margins of the forecast in a 266 natural way (see Section 4.1). 267 2. Materials and Methods 268 2.1. UPC-IonSAT real-time Global Ionospheric Maps and Data preprocessing 269 The GIMs are generated from data gathered from several hundred worldwide GNSS 270 stations. This data stream is obtained through the protocol used by the RT IGS working 271 group and the data processing is performed using the UPC-IonSAT ionosphere model. 272 The streaming protocol referred to as “Networked Transport of Radio Technical Com- 273 mission for Maritime Services (RTCM) via Internet Protocol” (NTRIP), was developed by 274 the German Federal Agency for Cartography and Geodesy (BKG), enables the streaming of 275 the observation data from the worldwide permanent GNSS receivers [13]. 276 The UPC-IonSAT’s RT TOMographic IONosphere Model (RT-TOMION) is a 4D 277 (3D+time) model of the global state of the ionosphere, focused on RT estimation of TEC, 278 mainly based on GPS dual-frequency measurements with the hybrid geodetic and tomo- 279 graphic ionospheric model, and robust to various types of deterioration. This model is the 280 extension of the Tomographic Ionospheric Model (TOMION) developed by UPC in the 281 1990s and has been employed for UPC RT/near-RT ionosphere service of IGS since 2011 282 [15–17,19,21]. 283 Also, the VTEC interpolation techniques of the UPC RTTOMION model is performed 284 either by spherical harmonics or Kriging [ 19 ] so to fill the gaps where data is lacking. 285 In addition, the most recent maps are interpolated by means of the ADDGIM algorithm 286 presented in [ 22 ]. For more details of the processing and interpolation of the GIMs, see [ 22 ]. 287 2.2. The NNGIM forecasting algorithm 288 In this section, we will describe the Nearest Neighbour GIM (NNGIM) algorithm. This 289 algorithm consists of searching for the N maps closest (in Euclidean metric) to the current 290 one in the database of past maps (more than one solar cycle). Then, from these maps, the 291 GIMs with an offset equal to the prediction horizon are retrieved and averaged. 292 The assumption underlying the NNGIM algorithm is that in a database that encom- 293 passes more than one solar cycle, a small number of maps with the property of being the 294 closest in Euclidean distance to the current one can be found, and that have ionosphere 295 Version February 21, 2022 submitted to Remote Sens. 7 of 23 conditions in common with the current one, might characterize the maps at a time shift 296 equal to the forecast horizon. Although each ionosphere condition is unique, it is assumed 297 that in the past there have been conditions with a similar composition of external features 298 and that the average of all of them will reflect the specific features of the current one. The 299 set of similar maps therefore take into account the cyclical aspects that influence the overall 300 distribution of TEC along with the various external influences. That is, if we select a set of 301 future map values closer to the current one when averaging, common values in subsets of 302 the future maps will be retained, while non-common conditions will be attenuated. Note 303 that the idea behind the assumption is that there will be subsets of maps representing 304 similar ionospheric conditions, and the overall composition of these parts will allow us 305 to approximate previously unseen situations. We assume that these previously unseen 306 situations are composed of subgroups that characterize part of the previous conditions 307 common to the current situation. 308 The UPC-IonSat GIMs database, which spans over two solar cycles and consists of 309 more than 106maps, was used to implement the method (see [22] for details). 310 In the Algorithm diagram 1we present the summary of the NNGIM algorithm. A 311 detailed explanation of the algorithm is given below, defining also the variables involved. 312 The input of the algorithm consists of a database spanning more than two solar cycles 313 ( DbAllMaps ). Note that for consistency in the computation of the distance between maps 314 at different moments, the database and the current map are transformed to sun-fixed 315 geomagnetic coordinates. After the forecast, the inverse transform is performed. 316 Since the maps have a seasonal component with a mean TEC value that depends 317 on the season of the year (see Figure 6), the search for the nearest map will be carried 318 out in the vicinity of the current month. Therefore, given the date of the current map 319 DateTest , the month is extracted ( MTst ), and maps the current month and a window of 320 ±WNeighMonths months are selected from the database. In the experiments, a neighbourhood 321 of WNeighMonths = 1 was taken. Other parameters are the forecast horizon in hours ( Horizon ) 322 and the number of nearest neighbours ( NumNN ). The next step is to construct a second 323 database ( DbIma ), which will consist of the maps with the current map month and the 324 neighbouring months for all years. The Euclidean distance between the current map 325 Map(DateTest) and the maps in the DbIma database is then calculated. (lines 3 to 7 of the 326 Algorithm diagram 1). The vector of distances is then sorted from smallest to largest (line 8 327 of the Algorithm diagram 1) and assigned to the vector of indices IndexMinDist.328 We define NumNN as the number of maps to be used for prediction estimation. The 329 Algorithm diagram 1, lines 9 to 15 describe the process for generating the prediction. For 330 the nearest NumNN maps, we find the corresponding index IndexMap and the associated 331 date Date[IndexMap] . Next, we add the offset Horizon to generate the date DateNNMap 332 associated with each of the maps. The maps associated with each date DateFutMap ←333 DateNNMap +Horizon are combined to generate the future map ForecastMap.334 Finally, from the maps of the horizon shift, the standard deviation at the pixel level is 335 calculated, as shown in line 17. 336 Various strategies for combining the maps were tested, such as a simple average, a 337 distance-weighted average, or weight that diminishes with the time difference. We also 338 tried a trim mean, defined as the average of the values of each specific pixel in the maps, 339 using only the values between the 25th percentile and the 75th percentile. The median of 340 the pixels of the nearest NumNN maps was also tested. The combination that gave the best 341 results was a simple average of the maps. 342 One parameter to be adjusted is the number NumNN used to calculate the forecast. 343 This value depends on the forecast horizon and the month of the year. For all experiments 344 we chose a value NumNN = 500. The choice was made based on the performance during 345 June 2019 and was explored for values between 1 and 1000. The rationale for the choice of 346 date was to have a date in a cycle (C24) different from the cycle in which the results are 347 presented (C23), and also at a season of low activity. The experiments showed that for this 348 month and horizons between 3 hours and 48 hours the optimum value was between 150 349 Version February 21, 2022 submitted to Remote Sens. 8 of 23 Algorithm 1: The NNGIM algorithm Data: Inputs to the algorithm: DateTest ←Date of the test GIM; DbAllMaps ←All GIMs of two solar cycles in sun-fixed geomagnetic coordinates; WNeigh ←Window of Neighbouring Months; NumNN ←Number of elements for computing the mean of the Nearest Neighbours; Date ←Dictionary of Dates, indexed by Map number; Horizon ←Forecast Horizon in hours; Result: ForecastMap,ForecastStd Map 1Generate the Forecast Database; 2MTst ←GetMonth(DateTest);/* Month of the current map */ 3DbIma ←∅;/* DbIma Map DataBase of Current and Neighbouring Months */ 4for M=MTst −WNeigh to MTst +WNeigh do 5DbIma ←(Add to set)DbAllMaps(M);/* Add maps for month M */ 6end 7MatDist ←Distance(DbIma,Map(DateTest)) ;/* Distance from Map(DateTest) to MatDist */ 8IndexMinDist =Argsort(MatDist);/* Argsort returns the Indices of the sorted MatDist */ 9ForMap ←∅;/* Compute mean value of the nearest maps at timestamp + horizon */ 10 for NumMap=1 to NumNN do 11 IndexMap ←IndexMinDist[NumMap]; 12 DateNNMap ←Date[IndexMap]; 13 DateFutMap ←DateNNMap +Horizon; 14 ForMap ←ForMap +DbAllMaps[DateFutMap]; 15 end 16 ForecastMap ←ForMap/NumNN; 17 ForecastStd Map ←ComputeSTD(DbAllMaps,Date,IndexMinDist,Horizon); Version February 21, 2022 submitted to Remote Sens. 9 of 23 and 700. In the real-time implementation, a look-up table will be used in which the month 350 and horizon will be related to the NumNN value. 351 An interesting result is that using only the nearest neighbour, i.e., NumNN = 1 provided 352 results with a quality equal to using the cyclic version of the map, (defined as ˆ Mapcyclic(t+353 τ) = Map(t− 24 h+τ) ). The performance did not improve until using a number of NumNN 354 greater than 50. This leads us to think that the use of a large number of maps allows us 355 to create a representation of the possible contributions of the factors that affect ionisation. 356 The explanation is that the combination of external factors is larger than the number of 357 examples in the database. The underlying assumption is that the current combination of 358 factors affecting ionisation can be expressed as a linear combination of similar situations in 359 the past. 360 A product of this algorithm is that it can provide confidence intervals for the GIMs, 361 i.e. the local standard deviation of the ionisation values. The estimation of confidence 362 intervals can be done directly, as a collection of several hundred maps is available. One of 363 the features of the maps from which the prediction is constructed is the variability around 364 a central value, as shown in Figure 2. Therefore from the set of maps used to generate the 365 prediction, one can estimate a standard deviation ForecastStd Map at a pixel level, defining this 366 standard deviation as the deviation of the maps from the mean value of the prediction 367 ForecastMap . One point that we show in section 4.1 is that the prediction covers most of the 368 area of the reference map Re fMap , so we can consider that this variance provides us with 369 an adequate measure of uncertainty for the prediction. 370 Improvements: The improvements we envisage in the next step are to change the 371 average distance, using a metric on the manifold in which the map is located. This is the 372 distance defined in [ 23 ] in which coefficients of the angle between coordinates gi,j=<373 ei , ej> are used to weight the Euclidean distance. The advantage of using this distance 374 is that it allows considering in the similarity measure between maps, distortions such as 375 shifts, rotations, etc. The reason why it has not been used in this implementation is that it 376 requires a computational load proportional to the square of the number of map elements. 377 With the current hardware capabilities at 2021, the computation of MatDist took about ten 378 minutes, so it was not implemented in the final prototype. 379 Another improvement is to use a heuristic that decreases the computational needs 380 to determine the nearest neighbors. That is, an algorithm with a suitable heuristic for the 381 dimensionality of the maps and with a lower search cost, as is the case of [ 25 ]. The fact 382 that the GIMs have the ionisation levels distributed in clear and distinct regions makes this 383 algorithm efficient. This might allow implementing a distance with higher computational 384 cost as the nearest neighbour search cost can be decreased. 385 The computational cost on an iMac i7 using one core of applying the algorithm was as 386 follows. The Euclidean distance MatDist from a map Map(DateTest) to the database DbIma 387 consisting of the current month and the two neighbouring months (with 170,000 maps) was 388 of the order of 135 ms, and the cost of sorting the distances Argsort(MatDist) of 9 ms, the 389 calculation of the average map ForecastMap, was less than 1 ms. 390 The format of the maps consisted of TEC values measured with a resolution of 2.5 391 degrees in latitude and 5 degrees in longitude, resulting in maps represented as a 72x71 392 array of floats. Each map occupied 40k bytes on disk (the float represented in ascii format 393 had only one decimal place), while in memory it occupied 164k bytes with a float-32bit 394 representation. For more information see section 2.1 395 The most time-consuming part of the algorithm is the loading into memory of the 396 pre-computed database DbIma , which occupies 2 Gigabytes. The time cost on an SSD is 397 in the order of 2 seconds. However, in a real-time application, the database can be kept 398 permanently in memory. 399 The real-time prediction of the implementation of this algorithm can be found at the 400 following URL: [24], with the following naming convention: 401 Version February 21, 2022 submitted to Remote Sens. 16 of 23 (a) 5 March 2015. Horizon: 6h (b) 5 March 2015. Horizon: 24h (c) 5 March 2015. Horizon: 48h (d) 17 March 2015. Horizon: 6h (e) 17 March 2015. Horizon: 24h (f) 17 March 2015. Horizon: 48h Figure 8. Comparison of the NNGIM forecast vs. frozen cyclic RMSE. Upper row: 5 March 2015 (12 days before the storm). Lower row: 17 March 2015 (the St.Patrick storm day) 3.2.2. Performance on 13-14 and 25-26 August 2018 551 Figure 9, shows the RMSE time series for the two selected days at a time of the low 552 activity solar cycle. On that day, the RMSE level is similar to that of the 5th of March 2015 553 analysed above, which was a day of low geomagnetic activity, while being in a high activity 554 phase of the solar cycle. 555 On 13-14 August 2018, the NNGIM prediction is better or equal to that of the cyclic 556 frozen, except for a brief interval on the 14th of March at a 6-hour horizon. The average 557 improvement over the day is in the order of 25% for 6 hours, 13% for 24 hours, and 18% 558 for 48 hours. However, there are significant fluctuations throughout the day and the 559 slopes/error patterns vary from horizon to horizon. 560 On 25-26 August 2018 (storm day) for the 6- and 24-hour horizons NNGIM system- 561 atically performs better than the frozen cyclical. The performances at the 6- and 24-hour 562 horizons are practically the same for the 25th day, while they differ significantly for the 563 26th day, with NNGIM being 25-50% better over long time intervals. 564 3.3. RMSE, Bias and Standard Deviation by latitude 565 In this section, we will study the relationship of RMSE with standard deviation and 566 bias. In Figure 10, we show the performance for a horizon T= 6 hours. In the Figure we 567 present by latitude a) the RMSE of the NNGIM and frozen cyclic predictions and b) the 568 standard deviation and bias components of the NNGIM. The study period consists of the 569 Version February 21, 2022 submitted to Remote Sens. 17 of 23 (a) 13 August 2018. Horizon: 6h (b) 13 August 2018. Horizon: 24h (c) 13 August 2018. Horizon: 48h (d) 25-26 August 2018. Horizon: 6h (e) 25-26 August 2018. Horizon: 24h (f) 25-26 August 2018. Horizon: 48h Figure 9. Comparison of the NNGIM forecast vs. frozen cyclic RMSE. Upper row: 13-14 August 2018 (12 days before the storm). Lower row: 25-26 August 2018 (storm day) dates studied above, i.e., August 2015 and May 2018. The values were calculated on 3007 570 maps corresponding to 31 days, with maps every 15 min. 571 The first observation is that the NNGIM prediction has a lower RMSE at all latitudes 572 on the two studied dates. The RMSE maxima are located in the case of NNGIM at the same 573 latitude, while in the case of frozen cyclic the latitude in one case differs. On the other hand, 574 the maxima in the standard deviation do not coincide with the RMSE maxima, noting that 575 the difference is explained in the case of March 2015 by a very high bias at about 10 degrees 576 north latitude. The bias of -3 TECU observed in this case is rare, in the maps observed by 577 the author, the bias, in general, was less than 1 TECU, as illustrated in the case of August 578 2018. 579 4. Discussion 580 4.1. Reliability and confidence margins of the NNGIM algorithm 581 In this section, we will study the reliability of the standard deviation estimated from the 582 nearest neighbours provided by the algorithm. The purpose is to show that the standard 583 deviation computed on the nearest future maps correctly represents the variability of 584 the predicted map. We will show the reliability from two points of view, the first one 585 consists of plotting several maps and showing the regions not covered by the confidence 586 margin (defined as one standard deviation around the mean TEC value at each geographic 587 coordinate of the GIM map, i.e., we associate a margin of about 68% confidence with each 588 Version February 21, 2022 submitted to Remote Sens. 18 of 23 (a) RMSE March 2015 (b) Std/Bias March 2015 (c) RMSE August 2018 (d) Std/Bias August 2018 Figure 10. Performance for a horizon T= 6 hours. RMSE, Bias and Standard Deviation by latitude. (a) Comparison of the RMSE between the NNGIM and the frozen cyclic March 2015, (b) Standard Deviation and Bias for the NNGIM March 2015, (a) Comparison of the RMSE between the NNGIM and the frozen cyclic August 2018, (b) Standard Deviation and Bias for the NNGIM August 2018. Note that the Bias and Standard Deviation are not the same scale. interval of 2.5 degrees latitude by 5 degrees longitude) given by the standard deviation 589 provided by NNGIM. The second point of view will consist in showing the decrease of 590 the error obtained when the prediction is considered to be included within the confidence 591 margin given by the standard deviation. 592 In Figure 11, we show maps for different dates for the month of June 2019, in which we 593 mark in green the region covered by the interval ForecastMap ±ForecastStd Map , and in red the 594 areas of the prediction that fall outside this interval. The images show that the areas of the 595 Forecastre f maps not covered by a standard deviation margin are located in the periphery 596 or at the areas of sharp transition. 597 (a) Map at 2019-06-29 23:00:00 (b) Map at 2019-06-22 17:45:00 (c) Map at 2019-06-12 10:15:00 Figure 11. Forecast maps in which the basemap coincides with the global coordinates (latitude ± 90 degrees, longitude ± 180), and the height shows measured TEC values. The colors distinguish, (green), the regions of the GIM map where the prediction is within the +- sigma range, and in red the regions where the prediction is outside. Green areas: show the areas where the reference Forecastre f is included in ForecastMap ±ForecastStd Map.Red areas: areas where Forecastre f is outside the margin. In Figure 12 we show the error decrease regarding the NNGIM prediction if we 598 consider only data outside the interval within the confidence margin. That is, we consider 599 the error to be zero if the predicted map is contained in the margin, i.e., Forecastre f ⊂600 ForecastMap ±ForecastStd Map . It is seen that systematically for the two years and prediction 601 horizons, the error decreases between 15 and 20%. In other words, assuming the correct 602 value is within the confidence interval significantly reduces the error. An interesting feature 603 Version February 21, 2022 submitted to Remote Sens. 19 of 23 is that this error reduction does not depend on either the season of the year or the prediction 604 horizon. 605 (a) Horizon 6 hours (b) Horizon 12 hours (c) Horizon 24 hours (d) Horizon 48 hours Figure 12. Performance for Forecastre f ⊂ForecastMap ±ForecastStd Map . Percentage of RMSE reduction with regard to cyclic freezing for the horizons of 6h, 12h, 24h, 48. 4.2. Validation of the method with JASON3 and CODE data. 606 Next we show the results of the validation of the NNGIM VTEC in terms of the 607 differences with respect to JASON3 VTEC measurements (see Figure 13) and the comparison 608 with other GNSS VTEC products in terms of Bias, Variance and RMS (see Figure 14). 609 This part of the study was conducted in the interval of the first 100 days of the year 610 2021. Note that for the sake of completeness of the analysis of the method, we have 611 performed the experiments at different times of the solar cycle. Given the space limitation, 612 we think that in this way we can provide the maximum information of the algorithm from 613 the point of view of each issue to be evaluated. The CODE data was downloaded from the 614 NOAA website [14]. 615 The comparison was made between the products based on NNGIM prediction at 24 616 hours (UN4G) and 48 hours (UN8G), vs. IGSG and Center for Orbit Determination in 617 Europe (CODE) VTEC prediction model products, at 24 hours (C1PG) and 48 hours (C2PG). 618 In Figure 13, we show the histogram of the VTEC residual defined as δV=VTECJASON3−619 VTECForecastGIM on a logarithmic scale to enhance the details in the low-density parts of 620 the histogram, i.e., regions where the number of samples per bin is much lower than at the 621 mode of the distribution. For comparison purposes on the figure, there is a summary of 622 the relevant statistics of each product, i.e., bias, standard deviation, and RMS. Note that 623 the Std. Dev and RMS of the NNGIM prediction at 24 hours (UN4G) and 48 hours (UN8G) 624 are systematically lower than the CODE and IGSG. Note that the tails of the distributions 625 are similar. Also the distribution related to the NNGIM product having a lower width 626 compared with the CODE products. This indicates that the probability of a high-value 627 positive error in the NNGIM products is much lower than the other products. 628 Next, we will compare, concerning the JASON3 measurements, the products by 629 latitude, as a function of the differences in standard deviation, bias, and RMS. 630 In Figure 14, on the left, we show the standard deviation of the VTEC residual vs. 631 JASON3 at 5-degrees longitudinal intervals. Note that the standard deviation is weighted 632 by the number of JASON3 observations in cells in the same 5-degree latitude range. The 633 24-hour prediction product based on NNGIM, UN4G consistently has a lower standard 634 deviation than the equivalent CODE, C1PG except for the sample at 15 degrees latitude 635 north where they are the same. The largest differences are observed at the equator and in 636 Version February 21, 2022 submitted to Remote Sens. 20 of 23 40 30 20 10 0 10 20 30 40 50 VTEC JASON 3 or [VTEC JASON 3VTEC GIM ] in TECUs 100 101 102 103 104 105 106 Number of Common JASON3 Measurements (Total: 5096617) JASON3 VTEC Assessment (within days 001,2021 to 100,2021) Bias / Std.Dev. / RMS in TECUs VTEC JASON 3: 7.70/ 6.91/ 10.35 VTEC JASON 3VTEC UN 4 G : -3.22/ 2.87/ 4.32 VTEC JASON 3VTEC UN 8 G : -3.30/ 2.94/ 4.42 VTEC JASON 3VTEC C 1 PG : -2.97/ 3.41/ 4.52 VTEC JASON 3VTEC C 2 PG : -2.95/ 3.40/ 4.50 VTEC JASON 3VTEC IGSG : -3.70/ 2.54/ 4.49 Figure 13. Histogram, in log scale for the number of counts, of VTEC difference of JASON3 measurement minus GIMs value for the first 100 days of 2021, the color code indicates the comparison for different forecasting products. The histogram of the reference values of JASON3 is represented in gray. The corresponding overall bias, standard deviation (Std.Dev.), and RMS are indicated in the upper right legend. areas of north/south latitude greater than 35 degrees. In the case of the 48-hour forecast 637 products (UN8G vs. C2PG), the trend is very similar, with NNGIM having a lower standard 638 deviation at all latitudes except at 15 degrees north latitude. 639 In Figure 14, in the center, we show the bias of the products. In this case, the bias of 640 the NNGIM products is lower, except in the region below -35 degrees south latitude and 641 above 45 degrees north latitude. The explanation for this bias corresponds to the fact that 642 there is a different ionosphere sampling model, as explained in [22]. 643 Finally, in Figure 14, on the right, we show the RMS value by latitude, in this case, the 644 RMS of the prediction is better for the NNGIM products between -30 degrees south latitude 645 and 50 degrees north latitude. Note that from 50 degrees north latitude the difference 646 concerning CODE is less than half a TECU, and on the other hand in the equatorial region 647 the UN4G and UN8G products provide an improvement of 2 TECUs. The difference in the 648 south polar region could be because there are fewer stations, and therefore the GIMs are 649 less accurate. 650 Note that the availability of the NNGIM forecasting depends on the delay of generating 651 the GIM maps, which is the case of the UPC-IonSAT is of about half an hour, while the 652 availability of the CODE maps can be with a delay of up to 5 or 7 hours, which makes the 653 effective forecasting horizon shorter. 654 4.3. Considerations about the quality assessment by means of JASON3 VTEC measurements 655 The importance of the VTEC measures obtained by JASON3 lies in the fact that it 656 provides us with an objective reference of the real value for the comparison purposes. The 657 measures provided by JASON3, allow us to determine whether the estimate made by the 658 prediction product provides a correct value or introduces biases. As the orbit altitude of 659 JASON3 is about ∼ 1300 km, the altimeter can count almost all the VTEC of the ionospheric 660 state above the ocean region. It is important to emphasize that over the ocean areas, the GIM 661 used for the prediction might have large interpolating errors appear due to their far distance 662 Version February 21, 2022 submitted to Remote Sens. 21 of 23 60 40 20 0 20 40 60 Latitude / Deg 2.0 2.5 3.0 3.5 4.0 Std.Dev. [VTEC JASON 3VTEC GIM ] / TECU JASON3 VTEC Assessment: Std.Dev. (within days 001,2021 to 100,2021) UN4G UN8G C1PG C2PG IGSG 60 40 20 0 20 40 60 Latitude / Deg 5 4 3 2 1 Bias [VTEC JASON 3VTEC GIM ] / TECU JASON3 VTEC Assessment: Bias (within days 001,2021 to 100,2021) UN4G UN8G C1PG C2PG IGSG 60 40 20 0 20 40 60 Latitude / Deg 2 3 4 5 6 RMS [VTEC JASON 3VTEC GIM ] / TECU JASON3 VTEC Assessment: RMS (within days 001,2021 to 100,2021) UN4G UN8G C1PG C2PG IGSG (a) Standard deviation (b) Bias (c) RMS Figure 14. Jason assessment for latitudinal zones, the color representing different products. Note that the measures are weighted by the number of JASON3 observations in cells with the same 5-degree intervals of latitude. Blue: UN4F, Orange: UN8G, Green: C1PG, Red: C2PG, Purple: IGSC from GNSS ground stations. Therefore the use of JASON3 VTEC measurement allows for a 663 critical evaluation of the forecast products in adverse circumstances. In this work, the raw 664 observations of the JASON3 VTEC were preprocessed to reduce the measurement noise. 665 The process carried out included the use of a temporal sliding window, removal of outliers, 666 and so on, as explained in [18] and [20]. 667 Evaluation using dSTEC may be an alternative for evaluating VTEC values of GIM 668 prediction products. However in this particular case the use of dSTEC may not be appro- 669 priate because of the following. Typically, the JASON3 VTEC assessment is a validation 670 method for GIMs only over the ocean region, so it may be appropriate to consider the 671 complementary assessment for GIMs over the land region, namely the dSTEC assessment, 672 which compares the difference between the observed STEC along the phase-continuous 673 satellite-station arc and the calculated STEC from GIM, see details in [ 18 ]. However, the 674 usage of altimeter VTEC measurements to assess GIMs has been proven to be a good exter- 675 nal assessment procedure, consistent with other methods based on GNSS data (behaving 676 similarly to the dSTEC test, [ 18 ]) but independent from GNSS and globally distributed. 677 These are the main reasons behind focusing on altimeter data, being the JASON3 the one 678 available during the whole period of analysis, see the former studies that used JASON2, 679 JASON1, and TOPEX altimeters. 680 4.4. Explanation of the limitation of saturating nonlinearities 681 The learning algorithms used in LSTM type neural networks employ the gradient 682 associated with internal nonlinearities of hyperbolic tangent or sigmoid type. Both non- 683 linearities, as illustrated (hyperbolic tangent case) in Figure 15 (right), saturate for large 684 absolute values, and the derivative is zero. The consequence of this is that the gradient used 685 for estimating the weights of the neural networks in the high value regions is practically 686 zero, and therefore no learning takes place. In Long Tail distributions (e.g. Kp, Solar Flux, 687 Magnetic Field Index proton density, EUV radiation, etc.), with a morphology as shown 688 in Figure 15 left, and histograms with outliers. It is the case that the learning algorithms 689 have precisely the null gradient in the cases of greatest interest from the point of view of 690 prediction. And therefore, the estimation of the neural network weights becomes zero in 691 the cases of extreme activity. 692 5. Conclusion 693 In this work, we have introduced a method to predict GIMs at various horizons 694 based on the Nearest Neighbour technique. This technique allows to implement predictors 695 without the need to train a model, and the computation time is small. The assumption on 696 which the model is based is that a database covering more than one solar cycle is available, 697 and that the geomagnetic conditions affecting the current map have somehow happened in 698 the past, and that similar geomagnetic effects are distributed among several maps, whose 699 linear combination allows a better approximation of the prediction. An advantage of the 700 Version February 21, 2022 submitted to Remote Sens. 22 of 23 Figure 15. Left: Example of a time series with a Long Tail distribution, Center: Histogram of the time series, Right: Comparison of the Tanh nonlinearity with its’ derivative. method is also that from the similar maps found in the historical database, a confidence 701 margin can be created. The prediction using this confidence margin allows a significant 702 decrease in the prediction error. We have performed a real-time implementation. The 703 computational cost of adding a prediction horizon is very low, so in the implementation, 704 predictions are made with almost no additional cost for arbitrary horizons. The prediction 705 results improve compared to the frozen cyclic up to a 48-hour horizon, which seems to be a 706 natural barrier for this method. Finally the method has been assessed in different moments 707 of the solar cycle, taking into account days with storm and without significant geomagnetic 708 perturbations. Also the method has been assessed by comparing with the forecast at 24 709 and 48 hours of the Center for Orbit Determination in Europe (CODE) prediction model 710 products. 711 Author Contributions: Conceptualization, E.M.,H.Y and M.H. ; methodology, E.M.,H.Y and M.H.; 712 software, E.M.; validation, E.M.,H.Y and M.H.; formal analysis, E.M.,H.Y and M.H.; investiga- 713 tion, E.M.,H.Y and M.H.; resources, M.H.; writing—original draft preparation, E.M.,H.Y and M.H.; 714 writing—review and editing, E.M.,H.Y and M.H. All authors have read and agreed to the published 715 version of the manuscript. 716 Funding: This work was been partially supported by the project PID2019-107579RB-I00 (MICINN) 717 and done in the context of PITHIA NRF EU project. The work of Heng Yang was also partially 718 supported by Natural Science Foundation of Chongqing, China (No. cstc2021jcyj-msxmX0191) and 719 by the Science and Technology Research Program of Chongqing Municipal Education Commission of 720 China (Grant No. KJ202101414). 721 Data Availability Statement: The UQRG is openly accessible from IGS server (https://cddis.nasa. 722 gov/archive/gnss/products/ionex/YEAR/DOY/uqrgDOY0.YYi.Z) and from UPC server (https: 723 //chapman.upc.es/tomion/rapid/YEAR/DOY_YYMMDD.15min/uqrgDOY0.YYi.Z) where YEAR 724 and YY the four- and two-digit year identifiers, MM is month number, DD is day of month, and DOY 725 is the day of year. Any missing file can be requested from the authors, in particular from Enric Monte 726 Moreno ([email protected]). 727 Conflicts of Interest: The authors declare no conflict of interest. 728 References 729 1. García-Rigo, Alberto and Monte, E and Hernández-Pajares, Manuel and Juan, JM and Sanz, J and Aragón-Angel, A and Salazar, 730 D., Global prediction of the vertical total electron content of the ionosphere based on GPS data. Radio science,2011, 46(6). 731 2. Web page of IonSAT: IonSAT - Ionospheric determination and navigation based on Satellite And Terrestrial systems. [Online]. 732 Available: https://futur.upc.edu/IonSAT?locale=en. (Accessed on June 2 2021). 733 3. Monte Moreno, Enric and García Rigo, Alberto and Hernández-Pajares, Manuel and Yang, Heng. TEC forecasting based on 734 manifold trajectories. Remote Sensing,2018, 10(7). 735 4. Wang, C., Xin, S., Liu, X. et al. Prediction of global ionospheric VTEC maps using an adaptive autoregressive model. Earth Planets 736 Space 2018, 70(18). 737 5. Goodfellow, Ian, Yoshua Bengio, and Aaron Courville. Deep learning. MIT press,2016.738 6. Xiong, P., Zhai, D., Long, C., Zhou, H., Zhang, X., and Shen, X. Long Short-Term Memory Neural Network for Ionospheric Total 739 Electron Content Forecasting Over China. Space Weather,2021, 19(4). 740 Version February 21, 2022 submitted to Remote Sens. 23 of 23 7. Ulukavak, Mustafa. Deep learning for ionospheric TEC forecasting at mid-latitude stations in Turkey. Acta Geophysica,2021, 60(2), 741 pp. 589–606. 742 8. Wen, Zhichao and Li, Shuhui and Li, Lihua and Wu, Bowen and Fu, Jianqiang. Ionospheric TEC prediction using Long Short-Term 743 Memory deep learning network. Astrophysics and Space Science,2021, 366(1); pp. 1–11. 744 9. Cherrier, Noëlie and Castaings, Thibaut and Boulch, Alexandre. Forecasting ionospheric Total Electron Content maps with deep 745 neural networks. Proc. Conf. Big Data Space (BIDS), ESA Workshop,2017 .746 10. Liu, Lei and Zou, Shasha and Yao, Yibin and Wang, Zihan. Forecasting global ionospheric TEC using deep learning approach. 747 Space Weather,2020, 18(11). 748 11. Ji, Eun-Young and Moon, Yong-Jae and Park, Eunsu. Improvement of IRI global TEC maps by deep learning based on conditional 749 Generative Adversarial Networks. Space Weather,2020 8(15). 750 12. Krankowski, A and Kosek, W and Baran, LW and Popinski, W, Wavelet analysis and forecasting of VTEC obtained with GPS 751 observations over European latitudes. Journal of Atmospheric and Solar-Terrestrial Physics,2005, 67(12). 752 13. Weber G, Dettmering D, Gebhard H. Networked transport of rtcm via internet protocol (ntrip). A window on the future of geodesy, 753 Springer,2005, pp 60–64. 754 14. Code Data. [Online]. Available: ftp://ftp.nodc.noaa.gov/pub/data.nodc/ (Accessed on June 2 2021) . 755 15. Hernández-Pajares M. Inputs received from Ionospheric research groups on activities related with RT global electron content 756 determination. IGS RT WG splinter meeting, June 23. Pasadena, CA, USA,2014, pp 1–15. 757 16. Hernández-Pajares M, Juan J, Sanz J. New approaches in global ionospheric determination using ground GPS data. J. Atmos. 758 Solar Terr. Phys.,1999, 61(16):1237–1247 759 17. Hernández-Pajares M, Juan J, Sanz J, Colombo OL. Application of ionospheric tomography to real-time GPS carrier-phase 760 ambiguities resolution, at scales of 400–1000 km and with high geomagnetic activity. Geophys. Res. Lett.,2000, 27(13), pp2009–2012. 761 18. Hernández-Pajares, Manuel and Roma-Dollase, David and Krankowski, Andrzej and García-Rigo, Alberto and Orús-Pérez, Raül. 762 Methodology and consistency of slant and vertical assessments for ionospheric electron content models. Journal of Geodesy,2017, 763 91(12), pp1405-1414. 764 19. Orús R, Hernández-Pajares M, Juan J, Sanz J. Improvement of global ionospheric VTEC maps by using kriging interpolation 765 technique. J. Atmos. Solar Terr. Phys.,2005, 67(16), pp1598–1609. 766 20. Roma-Dollase, David and Hernández-Pajares, Manuel and Krankowski, Andrzej and Kotulak, Kacper and Ghoddousi-Fard, Reza 767 and Yuan, Yunbin and Li, Zishen and Zhang, Hongping and Shi, Chuang and Wang, Cheng and Feltens, Joachim and Vergados, 768 Panagiotis and Komjathy, Attila and Schaer, Stefan and García-Rigo, Alberto and Gómez-Cama, José M., Consistency of seven 769 different GNSS global ionospheric mapping techniques during one solar cycle, Journal of Geodesy,2018, 92(6). 770 21. Roma Dollase D, López Cama JM, Hernández Pajares M, García Rigo. A Real-time Global Ionospheric modelling from GNSS 771 data with RT-TOMION model. 5th international colloquium scientific and fundamental aspects of the Galileo Programme , Oct 27–29 772 2015, Braunschweig, Germany,2015.773 22. Yang, H., Monte-Moreno, E., Hernández-Pajares, M. et al. Real-time interpolation of global ionospheric maps by means of sparse 774 representation. Journal of Geodesy,2021 95(6). 775 23. Wang, Liwei and Zhang, Yan and Feng, Jufu. On the Euclidean distance of images. IEEE transactions on pattern analysis and 776 machine intelligence,2005 27(8). 777 24. NNGIM forecasts at different horizons. [Online]. Available: http://chapman.upc.es/.trial_urtg/tomion/forecast_nngim/quick/ 778 last_results/ (Accessed on June 2 2021). 779 25. Omohundro, Stephen M. Five balltree construction algorithms. International Computer Science Institute Technical Report,1989.780 26. Space Weather Live. [Online]. Available: https://www.spaceweatherlive.com/ (Accessed on June 2 2021). 781