Extended Data Fig. 2. Decoding algorithm.
The input YIN is EN x 3 input matrix, where EN is the number of electrodes (192) and 3 represents the most recent 3 50-ms bins. The output variable, , represents a normalized vector of each of d finger velocities. The actual decoded velocities were calculated by applying an empirically calculated mean value and gain value. Linear layers (WT, W1-W3) included a learnable bias term except for the final linear layer, W4, to reduce the magnitude of non-zero means. All instances of batchnorm, BNA, were implemented with affine = True except for the final batchnorm, BN, where affine = False in an attempt to reduce the reliance of the decoding algorithm on an offset correction from the final batchnorm block. During training mode batchnorm layer, BN, did not correct for non-zero means or apply a mean correction to force the final linear layer, W4, to learn an output signal with zero mean. BN, batchnorm; FC, fully connected; ReLU, rectified linear unit. Figure adapted from (Willsey et al. 2022)23.
