A multi-modal brain-computer large model construction method based on double masks and space-time anchoring

By constructing a multimodal brain-computer interface model based on dual masking and spatiotemporal anchoring, the adaptation problem of multimodal neurophysiological signal models under different modal combinations and sensor configurations was solved. The model achieved efficient transfer and representation consistency on different datasets, improving the utilization efficiency of multi-source data and the performance of downstream tasks.

CN123178984APending Publication Date: 2026-11-27ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611683768.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing multimodal EEG or neurophysiological signal-based models are difficult to adapt to changes in different modal combinations and sensor configurations, especially in the case of modality loss, which makes it difficult to maintain representational consistency, resulting in low model transferability and data utilization efficiency.

Method used

A multimodal brain-computer interface model based on dual masks and spatiotemporal anchoring is adopted. The temporal dependencies within and between modalities are learned through block-level and modal-level masks. A unified spatiotemporal anchoring token is constructed by combining modal embedding and channel embedding. The interaction and reconstruction of different modalities are realized by using a shared Transformer encoder.

Benefits of technology

It improves the model's adaptability to different modal combinations and sensor layouts, supports single-modal or partially missing modal inputs, and enhances the utilization efficiency of multi-source neurophysiological data and the performance of downstream tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178984A_ABST
    Figure CN123178984A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on double mask and space-time anchor multi-modal brain-computer big model construction method, comprising: obtaining one or more neurophysiological modal time series signal and channel metadata, signal is divided into time block and is modality special coding;Unified space-time anchor token is constructed using modal embedding, channel embedding and shared time position embedding, wherein the channel embedding of EEG and fNIRS channel is obtained by three-dimensional coordinate, the channel embedding of EOG, ECG and EMG channel is obtained by anatomical region identification;Token is sent into shared Transformer encoder;Block-level mask reconstruction training is performed, and modal-level mask reconstruction training is performed in multi-modal training sample;Model parameters are updated using modal special reconstruction head and reconstruction loss, to obtain base big model and output unified neurophysiological signal general representation.The application can adapt to different sensor configurations, single modal input and partial modal missing input.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the fields of neurophysiological signal processing, brain-computer interface and artificial intelligence technology, and specifically relates to a method for constructing a multimodal brain-computer large model based on dual masking and spatiotemporal anchoring. Background Technology

[0002] Neurophysiological signal processing is a crucial technological foundation for fields such as brain-computer interfaces, sleep medicine, auxiliary assessment of neurological diseases, and human-computer interaction. Electroencephalography (EEG) signals reflect brain electrical activity, electrooculography (EOG) signals reflect eye movement, electrocardiography (ECG) signals reflect cardiac activity, electromyography (EMG) signals reflect muscle activity, and functional near-infrared spectroscopy (fNIRS) signals reflect changes in cerebral hemodynamics. These different signals describe human states from various dimensions, including neural, eye-movement, cardiac, muscular, and hemodynamic perspectives, and are complementary. In practical applications, relevant data can be derived from different task scenarios such as sleep monitoring, motor behavior, emotion recognition, cognitive assessment, and anomaly detection.

[0003] To utilize multiple neurophysiological signals, existing solutions often employ methods such as setting separate encoders for different modalities, concatenating, summing, attention fusion, or cross-modal interactions after feature extraction. These solutions are typically trained on fixed datasets, fixed modality combinations, and fixed sensor configurations. When actual data acquisition only provides a subset of modalities, or when different datasets have inconsistent modality sets, the model often needs to reconfigure input branches, retrain the fusion module, or discard some existing data, thus limiting the reusability of the same model across multiple data sources.

[0004] Significant acquisition heterogeneity exists among different neurophysiological modalities. The number of channels in EEG can vary depending on the electrode cap configuration, and the electrodes typically have recordable three-dimensional spatial coordinates. fNIRS includes different source-detector combinations, and its sensor positions can also be represented by spatial coordinates. In contrast, EOG, ECG, and EMG usually have only a few leads or channels, and their absolute spatial coordinates are often unavailable in the data recording, relying more on anatomical information such as periocular leads, standard limb leads, or muscle groups for identification. Furthermore, there may be differences in sampling rate, recording duration, number of channels, channel order, and sensor layout between different devices and datasets. If fixed channel numbers or fixed position codes are used to represent channels directly, the model easily memorizes specific acquisition configurations and is difficult to transfer to new datasets with different numbers or layouts of channels.

