Intelligent Intrusion Detection Based on Federated Learning for Edge-Assisted Internet of Things
Algorithm 2
FedACNN. 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 W0
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
if t = 1 then
Calculate the Client K importance degree following equations (3)–(6)
else
Calculate the Client importance degree following equations (3)–(6)
Update parameter ,.
procedure Client Update (k, w)://Run on Client k
B ← (Split local Client data into batches of size B)