Diagram depicting the decoding methodology. The subject was fitted with a 60-channel EEG cap to record brain activity, and a plurality of sensors were used to record 3-dimensional (3D) kinematics and foot switch data. EEG and kinematics were synchronized, preprocessed, and saved. The training, testing, and optimization of individual neural decoders for each decoded gait parameter were performed off-line with cross-validation procedures.