Skip to main content
. 2022 Nov 19;22(22):8974. doi: 10.3390/s22228974
Algorithm 1 Secured FL procedure
Input: Set of Edge devices En and their associated local data Dn|nN, No. of communication rounds R
Output: Global DID model
  1: Cloud server initialize model parameter W0 and η,B,ζ,ρ,τ
  2: Each En informs the data size |Dn| to server;
  3: Server computes contribution ratio αn=|Dn|/(|D1|+|D2|++|DN|);
  4: For each En KMC generates key pair (PubK,PriK) using KeyGen(n) and establishes secure channel between each edge device and server;
  5: For r = 1 to R;
   (i) En computes rth round model gradients Wnr using Algorithm 2;
   (ii) Encrypt model gradients Wnr as E(Wnr)=Encrypt_grad(Wnr,PubK);
   (iii) Upload E(Wnr) to cloud server;
   End
  6: Cloud server aggregates E(Wnr) as C=Aggr_grad(E(W1r),(W2r),α1,αn);
  7: Server distributes C to all edge devices En
  8: To obtain new global model En performs decryption as Wr˜=Decrypt_grad(C,PriK)
  9: En updates model gradients using Wr˜;
  10: rr+1;