Skip to main content
. 2025 Sep 11;10(9):613. doi: 10.3390/biomimetics10090613
Algorithm 1 Frame-wise feature extraction and sequence aggregation using time-distributed AlexNet.
Require: Video sequence V={F1,F2,,FT}, where Ft is the tth frame
Require: CNN layers L1,L2,,Ln with shared weights across time
  •   1:

    for each frame Ft in V do

  •   2:

       xtFt

  •   3:

       for each CNN layer Li in {L1,,Ln} do

  •   4:

         xtLi(xt) {Apply CNN layer with shared weights}

  •   5:

       end for

  •   6:

       htFlatten(xt) {Flatten frame-wise feature map}

  •   7:

       Store ht into H

  •   8:

    end for

  •   9:

    HconcatFlatten(H) {Flatten all time steps into one vector of shape (T·D)}

  • 10:

    yDense Layers(Hconcat) {Pass to fully connected classifier}

  • 11:

    return y {Predicted activity class}