[0005] Existing research on basic models of multimodal EEG or neurophysiological signals still has certain limitations. For example, the literature [Yang Chaoqi, Sun Jimeng, Westover, M. Biot: Biosignal Transformer for Cross-Data Learning in the Field. Advances in Neural Information Processing Systems. 2023, Vol. 36: 78240-78260] uses a unified word segmentation method for heterogeneous physiological signals for cross-data pre-training, but does not model cross-modal recovery relationships under conditions of missing complete modalities. The literature [Zhang Daoze. Brant-X: A Unified Framework for Physiological Signal Alignment. Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. 2024, pp. 4155-4166] uses EEG as the center to achieve representation alignment of different physiological signals through contrastive learning, without fully considering the dynamic characteristics of other physiological modalities themselves and the peer-to-peer interaction relationships between different modalities. The literature [Fang Qing. Promoting cross-modal representation to improve the multimodal basic model of physiological signals. arXiv preprint, arXiv ID: 2410.16424, 2024] uses cross-modal mask reconstruction to learn the representation of physiological signals, but its mask unit is a local time segment, which mainly focuses on local temporal continuity and does not fully model the whole modality inference process of recovering the complete missing modality from the visible modality.

[0006] Therefore, how to construct a base model that can uniformly process heterogeneous temporal signals, adapt to different channel position description methods, and maintain representation consistency when the available modality set changes, for neurophysiological datasets covering multiple tasks, with different modal combinations and different sensor configurations, remains a technical problem that needs to be solved in the field of neurophysiological signal representation learning. Summary of the Invention

[0007] In view of the above, the present invention provides a method for constructing a multimodal brain-computer interface based on dual masking and spatiotemporal anchoring. By using a unified spatiotemporal anchoring method, modal information, channel location information, and temporal location information of different neurophysiological modalities are uniformly represented. By using block-level mask reconstruction and modality-level mask reconstruction, the temporal dependencies within modalities and the complementary relationships between different modalities are learned, thereby constructing a base large model that can output a universal representation of unified neurophysiological signals, thereby improving the performance of multiple downstream tasks.

[0008] A method for constructing a multimodal brain-computer interface large model based on dual masking and spatiotemporal anchoring includes the following steps: Step (1): Obtain multiple neurophysiological datasets covering different neurophysiological signal processing tasks. Each neurophysiological dataset includes time-series signals of one or more neurophysiological modalities and channel metadata corresponding to each time-series signal. Step (2): Preprocess each dataset and divide the time-series signal of each mode into multiple time blocks; Step (3): Construct a large-scale multimodal neurophysiological signal base model based on dual masking and spatiotemporal anchoring, including: The dual-masking module performs block-level masking on partial time blocks of each modal timing signal and modal-level masking on all time blocks of at least one modal timing signal. Each modality-independent time block encoder is used to map the time blocks of the corresponding modal timing signal into time block representations; The unified spatiotemporal anchoring encoder is used to add modal embedding, channel embedding, and shared temporal location embedding to the time block representation to obtain a unified spatiotemporal anchoring token; A shared Transformer encoder is used to input the unified spatiotemporal anchoring tokens of each modality into the Transformer for encoding, generating a general representation corresponding to each modality. Each modality has its own independent reconstruction head, which is used to reconstruct the general representation of the corresponding modality into a masked time-series signal; Step (4): Use the preprocessed training data to perform self-supervised training on the multimodal neurophysiological signal base model with the reconstructed signal as the loss.

