Federated learning is proposed as an alternative to centralized machine learning since its client-server structure provides better privacy protection and…