Intelligent Intrusion Detection Based on Federated Learning for Edge-Assisted Internet of Things
Algorithm 1
FedAVG. Given K clients (indexed by k), B is the local minibatch size, E is the number of local epochs, R is the number of global rounds, C is the fraction of clients, and is the learning rate.
procedure Server:
initialize
for each round t = 1, 2, … do
m ← max (C·K, 1)
St ← (random set of m Clients)
for each Client k ∈ St in parallel do
procedure Client (k, w)://Run on Client k
B ← (split local Client data into batches of size B)