Research Article

A Framework for Human Activity Recognition Based on WiFi CSI Signal Enhancement

Algorithm 3

P-signal enhancement.
Input: Sij—the sequential data of i-th subcarrier and j-th antenna for CSI signal
W—the size of sliding window
step—the step size of window movement
Output: SEij—the enhanced sequential data of i-th subcarrier and j-th antenna
Step 1: N = the length of Sij
Step 2: for (k = 0; k + W ≤ N; k = k + step)
Step 3: ST = Ø
Step 4: calculate formula (6) () based on sequential data in sliding window from Sij
Step 5: append to ST
Step 6: end
Step 7: SEij= ST
Step 8: return SEij