[0009] Furthermore, in step (2), the same preprocessing method is used for the same mode time-series signal from different datasets, including bandpass filtering, trap filtering, normalization, and resampling operations; thus, for any mode m Timing signals It is divided into multiple consecutive time blocks according to the following formula; in: Timing signals The i A time block, Timing signals Number of time points Timing signals Time block length, Timing signals Number of time blocks i It is a natural number and 1 ≤ i ≤ N m .

[0010] Furthermore, the dual masking module employs both block-level masking and modal-level masking. When the training samples include time-series signals of at least two modalities, after completing the training using the block-level masking method, modal-level masking is used to mask all time blocks of at least one modal time-series signal. When the training samples include time-series signals of multiple modalities, at least one unmasked modal time-series signal is retained.

[0011] Furthermore, the time block encoder consists of three concatenated convolutional coding blocks, each of which sequentially includes temporal convolution, group normalization, and GELU (Gaussian error linear unit) activation operations; flattening the output of the last convolutional coding block yields the time block representation.

[0012] Furthermore, the unified spatiotemporal anchoring encoder constructs a corresponding unified spatiotemporal anchoring token for the time block representation using the following expression; in: For time blocks Central Channel c Time-block representation of metadata for The corresponding unified spatiotemporal anchoring token, For modal embedding, For channel embedding, For the first i The shared time location embedding of each time block allows them to share the same time index across different modalities; for EEG and fNIRS, channel embedding... , For channel c The three-dimensional Cartesian coordinates, where W and b are learnable linear mapping parameters. c The channel number is used; for EOG, ECG, and EMG, the channel is embedded. =Embedding( ), Embedding() represents the embedding mapping function, which is used to identify the predefined anatomical region.

[0013] Furthermore, for any modality, the shared Transformer encoder concatenates all the unified spatiotemporal anchor tokens of that modality along the channel dimension, then flattens them along the channel and time dimensions to obtain a unified token sequence. The unified token sequence is then input into a Transformer containing a multi-head self-attention mechanism and a feedforward network for encoding to obtain a general representation corresponding to the modality.

[0014] Furthermore, in step (4), the following loss function is used to perform self-supervised training on the large model of multimodal neurophysiological signal base; in: For the total loss function, For block-level reconstruction loss, For modal-level reconstruction loss, This represents the set of all available neurophysiological modalities in the training data. For modality m The number of channels for timing signals Representing modes m The first of the timing signals i Channels in each time block c metadata, for The corresponding reconstruction data, For modality m The set of block-level mask time block indices For modality m Number of time blocks for timing signals The set of modes to be masked.

[0015] A computer device includes a memory and a processor, wherein the memory stores a computer program and the processor executes the computer program to implement the above-described method for constructing a multimodal brain-computer interface based on dual masking and spatiotemporal anchoring.

[0016] A computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-described method for constructing a multimodal brain-computer interface based on dual masks and spatiotemporal anchoring.

[0017] This invention uses block-level and modality-level masks collaboratively for self-supervised training. This allows for learning the temporal dependencies within a single modality and recovering complete missing modalities from visible modalities. Simultaneously, a unified spatiotemporal anchoring token is constructed through modality embedding, channel embedding, and shared temporal-position embedding, enabling direct interaction of neurophysiological signals from different modalities within a shared Transformer encoder. Therefore, the model of this invention can adapt to different modality combinations, channel numbers, and sensor layouts, and supports single-modality or partially missing modality inputs. This improves the utilization efficiency of multi-source neurophysiological data and the model's transferability across different downstream tasks. Attached Figure Description

[0018] Figure 1 This is a schematic diagram of the overall process of the multimodal brain-computer interface model construction method of the present invention.

[0019] Figure 2This is a schematic diagram of the overall architecture of the large-scale multimodal neurophysiological signal base model of the present invention.

[0020] Figure 3 This is a schematic diagram of the overall structure of a time block encoder based on a convolutional transformer.

[0021] Figure 4 A schematic diagram of the overall structure of a unified spatiotemporal anchoring encoder.

[0022] Figure 5 This is a schematic diagram of the overall structure of a shared Transformer encoder. Detailed Implementation

