Time series prediction in IoT: a comparative study of federated versus centralized learning
Leonardo Ferreira da Costa, Lia Sucupira Furtado, Paulo H. G. Rocha, Paulo A. L. Rêgo, Fernando Antonio Mota Trinta · 2023
Temporal data collected by IoT sensors can be used to feed predictive algorithms constantly. This allows the construction of applications that, for example, are used to predict CO2 indices in a given region, whose results can help in the prototyping of solutions aimed at health. In this context, in order to find out which are the best solutions for predicting time series generated from data collected by IoT devices, two machine learning approaches were compared: Federated learning and centralized learning. Federated learning implies training the algorithms in a distributed way across devices, while centralized learning takes data from devices into a server and focuses training on it. We used a Long Short Term Memory (LSTM) to predict the time series. Experiments were performed using LSTM with both federated and centralized strategies. The results show that the Federated Learning model predicts five time-steps of a time series with on average 78 % less mean squared error than a Centralized solution.