Skip to main content
. 2025 Apr 4;25(7):2293. doi: 10.3390/s25072293
Algorithm 1: Training Procedure of the RC-SEI method.

Require:

  • K: Number of training iterations;
  • N: Number of training samples;
  • C: Number of batches;
  • B: Number of Batchsize;
  • w,wSF: Parameters of neural network and sparse parameters;
  • z,zSF: Original features and sparse features;
  • η: Learning rate;
  • μ: Coefficient of momentum;
  • λSF: Sparse factor;
  • Trainingon{xi,yi}i=1N

  • for k=1 to K do

  •    for c=1 to C do

  •      [Forward propagation]:

  •      Sampling a batch of training samples {xi,yi}i=1B

  •      Initialize wSF={1,1,,1}

  •      Extracting the Original features: z

  •      Pruning the Original features: zSF=wSFz

  •      Obtaining the artificial labels:

  •      for b=1 to B do

  •         y^=argmaxyYf(yi|xi;zSF)

  •      end for

  •      Calculating the loss: L=LCE+R(wSF)

  •      [Backward propagation]:

  •      Updating w by Adam algorithm:

  •      wk=wk1η·m^k1v^k1+ϵ

  •      Updating wSF by APGD-NAG algorithm:

  •      Jk=wSFk1ηLCEwSFk1vk=SηλSFJkwSFk1+μ·vk1wSFk1=SηλSFJk+μ·vk1k=1,2,3,,K

  •    end for

  • end for