[0023] To describe the present invention in more detail, the technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0024] like Figure 1 As shown, this embodiment provides a method for constructing a multimodal brain-computer interface large model based on dual masks and spatiotemporal anchoring. The specific implementation process includes the following steps: (1) Obtain multiple multimodal neurophysiological datasets.

[0025] Training sample sets were obtained from publicly available datasets, including HMC (Hawking Medical Center Sleep Staging Database), Hygrip (Multimodal Neurobehavioral Dataset of Bilateral Dynamic Grip Control), NEMO (Functional Near-Infrared Spectroscopy Emotion Analysis Database), VC (Visual Cognitive Motivation EEG-Functional Near-Infrared Dataset), CLIS (Neurophysiological Dataset of Patients with Completely Locked-Out Syndrome), ASD (Social Gaze Dataset of Autism Spectrum Disorder), and related datasets from the OpenNeuro open neuroscience data sharing platform. These datasets cover tasks such as sleep, emotional imagery, cognition, evoked potentials, working memory, autonomous driving, and resting and memory. Each neurophysiological dataset includes temporal signals of one or more neurophysiological modalities and corresponding channel metadata for each temporal signal. Channel metadata includes the modality to which the channel belongs, the acquisition time and location of the channel, and the sensor location of the channel. For EEG and fNIRS channels, the sensor location uses the three-dimensional Cartesian coordinates of the corresponding channel. For EOG, ECG, and EMG channels, the sensor location uses the preset anatomical region identifier corresponding to the periocular lead region, standard limb lead region, or muscle group region. Different training datasets allow for different modality combinations, number of channels, channel order, and sensor layout.

[0026] (2) Preprocess the dataset and divide it into blocks.

[0027] The same preprocessing method was used for the same modality from different datasets: EEG modality was subjected to bandpass filtering (0.5–70 Hz), trap filtering (50 Hz or 60 Hz), z-score normalization, and 200 Hz resampling; EOG modality was subjected to bandpass filtering (0.1–30 Hz), z-score normalization, and 200 Hz resampling; ECG modality was subjected to bandpass filtering (0.05–150 Hz), z-score normalization, and 200 Hz resampling; EMG modality was subjected to bandpass filtering (20–500 Hz), z-score normalization, and 200 Hz resampling; and fNIRS modality was subjected to bandpass filtering (0.01–0.1 Hz), z-score normalization, and 10 Hz resampling. Then, the time-series signals of the neurophysiological modalities were divided into multiple time blocks according to the corresponding sampling rates. m The original timing signal It is divided into multiple consecutive time blocks according to the following formula: in: Timing signals The i A time block, Timing signals Number of time points Timing signals Time block length, Represents timing signals Number of time blocks.

[0028] (3) Design a large multimodal EEG model.

[0029] Design as Figure 2 The large-scale multimodal neurophysiological signal base model shown includes a dual-masking module, a convolutional transformer-based time block encoder, a unified spatiotemporal anchoring encoder, a shared Transformer encoder, and a modality reconstruction head. First, the dual-masking module masks the data, allowing the model to learn intramodal and intermodal data relationships. Then, each modality's independent time block encoder maps each time block to a time block representation. A unified spatiotemporal anchoring token is added to the time block representations to bridge the differences between physiological signals. Next, the time block representations of each modality with the added unified spatiotemporal anchoring token are concatenated and directly input into the shared Transformer encoder, allowing different physiological signals to interact in a unified attention space and learn cross-modal representations. Finally, the modality reconstruction head reconstructs the universal representations learned from each modality into masked temporal signals.

[0030] The dual-masking module employs both temporal block masking and modal masking. When the training samples include two or more neurophysiological modalities, after completing the block-level masking training, modal-level masking is used to mask all temporal blocks of one or more neurophysiological modalities. Furthermore, when the training samples include multiple neurophysiological modalities, at least one unmasked neurophysiological modality is retained.

