Algorithm 4 Cloud aggregation layer algorithm for global trust model aggregation |
-
Require: Set of controllers , encrypted local models , encryption
keys , decryption keys , threshold , telemetry volumes
Ensure: Encrypted global trust models
1: Compute total volume
2: Initialize verified models , volumes
3: for to N do
4: Receive encrypted model
5: Decrypt
6: if Signature verification of succeeds then
7: Add to
8: Add to
9: else
10: Discard and flag
11: end if
12: end for
13: Compute weighted average gradient:
14: for each do
15: Compute deviation
16: if then
17: Flag as malicious
18: Remove and corresponding from
19: end if
20: end for
21: Recompute total volume
22: Aggregate global model:
23: for to N do
24: Encrypt global model for controller i:
25: Transmit to
26: end for
27: return
|