Skip to main content
. 2024 Jul 26;24(15):4860. doi: 10.3390/s24154860
Algorithm 1: Cyclic Attention CycAttn(Sl)
Input: Partial limb motion features Sl={Sl1,Sl2,,SlK}
for each i[1,K] do:
     1. Calculate: Srest=Concatenate(Sl{Sli});
     2. Calculate Query, Key and Value: Squery=WqSli, Skey=WkSrest, Svalue=WvSrest;
     3. Calculate fli=CrossAttn(Squery,Skey,Svalue)=SoftMaxSquerySkeyTdSvalue;
     4. ii+1.
end
where Concatenate means splice partial limb motion features other than Sli, Wq, Wk,
and Wv denote the projection weights, d is the channel dimension of Squery.
Output: Interacted local features fl={fl1,fl2,,flK}.