[0031] The block-level masking method, for each neurophysiological modality's time block sequence, randomly selects time blocks to be masked according to the block-level masking ratio, and replaces the time blocks to be masked with a preset zero vector; the time blocks after block-level masking are represented as follows: in: Represents timing signals The i The block-level mask value corresponding to each time block. This represents the time block after the block-level mask; in this embodiment, the block-level mask ratio is set to 0.7.

[0032] Modal-level masking methods generate modal-level mask variables for each neurophysiological modality: Determine the set of masked modes based on the modality-level masking variables: in: Representing modes m Modal-level mask variables, Represents the modal-level mask probability. Bernoulli This represents the Bernoulli probability function. This represents the set of all available neurophysiological modalities in the training samples. This represents the set of masked modes. By making the set of masked modes a proper subset of the entire set of available modes, it is guaranteed that at least one unmasked neurophysiological mode is retained; in this embodiment, the mode-level masking probability... Set it to 0.5.

[0033] For the modes in the masked mode set m Replace all of its time blocks with a preset zero vector: The structure of the time block encoder is as follows Figure 3 As shown, it includes three convolutional coding blocks stacked sequentially. Each coding block includes temporal convolution, group normalization, and GELU activation operations. Let: in: Represents timing signals The i The first time block c Data corresponding to each channel.

[0034] Then the first j The output of each convolutional coding block Represented as: Flatten the output of the third convolutional coding block to obtain the... m The first mode i The first time block c Data corresponding to each channel express: in, Representing modes m The corresponding number j Temporal convolution operations within each convolutional encoding block This indicates a group normalization operation. This indicates the GELU activation operation. This indicates a flattening operation; time block encoders of different modes have the same network structure and processing procedures.

[0035] Unified spatiotemporal anchored encoder structure as follows Figure 4 As shown, it satisfies ,in For modality m passage c In the i A unified spatiotemporal anchoring token for each time block. For time block representation, For modal embedding, For channel embedding, Shared temporal location embedding. Shared temporal location embedding uses the same temporal index across different neurophysiological modalities; channel embedding satisfies the following for EEG channels and fNIRS channels. ,in For channel c The three-dimensional Cartesian coordinates, where W and b are learnable linear mapping parameters; for the EOG, ECG, and EMG channels, the following conditions are met. =Embedding( ),in The corresponding preset anatomical region identifiers correspond to the periorbital lead region, the standard limb lead region, or the muscle group region, respectively. =Embedding(m), where m is the modality identifier and Embedding is a learnable modality embedding mapping function.

[0036] Shared Transformer encoder structure as follows Figure 5 As shown, it satisfies ,in This is a unified token sequence obtained by concatenating unified spatiotemporal anchoring tokens from various available neurophysiological modalities along the channel dimension and then flattening them along both the channel and time dimensions. For the total number of available tokens; the output of the shared Transformer encoder satisfies ,in, Including multi-head self-attention layers and feedforward network layers, To unify the universal representation of neurophysiological signals.

[0037] The modality reconstruction head uses a linear reconstruction head to map the corresponding modal general representation output by the shared Transformer encoder back to the original signal space of the modality, thereby obtaining the reconstructed signal of the masked time block or the masked neurophysiological modality.

[0038] (4) Use the dataset to train the model.

[0039] A multimodal EEG large model was self-supervised trained on 13 public datasets, where the block-level reconstruction loss satisfies: in: For modality m A set of block-level mask time block indices for time-series signals. For modality m The number of channels for timing signals To reconstruct the time block, This is the original time block.

[0040] Modal-level reconstruction loss satisfies: in: For the set of masked modes, For modality m The number of time blocks of the time-series signal; the total training loss satisfies .

[0041] Self-supervised training first, in each training round, is based on... Perform a forward calculation, a backward calculation, and parameter updates on the model parameters, and then based on... Perform an independent forward calculation, backward calculation, and parameter update for the model parameters.

[0042] (5) Use the model to predict multiple downstream tasks.

