Skip to main content
. 2025 Aug 21;25(16):5188. doi: 10.3390/s25165188
Algorithm 4 Cloud aggregation layer algorithm for global trust model aggregation
  • Require: Set of controllers C={C1,,CN}, encrypted local models {Ci}, encryption

       keys {Ki}, decryption keys {Ki1}, threshold θ, telemetry volumes {vi}

  • Ensure: Encrypted global trust models {Cglobali}

  •   1: Compute total volume Vi=1Nvi

  •   2: Initialize verified models V, volumes W

  •   3: for i=1 to N do

  •   4:     Receive encrypted model Ci

  •   5:     Decrypt T^iDecrypt(Ci,Ki1)

  •   6:     if Signature verification of T^i succeeds then

  •   7:         Add T^i to V

  •   8:         Add vi to W

  •   9:     else

  •   10:         Discard T^i and flag Ci

  •   11:     end if

  •   12: end for

  •   13: Compute weighted average gradient:
    g¯1wjjwj·T^j,T^jV,wjW
  •   14: for each T^iV do

  •   15:     Compute deviation diT^ig¯

  •   16:     if di>θ then

  •   17:         Flag T^i as malicious

  •   18:         Remove T^i and corresponding wi from V,W

  •   19:     end if

  •   20: end for

  •   21: Recompute total volume Vwj

  •   22: Aggregate global model:
    Tglobalt+1jwjV·T^j
  •   23: for i=1 to N do

  •   24:     Encrypt global model for controller i:
    CglobaliEncrypt(Tglobalt+1,Ki)
  •   25:     Transmit Cglobali to Ci

  •   26: end for

  •   27: return {Cglobali}