ANALYSIS OF MEG SIGNALS OF WRIST MOVEMENT WITH LSTM-BASED REGRESSION MODEL
DOI:
https://doi.org/10.31891/2307-5732-2025-357-81Keywords:
magnetoencephalography, LSTM, regression analysis, time series, deep learningAbstract
This article describes the methodological framework for the development and evaluation of a magnetoencephalographic (MEG) signal regressor based on a Long Short-Term Memory (LSTM) network, applied to the analysis of time-series data from wrist movement tasks. The study provides a detailed account of the model's architecture, which is constructed from sequence input, LSTM, and dense layers designed to process multi-channel temporal data. It outlines the data preprocessing pipeline, which includes the standardization of features for each MEG channel using a StandardScaler and the specific formulation of input-target sequences necessary for time-series forecasting. The training and optimization protocols are specified in detail, including the use of the Adam optimizer, a Mean Squared Error (MSE) loss function, and a ReduceLROnPlateau learning rate scheduler to dynamically adjust learning based on validation performance. To ensure numerical stability, particularly when training on long sequences, gradient clipping was implemented. The model's predictive performance was quantitatively assessed using MSE to measure prediction error and the Coefficient of Determination (R²) to determine the proportion of explained variance. These metrics were evaluated across distinct training, validation, and test datasets to assess the model's learning capacity, its ability to generalize to unseen data, and to monitor for potential overfitting. Finally, the paper considers the application of the latent representations learned by the LSTM regressor. These internal representations, which encapsulate critical temporal features of the MEG signals, are proposed as a source of data-driven features for subsequent, more complex classification tasks, such as distinguishing between different brain states or experimental conditions.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 АНДРІЙ ХОМ’ЯК (Автор)

This work is licensed under a Creative Commons Attribution 4.0 International License.