[0043] The trained model was used to predict nine downstream tasks, including Sleep-EDF (Extended Sleep EEG Database), ISRUC (Sleep Database of the Institute for Systems and Robotics, University of Coimbra), DREAMER (EEG and ECG-based Emotion Recognition Database), SEED-VII (Shanghai Jiao Tong University Multimodal Emotion Recognition Dataset), TUEV (Temple University EEG Events Dataset), TUAB (Temple University Abnormal EEG Dataset), Shin (Synchronous EEG-Functional Near-Infrared Cognitive Task Dataset), FBM (Unconstrained Motion Whole-Body Movement Brain-Solid Imaging Dataset), and EEGMAT (Mental Arithmetic Task EEG Dataset). For each downstream task, a simple task header was appended to the model. After dividing the test set from the downstream task dataset, several rounds of fine-tuning were performed on the test set to achieve prediction for the downstream task. For multi-class classification tasks, balanced accuracy (Bal. Acc.) and Wei. F1 score (a weighted average of F1 scores) are used for evaluation. For binary classification tasks, balanced accuracy and AUC-PR (area under the precision-recall curve) are used for evaluation. For regression tasks, Pearson correlation coefficient (Cor.) and root mean square error (RMSE) are used for evaluation.

[0044] Existing large-scale models compared to this invention include: the LaBraM model (from the literature [Jiang Weibang, Zhao Liming, Lü Baoliang. Large-scale brain models for learning general representations from massive EEG data in brain-computer interfaces. International Conference on Learning Representations. 2024. pp. 16405-16426]), the CBraMod model (from the literature [Wang Jian, Zhao Song, Luo Zheng, Zhou Yan, Jiang Hao, Li Shuai, Pan Gang. A cross-shaped brain basic model for EEG decoding. International Conference on Learning Representations, May 2025, pp. 75310-75346]), the CSBrain model (from the literature [Zhou Yan, Wu Jian, Ren Zheng, Yao Zhe, Lu Wei, Peng Kai, Gou Chao. A cross-scale spatiotemporal brain basic model for EEG decoding. Advances in Neural Information Processing Systems, 2026, Vol. 38, pp. 87150-87195]), and the REVE model (from the literature [El Ouahidi, Y. Lys, J, Thölke, P, Farrugia, N, Pasdeloup, B, Gripon, V, Lioi, G. A basic EEG model - based on large-scale pre-training of 25,000 subjects to adapt to arbitrary settings. Advances in Neural Information Processing Systems, 2026, Vol. 38, pp. 22541-22577. The PhysioOmni model is derived from the literature [Jiang, Weibang; Fu, Xiao; Ding, Yong; Guan, Cuntai. Towards a robust multimodal physiological basic model for handling arbitrary missing modalities. arXiv preprint, arXiv ID: 2504.19596, 2025]. The comparison results are shown in Table 1, which shows that the method of the present invention has improved performance and is competitive compared with existing large models.

[0045] Table 1 The above description of the embodiments is provided to enable those skilled in the art to understand and apply the present invention. Those skilled in the art can readily make various modifications to the above embodiments and apply the general principles described herein to other embodiments without creative effort. Therefore, the present invention is not limited to the above embodiments, and any improvements and modifications made to the present invention by those skilled in the art based on the disclosure thereof should be within the scope of protection of the present invention.

Claims

1. A method for constructing a multimodal brain-computer interface based on dual masking and spatiotemporal anchoring, characterized in that, Includes the following steps: Step (1): Obtain multiple neurophysiological datasets covering different neurophysiological signal processing tasks. Each neurophysiological dataset includes time-series signals of one or more neurophysiological modalities and channel metadata corresponding to each time-series signal. Step (2): Preprocess each dataset and divide the time-series signal of each mode into multiple time blocks; Step (3): Construct a large-scale multimodal neurophysiological signal base model based on dual masking and spatiotemporal anchoring, including: The dual-masking module performs block-level masking on partial time blocks of each modal timing signal and modal-level masking on all time blocks of at least one modal timing signal. Each modality-independent time block encoder is used to map the time blocks of the corresponding modal timing signal into time block representations; The unified spatiotemporal anchoring encoder is used to add modal embedding, channel embedding, and shared temporal location embedding to the time block representation to obtain a unified spatiotemporal anchoring token; A shared Transformer encoder is used to input the unified spatiotemporal anchoring tokens of each modality into the Transformer for encoding, generating a general representation corresponding to each modality. Each modality has its own independent reconstruction head, which is used to reconstruct the general representation of the corresponding modality into a masked time-series signal; Step (4): Use the preprocessed training data to perform self-supervised training on the multimodal neurophysiological signal base model with the reconstructed signal as the loss.

2. The method for constructing a multimodal brain-computer interface based on dual masking and spatiotemporal anchoring as described in claim 1, characterized in that: In step (2), the same preprocessing method is used for the same mode time-series signal from different datasets, including bandpass filtering, trap filtering, normalization, and resampling operations; and then for any mode m Timing signals It is divided into multiple consecutive time blocks according to the following formula; in: Timing signals The i A time block, Timing signals Number of time points Timing signals Time block length, Timing signals Number of time blocks i It is a natural number and 1≤ i ≤ N m .

3. The method for constructing a multimodal brain-computer interface based on dual masking and spatiotemporal anchoring as described in claim 1, characterized in that: The dual masking module employs both block-level masking and modal-level masking. When the training samples include time-series signals of at least two modalities, after completing the training using the block-level masking method, modal-level masking is used to mask all time blocks of at least one modal time-series signal. When the training samples include time-series signals of multiple modalities, at least one unmasked modal time-series signal is retained.

4. The method for constructing a multimodal brain-computer interface based on dual masking and spatiotemporal anchoring as described in claim 1, characterized in that: The temporal block encoder consists of three concatenated convolutional coding blocks. Each convolutional coding block contains temporal convolution, group normalization, and GELU activation operations in sequence. Flattening the output of the last convolutional coding block yields the temporal block representation.

5. The method for constructing a multimodal brain-computer interface based on dual masking and spatiotemporal anchoring as described in claim 1, characterized in that: The unified spatiotemporal anchoring encoder constructs the corresponding unified spatiotemporal anchoring token for time block representation using the following expression; in: For time blocks Central Channel c Time-block representation of metadata for The corresponding unified spatiotemporal anchoring token, For modal embedding, For channel embedding, For the first i The shared time location embedding of each time block allows them to share the same time index across different modalities; for EEG and fNIRS, channel embedding... , For channel c The three-dimensional Cartesian coordinates, where W and b are linear mapping parameters. c The channel number is used; for EOG, ECG, and EMG, the channel is embedded. =Embedding( ), Embedding() represents the embedding mapping function, which is used to identify the predefined anatomical region.

6. The method for constructing a multimodal brain-computer interface based on dual masking and spatiotemporal anchoring as described in claim 1, characterized in that: For any given modality, the shared Transformer encoder concatenates all the unified spatiotemporal anchor tokens of that modality along the channel dimension, then flattens them along the channel and time dimensions to obtain a unified token sequence. This unified token sequence is then input into a Transformer containing a multi-head self-attention mechanism and a feedforward network for encoding to obtain a general representation corresponding to the modality.

7. The method for constructing a multimodal brain-computer interface based on dual masking and spatiotemporal anchoring as described in claim 1, characterized in that: In step (4), the following loss function is used to perform self-supervised training on the large model of multimodal neurophysiological signal base; in: For the total loss function, For block-level reconstruction loss, For modal-level reconstruction loss, This represents the set of all available neurophysiological modalities in the training data. For modality m The number of channels for timing signals Representing modes m The first of the timing signals i Channels in each time block c metadata, for The corresponding reconstruction data, For modality m The set of block-level mask time block indices For modality m Number of time blocks for timing signals. The set of modes to be masked.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: The processor is used to execute the computer program to implement the method for constructing a multimodal brain-computer interface based on dual masking and spatiotemporal anchoring as described in any one of claims 1 to 7.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by the processor, it implements the method for constructing a multimodal brain-computer interface based on dual masking and spatiotemporal anchoring as described in any one of claims 1 to 7.