Personalized federated learning for improving radar based precipitation nowcasting on heterogeneous areas
Abstract
Open Access funding provided thanks to the CRUE-CSIC agreement with Springer Nature.
Full text
Earth Science Informatics https://doi.org/10.1007/s12145-024-01438-9 RESEARCH Personalized federated learning for improving radar based precipitation nowcasting on heterogeneous areas Judith Sáinz-Pardo Díaz1·María Castrillo1·Juraj Bartok2·Ignacio Heredia Cachá1·Irina Malkin Ondík2· Ivan Martynovskyi2·Khadijeh Alibabaei3·Lisana Berberi3·Valentin Kozlov3·Álvaro López García1 Received: 24 April 2024 / Accepted: 31 July 2024 © The Author(s) 2024 Abstract The increasing generation of data in different areas of life, such as the environment, highlights the need to explore new techniques for processing and exploiting data for useful purposes. In this context, artificial intelligence techniques, especially through deep learning models, are key tools to be used on the large amount of data that can be obtained, for example, from weather radars. In many cases, the information collected by these radars is not open, or belongs to different institutions, thus needing to deal with the distributed nature of this data. In this work, the applicability of a personalized federated learning architecture, which has been called adapFL, on distributed weather radar images is addressed. To this end, given a single available radar covering 400 km in diameter, the captured images are divided in such a way that they are disjointly distributed into four different federated clients. The results obtained with adapFL are analyzed in each zone, as well as in a central area covering part of the surface of each of the previously distributed areas. The ultimate goal of this work is to study the generalization capability of this type of learning technique for its extrapolation to use cases in which a representative number of radars is available, whose data can not be centralized due to technical, legal or administrative concerns. The results of this preliminary study indicate that the performance obtained in each zone with the adapFL approach allows improving the results of the federated learning approach, the individual deep learning models and the classical Continuity Tracking Radar Echoes by Correlation approach. Keywords Federated learning ·Deep learning ·Meteorology ·Radar images Introduction and motivation Privacy issues and legal restrictions that apply to the field of images and their processing through machine and deep learning (ML and DL) models are clear, for example, in the medical field, where it is essential to preserve the privacy of patients. In this case, it happens that in many cases the images taken in a certain center, such as a hospital, cannot be centralized together with images taken by other institutions. However, this problem regarding data centralization can be due to other reasons and in other areas, such as those related to data storage capacity, connectivity restrictions, or even a lack of computational resources that prevent the training of models on large amounts of data, making decentralization more convenient. In this context, federated learning (FL) Communicated by: Hassan Babaie Extended author information available on the last page of the article architectures allow training ML/DL models in a distributed way, without having to centralize the data in a central server (McMahan et al. 2017). These architectures achieve robustness by aggregating models trained individually by each data owner or client. This work is focused on images captured by weather radars. Nowadays, there is an increasing demand for weather forecastswithhighspatialaccuracy,whichisboostingprivate weather forecasting products, e.g. through the installation of private infrastructure such as radars. Their distributed nature, as well as the often proprietary nature of the data, makes it an ideal fit for the FL approach. In addition, high resolution radars produce large data volumes, which are inconvenient to share in order to train a centralized model. In particular, weather radars are an effective tool for precipitation nowcasting, whose frequency and intensity is expected to be affected by climate change, as well as various other types of extreme weather events (Svoboda et al. 2016; Rajczak and Schär 2017; Hanel and Buishand 2010; 123
Earth Science Informatics Hosseinzadehtalaei et al. 2020). There are several references that provide clear evidence, such as a fatal flash flood (Svoboda and Pekárová 1998) and the deadliest European tornado since 2001 (Korosec 2021; Komjáti et al. 2022). In this work, we develop a novel personalized federated learning (PFL) approach due to the inherent heterogeneous nature of radar-based precipitation data. The aim of PFL is to address the main challenges that faces FL, like its poor convergence on highly heterogeneous data and its lack of generalization ability beyond the global distribution of the data (Tan et al. 2022). For this study, the images captured by the radar are divided in four quadrants, simulating a use case in which each radar would cover a sub-area of the total region of interest. We study the predictive and generalization capacity of the resulting models, in order to assess the applicability of these methods to real-world use cases, in which data comes from different radars potentially located in different countries. The motivation for addressing this study is two-fold: (1) to enhance collaboration between institutions handling such data without sharing it, (2) to study if training models under a personalized federated learning architecture provide better results than training with individual data from each radar or area of capturing. This is of particular interest when data cannot be centralized due to technical, computational or storage restrictions. In addition, we can mobilize computing wherever data is available, even using isolated GPUs or compute nodes for this task. The remainder of this work is structured as follows: Section “State of the art” presents the state of the art regarding the research areas concerning artificial intelligence models and meteorology, together with the recent state of the art concerning the application of FL in different use cases and PFL. Section “Data” summarizes the data used during this study, aswellas thedistributioncarriedoutforthepurposeofapplying the FL and PFL approaches. Section “Methodology” describesthe methodologyimplementedforthedevelopment of the models used to carry out the predictions, together with theproposalofanovelPFLarchitecture(namelyadaptiveFL, adapFL). Section “Results and analysis” presents the results, together with their analysis. In Section “Discussion”adiscussion concerning different limitations of the study and the data used is presented. Finally, Section “Conclusions”draws the conclusions together with future lines of work. State of the art The state of the art in relation to image processing, meteorology-oriented DL, precipitation nowcasting using DL models, as well as FL and PFL applications is discussed and evaluated in this section. Deep learning techniques for meteorology ConcerningAI-basedmodelsandtechniques,specificallythe development of DL models, there are several fields that are relevant for the meteorological domain. First, image processing focuses on the analysis of digital images and videos by software programs from statistically based approaches (Tanaka 2002; Kim et al. 2005) to modern neural networks (Gu et al. 2018). This field is further subdivided into multiple subdomains, such as object detection, object tracking, object recognition, etc. The aim of object detection is to identify and localize relevant objects from a digital image. Convolutional neural networks, first applied in 1988 to alphabet recognition (Zhang et al. 1988) are especially well suited for this task. Specifically, object tracking and recognition aims to identify an object in a sequence of images and can attempt to predict its movement. A recent paper (Kesa et al. 2022) describes how to solve both of these tasks at the same time. Siamese neural networks (e.g., DaSiamRPN (Zhu et al. 2018), Cascaded SiamRPN (Fan and Ling 2018), SiamMask (Wang et al. 2019), SiamRPN++ (Li et al. 2018), Deeper and Wider SiamRPN (Zhang and Peng 2019)), are also useful in object tracking. Regarding meteorology-oriented DL, blurry predictions are a tremendous challenge (Pavlík et al. 2022), requiring a special treatment of loss functions. Generative Adversarial Network (GAN) (Agrawal et al. 2019; Goodfellow et al. 2014) has been recently successfully applied to solve this challenge. The approach called DGMR (Ravuri et al. 2021) is currently the state-of-the-art in the radar-based storm nowcasting. Concerning precipitation nowcasting using DL models, several works analyze the use of different models to better accomplish this task. In Shi et al. (2017) the authors propose the use of the Trajectory GRU model instead of the classic Convolutional LSTM (ConvLSTM) which was used for example in Shi et al. (2015). In addition, in Chen et al. (2020) the authors also propose a novel deep learning neural network and they start presenting the COTREC method (alsocomparedin this study) andthe ConvLSTM. Theycompare the performance of the different models on composite reflectivity data concerning the critical success index (CSI) over 30 and 60 min. In Ko et al. (2022) a novel loss function is also used to mitigate the class imbalance problem in the CSI in the case of heavy rainfall. In Han et al. (2022) a Deep Transfer Learning approach is proposed for radar nowcasting using a CNN as benchmark and two transfer learning models with few data belonging to the target area (data from 5 days regarding the target area for training and 3 days for testing). Finally, Cuomo and Chandrasekar (2021) presents different DL models for weather radar nowcasting together with some drawbacks encountered, highlight in Table 2areviewofML models used for weather nowcasting from the literarure. 123
Earth Science Informatics Federated learning and personalized federated learning With regard to the use of FL in data analysis, the use cases addressed in the state of the art are quite broad. In particular, numerous studies have been conducted in the medical field, due to the obvious privacy restrictions that apply in such environments (Pfitzner et al. 2021; Rieke et al. 2020; Sáinz- Pardo Díaz and López García 2023). Other applications deal with intrusion detection systems (Agrawal et al. 2022), credit card fraud detection (Yang et al. 2019), but also applications that arise when dealing with wireless communications applications (Niknam et al. 2020). Concerning climate sciences and more particularly the study of water quality, the classical FL architecture is applied in Sáinz-Pardo Díaz et al. (2023) to predict the concentration of chlorophyll given different physico-chemical and meteorological features, using two different sites of data gathering, specifically two tributaries of the River Thames. However, to our knowledge, there is not any study in which FL or PFL architectures have been applied to try to improve the predictions from classical models using meteorological radar images. PFLincludes a widegroupof differentstrategiestofurther tailor an FL model to better fit each client’s data, while maintaining privacy and security (Sabah et al. 2024). According to the taxonomy proposed in Tan et al. (2022), PFL approaches can be classified in two main types: Global Model Personalization and Learning Personalized Models. The approach presented in this work falls into the first group because, at least initially, there is a global model. In fact, it could be considered a kind of Transfer Learning in which the knowledge learned from a source domain (the weights from the whole ensemble of clients) is transferred to a target domain (each particular client). In the following, we will refer to the approach followed in this study regarding PFL as adapFL (standing for adaptive federated learning). The idea behind this novel approach is explained in Section “Methodology”. Data Throughout this study, we utilize compact X-band meteorological radar, used for municipalities and in agrosector as a gap filler in large meteorological radar coverage. It is located in the borderland between Czech and Slovak republic. The radar features a parabolic antenna with a diameter 1160 mm which results in half power beam width 1.8°. The device sensitivity is 10 dBZ at 200km range and the central frequency of the X-band radar is 9410 MHz. In addition, the radiometric resolution is 8bit, the spatial resolution is 1×1km and the bandwidth is 1 MHz. An example of the captured data is shown in Fig. 1. The radar detects precipitation as 3D volumes of high reflectivity (radar beam reflections on water droplets, ice crystals and hail). Data are available as hdf5 files storing each day’s information. In each file there are measurement products (ground truth) approximately every five minutes throughout the day and forecasts from five to forty minutes. Thereare manydifferenttypes ofradar productsgenerated as various 2D sections of the 3D data, but we are focusing on vertically integrated liquid (VIL) products, i.e. reflectivity recalculated to water content by Marshall-Palmer formula and summed vertically. Then the VIL (kg/m2) is defined as theverticalintegratedquantity ofliquidwatercontent (LWC) (kg/m3). Radar image data related to VIL are highly dependent on the season and the time of the year. Therefore, in this case, having images captured every 5 minutes, we have chosen to use data from four months of the first available year. Specifically, we have selected the first four months available, April, May,JuneandJuly 2016,which canalsorepresentsignificant periods in terms of precipitation. Theoriginal radarimages are400km widesquare centered at the radar position. However, since most of the information is concentrated in the center of the images, they were cropped from 400×400km to 100×100km (centered in the middle of the original image). Afterwards, they were used on the different models described in Section “Methodology”tomake 5-minutepredictions (nowcast)ofthose images.Someexamples of the available images after re-scaling the resolution to the new dimensions (100×100) are shown in Fig. 2. Note that most of the information is concentrated in the center of the image due to the degradation in the radar resolution caused by the conversion of measured points coordinates from polar coordinate system to cartesian. FromFig.2we can drawseveralconclusions.The first one is that the information in each of the images is clearly located in the center of the images. In addition, it can be seen that a large part of each image does not contain any precipitation (no rain present), most of them being totally blank images (for example, the last image in the second row). This goes hand in hand with the meteorological events that occurred at the time the radar image was acquired. For training and testing the models, a split has been made following the temporal order of the images, so that the first 80% of images (28025) is used as the training set, and the last 20% (7007 images) is used as test set. In addition, since many of the available images are blank (no rainfall), additional processinghasbeenperformed onthem,whichisexplainedlater. In addition, the validation process was performed once the data had been distributed, in order to apply the approach that shouldbefollowedin areal-world scenario.This is explained in the methodology (Section “Methodology”). Table 1shows some relevant statistics according to the images to be predicted in the test set, after data processing. 123
Earth Science Informatics Fig. 1 Example of the area covered by the radar in the borderland between Czech and Slovak republic and the information captured: continuous white-blue-green-orange clouds - depiction of different values of radar rainfall (Vertically Integrated Liquid), green/yellow/red/orange polygons of districts - nowcast alerting regions where the rainfall is expected to be Fig. 2 Example of the radar images under study after reducing to 100×100 resolution with the information on vertically integrated liquid 123
Earth Science Informatics Table 1 Statistics regarding the mean VIL in each of the images to be predicted in the test set of each of the four zones under study Min Max Mean Median Variance Skewness Kurtosis Zone 1 0 4.2192 0.1201 0.0224 0.0500 3.1100 12.2513 Zone 2 0 3.1011 0.1193 0.0236 0.0592 4.0793 22.2058 Zone 3 0 3.7380 0.1133 0.0249 0.0452 3.0060 10.0654 Zone 4 0 3.2316 0.0956 0.0158 0.0316 2.8355 9.2811 In the case of the minimum and the maximum, the average of the min and max values for each of the images are shown Specifically, these statistics are those related to the mean of the VIL in each of the images. Methodology In this section, the different models used to perform the 5-minutes nowcast of the VIL based on radar images are described. Classical models Tracking of Radar Echoes by Correlation (TREC) (Rinehart and Garvey 1978) is a nowcasting method that is based on a comparison of two consecutive images of radar reflectivity. For each block of radar pixels, TREC identifies a motion vector by maximizing the cross-correlation coefficient between the two consecutive reflectivity images. It is an image processing algorithm, which does not include any dynamic equations related to the motion and/or the evolution of the detected weather fields. As (Woo and Wong 2017) emphasizes, “while TREC is successful in tracking the movements of individual radar echoes, in practice, it usually captures the direction of individual rain cells instead of moving the entire meteorological system on a larger scale”. Due to this drawback of the TREC method, various alternatives such as COTREC (Continuity Tracking Radar Echoes by Correlation) (Novak 2007), have been developed. A recent paper (Tang and Matyas 2018) presents a detailed overview of the features of the novel refined methods of the TREC concept that emerged during the last decades. In this paper, we will use COTREC as a baseline classical model to compare with the resulting deep learning models and the different learning approaches. Deep learning and federated learning models As motivated in Section “Introduction and motivation”, in view of the heterogeneous distributed nature of the radar images under study, we address this challenge with an horizontal federated learning architecture and a novel personalized federated learning method. First, we divide the data artificially into 4 different zones, splitting the images into four quadrants as shown in Fig. 3, in which an example of a training image is shown. It is important to note that, for training the deep learning models, we have processed the input data in the following way: for predicting the image captured in the next 5 minutes, we introduced the 3 images available immediately before. Thus, by taking the three images we are not only be capturing the speed of the movement and the change in the amount ofverticalintegratedliquid, butalsothe acceleration. Inaddition, one important part of the processing carried out is that we have eliminated from both the train set and the test set those records in which the three images prior to the predictor were empty (blank, no rain). This has also been extrapolated to analyze the results with the COTREC method, taking into account only the error obtained when predicting with the remaining images. The motivation lies in the fact that in these cases, the natural answer would be to predict that there will be no rain (as the three previous images were without rain). Including in the neural network so many empty images can lead to a lack of appropriate adjustment in cases where there are heavy rain events, which as can be seen in the distribution are infrequent even after carrying out this processing Fig. 3 Example of an image where the four quadrants into which it has been divided to create the four zones are shown in blue 123
Earth Science Informatics (see Appendix A), but at the same time are an important factor that nowcasting models must predict accurately. Table 2 shows the number of data for train and test in each of the four zones after carrying out this pre-processing. In order to analyze the characteristics of the images available in each zone, Fig. 4shows the mean of the images captured during the months of April, May, June and July 2016 in each artificially divided area once pre-processed as explained above. In particular, the average of the images to be predicted in train and test is shown. Note than in each case the the color bar represents the magnitude associated with the mean VIL in each pixel. In view of Fig. 4, we can note that the distribution of the images in each quadrant are very different from each other, being quite heterogeneous zones, as will be further explained in Section “Discussion”. Then, when training the model in a federated way, this may difficult the model convergence, since each model would have seen data with different statistics. However, we are interested in keeping these differences because they better reflect real use cases, where radar images will have very distinct distributions if they come from clearly differentiated areas, such as radars located in various countries. In addition, in order to select the model to be used for testing purposes, we need the carry out a validation process. In this case, we have performed k-fold cross validation with five folds. Time Series cross-validator from scikit-learn has been used for this purpose in order to keep the temporal order of the images. A key point here is to decide on which dataset to perform the validation (as we would not centralize the data). Following a real use case, the four data owners (corresponding to the four zones involved) must agree on the model to be trained. In this case, in view of Table 2, we have decided to carry out the validation process using the data from zone 4, as it has the largest number of data for training after processing. Several simple convolutional network architectures have been tested as well as different values for the batch size. The selected one is presented in Section “Convolutional neural architecture”. The implemented FL scheme follows the idea presented in Sáinz-Pardo Díaz and López García (2023), such that the aggregation of the models trained in each zone (in this use case each zone represents a client), is performed using a weighted average according to the number of training data Table 2 Number of data after processing in each zone for train and test Train Test Zone 1 4194 1585 Zone 2 4055 1286 Zone 3 4022 1380 Zone 4 4457 1494 of each client. In addition, a novel PFL paradigm is considered once the federated training has been carried out for each client during a certain number of epochs (Ne) and a given number of rounds (Nr). In this use case, the variability in each zone with respect to the others is high, as shown in Fig. 2. Therefore, it is appropriate that after conducting the federated training, in order to achieve a more robust model by having been trained with more data, these are trained a certain number of epochs on the data of each zone locally, which we have called adaptive federated training (adapFL). The idea is to be able to capture in each case the peculiarities of each zone before evaluating the results in the test set of that area, but starting with the knowledge and generalization ability provided by the FL model. In short, the three learning schemes (including the individual one) are presented in Fig. 5. In particular, in this work we are interested in analyzing the feasibility of the adapFL approach for the case in which images from different areas are available. The goal is to study whether this potential collaboration while maintaining the privacy of the images by not sharing them, can allow improving the results that would be obtained by training locally in each zone (as a greater number of data will be available to train the models in a distributed way), or if on the contrary, it is more convenient to carry out an individual training in each zone, respecting the differential factors of each one of them. An intuitive idea of such implemented architecture is summarized in the pseudocode given in Algorithm 1. In this sense, as the federated training can be carried out in each zone in parallel, it is desirable that the total number of epochs that are trained individually (N(I) e) is equal to the number of epochs that the model is trained locally in the federated scheme (N(FL) e) times the number of rounds (Nr) of the federated training plus the number of epochs the model is trained later in each zone (N(L) e)intheadapFL approach, i.e: N(I) e=Nr·N(FL) e+N(L) e In this final implemented model the following values have been fixed: N(I) e=100, N(FL) e=N(L) e=10 and Nr=10 for the classic FL approach and Nr=9fortheadapFL approach. Convolutional neural architecture Both in the case of individual learning in each zone and in the case of the adapFL schema, we have developed a neural network architecture composed of the following convolutional layers presented in Table 3(further detailed in Figs. 16 and 17 from Appendix E): The architecture is kept purposely simple, as the intent of this paper is to evaluate the potential of the FL and PFL 123
Earth Science Informatics Fig. 4 Average of all the radar images available in April, May, June and July 2016 by zone onceprocessedbyarea approaches for this use case, not to establish a new SotA model in precipitation nowcasting based on radar images. The model has been compiled with Adam (Kingma and Ba 2014) as optimizer and the mean squared error (MSE) as loss function and the MSE and the mean absolute error (MAE) as quality metrics for monitoring. Again, as previously explained, this model has been validated using the data from zone 4. Specifically, the average MSE obtained in the five folds is 0.0326. In addition, we have calculated other metrics such us the RMSE and the skill score (like in Kumar et al. (2024)), which can be obtained from the MSE, so the tendency observed will be analogous, but they can be used for comparison with other cases. The RMSE is defined as the squared root of the mean of the squared errors, and the skill score for the model M(SkillScoreMcan be defined as given in Eq. 1, being MSEMthe MSE for the model Mand MSEBthe MSE for a baseline model. In our study we have considered COTREC as the baseline model for calculating the skill score. SkillScoreM=1−MSEM MSEB (1) Computing resources The experiments have been carried out using the AI4EOSC platform (AI4EOSC project 2024). Specifically, an environment with 16 GB of RAM, 10 GB of disk, 8 CPU cores, and one GPU NVIDIA Tesla T4 has been deployed. The programming language used was Python 3 and the Tensor- Flow library (Abadi et al. 2015) was used to develop the deep learning models. Results and analysis In this section, the results obtained in each of the zones when evaluating each of the following approaches are presented: •The classic COTREC model as baseline, •An individual learning model trained for 100 epochs in the same zone (IL), •An FL model trained 10 epochs for 10 rounds (FL), •A PFL model trained 10 epochs for 9 rounds, ending with alocaltrainingof10epochsonthedataofthetestingzone (adapFL). Table 4summarizes the results obtained in terms of the MSE and the MAE in the test set of each of the four zones and with the four approaches. In view of the results shown in Table 4, the best results are obtained with the adapFL architecture. Moreover, all the threeDLapproaches achievebetter resultsthanthe COTREC model.It shouldbenotedthatwith theconventionalFLarchi- 123
Earth Science Informatics Fig. 5 Schema of the three learning paradigms implemented: individual, federated and adaptive federated learning tecture, the results of the COTREC model were improved substantially, but not those of the IL, since the latter has a better capacity to adapt to the data captured in its corresponding area. Thus, with the adaptive step of the adapFL architecture, we managed to improve the results of the FL architecture, but also those of the IL approach. Note that the adaptive step in adapFL can be seen as a kind of transfer learning from the FL model. In Figs. 12 and 13 of Appendix C, it can be observed for each of the four zones, six examples of observed images together with the corresponding prediction obtained with the Table 3 Convolutional neural network implemented, layers, output shape, number of parameters and activation function applied Layer (type) Output shape Param # Activation conv2d_46 (Conv2D) (None, 48, 48, 128) 3584 Relu conv2d_47 (Conv2D) (None, 46, 46, 64) 73792 Relu conv2d_48 (Conv2D) (None, 44, 44, 32) 18464 Relu conv2d_49 (Conv2D) (None, 42, 42, 16) 4624 Relu conv2d_50 (Conv2D) (None, 40, 40, 16) 2320 Relu conv2d_51 (Conv2D) (None, 38, 38, 32) 4640 Relu conv2d_52 (Conv2D) (None, 36, 36, 64) 18496 Relu conv2d_53 (Conv2D) (None, 34, 34, 128) 73856 Relu conv2d_54 (Conv2D) (None, 32, 32, 1) 1153 Relu 123
Earth Science Informatics Table 4 MSE and MAE (kg/m2) obtained in the test set with the different approaches in each zone MSE MAE Zone COTREC IL FL adapFL COTREC IL FL adapFL 1 0.2306 0.1399 0.2000 0.1352 0.0708 0.0618 0.0649 0.0606 2 0.1756 0.1057 0.1612 0.1005 0.0650 0.0530 0.0590 0.0517 3 0.2235 0.1220 0.1286 0.1082 0.0729 0.0607 0.0576 0.0565 4 0.1095 0.0852 0.0958 0.0815 0.0514 0.0482 0.0484 0.0464 Algorithm 1 Adaptive federated training pseudocode. INPUT: clients: list with all the clients participating on the training (with xthe features and ythe labels for each client). INPUT: n: total number of training data from all clients. INPUT: model: machine learning model to be trained. INPUT: ne:number of epochs. INPUT: batch_size: batch size. INPUT: nr:number of rounds of the FL training. 1: function AdaptativeFederatedTraining(clients,n,model,ne, batch_size,nr) 2: for i∈[1,...,nr]do 3: w←[] empty list for saving the weights 4: for client ∈clients do 5: model.train(client[‘x’], client[‘y’], epochs=ne, batch_size=batch_size) 6: w_client ←model.get_weights() 7: w←w+|client[‘y]| n·w_clientAdd to the list 8: end for 9: w←w 10: model.set_weights(w) Update the model with the new aggregated weights 11: end for 12: j←1 13: for client ∈clients do 14: model.train(client[‘x’], client[‘y’], epochs=ne, batch_size=batch_size) 15: model.save(f‘model_ind_{j}.h5’) 16: j←j+1 17: end for 18: end function best analyzed model according to the results presented in Table 4, which corresponds to the adapFL approach. Within those figures we can observe that the predictions obtained are very similar to the actual observed images in the six cases shown for each of the four zones. Note that we have calculated these metrics, both MSE and MAE,taking themean errorin eachimage, andthenthemean of all of them as stated in Han et al. (2023) and Jolliffe and Stephenson (2012). The idea of taking the current configuration of the adapFL approach is motivated by achieving an adaptation by customizing the conditions of each specific zone, while trying to preserve the generalization capacity of the FL architecture. However, we have sought to compare the different configurations, given by (Nr,N(L) e), ∀Nr∈{1,...,10}, and N(L) e=100 −(10 ·Nr), with Nrthe number of rounds of the FL architecture and N(L) ethe number of epochs that the model has been trained specifically in each zone after obtaining the federated global model (note that if Nr=10, we are in the case of the classic FL approach). The results as a function of the MSE and the MAE for each test set are displayed in Figs. 10 and 11 from Appendix B. It can be observed that that a lower value of Nris related to a reduction of the MAE and the MSE in train, which is explained as a higher adjustment to the zone under analysis. However, this is also linked to a reduction of the generalization capability that can be extracted from the federated architecture. Therefore, the selected configuration is (9, 10), i.e. 9 rounds of the FL architecture and 10 final epochs of personalized training in each zone. Finally, the RMSE and skill score for the four areas can be calculatedfromtheMSEpressentedinTable4,andareshown in Table 5. In view of the skill score from Table 5we can note that the greatest improvement of the best approach (in this case adapFL) in relation to the baseline model (COTREC), is obtained for zone 3. As the objective of the skill score is to observe whether the model is better than a given base model, we have highlighted for each zone the greater one (which is adapFL in all the four cases). Finally, the distribution of the MAE and the MSE for each image of the test set of each zone is shown in Appendix D by means of histograms. Table 5 RMSE (kg/m2)and skill score obtained in the test set with the different approaches in each zone RMSE Skill score Zone COTREC IL FL adapFL COTREC IL FL adapFL 1 0.4802 0.3740 0.4472 0.3677 −0.3933 0.1327 0.4137 2 0.4190 0.3251 0.4015 0.3170 −0.3981 0.0820 0.4277 3 0.4728 0.3493 0.3586 0.3289 −0.4541 0.4246 0.5159 4 0.3309 0.2919 0.3095 0.2855 −0.2219 0.1251 0.2557 123
Earth Science Informatics Fig. 10 MSE for the test set of each zone under different adapFL configurations, including IL and FL Fig. 11 MAE for the test set of each zone under different adapFL configurations, including IL and FL Appendix C: Example of predictions obtained for each area Figures 12 and 13 show, for each of the four initial artificiallydistributedzones,siximagestogetherwiththecorresponding predictions obtained with the adapFL approach implemented. 123
Earth Science Informatics Fig. 12 Example of predictions obtained with the adaptive federated learning approach in each of the four zones (1/2) 123
Earth Science Informatics Fig. 13 Example of predictions obtained with the adaptive federated learning approach in each of the four zones (2/2) 123
Earth Science Informatics Appendix D: MAE and MSE obtained in each image from the test set In order to check the robustness of the proposed PFL method, adapFL, in this section we show an histogram for the MSE and MAE of each area for each image. We can note that in the vast majority of the images both the MSE and the MAE are near to zero. Fig. 14 Histogram with the MAE obtained for the images of the test set using the adapFL method 123
Earth Science Informatics Fig. 15 Histogram with the MSE obtained for the images of the test set using the adapFL method Appendix E: Diagram of the neural network implemented The schema of the neural network implemented in this study is shown in Figs. 16 and 17. 123
Earth Science Informatics Fig. 16 Convolutional neural network implemented (1/2) Fig. 17 Convolutional neural network implemented (2/2) 123
Earth Science Informatics Acknowledgements Theauthorsacknowledgethefunding and thesupport from the project AI4EOSC “Artificial Intelligence for the European Open Science Cloud” that has received funding from the European Union’s Horizon Europe research and innovation programme under grant agreement number 101058593. Author Contributions J.S-P.D. conducted the research, performed the experiments and the training of the models and wrote the main manuscript. M.C., J.B., I.H.C., K.A., L.B. and A.L.G. contributed to writing-reviewing the manuscript. J.B., I.M.O. and I.M. acquired, processed, curated and stored the original data used in this study. J.S-P.D., M.C., J.B., I.H.C., K.A., L.B, V.K. and A.L.G. participated in scientific discussions that led to this research. V.K. and A.L.G. contributed to project management and funding acquisition. Funding Open Access funding provided thanks to the CRUE-CSIC agreement with Springer Nature. This work has been funded by the project AI4EOSC “Artificial Intelligence for the European Open Science Cloud” that has received funding from the European Union’s Horizon Europe research and innovation programme under grant agreement number 101058593. Data Availability The data used to conduct this research and the code developed are not openly available due to privacy restrictions related to thedatainvolved. Declarations Competing Interests The authors declare no competing interests. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitteduse,youwillneedtoobtainpermissiondirectlyfromthecopyright holder. To view a copy of this licence, visit http://creativecomm ons.org/licenses/by/4.0/. References Abadi M, Agarwal A, Barham P et al (2015) TensorFlow: largescale machine learning on heterogeneous systems. https://www. tensorflow.org/, software available from tensorflow.org Agrawal S, Barrington L, Bromberg C et al (2019) Machine learning for precipitation nowcasting from radar images. 1912.12132 Agrawal S, Sarkar S, Aouedi O et al (2022) Federated learning for intrusion detection system: concepts, challenges and future directions. Comput Commun 195:346–361. https://doi.org/ 10.1016/j.comcom.2022.09.012,https://www.sciencedirect.com/ science/article/pii/S0140366422003516 AI4EOSC project (2024) AI4EOSC website. https://ai4eosc.eu/. Accessed 19 Feb 2024 Chen L, Cao Y, Ma L et al (2020) A deep learning-based methodology for precipitation nowcasting with radar. Earth and Space Science 7(2):e2019EA000812 Cuomo J, Chandrasekar V (2021) Use of deep learning for weather radar nowcasting. J Atmos Oceanic Tech 38(9):1641–1656 Fan H, Ling H (2018) Siamese cascaded region proposal networks for real-time visual tracking. 1812.06148 Goodfellow I, Pouget-Abadie J, Mirza M et al (2014) Generative adversarial nets. In: Ghahramani Z, Welling M, Cortes C et al (eds) Advances in Neural Information Processing Systems, vol 27. Curran Associates, Inc., https://proceedings.neurips.cc/paper_files/ paper/2014/file/5ca3e9b122f61f8f06494c97b1afccf3-Paper.pdf Gu J, Wang Z, Kuen J et al (2018) Recent advances in convolutional neural networks. Pattern Recogn 77:354–377. https://doi.org/10. 1016/j.patcog.2017.10.013 Han D, Shin Y, Im J et al (2023) Key factors for quantitative precipitation nowcasting using ground weather radar data based on deep learning. Geoscientific Model Development Discussions 2023:1– 43 Han L, Zhao Y, Chen H et al (2022) Advancing radar nowcasting through deep transfer learning. IEEE Transactions on Geoscience and Remote Sensing 60:1–https://doi.org/10.1109/TGRS.2021. 3056470 Hanel M, Buishand TA (2010) On the value of hourly precipitation extremes in regional climate model simulations. J Hydrol 393(3):265–273. https://doi.org/10.1016/j.jhydrol.2010.08.024 Hosseinzadehtalaei P, Tabari H, Willems P (2020) Climate change impact on short-duration extreme precipitation and intensityduration-frequency curves over Europe. J Hydrol 590:125249. https://doi.org/10.1016/j.jhydrol.2020.125249 Jolliffe IT, Stephenson DB (2012) Forecast verification: a practitioner’s guide in atmospheric science. John Wiley & Sons Kesa O, Styles O, Sanchez V (2022) Multiple object tracking and forecasting: jointly predicting current and future object locations. In: 2022 IEEE/CVF Winter Conference on Applications of Computer VisionWorkshops(WACVW),pp560–56https://doi.org/10.1109/ WACVW54805.2022.00062 Kim J, Fisher JW, Yezzi A et al (2005) A nonparametric statistical method for image segmentation using information theory and curve evolution. IEEE Trans Image Process 14(10):1486–1502. https://doi.org/10.1109/TIP.2005.854442 Kingma DP, Ba J (2014) Adam: a method for stochastic optimization. arXiv:1412.6980 Ko J, Lee K, Hwang H et al (2022) Effective training strategies for deeplearning-based precipitation nowcasting and estimation. Computers & Geosciences 161:10507. https://doi.org/10.1016/j.cageo. 2022.105072,https://www.sciencedirect.com/science/article/pii/ S009830042200036X Komjáti K, Varga ÁJ, Méri L et al (2022) Investigation of a supercell merger leading to the ef4 tornado in the Czech Republic on june 24, 2021 using radar data and numerical model outputs. Idöjárás 126(4) Korosec M (2021) The most powerful tornado on record hit the Czech Republic, leaving several fatalities and 200+ injured across the hodonin district. Weather Report https://www.severe-weather.eu/ weather-report/europe-severe-weather-tornado-hodonin-czech- republic-mk/, published: 25/06/2021 Kumar B, Haral H, Kalapureddy M et al (2024) Utilizing deep learning for near real-time rainfall forecasting based on radar data. Physics and Chemistry of the Earth, Parts A/B/C 135:103600. https://doi. org/10.1016/j.pce.2024.103600,https://www.sciencedirect.com/ science/article/pii/S1474706524000585 Li B, Wu W, Wang Q, et al (2018) Siamrpn++: evolution of siamese visual tracking with very deep networks. 1812.11703 McMahan B, Moore E, Ramage D et al (2017) Communication- Efficient Learning of Deep Networks from Decentralized Data. In: Singh A, Zhu J (eds) Proceedings of the 20th international conference on artificial intelligence and statistics, Proceedings of Machine Learning Research, vol 54. PMLR, pp 1273–1282. https://proceedings.mlr.press/v54/mcmahan17a.html 123
Earth Science Informatics Niknam S, Dhillon HS, Reed JH (2020) Federated learning for wireless communications: motivation, opportunities, and challenges. IEEE Commun Mag 58(6):46–51. https://doi.org/10.1109/MCOM.001. 1900461 Novak P (2007) The czech hydrometeorological institute’s severe storm nowcasting system. Atmos Res 83(2):450–457. https://doi.org/ 10.1016/j.atmosres.2005.09.014, European Conference on Severe Storms 2004 Pavlík P, Rozinajová V, Ezzeddine AB (2022) Radar-based volumetric precipitation nowcasting: a 3d convolutional neural network with u-net architecture. In: 2nd Workshop on Complex Data Challenges in Earth Observation (CDCEO 2022), https://ceur-ws.org/ Vol-3207/paper10.pdf Pfitzner B, Steckhan N, Arnrich B (2021) Federated learning in a medical context: a systematic literature review. ACM Trans Internet Technol 21(2). https://doi.org/10.1145/3412357.https://doi.org/ 10.1145/3412357 Rajczak J, Schär C (2017) Projections of future precipitation extremes over europe: a multimodel assessment of climate simulations. Journal of Geophysical Research: Atmospheres 122(20):10,773– 10,800. https://doi.org/10.1002/2017JD027176 Ravuri S, Lenc K, Willson M et al (2021) Skilful precipitation nowcasting using deep generative models of radar. Nature 597:672–677. https://doi.org/10.1038/s41586-021-03854-z Rieke N, Hancox J, Li W et al (2020) The future of digital health with federated learning. NPJ digital medicine 3(1):119 RinehartR,GarveyE(1978)Three-dimensional storm motiondetection by conventional weather radar. Nature 273(5660):287–289 Sabah F, Chen Y, Yang Z et al (2024) Model optimization techniques in personalized federated learning: a survey. Expert Syst Appl 243:122874. https://doi.org/10.1016/j.eswa.2023.122874.https:// www.sciencedirect.com/science/article/pii/S0957417423033766 Sáinz-Pardo Díaz J, López García Á (2023) Study of the performance and scalability of federated learning for medical imaging with intermittent clients. Neurocomputing 518:142–154 Shi X, Chen Z, Wang H et al (2015) Convolutional lstm network: a machinelearningapproachforprecipitationnowcasting.Advances in neural information processing systems 28 Shi X, Gao Z, Lausen L, et al (2017) Deep learning for precipitation nowcasting: A benchmark and a new model. In: Guyon I, Luxburg UV, Bengio S et al (eds) Advances in neural information processing systems, vol 30. Curran Associates, Inc., https://proceedings.neurips.cc/paper_files/paper/2017/file/ a6db4ed04f1621a119799fd3d7545d3d-Paper.pdf Sáinz-Pardo Díaz J, Castrillo M, García Álvaro López (2023) Deep learning based soft-sensor for continuous chlorophyll estimation on decentralized data. Water Res 246:120726. https://doi.org/ 10.1016/j.watres.2023.120726,https://www.sciencedirect.com/ science/article/pii/S0043135423011661 Svoboda A, Pekárová P (1998) The catastrophic flood of July 1998 in the malá svinka catchment - simulation of its course [in slovak]. Vodohospodársky ˇcasopis 46(6):356–365 Svoboda V, Hanel M, Máca P et al (2016) Projected changes of rainfall event characteristics for the Czech Republic. Journal of Hydrologyand Hydromechanics64(4):415–425. https://doi.org/10.1515/ johh-2016-0036 Tan AZ, Yu H, Cui L, et al (2022) Towards personalized federated learning. IEEE Transactions on Neural Networks and Learning Systems Tanaka K (2002) Statistical-mechanical approach to image processing. J Phys A: Math Gen 35(37):R81. https://doi.org/10.1088/0305- 4470/35/37/201 Tang J, Matyas C (2018) A nowcasting model for tropical cyclone precipitation regions based on the trec motion vector retrieval with a semi-lagrangian scheme for doppler weather radar. Atmosphere 9(5https://doi.org/10.3390/atmos9050200 Wang Q, Zhang L, Bertinetto L, et al (2019) Fast online object tracking and segmentation: a unifying approach. 1812.05050 Woo Wc, Wong Wk (2017) Operational application of optical flow techniques to radar-based rainfall nowcasting. Atmosphere 8(3https:// doi.org/10.3390/atmos8030048 Yang W, Zhang Y, Ye K, et al (2019) Ffd: a federated learning based methodforcreditcardfrauddetection.In:BigData–BigData2019: 8th international congress, held as part of the services conference federation, SCF 2019, San Diego, CA, USA, June 25–30, 2019, Proceedings 8, Springer, pp 18–32 Zhang W, Tanida J, Itoh K et al (1988) Shift-invariant pattern recognition neural network and its optical architecture. In: Proceedings of annual conference of the Japan Society of Applied Physics, Montreal, CA Zhang W, Wang X, Zhou P et al (2021) Client selection for federated learning with non-iid data in mobile edge computing. IEEE Access 9:24462–24474. https://doi.org/10.1109/ACCESS.2021.3056919 Zhang Z, Peng H (2019) Deeper and wider siamese networks for realtime visual tracking. 1901.01660 Zhu Z, Wang Q, Li B et al (2018) Distractor-aware siamese networks for visual object tracking. 1808.06048 Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. 123
Earth Science Informatics Authors and Affiliations Judith Sáinz-Pardo Díaz1·María Castrillo1·Juraj Bartok2·Ignacio Heredia Cachá1·Irina Malkin Ondík2· Ivan Martynovskyi2·Khadijeh Alibabaei3·Lisana Berberi3·Valentin Kozlov3·Álvaro López García1 BJudith Sáinz-Pardo Díaz [email protected] María Castrillo [email protected] Juraj Bartok [email protected] Ignacio Heredia Cachá [email protected] Irina Malkin Ondík [email protected] Ivan Martynovskyi ivan.martyno[email protected] Khadijeh Alibabaei [email protected] Lisana Berberi [email protected] Valentin Kozlov v[email protected] Álvaro López García [email protected] 1Instituto de Física de Cantabria (IFCA), CSIC-UC., Avda. los Castros s/n., Santander 39005, Spain 2MicroStep-MIS, ˇ Cavojského 1, Bratislava 841 04, Slovakia 3Scientific Computing Center (SCC), Karlsruhe Institute of Technology (KIT), Karlsruhe, Germany 123