Skip to main content
. 2021 Sep 21;21(18):6311. doi: 10.3390/s21186311
Algorithm 1 FedT2TGAN Training Procedure.
  • Input: Training sample pairs of ABP and PPG Sn = (XABP1,PPG1++XABPn,PPGn)

  • Output: GAN Model T2TGAN

  • Initialise global-model

  • Synchronise client-models with global-model

  • for num clients do

  •     # Communication Round

  •     Select 6 random client-models to train

  •     for each client-model do

  •         # client-model training

  •         for num epochs do

  •            # Calculate identity, cycle and adversarial losses

  •            L = GetGANLosses(XABP,PPG, X^ABP^,PPG^)

  •            # Update weights of client-model

  •            W = UpdateClientWeights(L)

  •         end for

  •         Aggregate client-model’s weights with global-model

  •     end for

  • end for

  • Generate ABP waveforms from unseen PPG using trained global-model