Skip to main content
. 2026 Mar 31;26(7):2158. doi: 10.3390/s26072158
Algorithm 1 Stage I: Training Procedure for the Analog Affective Link
Input: Frozen Modules: Emotion Encoder Ee, Speaker Encoder Es;
     Trainable Modules: JSCC Encoder Ejscc, JSCC Decoder Djscc (collectively θjscc);
     Hyperparameters: Learning rate η, batch size B, transmit power P.
Output: Optimized Parameters θjscc.
  •  1:

    Initialize trainable parameters θjscc randomly.

  •  2:

    repeat

  •  3:

       for each batch WD (batch size B) do

  •  4:

            Extract emotion vectors: Ze=Ee(W)

  •  5:

            Extract speaker vectors: Zs=Es(W)

  •  6:

            Concatenate latent features: Za=[ZeZs]

  •  7:

            Map to channel symbols: S˜a=Ejscc(Za)

  •  8:

            Apply Power Normalization:

  •  9:

            Sa=P·S˜aES˜a2+ϵ

  • 10:

            Sample channel state haCN(0,1) and noise naCN(0,σ2)

  • 11:

            Transmission: Ya=ha·Sa+na

  • 12:

            Neural Inversion: Z^a=Djscc(Ya)

  • 13:

            Compute Reconstruction Loss:

  • 14:

            La=1Bi=1BZa(i)Z^a(i)22

  • 15:

            Update gradients: θjsccθjsccηθLa

  • 16:

       end for

  • 17:

    until convergence or max epochs reached

  • 18:

    return θjscc