Digital electroencephalograph

By employing a feature extraction method with a uniform time window and sliding step size in invasive brain-computer interfaces, combined with independent LSTM networks and dynamic normalization processing, the temporal inconsistency and non-stationarity issues in multimodal neural signal decoding are resolved, achieving high-precision multi-task behavior prediction and robust decoding.

CN121943344APending Publication Date: 2026-05-01SHANGHAI STAIRMED TECHNOLOGY CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202512039796.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-30
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Existing invasive brain-computer interfaces lack a unified time frame, cross-modal normalization, and robust real-time fusion strategies for decoding multimodal neural signals, resulting in limited decoding accuracy and robustness. Furthermore, deep learning models are limited in flexibility and performance in multi-task learning.

Method used

We employ a unified time window and sliding step size to extract features from LFP and pulse signals, construct a fusion feature tensor with complementary information, and decode it through an independent Long Short-Term Memory (LSTM) network. Combined with dynamic normalization and an independent optimizer, we achieve multi-task behavior prediction.

Benefits of technology

It achieves efficient fusion and stable decoding of multimodal neural signals, improves the robustness and flexibility of decoding, adapts to the personalized training needs of different tasks, reduces model maintenance costs, and provides online adaptive learning capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121943344A_ABST
    Figure CN121943344A_ABST
Patent Text Reader

Abstract

The invention discloses a digital electroencephalograph, and belongs to the technical field of brain-computer interface signal processing. An electroencephalogram signal processor of the digital electroencephalograph acquires digital neural signals of a plurality of channels for a target object, wherein the digital neural signals comprise LFP signals and pulse signals; performing feature extraction on the two signals based on a unified time window and a sliding step length, and integrating a time-aligned feature matrix into a first fusion feature tensor; performing dynamic normalization processing on the first fusion feature tensor, wherein the statistical magnitude is updated along with the change of the input data; and n parallel LSTM networks are used to decode the normalized second fusion feature tensor to obtain n decoding results of different dimensions, the n LSTM networks are mutually independent, and each LSTM network has an independent optimizer and an independent parameter. According to the method, multi-modal features can be aligned in time, signal drift is compensated, decoding robustness is improved, and inter-task optimization decoupling and personalized training are achieved through independent parameters and an optimizer.
Need to check novelty before this filing date? Find Prior Art

Description

Digital EEG machine Technical Field

[0001] This application relates to the field of brain-computer interface signal processing technology, and in particular to a digital electroencephalogram (EEG) machine. Background Technology

[0002] Invasive brain-computer interfaces (BCIs) directly record electrophysiological activities in the brain using high-density electrodes, showing significant application potential in areas such as motor control, sensory reconstruction, and mental rehabilitation. However, extracting stable and effective decoding features while ensuring real-time performance and achieving robust decoding have remained two core challenges in the field of neural decoding.

[0003] Existing invasive brain-computer interfaces (BCIs) mostly use single-modality neural signals for decoding. For example, they use only local field potentials (LFPs) to characterize low-frequency group activity, or only pulse-fire-related statistics (such as firing rate) to characterize unit activity intensity. Due to the lack of complementary multi-level information, decoding single-modality neural signals makes it difficult to simultaneously capture complementary dimensions such as group synchronization / energy, unit firing intensity, and firing timing rhythm, resulting in limited decoding accuracy and robustness, especially sensitive to changes in behavioral state, fluctuations in electrode conditions, or increased noise levels. To improve performance, academia and industry have proposed a multi-modal joint decoding approach, such as jointly modeling LFPs reflecting low-frequency group activity with spike band power (SBP) reflecting high-frequency energy, and temporal features derived from pulse timestamps, such as inter-spike intervals (ISI). However, existing multimodal neural signal decoding methods generally lack a unified time frame, cross-modal normalization, and robust real-time fusion strategies: 1. Inconsistent time axis: The original sampling rate and effective frequency band of neural signals of different modalities differ significantly. For example, pulse events are commonly in the time resolution of tens to tens of kHz, LFP is usually below hundreds of Hz, and SBP is in the broadband range of hundreds to thousands of Hz. If there is no unified time window and step size, it is difficult to achieve strict time alignment and causal processing, thus affecting the effect of feature fusion.

[0004] 2. Differences in Dynamic Range and Statistical Distribution: LFP (Low-Frequency Power) is mostly an approximately continuous low-frequency power or phase quantity, SBP (Short-Frequency Power) reflects a high-frequency energy envelope, and ISI (Impulse Correlation Indicator) features are highly scarce and have a non-Gaussian distribution. Without cross-modal normalization and robust scaling, during the feature fusion stage, a certain mode may dominate due to excessively large dimensions or variance, causing learning bias in the downstream decoder and reducing the overall generalization ability.

[0005] Even with effectively fused multimodal features, the inherent non-stationarity of neural signals persists. Statistical properties of neural signals, such as mean, variance, and neuronal activity patterns, can drift over time due to minute electrode shifts, biological tissue responses, changes in environmental factors, or alterations in the subject's physiological state. This drift leads to performance degradation in pre-trained, fixed decoding models over long-term use, requiring frequent recalibration or retraining, significantly limiting their practicality. On the other hand, existing deep learning models, such as Long Short-Term Memory (LSTM) networks or Gated Recurrent Units (GRUs), have proven powerful in processing time-series data and have been applied to neural signal decoding. However, most existing multi-task decoding models typically employ a single-path network (sharing underlying feature extraction) that branches into multiple output heads. While this architecture achieves multi-task learning to some extent, its flexibility and performance may be limited when faced with tasks requiring independent optimization or having different convergence rates. For example, predicting continuous motion trajectories (regression tasks) and predicting discrete behavioral events (classification tasks) may require different feature emphases and training strategies. A single shared optimization process may lead to the training of some tasks being dominated by other tasks, or make it difficult to achieve fine-grained task control. In addition, the shared architecture is not flexible enough when it is necessary to adjust or update a specific task without affecting other tasks.

[0006] Therefore, the current field of neural signal decoding urgently needs a method and system that can efficiently fuse multimodal neural signals, effectively address their non-stationarity, and flexibly and robustly perform multi-task behavior prediction. Summary of the Invention

[0007] This application provides a digital electroencephalogram (EEG) machine to address problems in related technologies. The technical solution is as follows: According to a first aspect of this application, a digital EEG machine is provided, comprising an EEG signal processor; the EEG signal processor is used to acquire digital neural signals from multiple channels for a target object, the digital neural signals including at least local field potential (LFP) signals and pulse signals; the EEG signal processor is further used to extract features from the LFP signals and the pulse signals based on a unified time window and a unified sliding step size, and to integrate the extracted time-aligned feature matrices into a first fusion feature tensor; the EEG signal processor is further used to perform dynamic normalization processing on the first fusion feature tensor to obtain a second fusion feature tensor, wherein the statistics involved in the dynamic normalization processing are updated as the input data changes; the EEG signal processor is further used to decode the second fusion feature tensor using n parallel Long Short-Term Memory (LSTM) networks respectively, obtaining decoding results of the target object in n different dimensions, wherein the n LSTM networks are independent of each other and each LSTM network has an independent optimizer and model parameters, and n≥3.

[0008] In one possible implementation, the EEG signal processor is further configured to downsample the second fusion feature tensor to obtain a third fusion feature tensor; the EEG signal processor is further configured to decode the third fusion feature tensor using n parallel LSTM networks respectively to obtain the decoding results of the target object in n different dimensions.

[0009] In one possible implementation, when the LSTM network is used for regression prediction, the LSTM network includes an LSTM layer and a linear layer; the EEG signal processor is further configured to decode the third fused feature tensor using the LSTM layer and output the resulting first decoded sequence to the linear layer; the EEG signal processor is further configured to use the linear layer to predict continuous behavioral parameters of the target object based on the first decoded sequence.

[0010] In one possible implementation, when the LSTM network is used for classification prediction, the LSTM network includes LSTM layers and a classifier; the EEG signal processor is further configured to decode the third fused feature tensor using the LSTM layers and output the resulting second decoded sequence to the classifier; the EEG signal processor is further configured to use the classifier to predict the classification result of discrete events related to the target object based on the second decoded sequence.

[0011] In one possible implementation, when the n LSTM networks include a first regression LSTM network, a second regression LSTM network, and a classification LSTM network, the EEG signal processor is further configured to use the first regression LSTM network to perform regression prediction on the third fusion feature tensor to obtain a first continuous motion component of the target object; the EEG signal processor is further configured to use the second regression LSTM network to perform regression prediction on the third fusion feature tensor to obtain a second continuous motion component of the target object; the EEG signal processor is further configured to use the classification LSTM network to perform classification prediction on the third fusion feature tensor to obtain a classification result of discrete events related to the target object.

[0012] In one possible implementation, the EEG signal processor is further configured to extract low-frequency power features of the LFP signal based on the time window and the sliding step size to obtain a first LFP power feature matrix; the EEG signal processor is further configured to extract pulse band power (SBP) features of the pulse signal based on the time window and the sliding step size to obtain a first SBP power feature matrix; the EEG signal processor is further configured to count pulse interval histogram (ISI-Bincount) based on the time window, the sliding step size, and the timestamp of the pulse signal to obtain a first ISI-Bincount matrix; the EEG signal processor is further configured to integrate the first LFP power feature matrix, the first SBP power feature matrix, and the first ISI-Bincount matrix into a first fused feature tensor.

[0013] In one possible implementation, the EEG signal processor is further configured to perform a first normalization process on the first LFP power feature matrix, the first SBP power feature matrix, and the first ISI-Bincount matrix to obtain a second LFP power feature matrix, a second SBP power feature matrix, and a second ISI-Bincount matrix; the EEG signal processor is further configured to integrate the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix into a first fused feature tensor.

[0014] In one possible implementation, the EEG signal processor is further configured to extract the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix for each time step based on the time window and the sliding step size, and to concatenate the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix for each time step according to the channel and feature dimensions to form a first fused feature tensor.

[0015] In one possible implementation, when the statistics include the global mean and standard deviation, the EEG signal processor is further configured to dynamically update the mean and standard deviation of the feature matrix corresponding to each channel; the EEG signal processor is further configured to dynamically normalize the first fusion feature tensor based on the updated mean and standard deviation to obtain the second fusion feature tensor.

[0016] In one possible implementation, the EEG signal processor is further configured to update the mean and standard deviation of the feature matrix corresponding to each channel based on the Welford online algorithm; the EEG signal processor is further configured to update the mean and standard deviation of the feature matrix corresponding to each channel based on x norm =(x-μ dynamic ) / (σ dynamic The formula +e) is used to dynamically normalize the feature matrix corresponding to each channel in the first fused feature tensor to obtain the second fused feature tensor, where x norm This represents the dynamically normalized data, where x represents the input data and μ is the input data. dynamic σ represents the dynamically updated mean. dynamic This represents the dynamically updated standard value, and σ dynamic The sum of e and is not zero.

[0017] In one possible implementation, the digital electroencephalogram (EEG) machine further includes a sensor unit, a preprocessing unit, and an analog-to-digital converter (ADC); the sensor unit is used to acquire analog neural signals from multiple channels for the target object; the preprocessing unit is used to preprocess the analog neural signals from multiple channels; and the ADC is used to perform analog-to-digital conversion on the preprocessed analog EEG neural signals to obtain digital neural signals from multiple channels.

[0018] In one possible implementation, the preprocessing unit includes a preamplifier and a prefilter; the preamplifier is used to amplify the analog neural signals of the plurality of channels; and the prefilter is used to filter noise from the amplified analog neural signals.

[0019] In one possible implementation, the digital electroencephalogram (EEG) machine further includes a display screen for displaying at least one of the following: the operating interface of the digital EEG machine; digital neural signals from the plurality of channels; a visual representation of the first fusion feature tensor and / or the second fusion feature tensor; and decoding results from the n different dimensions.

[0020] In one possible implementation, the display screen is a touch display screen, and the display screen is further used to receive input information generated based on touch operation on the operation interface, and the EEG signal processor is further used to control the decoding of the digital neural signal based on the input information.

[0021] In one possible implementation, the digital electroencephalogram (EEG) machine further includes multiple interfaces, including at least one of the following: a sensor interface for detachably connecting a sensor unit; and a data communication interface for connecting to an external device for data communication with the external device.

[0022] In one possible implementation, the digital electroencephalogram (EEG) machine further includes a power supply; the power supply is used to power the digital EEG machine.

[0023] According to a second aspect of this application, a brain control method is provided, the brain control method comprising: acquiring digital neural signals from multiple channels for a target object, the digital neural signals including at least local field potential (LFP) signals and pulse signals; extracting features from the LFP signals and the pulse signals based on a unified time window and a unified sliding step size, and integrating the extracted time-aligned feature matrices into a first fused feature tensor; and decoding the first fused feature tensor using a Long Short-Term Memory (LSTM) network to obtain the decoding result of the target object.

[0024] According to a third aspect of this application, a brain control method is provided, the brain control method comprising: acquiring digital neural signals from multiple channels for a target object, the digital neural signals including at least local field potential (LFP) signals and pulse signals; extracting features from the LFP signals and the pulse signals based on a unified time window and a unified sliding step size, and integrating the extracted time-aligned feature matrices into a first fused feature tensor; and decoding the first fused feature tensor using n parallel long short-term memory (LSTM) networks respectively to obtain decoding results of the target object in n different dimensions, wherein the n LSTM networks are independent of each other and each LSTM network has an independent optimizer and model parameters, and n≥3.

[0025] According to a fourth aspect of this application, a brain control method is provided, the brain control method comprising: acquiring digital neural signals from multiple channels for a target object, the digital neural signals including at least local field potential (LFP) signals and pulse signals; extracting features from the LFP signals and the pulse signals based on a unified time window and a unified sliding step size, and integrating the extracted time-aligned feature matrices into a first fusion feature tensor; performing dynamic normalization processing on the first fusion feature tensor to obtain a second fusion feature tensor, wherein the statistics involved in the dynamic normalization processing are updated as the input data changes; and decoding the second fusion feature tensor using n parallel long short-term memory (LSTM) networks respectively to obtain decoding results of the target object in n different dimensions, wherein the n LSTM networks are independent of each other and each LSTM network has an independent optimizer and model parameters, and n≥3.

[0026] In one possible implementation, the step of using n parallel Long Short-Term Memory (LSTM) networks to decode the second fused feature tensor to obtain the decoding results of the target object in n different dimensions includes: downsampling the second fused feature tensor to obtain a third fused feature tensor; and using n parallel LSTM networks to decode the third fused feature tensor to obtain the decoding results of the target object in n different dimensions.

[0027] In one possible implementation, when the LSTM network is used for regression prediction, the LSTM network includes LSTM layers and linear layers. The step of using n parallel LSTM networks to decode the third fused feature tensor to obtain decoding results of the target object in n different dimensions includes: decoding the third fused feature tensor using the LSTM layers and outputting the resulting first decoded sequence to the linear layers; and using the linear layers to predict continuous behavioral parameters of the target object based on the first decoded sequence.

[0028] In one possible implementation, when the LSTM network is used for classification prediction, the LSTM network includes LSTM layers and a classifier. The step of using n parallel LSTM networks to decode the third fused feature tensor to obtain decoding results of the target object in n different dimensions includes: decoding the third fused feature tensor using the LSTM layers, outputting the resulting second decoded sequence to the classifier; and using the classifier to predict the classification results of discrete events related to the target object based on the second decoded sequence.

[0029] In one possible implementation, when the n LSTM networks include a first regression LSTM network, a second regression LSTM network, and a classification LSTM network, the step of using n parallel LSTM networks to decode the third fusion feature tensor to obtain the decoding results of the target object in n different dimensions includes: using the first regression LSTM network to perform regression prediction on the third fusion feature tensor to obtain the first continuous motion component of the target object; using the second regression LSTM network to perform regression prediction on the third fusion feature tensor to obtain the second continuous motion component of the target object; and using the classification LSTM network to perform classification prediction on the third fusion feature tensor to obtain the classification results of discrete events related to the target object.

[0030] In one possible implementation, the step of extracting features from the LFP signal and the pulse signal based on a unified time window and a unified sliding step size, and integrating the extracted time-aligned feature matrices into a first fused feature tensor, includes: extracting low-frequency power features of the LFP signal based on the time window and the sliding step size to obtain a first LFP power feature matrix; extracting pulse band power (SBP) features of the pulse signal based on the time window and the sliding step size to obtain a first SBP power feature matrix; calculating pulse interval histogram (ISI-Bincount) based on the time window, the sliding step size, and the timestamp of the pulse signal to obtain a first ISI-Bincount matrix; and integrating the first LFP power feature matrix, the first SBP power feature matrix, and the first ISI-Bincount matrix into a first fused feature tensor.

[0031] In one possible implementation, the step of integrating the first LFP power feature matrix, the first SBP power feature matrix, and the first ISI-Bincount matrix into a first fused feature tensor includes: performing a first normalization process on the first LFP power feature matrix, the first SBP power feature matrix, and the first ISI-Bincount matrix to obtain a second LFP power feature matrix, a second SBP power feature matrix, and a second ISI-Bincount matrix; and integrating the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix into a first fused feature tensor.

[0032] In one possible implementation, integrating the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix into a first fused feature tensor includes: extracting the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix for each time step based on the time window and the sliding step size; and concatenating the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix for each time step according to the channel and feature dimensions to form the first fused feature tensor.

[0033] In one possible implementation, when the statistics include the global mean and standard deviation, the step of dynamically normalizing the first fused feature tensor to obtain the second fused feature tensor includes: dynamically updating the mean and standard deviation of the feature matrix corresponding to each channel; and dynamically normalizing the first fused feature tensor based on the updated mean and standard deviation to obtain the second fused feature tensor.

[0034] In one possible implementation, the dynamic updating of the mean and standard deviation of the feature matrix corresponding to each channel includes: updating the mean and standard deviation of the feature matrix corresponding to each channel based on the Welford online algorithm; the dynamic normalization of the first fused feature tensor based on the updated mean and standard deviation to obtain the second fused feature tensor includes: based on x norm =(x-μ dynamic ) / (σ dynamic The formula +e) is used to dynamically normalize the feature matrix corresponding to each channel in the first fused feature tensor to obtain the second fused feature tensor, where x norm This represents the dynamically normalized data, where x represents the input data and μ is the input data. dynamic σ represents the dynamically updated mean. dynamic This represents the dynamically updated standard value, and σ dynamic The sum of e and is not zero.

[0035] In one possible implementation, the method further includes: acquiring simulated neural signals from multiple channels for the target object; preprocessing the simulated neural signals from multiple channels; and performing analog-to-digital conversion on the preprocessed simulated EEG neural signals to obtain digital neural signals from multiple channels.

[0036] In one possible implementation, the preprocessing of the analog neural signals from the plurality of channels includes: amplifying the analog neural signals from the plurality of channels; and performing noise filtering on the amplified analog neural signals.

[0037] In one possible implementation, the method further includes: displaying at least one of the following via a display screen: an operating interface for implementing the brain control method; digital neural signals from the plurality of channels; a visual representation of the first fusion feature tensor and / or the second fusion feature tensor; and decoding results from the n different dimensions.

[0038] In one possible implementation, if the display screen is a touch display screen, the method further includes: receiving input information generated based on touch operation on the operation interface, and controlling the decoding of the digital neural signal based on the input information.

[0039] According to a fifth aspect of this application, a brain control product is provided, characterized in that the brain control product includes an electroencephalogram (EEG) signal processor, the EEG signal processor being used to execute the brain control method as described above.

[0040] According to a sixth aspect of this application, a computer-readable storage medium is provided, characterized in that the storage medium stores at least one instruction, which is loaded and executed by a processor to implement the mind control method as described above.

[0041] The beneficial effects of the technical solution provided in this application include at least the following: it realizes end-to-end processing from multimodal digital neural signals to multidimensional behavior prediction. Its core advantages are: 1) By using a unified time window and a unified sliding step size to process LFP signals and pulse signals in parallel, it ensures strict alignment of multimodal features on the time axis, and deeply fuses LFP features representing low-frequency rhythms of the group with pulse features representing high-frequency discharge modes of the unit, constructing a first fusion feature tensor with complementary information. This provides a robust input that can simultaneously reflect the multi-scale dynamics of neural activity for subsequent decoding, laying the foundation for high-precision multi-task decoding; 2) By using a dynamic normalization mechanism to update the mean and standard deviation, it compensates for the statistical distribution drift of neural signals in real time, keeping the input features stable, thereby effectively combating non-stationary interference and significantly improving accuracy. The robustness of decoding is improved; 3) Each LSTM network is configured with completely independent model parameters and optimizers. Through parameter isolation, the coupling and conflict of gradient updates between multiple tasks are completely eliminated, so that the weights of each LSTM network can converge along the optimal direction of its specific task, avoiding optimization trade-offs and representation interference caused by shared parameters; Independent optimizers allow different hyperparameters (such as learning rate and momentum) to be set for different LSTM networks, adapting to the personalized training dynamics required by each network due to the differences in task nature (such as regression and classification) and convergence speed, thus improving the stability and efficiency of overall training; It gives the system parameter-level update flexibility, allowing the parameters of a specific network to be adjusted, retrained or frozen separately without affecting other networks. This not only reduces the computational cost of model maintenance, but also provides fine-grained control capabilities for online adaptive learning. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 is a schematic diagram of the structure of a digital electroencephalogram (EEG) machine provided in one embodiment of this application; Figure 2 is a flowchart of a brain control method provided in one embodiment of this application; Figure 3 is a flowchart of a brain control method provided in another embodiment of this application; Figure 4 is a flowchart of a brain control method provided in yet another embodiment of this application. Detailed Implementation

[0044] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0045] Figure 1 shows a schematic diagram of a digital electroencephalogram (EEG) machine according to an embodiment of this application. The EEG machine may include a sensor unit 110, a preprocessing unit 120, an analog-to-digital converter 130, an EEG signal processor 140, a display screen 150, an interface 160, and a power supply 170. The preprocessing unit 120 may include a preamplifier 121 and a prefilter 122.

[0046] The sensor unit 110, also known as a neural electrode, is a physical device that is in direct contact with or placed near a target object (such as the cerebral cortex, deep brain tissue, etc.) to sense neural electrophysiological activity.

[0047] The sensor unit 110 may include, but is not limited to: (1) a microelectrode array, such as the Utah array, Michigan probe, etc., which contains multiple (such as 32, 64, 128 or more) regularly arranged microelectrode contacts that can simultaneously record high-density neural signals from different spatial locations.

[0048] (2) Deep brain stimulation electrodes: When used for therapeutic applications (such as Parkinson's disease), they also have recording functions.

[0049] (3) Flexible neural electrodes: A flexible polymer substrate is used to better fit the brain tissue and reduce the immune response of long-term implantation.

[0050] (4) Photoelectric integrated electrode: A miniature light-emitting diode (LED) or photosensitive device is integrated on the electrode, which has dual functions of optogenetic stimulation and electrical signal recording.

[0051] The working principle of sensor unit 110 is as follows: when a neuron or neuron group generates electrical activity, a weak voltage fluctuation is formed outside the cell. The electrode contacts of sensor unit 110 detect this voltage change and convert it into a weak analog current or voltage signal (usually in the microvolt level) for subsequent circuit processing.

[0052] The performance of the sensor unit 110 is characterized by multiple parameters, including but not limited to: electrode impedance, contact material (such as platinum-iridium alloy), contact size, contact spacing, biocompatible coating, and lead type. These parameters directly affect the quality of signal acquisition, signal-to-noise ratio, and long-term stability.

[0053] In this embodiment, sensor unit 110 is used to acquire analog neural signals from multiple channels for a target object. Specifically, multiple sensor units 110 can form a multi-channel neural signal acquisition array, where each channel refers to an independent signal acquisition path. This signal acquisition path begins with a sensor unit 110 or a single electrode contact within a sensor unit 110, passes through an independent preprocessing link (such as a preamplifier 121 and a prefilter 122), and is finally sampled individually by the analog-to-digital converter 130. Therefore, the number of channels (M) is typically greater than or equal to the number of sensor units 110 (N), depending on whether each sensor unit 110 contains multiple independent contacts.

[0054] In one embodiment, multiple sensor units 110 are arranged in a two-dimensional grid (such as cortical surface coverage) or a three-dimensional distribution (such as multiple target points in deep brain regions) to achieve high spatial resolution sampling of the target object. Different sensor units 110 can be configured to acquire signals with different characteristics. For example, some units (such as large contact electrodes) are used to acquire low-frequency, high-amplitude local field potential (LFP) signals; other units (such as small contact, high-impedance electrodes) are used to separate and acquire high-frequency action potential (pulse) signals. This cooperative working mode directly ensures the quality of multimodal signals at the physical level.

[0055] The analog neural signals of all channels are controlled by a common clock source and sampled synchronously to ensure that the signals across channels are strictly aligned on the time axis. This is crucial for subsequent multi-channel feature fusion (such as calculating the coherence between channels).

[0056] The sensor unit 110 sends the acquired analog neural signals from multiple channels to the preprocessing unit 120. The preprocessing unit 120 preprocesses the analog neural signals from multiple channels to pre-condition the weak raw analog neural signals, thereby improving signal quality and laying the foundation for subsequent analog-to-digital conversion and digital processing. There are many preprocessing methods; amplification and noise filtering are used as examples below.

[0057] Specifically, the preprocessing unit 120 includes a preamplifier 121 and a prefilter 122; wherein, the preamplifier 121 is used to amplify the analog neural signals of multiple channels; and the prefilter 122 is used to filter noise from the amplified analog neural signals.

[0058] The preamplifier 121 is a high-gain, low-noise amplifier. Its core function is to linearly amplify the raw analog neural signals in the range of microvolts (μV) to millivolts (mV), raising the signal amplitude to a level suitable for subsequent circuit processing (usually in the volt range). This ensures that the effective analog neural electrical signal amplitude is significantly higher than the inherent noise level of the circuit itself, thereby maximizing the signal-to-noise ratio of the system and ensuring that weak neural activity signals are not drowned out by noise.

[0059] The pre-filter 122 is connected after the preamplifier 121 and is used to perform frequency selective filtering on the amplified analog neural signal to filter out a large amount of out-of-band noise and interference. Its filtering strategy usually includes: high-pass filtering: filtering out extremely low frequency drift noise (such as breathing and motion artifacts).

[0060] Low-pass filtering: filters out radio frequency interference and high-frequency circuit noise that are much higher than the effective frequency band of neural signals.

[0061] Band-stop filtering (such as notch filters): specifically filters out 50 / 60 Hz power frequency interference and its harmonics.

[0062] The preprocessing process is as follows: the original analog neural signal is first amplified by the preamplifier 121, and then noise is removed by the prefilter 122. After these two stages of preprocessing, the analog neural signal retains key neurophysiological information (such as the rhythm of LFP and the waveform characteristics of the pulse), while removing the main external and internal noise, forming a clean analog signal, which is then sent to the analog-to-digital converter 130 for digital sampling.

[0063] The analog-to-digital converter 130 is used to perform analog-to-digital conversion on the preprocessed analog EEG neural signals to obtain digital neural signals with multiple channels.

[0064] The analog-to-digital converter 130 samples different components of the analog neural signal using separate channels or configurable sampling rates. For example, a channel for acquiring LFP signals uses a relatively low sampling rate (e.g., 1 kSPS to 2 kSPS); while a channel for acquiring the raw waveform of the pulse signal uses a high sampling rate (e.g., 20 kSPS to 30 kSPS) to satisfy the Nyquist sampling theorem and preserve pulse waveform details.

[0065] The analog-to-digital converter 130 features high resolution, typically 16-bit, 24-bit, or higher. This high resolution ensures that variations in analog neural signals at the microvolt level can be accurately quantized, providing sufficient dynamic range to simultaneously capture high-amplitude LFP signals and low-amplitude pulse signals, avoiding quantization noise from affecting subsequent decoding accuracy.

[0066] The analog-to-digital conversion of all channels is driven by a high-precision, low-jitter common clock, ensuring that the digital sampling points of all channels are strictly synchronized in time, which is crucial for subsequent multi-channel signal fusion and coherence analysis.

[0067] The analog-to-digital converter 130 sends the multi-channel digital neural signals to the electroencephalogram (EEG) signal processor 140. The EEG signal processor 140 decodes the multi-channel digital neural signals to obtain n different-dimensional decoding results, where n≥3.

[0068] The digital electroencephalogram (EEG) machine also includes a display screen 150, which is preferably a high-resolution, high-brightness touch screen. Its core function is to realize bidirectional information flow: (1) Information output and visualization. The display screen 150 is used to display the operation interface of the digital EEG machine. The operation interface can provide graphical controls such as device switch, mode selection (such as training mode, decoding mode, calibration mode), and parameter configuration (such as time window, filter setting).

[0069] Display screen 150 is used to display digital neural signals from multiple channels. For example, it can display digital neural signals from one or more selected channels in real time as a scrolling waveform graph, allowing for immediate assessment of signal quality and electrode connection status.

[0070] The display screen 150 is used to display a visual representation of the first fusion feature tensor and / or the second fusion feature tensor, wherein the first fusion feature tensor and / or the second fusion feature tensor are intermediate data generated during the process of converting digital neural signals into decoding results, enabling visualization of the processing process. For example, the energy or numerical distribution of different channels and different feature dimensions can be displayed in the form of a heatmap, making the complex multimodal feature fusion process transparent and interpretable.

[0071] The display screen 150 is used to display the decoding results of n different dimensions, and the display forms include, but are not limited to, graphical, animated, and numerical forms. For example, it can display the decoding results of two continuous motion components as a two-dimensional cursor movement trajectory, or display the classification results of discrete events (such as button presses) as highlighted icons, providing users with the most direct behavioral output feedback.

[0072] (2) Command input and closed-loop control: The display screen 150 is a touch screen, and the display screen 150 is also used to receive input information generated based on touch operation on the operation interface. The EEG signal processor 140 is also used to control the decoding of digital neural signals based on the input information.

[0073] As a touchscreen display, its core interactive function lies in receiving user input information generated on the operating interface based on touch gestures (such as clicking, swiping, and long pressing). This input information is transmitted to the EEG signal processor 140 in real time, and the EEG signal processor 140 dynamically adjusts the system behavior accordingly, forming a closed loop of human-computer interaction. Specifically, the EEG signal processor 140 can perform at least one of the following controls based on the input information: Start / Stop Control: Start or stop the recording and decoding process of neural signals.

[0074] Dynamic parameter adjustment: Based on the user's operation on the interface, the decoding algorithm parameters are adjusted in real time, such as the LSTM network output threshold and the dynamic normalization smoothing factor.

[0075] Task Triggering and Labeling: After viewing the decoding results, users can add a label to the current data segment by clicking the "Correct" or "Incorrect" button. This label will be used for subsequent model optimization datasets.

[0076] The digital electroencephalogram (EEG) machine also includes multiple interfaces 160 to enable modular connection and system expansion. These interfaces 160 include at least one of the following: a sensor interface 161, which is used for detachable connection to the sensor unit 110, facilitating replacement, upgrading, or sterilization of the sensor unit 110, and is suitable for different experimental or clinical scenarios. The sensor interface 161 can be a standardized, lockable medical connector, such as those from Omnetics or Nano-D.

[0077] Data communication interface 162 is used to connect to external devices for data communication. Data communication interface 162 may include at least one of the following: a wired high-speed interface, such as Gigabit Ethernet or Universal Serial Bus (USB) 3.0 interface, for high-speed data communication with a host computer (such as a workstation or server), enabling offline download of massive amounts of raw data and uploading of updated algorithm models.

[0078] Wireless interface: Integrated Wireless Fidelity (Wi-Fi) and Bluetooth modules, supporting wireless networking of the device, convenient interaction with mobile terminals (such as tablets), or data synchronization with other devices in the Internet of Things environment (such as smart care systems).

[0079] Control output interfaces, such as Controller Area Network (CAN) bus, Recommended Standard (RS)-232, or general digital input / output (I / O), are used to directly connect to and control external devices, such as robotic arms, electric wheelchairs, neurostimulators, or environmental control systems. Control commands generated by the EEG signal processor 140 can be sent out in real time through this interface, realizing the physical output of brain-controlled or hybrid control.

[0080] The digital EEG machine also includes a power supply 170; the power supply 170 is used to power the digital EEG machine. The power supply 170 can be a general-purpose power supply or a high-energy-density lithium battery pack, and integrates intelligent power management circuitry. Its functions include: multi-channel voltage output: providing stable, low-noise specific voltages to different modules in the system (such as the preprocessing unit 120, analog-to-digital converter 130, EEG signal processor 140, and display screen 150).

[0081] Power consumption management: Dynamically adjust the power supply of each module according to the device's working mode (such as full-speed decoding mode, standby mode, recording mode) to extend the usage time on a single charge.

[0082] Safety and charging: Provides overcharge, over-discharge, and short-circuit protection, and supports fast charging.

[0083] Optionally, the digital electroencephalogram (EEG) machine may also include a control box, which integrates some of the aforementioned functional units.

[0084] In one application scenario, the user starts the device and selects the decoding mode by touching the display screen 150 or pressing the hardware switch. The sensor unit 110 is connected through the sensor interface 161, and the acquired analog neural signals are preprocessed and converted from analog to digital before being decoded by the EEG signal processor 140. The decoding results are fed back to the display screen 150 in real time. At the same time, the EEG signal processor 140 can send control commands to an external robotic arm through the data communication interface 162. The entire process is continuously and stably powered by the power supply 170. The various modules in the system work together with the processor through the internal bus to form a complete digital EEG machine that integrates signal acquisition, real-time processing, interactive control, and extended output.

[0085] The EEG signal processor 140 processes digital neural signals as follows: The EEG signal processor 140 is used to acquire digital neural signals from multiple channels for a target object. The digital neural signals include at least LFP signals and pulse signals.

[0086] The EEG signal processor 140 acquires neural signals from multiple channels of connected sensor units 110 for a target object (such as a human or animal subject). These neural signals can be raw analog neural signals, which are then pre-amplified, filtered, and converted from analog to digital to obtain corresponding digital neural signals. The digital neural signals are not single-modal; they simultaneously contain at least two types of neural activity signals: LFP signals, which reflect the synchronous electrical activity of a large number of neurons within a local neural circuit. These signals originate from the collective current changes of thousands to tens of thousands of neurons and their synapses within the neural tissue, rather than the isolated discharge of a single neuron, and have high amplitude and low temporal resolution. The frequency range of LFP signals is predominantly low-frequency, typically 0.1 Hz to 300 Hz (containing various rhythms). In this embodiment, the frequency band corresponding to the LFP signal can refer to the band ≤300 Hz.

[0087] A pulse signal is a digital signal representation of neuronal action potential (spik potential) events or their characteristics. A pulse signal is a high-frequency, short-duration electrical signal (typically lasting 0.5-2 milliseconds), with its frequency components mainly concentrated between 300Hz and 3000Hz (some studies extend this to 200Hz-5kHz, depending on the recording device resolution). A pulse signal is not a single signal, but rather a general term for a class of signals, the specific form of which depends on the processing stage.

[0088] The EEG signal processor 140 is also used to extract features from LFP signals and pulse signals based on a uniform time window and a uniform sliding step size, and to integrate the extracted time-aligned feature matrices into a first fused feature tensor.

[0089] To ensure that LFP signals and pulse signals derived from different physiological processes are strictly aligned in time and effectively complementary at the feature level, a unified timing reference can be used for processing.

[0090] (1) Feature extraction: The EEG signal processor 140 sets a fixed time window length and a fixed sliding step size, and then performs the following operations in parallel for each signal channel: For LFP signals, extract the first type of features that characterize their activity patterns within each time window.

[0091] For pulse signals, within each identical time window, a second type of feature is extracted to characterize their firing pattern and statistical properties.

[0092] Through the above operations, a feature sequence corresponding to the time window sequence is generated for each signal of each channel. All feature sequences are based on the same starting point and step size, achieving precise alignment in the time dimension.

[0093] The values ​​of the time window and sliding step can be set according to actual business needs. In an optional embodiment, the time window can be set to 64ms and the sliding step to 16ms.

[0094] (2) Feature integration: The EEG signal processor 140 integrates the first type of feature sequence and the second type of feature sequence that are aligned in time, and fuses the integrated feature vectors of all channels and all time points to construct a three-dimensional first fusion feature tensor. The three dimensions of the first fusion feature tensor correspond to the time step (generated by the sliding window), the channel number and the fusion feature dimension (i.e. the total dimension after splicing LFP features and pulse features).

[0095] The EEG signal processor 140 is also used to perform dynamic normalization processing on the first fusion feature tensor to obtain the second fusion feature tensor. The statistics involved in the dynamic normalization process are updated as the input data changes.

[0096] To address the non-stationarity of neural signals and avoid performance degradation caused by fixed normalization, the EEG signal processor 140 performs dynamic normalization on the first fused feature tensor.

[0097] Dynamically updated statistics: The EEG signal processor 140 maintains and dynamically updates key statistics used for dynamic normalization (such as the moving mean and standard deviation of each feature dimension). These statistics are not fixed in the early stages of training, but are continuously updated using online algorithms (such as the Welford algorithm) as new input data arrives. The specific calculation process is described in detail below and will not be repeated here.

[0098] Real-time normalization: Using the latest statistics, dynamic normalization is performed on each feature dimension of the first fused feature tensor. The specific calculation process is described in detail below and will not be repeated here. The dynamic normalization generates the second fused feature tensor, which offsets the effect of slow signal drift and enhances the model's robustness to distribution changes.

[0099] The EEG signal processor 140 is also used to decode the second fused feature tensor using n parallel LSTM networks respectively, to obtain the decoding results of the target object in n different dimensions. The n LSTM networks are independent of each other and each LSTM network has an independent optimizer and model parameters, and n≥3.

[0100] To predict multiple behavioral dimensions, the EEG signal processor 140 employs a unique Triple Network LSTM decoding architecture, which consists of n parallel LSTM networks, where n≥3. These LSTM networks are structurally independent, specifically in that: parameters are independent: each LSTM network has its own independent model parameters, including weights and biases, which are not shared with other LSTM networks.

[0101] Independent optimizers: Each LSTM network is trained with an independent optimizer (such as Adam), which means that they can update the model parameters dynamically with different learning rates according to the needs of their respective tasks.

[0102] Decoding process: The second fused feature tensor is input into these n parallel LSTM networks respectively. Each LSTM network independently processes the second fused feature tensor and learns its mapping relationship with a specific behavioral dimension.

[0103] Output: Each LSTM network outputs an independent decoding result, and these decoding results together constitute a real-time prediction of the target object's behavioral state in n different dimensions.

[0104] In this embodiment, the LSTM network can be configured to perform two basic types of prediction tasks, namely regression prediction and classification prediction, depending on the different output layer structures and training objectives.

[0105] 1. Regression Prediction: Regression prediction refers to the use of LSTM networks to predict one or more continuous, numerical target variables. In invasive brain-computer interface applications, this typically corresponds to the real-time estimation of continuous motion parameters or motion intentions. Its core characteristic is that the predicted output is numerically ordered and infinitely separable. For example, predicting the continuous motion trajectory of a hand or cursor on a two-dimensional plane, with the output being the X-direction velocity and Y-direction velocity at each moment (two independent regression values); or predicting the continuous position, velocity, or force of a robotic arm's end effector; or estimating continuously changing attention levels or cognitive load indices.

[0106] 2. Classification Prediction: Classification prediction refers to the use of LSTM networks to predict a discrete, categorical target variable. In invasive brain-computer interface applications, this typically corresponds to the recognition of discrete cognitive events, decision states, or operational commands. Its core characteristic is that the predicted output is a finite set of mutually exclusive category labels. For example, identifying whether a subject has an intention to "press a button," with the output being either "pressed" or "not pressed"; or determining the type of motor imagery, such as imagining the movement of the left hand, right hand, eyeballs, left foot, right foot, or tongue (multi-class classification); or detecting the occurrence of specific error-related potentials or event-related potentials.

[0107] For example, in a typical application, n=3 can be set, and three LSTM networks are designed to simultaneously process and predict targets of different properties. For instance, two independent LSTM networks predict continuous variables (such as the X and Y components of hand movement velocity), while the third LSTM network predicts categorical events (such as the on or off state of a button, or discrete grasping intentions).

[0108] In summary, the EEG signal processor provided in this embodiment achieves end-to-end processing from multimodal digital neural signals to multidimensional behavior prediction. Its core advantages are: 1) By using a unified time window and a unified sliding step size to process LFP signals and pulse signals in parallel, strict alignment of multimodal features on the time axis is ensured. Furthermore, the LFP features representing low-frequency rhythms of the group are deeply fused with the pulse features representing high-frequency firing patterns of the unit, constructing a first fused feature tensor with complementary information. This provides a robust input that can simultaneously reflect the multi-scale dynamics of neural activity for subsequent decoding, laying the foundation for high-precision multi-task decoding; 2) Through a dynamic normalization mechanism that updates the mean and standard deviation, the statistical distribution drift of neural signals is compensated in real time, maintaining a stable distribution of input features. This effectively combats non-stationary interference and significantly improves accuracy. The robustness of decoding is improved; 3) Each LSTM network is configured with completely independent model parameters and optimizers. Through parameter isolation, the coupling and conflict of gradient updates between multiple tasks are completely eliminated, so that the weights of each LSTM network can converge along the optimal direction of its specific task, avoiding optimization trade-offs and representation interference caused by shared parameters; Independent optimizers allow different hyperparameters (such as learning rate and momentum) to be set for different LSTM networks, adapting to the personalized training dynamics required by each network due to the differences in task nature (such as regression and classification) and convergence speed, thus improving the stability and efficiency of overall training; It gives the system parameter-level update flexibility, allowing the parameters of a specific network to be adjusted, retrained or frozen separately without affecting other networks. This not only reduces the computational cost of model maintenance, but also provides fine-grained control capabilities for online adaptive learning.

[0109] In an optional embodiment, the EEG signal processor 140 is further configured to extract low-frequency power features of the LFP signal based on a time window and a sliding step size to obtain a first LFP power feature matrix; the EEG signal processor 140 is further configured to extract pulse band power (SBP) features of the pulse signal based on a time window and a sliding step size to obtain a first SBP power feature matrix; the EEG signal processor 140 is further configured to count pulse interval histogram (ISI-Bincount) based on a time window, a sliding step size, and a timestamp of the pulse signal to obtain a first ISI-Bincount matrix; the EEG signal processor 140 is further configured to integrate the first LFP power feature matrix, the first SBP power feature matrix, and the first ISI-Bincount matrix into a first fused feature tensor.

[0110] (1) When extracting LFP features, the EEG signal processor 140 divides the continuous LFP signal into a series of temporally continuous and partially overlapping analysis segments according to a set time window (e.g., 64ms) and sliding step size (e.g., 16ms). For each analysis segment, the EEG signal processor 140 calculates its power or energy in one or more preset frequency bands as the feature value of the time segment. The frequency bands may include, but are not limited to, the δ frequency band (e.g., 1-4 Hz), the θ frequency band (4-8 Hz), the α frequency band (8-13 Hz), the β frequency band (13-30 Hz), and the γ frequency band (30-100 Hz). Preferably, it may also include the high γ frequency band (e.g., >70 Hz). By sliding the window along the time axis and repeating the above calculation, a power feature sequence is generated for each channel. Finally, the sequences of all channels are combined into a three-dimensional first LFP power feature matrix, whose dimensions correspond to the time step, channel number, and the extracted power feature (frequency band) dimension, respectively.

[0111] Optionally, in order to obtain richer information about group activities, the EEG signal processor 140 may extract at least one of the phase information of the LFP signal, the coherence characteristics between different channels, or the temporal complexity index of the signal, in addition to calculating the power characteristics. These features, together with the power characteristics, constitute the first LFP power feature matrix to more comprehensively describe the neural cluster synchronization state and oscillation mode reflected by the LFP signal.

[0112] (2) SBP focuses on the sum or relative intensity of signal energy within a frequency band that highly overlaps with the frequency range of neuronal action potentials (i.e., pulses). The basic definition of SBP is to quantify the energy intensity of neuronal pulse signals within a specific frequency band. It can be applied to a single neuron or extended to a group of neurons, depending on the analysis target rather than being limited to a single neuron. The specific frequency band corresponding to SBP can be from 300 Hz to 1000 Hz.

[0113] When extracting SBP features, the EEG signal processor 140 first performs bandpass filtering (preferably 300-1000Hz) on the pulse signal of each channel to separate components related to the high-frequency energy of neuronal action potentials. Preferably, to improve signal quality, the Common Average Reference (CAR) method can be used to suppress common-mode noise in the filtered multi-channel signal. Subsequently, the EEG signal processor 140 calculates the high-frequency envelope of the filtered signal for each channel at extremely short time intervals (e.g., 3.2 ms) to generate a high-temporal-resolution high-frequency energy sequence. To align with the LFP power features in time, the EEG signal processor 140 uses the same uniform time window (e.g., 64 ms) and sliding step size (e.g., 16 ms) as the LFP feature processing to integrate or average the high-frequency energy sequence, thereby obtaining an SBP feature value representing the sum of high-frequency energy in each aligned time window. Finally, a three-dimensional first SBP power feature matrix is ​​generated, whose dimensions correspond to the time step, channel number, and SBP feature dimension that are strictly aligned with the LFP feature matrix. The first SBP power feature matrix can effectively capture the dynamic energy changes of neural clusters in the pulse frequency range.

[0114] (3) ISI refers to the time interval between two consecutive pulse signals emitted by a single neuron, which is the most basic parameter describing the firing time pattern of a neuron. For example, if a neuron emits pulses at times t1=100ms, t2=150ms, and t3=220ms, the corresponding ISIs are t2-t1=50ms and t3-t2=70ms.

[0115] Inter-Spike Interval Bincount (ISI-Bincount) is the data foundation for grouping all ISI values ​​of a single neuron into intervals (Bin) and counting the number of ISI occurrences within each interval (Count), ultimately forming an ISI histogram. Simply put, it's a statistical summary table of ISI, aiming to transform scattered ISI data into an intuitive distribution pattern.

[0116] Here, an interval refers to a continuous time range for all ISI values ​​of a single neuron, divided according to a fixed time length or a user-defined time range. Simply put, it divides the ISI time values ​​into time buckets, and each bucket is an interval. For example, the ISI value of a neuron might be 10ms, 25ms, 18ms, 32ms, etc. An interval categorizes these time values ​​into different continuous ranges, such as "0-10ms", "10-20ms", "20-30ms", and "30-40ms", with each range being an independent interval.

[0117] The most common method of partitioning is using a fixed time step: for example, using 10ms or 5ms as an interval, ensuring that the time length of each interval is consistent, which facilitates subsequent statistical analysis and standardized presentation of histograms. Of course, you can also customize the partitioning according to the research objective: for example, to target the firing characteristics of a certain type of neuron, divide "0-5ms" (short interval), "5-50ms" (medium interval), and "50-200ms" (long interval) into different intervals, focusing on the firing patterns within specific interval ranges.

[0118] Suppose the ISI values ​​of a neuron are: 5ms, 8ms, 12ms, 15ms, 22ms, 28ms, and 35ms. If the intervals are divided into 10ms steps, then: Interval "0-10ms": includes 5ms and 8ms, Count (number of times) = 2; Interval "10-20ms": includes 12ms and 15ms, Count = 2; Interval "20-30ms": includes 22ms and 28ms, Count = 2; Interval "30-40ms": includes 35ms, Count = 1.

[0119] These "interval-frequency" correspondences are the core data for drawing ISI histograms.

[0120] When generating the ISI-Bincount, the EEG signal processor 140 first performs event detection on the pulse signals of each channel and extracts the timestamp corresponding to each action potential. Then, the EEG signal processor 140 analyzes the pulse event sequence within each time window based on a uniform time window (e.g., 64 ms) and a sliding step size (e.g., 16 ms), which is identical to the above. For each time window, the EEG signal processor 140 calculates the interval between all adjacent pulse timestamps within that time window and performs histogram statistics on the calculated pulse intervals according to a preset interval range (i.e., bin), thereby obtaining a count vector reflecting the pulse firing rhythm pattern within that time period. This count vector is the ISI-Bincount feature of one time step.

[0121] Optionally, to improve the robustness and representativeness of the features, the EEG signal processor 140 can use a preset smoothing kernel function (such as a Gaussian kernel, a uniform kernel, or an exponential kernel) to perform temporal smoothing on the original histogram count sequence generated for each channel. By sliding a window along the time axis and performing the above operation on all channels, a three-dimensional first ISI-Bincount matrix is ​​finally generated. Its dimensions correspond to the time step, channel number, and count dimension of the pulse interval histogram, which are strictly aligned with the LFP and SBP feature matrices, respectively. The first ISI-Bincount matrix quantitatively represents the fine temporal pattern of neuronal firing and the statistical regularity of group firing.

[0122] This embodiment is the first to align and fuse three specific modes with different physical meanings and huge time scales—LFP (Low Frequency Group Activity), SBP (High Frequency Energy), and ISI-Bincount (Impulse Timing)—within a unified, real-time synchronization framework. This fusion feature, as the input to the subsequent Dynamic Normalization (Dynamic Normalization) and LSTM networks, can significantly improve the robustness and accuracy of decoding.

[0123] After feature extraction, the three types of features, LFP, SBP and ISI-Bincount, have been initially aligned in terms of time window and sliding step size, but there may still be significant differences in dynamic range and statistical distribution. Therefore, it is necessary to perform independent or grouped normalization processing on the features of each modality in each channel.

[0124] Specifically, the EEG signal processor 140 is also used to perform a first normalization process on the first LFP power feature matrix, the first SBP power feature matrix, and the first ISI-Bincount matrix to obtain the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix; the EEG signal processor 140 is also used to integrate the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix into a first fused feature tensor.

[0125] In this embodiment, Z-score normalization or quantile normalization can be used to reduce the dimensional differences between different modes and make their statistical distributions more similar. The normalization parameters (mean and standard deviation) here can be updated online to adapt to long-term electrode impedance changes or signal drift, serving as the first level of statistical adaptation.

[0126] Z-score normalization (also known as standardization) is a commonly used data preprocessing technique that aims to transform data into a standard normal distribution with a mean of 0 and a standard deviation of 1. This method adjusts the scale of the data, allowing different features to be compared under the same standard, which is particularly important in machine learning and statistical analysis.

[0127] The Z-score normalization formula is: z = (x - μ) / σ, where x represents the original data value, μ represents the mean of the dataset, and σ represents the standard deviation of the dataset. This formula converts each data point into its deviation from the mean, expressed in standard deviations. For example, z=1 means that the data point is one standard deviation above the mean; z=-2 means that the data point is two standard deviations below the mean.

[0128] The core idea of ​​quantile normalization is to adjust the data so that the values ​​of different samples at the same quantile are equal, thereby eliminating systematic differences between samples. We treat the feature values ​​of each channel at the same time step as a sample, and the specific steps are as follows: 1. Sorting: Sort the data of each sample.

[0129] 2. Calculate the mean: For each sorting position, calculate the average of the values ​​of all samples at that sorting position.

[0130] 3. Replacement: Replace the value of each sample at its corresponding sorting position with the mean calculated above.

[0131] Through the above steps, the values ​​of all samples at the same sorting position tend to be consistent, thereby achieving data standardization.

[0132] Through the first normalization process described above, the three feature matrices, which originally had different dimensions and distributions, are transformed into a second LFP power feature matrix, a second SBP power feature matrix, and a second ISI-Bincount matrix, respectively, with uniform scale and normalized distribution. Subsequently, the EEG signal processor 140 concatenates these three matrices, which are aligned in the time and channel dimensions and normalized in the numerical scale, according to the feature dimensions, and integrates them into a first fusion feature tensor, thereby completing the standardized fusion of multimodal features at the numerical level.

[0133] Specifically, the EEG signal processor 140 is also used to extract the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix for each time step based on the time window and the sliding step size, and to concatenate the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix for each time step according to the channel and feature dimensions to form the first fused feature tensor.

[0134] The EEG signal processor 140 synchronously traverses the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix according to a unified time window and sliding step size. For each identical time step t, the EEG signal processor 140 performs the following operations: extracts the LFP power features of all channels corresponding to time step t from the second LFP power feature matrix, obtaining a two-dimensional matrix of shape (channel number, LFP feature dimension), denoted as M. LFP(t) Similarly, slices corresponding to time step t are extracted from the second SBP power feature matrix and the third ISI-Bincount matrix, respectively, to obtain matrices M with shapes of (channel number, SBP feature dimension) and (channel number, ISI feature dimension), respectively. SBP(t) and M ISI(t) .

[0135] For each channel c, the EEG signal processor 140 concatenates the feature row vectors corresponding to that channel c from the three matrices mentioned above. That is, it concatenates M... LFP(t) The LFP eigenvector in row c, M SBP(t) The SBP eigenvector in row c and M ISI(t) The ISI feature vectors in the c-th row are concatenated sequentially along the feature dimensions to form a longer fused feature vector F. c(t) The dimension of this vector is equal to the sum of the LFP feature dimension, SBP feature dimension, and ISI feature dimension.

[0136] The fused feature vector F of all channels c c(t) Stacked in channel order, they form the local fusion feature matrix for time step t, with the shape of (channel number, total fusion feature dimension).

[0137] By traversing all time steps t and arranging the local fusion feature matrices corresponding to each time step t in chronological order, a three-dimensional first fusion feature tensor is finally constructed. The three dimensions of the first fusion feature tensor correspond to the following in order: time step (generated by a uniform sliding step size), channel number, and fusion feature dimension (i.e., the sum of the concatenation of the three feature dimensions: LFP, SBP, and ISI).

[0138] After obtaining the first fused feature tensor, a dynamic normalization module can be used to perform dynamic online Z-score normalization. When receiving the first fused feature tensor for each batch, the dynamic normalization module estimates and updates the statistics for each feature channel in real time and online. Based on these dynamically updated statistics, dynamic Z-score normalization is performed on the first fused feature tensor of the current batch, outputting a second fused feature tensor after secondary normalization. The statistics involved in the dynamic normalization process are updated as the input data changes.

[0139] When the statistics include the global mean and standard deviation, the EEG signal processor 140 is also used to dynamically update the mean and standard deviation of the feature matrix corresponding to each channel; the EEG signal processor 140 is also used to dynamically normalize the first fusion feature tensor based on the updated mean and standard deviation to obtain the second fusion feature tensor.

[0140] Specifically, the EEG signal processor 140 is also used to update the mean and standard deviation of the feature matrix corresponding to each channel based on the Welford online algorithm; the EEG signal processor 140 is also used to update the mean and standard deviation of the feature matrix corresponding to each channel based on x norm =(x-μ dynamic ) / (σ dynamic The formula +e) is used to dynamically normalize the feature matrix corresponding to each channel in the first fused feature tensor to obtain the second fused feature tensor, where x norm This represents the dynamically normalized data, where x represents the input data and μ is the input data. dynamic σ represents the dynamically updated mean. dynamic This represents the dynamically updated standard value, and σ dynamic The sum of e and is not zero.

[0141] The Welford online algorithm is a numerically stable algorithm for calculating sample mean and variance online, particularly suitable for data stream processing and memory-constrained scenarios. Compared to traditional algorithms, the Welford online algorithm updates statistics incrementally during a single data iteration, avoiding numerical instability issues.

[0142] The Welford online algorithm calculates the mean and variance step by step by maintaining three variables: (1) counter (count): the number of data points processed.

[0143] (2) Mean: The mean of the current data points.

[0144] (3) M2: The sum of squares of the differences between the data points and the mean.

[0145] For each new data point x n The Welford online algorithm performs the following steps: 1. Update the counter: count ← count + 1 2. Calculate the increment of the mean: δ = x n -mean 3. Update the mean: mean ← mean + (δ / count) 4. Update M2: M2 ← M2 + δ*(x nAfter processing all data points, the variance is calculated using the following formulas: ① Sample variance (unbiased estimate): variance = M² / (count-1) ② Population variance (biased estimate): variance = M² / count Assuming that N data points have been processed at a certain time... old A sample was obtained, and the global mean M was calculated. old Correlation quantity S with global variance old When a new batch of data arrives, that batch contains N. batch There are M samples with a mean of M. batch The variance correlation coefficient is S batch .

[0146] The new statistic is calculated according to the following steps: 1. Update the total sample size (N) new ): N new =N old +N batch 2. Update the global mean (M) new The new global mean is a weighted average of the two data clusters, M. new =[N old *M old +N batch *M batch ] / N new 3. Update the global standard deviation correlation (σ) new ): , σ new = .

[0147] Traditional variance calculation methods may lead to numerical instability due to large datasets or small differences between data points, especially in calculations. and When the difference is calculated, a "catastrophic cancellation" may occur. However, the Welford online algorithm avoids this problem by using incremental updates, ensuring the stability and accuracy of the calculation.

[0148] The mean μ is obtained by using the Welford online algorithm. dynamic and the dynamically updated standard value σ dynamic Then, for any data point x in the first fusion feature tensor, the EEG signal processor 140 uses the latest dynamic statistics of the channel to which the data point belongs and applies the following formula to calculate: x norm =(x-μ dynamic ) / (σ dynamic +e), where e is a very small positive constant whose function is to ensure that the denominator is not zero, thus ensuring numerical stability and preventing the denominator from being zero when σ. dynamicA computational overflow occurs when the value approaches zero.

[0149] For each data point in the first fusion feature tensor, dynamic normalization is performed using the latest dynamic statistics of its corresponding channel, following the above procedure. After all calculations are completed, a completely new three-dimensional tensor, which has undergone channel-level adaptive normalization, is obtained; this is the second fusion feature tensor.

[0150] Due to minute electrode movements or biological tissue reactions, the statistical properties of neural signals (such as mean and variance) drift over time, leading to a decline in the performance of the pre-trained model. In this embodiment, a second dynamic normalization process is performed on the second fusion feature tensor to counteract this drift in real time. This solves the problem of neural signal non-stationarity faced by invasive brain-computer interfaces during long-term use and improves the long-term robustness of the system.

[0151] In this embodiment, the EEG signal processor 140 is also used to downsample the second fusion feature tensor to obtain the third fusion feature tensor; the EEG signal processor 140 is also used to decode the third fusion feature tensor using n parallel LSTM networks respectively to obtain the decoding results of the target object in n different dimensions.

[0152] Specifically, the downsampling process is performed by a dedicated downsampling module. Its core operation is to reduce the dimensionality along the time dimension of the second fusion feature tensor, which aims to reduce the temporal resolution of the data stream. This reduces the computational load of the subsequent decoding network while ensuring that key neural information is not lost, and may also suppress random noise through aggregation operations.

[0153] The downsampling module can employ pooling operations, such as average pooling, to achieve downsampling. Specifically, the downsampling module can be configured with a pooling window size *k* and a stride *s*. For the time series of each channel and each fusion feature dimension in the second fusion feature tensor, the downsampling module slides the pooling window with a stride *s* and calculates the arithmetic mean of the feature values ​​of *k* consecutive time steps within each pooling window. This average is then used as the feature value for the new time step after downsampling. Through this operation, the time step length of the original second fusion feature tensor is compressed by approximately *k* times, generating a third fusion feature tensor that remains unchanged in the channel and feature dimensions but is more compact in the time dimension. The downsampling operation not only significantly reduces the number of time steps required by the subsequent decoding network by shortening the length of the input sequence, thereby reducing the computational load and memory consumption of the model and facilitating real-time decoding, but also potentially enhances the stability and robustness of the feature representation due to the smooth aggregation of neighboring temporal information. This allows neurons in the subsequent decoding network to extract information from a broader original time window, helping to learn more macroscopic temporal dependencies and thus expanding the receptive field.

[0154] The third fusion feature tensor, after downsampling, is then input in parallel into n parallel LSTM networks for decoding. The value of n can be set according to the needs of the application scenario, and is not limited in this embodiment.

[0155] This embodiment employs a Triple Network LSTM decoding architecture as the core decoding module of the EEG signal processor 140. The core of this Triple Network LSTM decoding architecture lies in combining completely independent sub-network structures, independent optimizer configurations, and flexible selective training mechanisms to achieve efficient, robust, and controllable parallel decoding of continuous motion trajectories and discrete events.

[0156] Traditional multi-task models typically employ a design that shares a low-level feature extractor and branches out into different task heads only at the top level. This structure is prone to performance compromises and internal representation interference when task requirements conflict or convergence speeds are inconsistent. In contrast, the Triple Network LSTM decoding architecture in this embodiment designs a completely independent LSTM network from input to output for each decoding dimension. These LSTM networks share the same input source (i.e., the second or third fused feature tensor after dynamic normalization), but have their own independent network parameters: including all gate weights and biases of the LSTM layers, as well as the parameters of the output layer, which are not shared among them.

[0157] Computational Path and Internal State: Each LSTM network independently performs sequence modeling and maintains its own hidden state and cell state.

[0158] Dedicated optimizer: Each LSTM network is configured with an independent optimizer (such as the Adam optimizer) to manage its unique parameter update process.

[0159] This physically isolated and optimization-independent design allows for the parallel optimization of two tasks—predicting continuous motion trajectories (a regression task) and predicting discrete button states (a classification task)—which differ fundamentally in feature emphasis, noise sensitivity, and convergence speed, without interfering with each other. Researchers can selectively train and update parameters for specific tasks (e.g., only recalibrating motion velocity decoding) as needed, without retraining or affecting other tasks, greatly improving the system's practicality and maintainability.

[0160] In this embodiment, the LSTM network can be configured to perform two basic types of prediction tasks, namely regression prediction and classification prediction, depending on the different output layer structures and training objectives.

[0161] 1. Regression Prediction: Regression prediction refers to the use of LSTM networks to predict one or more continuous, numerical target variables. In invasive brain-computer interface applications, this typically corresponds to the real-time estimation of continuous motion parameters or motion intentions. Its core characteristic is that the predicted output is numerically ordered and infinitely separable. For example, predicting the continuous motion trajectory of a hand or cursor on a two-dimensional plane, with the output being the X-direction velocity and Y-direction velocity at each moment (two independent regression values); or predicting the continuous position, velocity, or force of a robotic arm's end effector; or estimating continuously changing attention levels or cognitive load indices.

[0162] When the LSTM network is used for regression prediction, the LSTM network includes LSTM layers and linear layers; the EEG signal processor 140 is also used to decode the third fused feature tensor using the LSTM layer and output the obtained first decoded sequence to the linear layer; the EEG signal processor 140 is also used to predict the continuous behavioral parameters of the target object based on the first decoded sequence using the linear layer.

[0163] LSTM networks used for regression prediction typically have a linear output layer (without an activation function or using an identity activation function). The number of neurons in this layer is equal to the dimension of the continuous variable to be predicted, and its output value is a direct real number. The training objective is to minimize the error (such as mean squared error) between the predicted value and the true value.

[0164] 2. Classification Prediction: Classification prediction refers to the use of LSTM networks to predict a discrete, categorical target variable. In invasive brain-computer interface applications, this typically corresponds to the recognition of discrete cognitive events, decision states, or operational commands. Its core characteristic is that the predicted output is a finite set of mutually exclusive category labels. For example, identifying whether a subject has an intention to "press a button," with the output being either "pressed" or "not pressed"; or determining the type of motor imagery, such as imagining the movement of the left hand, right hand, eyeballs, left foot, right foot, or tongue (multi-class classification); or detecting the occurrence of specific error-related potentials or event-related potentials.

[0165] When the LSTM network is used for classification prediction, the LSTM network includes LSTM layers and a classifier; the EEG signal processor 140 is also used to decode the third fused feature tensor using the LSTM layers and output the resulting second decoded sequence to the classifier; the EEG signal processor 140 is also used to use the classifier to predict the classification result of discrete events related to the target object based on the second decoded sequence.

[0166] LSTM networks used for classification prediction have an output layer that serves as a classifier, typically consisting of a linear layer followed by a non-linear activation function. For binary classification tasks, the sigmoid function is commonly used to map the logistic value of a single output neuron to the probability (between 0 and 1) of belonging to the positive class. For multi-class classification tasks, the softmax function is used to normalize the logistic values ​​of multiple output neurons into a probability distribution, representing the likelihood of belonging to each class. The training objective is to maximize the consistency between the predicted class and the true class (e.g., minimizing cross-entropy loss).

[0167] In one example, the three LSTM networks in the Triple Network LSTM decoding architecture are designed to simultaneously process and predict targets of different properties. For instance, two independent regression subnetworks predict continuous variables (such as the X and Y components of motion velocity), while a classification subnetwork predicts discrete events (such as the on or off state of a button).

[0168] When the n LSTM networks include a first regression LSTM network, a second regression LSTM network, and a classification LSTM network, the EEG signal processor 140 is further used to perform regression prediction on the third fusion feature tensor using the first regression LSTM network to obtain the first continuous motion component of the target object; the EEG signal processor 140 is further used to perform regression prediction on the third fusion feature tensor using the second regression LSTM network to obtain the second continuous motion component of the target object; the EEG signal processor 140 is further used to perform classification prediction on the third fusion feature tensor using the classification LSTM network to obtain the classification result of discrete events related to the target object.

[0169] Each LSTM subnetwork is designed to save and propagate its hidden state at the end of the forward propagation call. This mechanism allows the model to utilize historical context information for predictions at the current time step when processing continuous fused feature streams, enhancing the coherence and accuracy of real-time decoding. To adapt to different sequences or experimental phases, the system provides a function to reset the hidden state to clear the historical context, ensuring that new decoding sequences are not affected by previously irrelevant information and guaranteeing decoding independence.

[0170] At each time step, the three LSTM networks independently and synchronously generate their respective decoding results based on the fusion features of the current and historical data. The EEG signal processor 140 integrates these time-aligned decoding results to form a unified output tensor. For example, the output tensor can be represented as [X velocity, Y velocity, button state probability], thus providing a complete and real-time description of the target object's multi-dimensional behavioral intent.

[0171] In summary, by performing unified time alignment, cross-modal normalization, and concatenated fusion on three types of features—LFP low-frequency power, SBP high-frequency envelope, and ISI-Bincount—a more comprehensive, aligned, and statistically controllable multidimensional fused feature tensor is formed, solving the problems of insufficient single-modal information and improper multimodal fusion. By dynamically updating the mean and standard deviation using the Welford online algorithm, and then using the dynamically updated mean and standard deviation to dynamically normalize the fused feature tensor, the problem of neural signal non-stationarity faced by invasive brain-computer interfaces during long-term use is solved, improving the long-term robustness of the system. Furthermore, by employing a multi-task parallel LSTM network to predict continuous regression targets and discrete classification targets respectively, these two different prediction tasks can be processed simultaneously, efficiently, and without interference, thereby achieving comprehensive decoding of complex behavioral intentions.

[0172] Figure 2 shows a flowchart of a brain control method provided in an embodiment of this application, which can be applied to brain control products. The brain control method may include: step 201, acquiring digital neural signals from multiple channels for a target object, wherein the digital neural signals include at least LFP signals and pulse signals.

[0173] This method acquires digital neural signals from multiple channels from a target subject (such as a human or animal subject). These digital neural signals are obtained by pre-amplifying, filtering, and converting the original analog neural signals to digital signals. The digital neural signals are not single-modal; they simultaneously contain at least two types of neural activity signals: LFP signals, which reflect the synchronous electrical activity of a large number of neurons within a local neural circuit. These signals originate from the collective current changes of thousands to tens of thousands of neurons and their synapses within the neural tissue, rather than the isolated firing of a single neuron, and have high amplitude and low temporal resolution. The frequency range of LFP signals is predominantly low-frequency, typically 0.1 Hz–300 Hz (containing various rhythms). In this embodiment, the frequency band corresponding to the LFP signal can refer to the band ≤300 Hz.

[0174] A pulse signal is a digital signal representation of neuronal action potential (spik potential) events or their characteristics. A pulse signal is a high-frequency, short-duration electrical signal (typically lasting 0.5-2 milliseconds), with its frequency components mainly concentrated between 300Hz and 3000Hz (some studies extend this to 200Hz-5kHz, depending on the recording device resolution). A pulse signal is not a single signal, but rather a general term for a class of signals, the specific form of which depends on the processing stage.

[0175] Step 202: Based on a unified time window and a unified sliding step size, feature extraction is performed on the LFP signal and the pulse signal, and the extracted time-aligned feature matrices are integrated into a first fused feature tensor.

[0176] To ensure that LFP signals and pulse signals derived from different physiological processes are strictly aligned in time and effectively complementary at the feature level, a unified timing reference can be used for processing.

[0177] (1) Feature extraction: Set a fixed time window length and a fixed sliding step size, and then perform the following operations in parallel for each signal channel: For LFP signals, extract the first type of features that characterize their activity mode within each time window.

[0178] For pulse signals, within each identical time window, a second type of feature is extracted to characterize their firing pattern and statistical properties.

[0179] Through the above operations, a feature sequence corresponding to the time window sequence is generated for each signal of each channel. All feature sequences are based on the same starting point and step size, achieving precise alignment in the time dimension.

[0180] The values ​​of the time window and sliding step can be set according to actual business needs. In an optional embodiment, the time window can be set to 64ms and the sliding step to 16ms.

[0181] (2) Feature integration: The first type of feature sequence and the second type of feature sequence that are aligned in time are integrated, and the integrated feature vectors of all channels and all time points are fused to construct a three-dimensional first fused feature tensor. The three dimensions of the first fused feature tensor correspond to the time step (generated by the sliding window), the channel number and the fused feature dimension (i.e. the total dimension after splicing LFP features and pulse features).

[0182] Step 203: Use an LSTM network to decode the first fused feature tensor to obtain the decoding result of the target object.

[0183] In this embodiment, the LSTM network can be configured to perform two basic types of prediction tasks, namely regression prediction and classification prediction, depending on the different output layer structures and training objectives.

[0184] 1. Regression Prediction: Regression prediction refers to the use of LSTM networks to predict one or more continuous, numerical target variables. In invasive brain-computer interface applications, this typically corresponds to the real-time estimation of continuous motion parameters or motion intentions. Its core characteristic is that the predicted output is numerically ordered and infinitely separable. For example, predicting the continuous motion trajectory of a hand or cursor on a two-dimensional plane, with the output being the X-direction velocity and Y-direction velocity at each moment (two independent regression values); or predicting the continuous position, velocity, or force of a robotic arm's end effector; or estimating continuously changing attention levels or cognitive load indices.

[0185] 2. Classification Prediction: Classification prediction refers to the use of LSTM networks to predict a discrete, categorical target variable. In invasive brain-computer interface applications, this typically corresponds to the recognition of discrete cognitive events, decision states, or operational commands. Its core characteristic is that the predicted output is a finite set of mutually exclusive category labels. For example, identifying whether a subject has an intention to "press a button," with the output being either "pressed" or "not pressed"; or determining the type of motor imagery, such as imagining the movement of the left hand, right hand, eyeballs, left foot, right foot, or tongue (multi-class classification); or detecting the occurrence of specific error-related potentials or event-related potentials.

[0186] For example, in a typical application, multiple LSTM networks are designed to simultaneously process and predict targets of different natures. For instance, some LSTM networks predict continuous variables (such as the X or Y components of hand movement speed); while others predict categorical events (such as the on or off state of a button, or discrete grasping intentions).

[0187] Specifically, the first fused feature tensor is input into the LSTM network. The LSTM network processes the first fused feature tensor, learns the mapping relationship between it and a specific behavioral dimension, and outputs the decoding result.

[0188] In summary, the brain control method provided in this application realizes end-to-end processing from multimodal digital neural signals to behavior prediction. Its core advantages are: 1) By using a unified time window and a unified sliding step size to process LFP signals and pulse signals in parallel, the strict alignment of multimodal features on the time axis is ensured. The LFP features representing the low-frequency rhythm of the group and the pulse features representing the high-frequency discharge mode of the unit are deeply fused to construct a first fusion feature tensor with complementary information. This provides a robust input that can simultaneously reflect the multi-scale dynamics of neural activity for subsequent decoding, laying the foundation for high-precision multi-task decoding.

[0189] Figure 3 shows a flowchart of a brain control method provided in an embodiment of this application, which can be applied to brain control products. The brain control method may include: step 301, acquiring digital neural signals from multiple channels for a target object, wherein the digital neural signals include at least LFP signals and pulse signals.

[0190] This method acquires digital neural signals from multiple channels from a target subject (such as a human or animal subject). These digital neural signals are obtained by pre-amplifying, filtering, and converting the original analog neural signals to digital signals. The digital neural signals are not single-modal; they simultaneously contain at least two types of neural activity signals: LFP signals, which reflect the synchronous electrical activity of a large number of neurons within a local neural circuit. These signals originate from the collective current changes of thousands to tens of thousands of neurons and their synapses within the neural tissue, rather than the isolated firing of a single neuron, and have high amplitude and low temporal resolution. The frequency range of LFP signals is predominantly low-frequency, typically 0.1 Hz–300 Hz (containing various rhythms). In this embodiment, the frequency band corresponding to the LFP signal can refer to the band ≤300 Hz.

[0191] A pulse signal is a digital signal representation of neuronal action potential (spik potential) events or their characteristics. A pulse signal is a high-frequency, short-duration electrical signal (typically lasting 0.5-2 milliseconds), with its frequency components mainly concentrated between 300Hz and 3000Hz (some studies extend this to 200Hz-5kHz, depending on the recording device resolution). A pulse signal is not a single signal, but rather a general term for a class of signals, the specific form of which depends on the processing stage.

[0192] Step 302: Based on a unified time window and a unified sliding step size, feature extraction is performed on the LFP signal and the pulse signal, and the extracted time-aligned feature matrices are integrated into a first fused feature tensor.

[0193] To ensure that LFP signals and pulse signals derived from different physiological processes are strictly aligned in time and effectively complementary at the feature level, a unified timing reference can be used for processing.

[0194] (1) Feature extraction: Set a fixed time window length and a fixed sliding step size, and then perform the following operations in parallel for each signal channel: For LFP signals, extract the first type of features that characterize their activity mode within each time window.

[0195] For pulse signals, within each identical time window, a second type of feature is extracted to characterize their firing pattern and statistical properties.

[0196] Through the above operations, a feature sequence corresponding to the time window sequence is generated for each signal of each channel. All feature sequences are based on the same starting point and step size, achieving precise alignment in the time dimension.

[0197] The values ​​of the time window and sliding step can be set according to actual business needs. In an optional embodiment, the time window can be set to 64ms and the sliding step to 16ms.

[0198] (2) Feature integration: The first type of feature sequence and the second type of feature sequence that are aligned in time are integrated, and the integrated feature vectors of all channels and all time points are fused to construct a three-dimensional first fused feature tensor. The three dimensions of the first fused feature tensor correspond to the time step (generated by the sliding window), the channel number and the fused feature dimension (i.e. the total dimension after splicing LFP features and pulse features).

[0199] Step 303: Use n parallel LSTM networks to decode the first fused feature tensor respectively to obtain the decoding results of the target object in n different dimensions. The n LSTM networks are independent of each other and each LSTM network has an independent optimizer and model parameters, and n≥3.

[0200] To predict multiple behavioral dimensions, a unique Triple Network LSTM decoding architecture is adopted. This Triple Network LSTM decoding architecture consists of n parallel LSTM networks, where n≥3. These LSTM networks are structurally independent, specifically in that: parameters are independent: each LSTM network has its own independent model parameters, including weights and biases, which are not shared with other LSTM networks.

[0201] Independent optimizers: Each LSTM network is trained with an independent optimizer (such as Adam), which means that they can update the model parameters dynamically with different learning rates according to the needs of their respective tasks.

[0202] Decoding process: The first fused feature tensor is input into these n parallel LSTM networks respectively. Each LSTM network independently processes the first fused feature tensor and learns the mapping relationship between it and a specific behavioral dimension.

[0203] Output: Each LSTM network outputs an independent decoding result, and these decoding results together constitute a real-time prediction of the target object's behavioral state in n different dimensions.

[0204] In this embodiment, the LSTM network can be configured to perform two basic types of prediction tasks, namely regression prediction and classification prediction, depending on the different output layer structures and training objectives.

[0205] 1. Regression Prediction: Regression prediction refers to the use of LSTM networks to predict one or more continuous, numerical target variables. In invasive brain-computer interface applications, this typically corresponds to the real-time estimation of continuous motion parameters or motion intentions. Its core characteristic is that the predicted output is numerically ordered and infinitely separable. For example, predicting the continuous motion trajectory of a hand or cursor on a two-dimensional plane, with the output being the X-direction velocity and Y-direction velocity at each moment (two independent regression values); or predicting the continuous position, velocity, or force of a robotic arm's end effector; or estimating continuously changing attention levels or cognitive load indices.

[0206] 2. Classification Prediction: Classification prediction refers to the use of LSTM networks to predict a discrete, categorical target variable. In invasive brain-computer interface applications, this typically corresponds to the recognition of discrete cognitive events, decision states, or operational commands. Its core characteristic is that the predicted output is a finite set of mutually exclusive category labels. For example, identifying whether a subject has an intention to "press a button," with the output being either "pressed" or "not pressed"; or determining the type of motor imagery, such as imagining the movement of the left hand, right hand, eyeballs, left foot, right foot, or tongue (multi-class classification); or detecting the occurrence of specific error-related potentials or event-related potentials.

[0207] For example, in a typical application, n=3 can be set, and three LSTM networks are designed to simultaneously process and predict targets of different properties. For instance, two independent LSTM networks predict continuous variables (such as the X and Y components of hand movement velocity), while the third LSTM network predicts categorical events (such as the on or off state of a button, or discrete grasping intentions).

[0208] In summary, the brain control method provided in this application achieves end-to-end processing from multimodal digital neural signals to multidimensional behavior prediction. Its core advantages are: 1) By using a unified time window and a unified sliding step size to process LFP signals and pulse signals in parallel, strict alignment of multimodal features on the time axis is ensured, and LFP features representing low-frequency rhythms of the group are deeply fused with pulse features representing high-frequency firing modes of the unit to construct a first fused feature tensor with complementary information. This provides a robust input that can simultaneously reflect the multi-scale dynamics of neural activity for subsequent decoding, laying the foundation for high-precision multi-task decoding; 2) Each LSTM network is configured with completely independent model parameters and optimizers. Over-parameter isolation completely eliminates the coupling and conflict of gradient updates between multiple tasks, enabling the weights of each LSTM network to converge along the optimal direction for its specific task, avoiding optimization trade-offs and representation interference caused by shared parameters; the independent optimizer allows for setting differentiated hyperparameters (such as learning rate and momentum) for different LSTM networks, adapting to the personalized training dynamics required by the different task nature (such as regression and classification) and convergence speed of each network, improving the overall stability and efficiency of training; it gives the system parameter-level update flexibility, allowing for individual adjustment, retraining, or freezing of parameters for specific networks without affecting other networks, which not only reduces the computational cost of model maintenance, but also provides fine-grained control capabilities for online adaptive learning.

[0209] Figure 4 shows a flowchart of a brain control method provided in an embodiment of this application, which can be applied to brain control products. The brain control method may include: step 401, acquiring digital neural signals from multiple channels for a target object, wherein the digital neural signals include at least LFP signals and impulse signals.

[0210] This method acquires digital neural signals from multiple channels from a target subject (such as a human or animal subject). These digital neural signals are obtained by pre-amplifying, filtering, and converting the original analog neural signals to digital signals. The digital neural signals are not single-modal; they simultaneously contain at least two types of neural activity signals: LFP signals, which reflect the synchronous electrical activity of a large number of neurons within a local neural circuit. These signals originate from the collective current changes of thousands to tens of thousands of neurons and their synapses within the neural tissue, rather than the isolated firing of a single neuron, and have high amplitude and low temporal resolution. The frequency range of LFP signals is predominantly low-frequency, typically 0.1 Hz–300 Hz (containing various rhythms). In this embodiment, the frequency band corresponding to the LFP signal can refer to the band ≤300 Hz.

[0211] A pulse signal is a digital signal representation of neuronal action potential (spik potential) events or their characteristics. A pulse signal is a high-frequency, short-duration electrical signal (typically lasting 0.5-2 milliseconds), with its frequency components mainly concentrated between 300Hz and 3000Hz (some studies extend this to 200Hz-5kHz, depending on the recording device resolution). A pulse signal is not a single signal, but rather a general term for a class of signals, the specific form of which depends on the processing stage.

[0212] Step 402: Based on a unified time window and a unified sliding step size, feature extraction is performed on the LFP signal and the pulse signal, and the extracted time-aligned feature matrices are integrated into a first fused feature tensor.

[0213] To ensure that LFP signals and pulse signals derived from different physiological processes are strictly aligned in time and effectively complementary at the feature level, a unified timing reference can be used for processing.

[0214] (1) Feature extraction: Set a fixed time window length and a fixed sliding step size, and then perform the following operations in parallel for each signal channel: For LFP signals, extract the first type of features that characterize their activity mode within each time window.

[0215] For pulse signals, within each identical time window, a second type of feature is extracted to characterize their firing pattern and statistical properties.

[0216] Through the above operations, a feature sequence corresponding to the time window sequence is generated for each signal of each channel. All feature sequences are based on the same starting point and step size, achieving precise alignment in the time dimension.

[0217] The values ​​of the time window and sliding step can be set according to actual business needs. In an optional embodiment, the time window can be set to 64ms and the sliding step to 16ms.

[0218] (2) Feature integration: The first type of feature sequence and the second type of feature sequence that are aligned in time are integrated, and the integrated feature vectors of all channels and all time points are fused to construct a three-dimensional first fused feature tensor. The three dimensions of the first fused feature tensor correspond to the time step (generated by the sliding window), the channel number and the fused feature dimension (i.e. the total dimension after splicing LFP features and pulse features).

[0219] Step 403: Perform dynamic normalization on the first fusion feature tensor to obtain the second fusion feature tensor. The statistics involved in the dynamic normalization process are updated as the input data changes.

[0220] To address the non-stationarity of neural signals and avoid performance degradation caused by fixed normalization, dynamic normalization of the first fusion feature tensor is required.

[0221] Dynamically updated statistics: Maintain and dynamically update key statistics used for dynamic normalization (such as the moving mean and standard deviation for each feature dimension). These statistics are not fixed in the early stages of training, but are continuously updated using online algorithms (such as the Welford algorithm) as new input data arrives. The specific calculation process is described in detail below and will not be repeated here.

[0222] Real-time normalization: Using the latest statistics, dynamic normalization is performed on each feature dimension of the first fused feature tensor. The specific calculation process is described in detail below and will not be repeated here. The dynamic normalization generates the second fused feature tensor, which offsets the effect of slow signal drift and enhances the model's robustness to distribution changes.

[0223] Step 404: Use n parallel LSTM networks to decode the second fused feature tensor respectively to obtain the decoding results of the target object in n different dimensions. The n LSTM networks are independent of each other and each LSTM network has an independent optimizer and model parameters, and n≥3.

[0224] To predict multiple behavioral dimensions, a unique Triple Network LSTM decoding architecture is adopted. This Triple Network LSTM decoding architecture consists of n parallel LSTM networks, where n≥3. These LSTM networks are structurally independent, specifically in that: parameters are independent: each LSTM network has its own independent model parameters, including weights and biases, which are not shared with other LSTM networks.

[0225] Independent optimizers: Each LSTM network is trained with an independent optimizer (such as Adam), which means that they can update the model parameters dynamically with different learning rates according to the needs of their respective tasks.

[0226] Decoding process: The second fused feature tensor is input into these n parallel LSTM networks respectively. Each LSTM network independently processes the second fused feature tensor and learns its mapping relationship with a specific behavioral dimension.

[0227] Output: Each LSTM network outputs an independent decoding result, and these decoding results together constitute a real-time prediction of the target object's behavioral state in n different dimensions.

[0228] In this embodiment, the LSTM network can be configured to perform two basic types of prediction tasks, namely regression prediction and classification prediction, depending on the different output layer structures and training objectives.

[0229] 1. Regression Prediction: Regression prediction refers to the use of LSTM networks to predict one or more continuous, numerical target variables. In invasive brain-computer interface applications, this typically corresponds to the real-time estimation of continuous motion parameters or motion intentions. Its core characteristic is that the predicted output is numerically ordered and infinitely separable. For example, predicting the continuous motion trajectory of a hand or cursor on a two-dimensional plane, with the output being the X-direction velocity and Y-direction velocity at each moment (two independent regression values); or predicting the continuous position, velocity, or force of a robotic arm's end effector; or estimating continuously changing attention levels or cognitive load indices.

[0230] 2. Classification Prediction: Classification prediction refers to the use of LSTM networks to predict a discrete, categorical target variable. In invasive brain-computer interface applications, this typically corresponds to the recognition of discrete cognitive events, decision states, or operational commands. Its core characteristic is that the predicted output is a finite set of mutually exclusive category labels. For example, identifying whether a subject has an intention to "press a button," with the output being either "pressed" or "not pressed"; or determining the type of motor imagery, such as imagining the movement of the left hand, right hand, eyeballs, left foot, right foot, or tongue (multi-class classification); or detecting the occurrence of specific error-related potentials or event-related potentials.

[0231] For example, in a typical application, n=3 can be set, and three LSTM networks are designed to simultaneously process and predict targets of different properties. For instance, two independent LSTM networks predict continuous variables (such as the X and Y components of hand movement velocity), while the third LSTM network predicts categorical events (such as the on or off state of a button, or discrete grasping intentions).

[0232] In summary, the brain control method provided in this application realizes end-to-end processing from multimodal digital neural signals to multidimensional behavior prediction. Its core advantages are: 1) By using a unified time window and a unified sliding step size to process LFP signals and pulse signals in parallel, strict alignment of multimodal features on the time axis is ensured. Furthermore, the LFP features representing low-frequency rhythms of the group are deeply fused with the pulse features representing high-frequency firing modes of the unit, constructing a first fusion feature tensor with complementary information. This provides a robust input that can simultaneously reflect the multi-scale dynamics of neural activity for subsequent decoding, laying the foundation for high-precision multi-task decoding; 2) Through a dynamic normalization mechanism that updates the mean and standard deviation, the statistical distribution drift of neural signals is compensated in real time, maintaining a stable distribution of input features, thereby effectively combating non-stationary interference and significantly improving accuracy. The robustness of decoding is improved; 3) Each LSTM network is configured with completely independent model parameters and optimizers. Through parameter isolation, the coupling and conflict of gradient updates between multiple tasks are completely eliminated, so that the weights of each LSTM network can converge along the optimal direction of its specific task, avoiding optimization trade-offs and representation interference caused by shared parameters; Independent optimizers allow different hyperparameters (such as learning rate and momentum) to be set for different LSTM networks, adapting to the personalized training dynamics required by each network due to the differences in task nature (such as regression and classification) and convergence speed, thus improving the stability and efficiency of overall training; It gives the system parameter-level update flexibility, allowing the parameters of a specific network to be adjusted, retrained or frozen separately without affecting other networks. This not only reduces the computational cost of model maintenance, but also provides fine-grained control capabilities for online adaptive learning.

[0233] In one optional embodiment, it is necessary to first acquire analog neural signals from multiple channels, and then convert these analog neural signals into corresponding digital neural signals. Specifically, multiple channels of analog neural signals can be acquired for the target object; the analog neural signals from multiple channels can be preprocessed; and the preprocessed analog EEG neural signals can be converted from analog to digital to obtain digital neural signals from multiple channels.

[0234] Brain-controlled products may include a sensor unit, a preprocessing unit, and an analog-to-digital converter. The sensor unit is responsible for acquiring analog neural signals, the preprocessing unit is responsible for preprocessing the analog neural signals, and the analog-to-digital converter is responsible for converting the analog neural signals into digital neural signals.

[0235] The working principle of the sensor unit is as follows: when a neuron or neuron group generates electrical activity, a weak voltage fluctuation is formed outside the cell. The electrode contacts of the sensor unit detect this voltage change and convert it into a weak analog current or voltage signal (usually in the microvolt range) for subsequent circuit processing.

[0236] The performance of a sensor unit is characterized by multiple parameters, including but not limited to: electrode impedance, contact material (such as platinum-iridium alloy), contact size, contact spacing, biocompatible coating, and lead type. These parameters directly affect the quality of signal acquisition, signal-to-noise ratio, and long-term stability.

[0237] Specifically, multiple sensor units can form a multi-channel neural signal acquisition array. Each channel refers to an independent signal acquisition path, which begins at a sensor unit or a single electrode contact within a sensor unit, passes through an independent preprocessing link (such as a preamplifier and prefilter), and is finally sampled individually by an analog-to-digital converter. Therefore, the number of channels (M) is usually greater than or equal to the number of sensor units (N), depending on whether each sensor unit contains multiple independent contacts.

[0238] In one embodiment, multiple sensor units are arranged in a two-dimensional grid (such as cortical surface coverage) or a three-dimensional distribution (such as multiple target points in deep brain regions) to achieve high spatial resolution sampling of the target object. Different sensor units can be configured to acquire signals with different characteristics. For example, some units (such as large-contact electrodes) are used to acquire low-frequency, high-amplitude local field potential (LFP) signals; other units (such as small-contact, high-impedance electrodes) are used to separate and acquire high-frequency action potential (pulse) signals. This collaborative working mode directly ensures the quality of multimodal signals at the physical level.

[0239] The analog neural signals of all channels are controlled by a common clock source and sampled synchronously to ensure that the signals across channels are strictly aligned on the time axis. This is crucial for subsequent multi-channel feature fusion (such as calculating the coherence between channels).

[0240] The sensor unit sends the acquired analog neural signals from multiple channels to the preprocessing unit. The preprocessing unit preprocesses the analog neural signals from multiple channels to pre-condition the weak raw analog neural signals, thereby improving signal quality and laying the foundation for subsequent analog-to-digital conversion and digital processing. There are many preprocessing methods; amplification and noise filtering are used as examples below.

[0241] Specifically, the preprocessing unit includes a preamplifier and a prefilter; the preamplifier amplifies the analog neural signals from multiple channels; and the prefilter filters out noise from the amplified analog neural signals.

[0242] The preamplifier is a high-gain, low-noise amplifier. Its core function is to linearly amplify the raw analog neural signals in the microvolt (μV) to millivolt (mV) range, raising the signal amplitude to a level suitable for subsequent circuit processing (usually in the volt range). This ensures that the effective analog neural electrical signal amplitude is significantly higher than the inherent noise level of the circuit itself, thereby maximizing the system's signal-to-noise ratio and ensuring that weak neural activity signals are not drowned out by noise.

[0243] The pre-filter is connected after the preamplifier to perform frequency-selective filtering on the amplified analog neural signal in order to filter out a large amount of out-of-band noise and interference. Its filtering strategy usually includes: high-pass filtering: filtering out extremely low-frequency drift noise (such as breathing and motion artifacts).

[0244] Low-pass filtering: filters out radio frequency interference and high-frequency circuit noise that are much higher than the effective frequency band of neural signals.

[0245] Band-stop filtering (such as notch filters): specifically filters out 50 / 60 Hz power frequency interference and its harmonics.

[0246] The preprocessing process is as follows: the original analog neural signal is first amplified by a preamplifier, and then noise is removed by a pre-filter. After these two stages of preprocessing, the analog neural signal retains key neurophysiological information (such as the rhythm of LFP and the waveform characteristics of the pulse), while removing the main external and internal noise, forming a clean analog signal, which is then sent to an analog-to-digital converter for digital sampling.

[0247] An analog-to-digital converter (ADC) performs analog-to-digital conversion on the preprocessed analog EEG neural signals to obtain digital neural signals with multiple channels. Specifically, the ADC samples different components of the analog neural signals using separate channels or configurable sampling rates. For example, channels used to acquire LFP signals use relatively low sampling rates (e.g., 1 kSPS to 2 kSPS), while channels used to acquire the raw waveforms of pulse signals use high sampling rates (e.g., 20 kSPS to 30 kSPS) to satisfy the Nyquist sampling theorem and preserve pulse waveform details.

[0248] Analog-to-digital converters (ADCs) feature high resolution, typically 16-bit, 24-bit, or higher. This high resolution ensures that variations in analog neural signals at the microvolt level can be accurately quantized, providing sufficient dynamic range to simultaneously capture high-amplitude LFP signals and low-amplitude pulse signals, thus preventing quantization noise from affecting subsequent decoding accuracy.

[0249] The analog-to-digital conversion of all channels is driven by a high-precision, low-jitter common clock, ensuring that the digital sampling points of all channels are strictly synchronized in time, which is crucial for subsequent multi-channel signal fusion and coherence analysis.

[0250] The analog-to-digital converter sends multi-channel digital neural signals to the EEG signal processor, which decodes the multi-channel digital neural signals to obtain n different-dimensional decoding results, where n≥3.

[0251] In an optional embodiment, feature extraction is performed on the LFP signal and the pulse signal based on a unified time window and a unified sliding step size, and the extracted time-aligned feature matrices are integrated into a first fused feature tensor. This may include: extracting low-frequency power features of the LFP signal based on the time window and sliding step size to obtain a first LFP power feature matrix; extracting pulse band power (SBP) features of the pulse signal based on the time window and sliding step size to obtain a first SBP power feature matrix; calculating pulse interval histogram (ISI-Bincount) based on the time window, sliding step size, and pulse signal timestamps to obtain a first ISI-Bincount matrix; and integrating the first LFP power feature matrix, the first SBP power feature matrix, and the first ISI-Bincount matrix into a first fused feature tensor.

[0252] (1) When extracting LFP features, the EEG signal processor divides the continuous LFP signal into a series of temporally continuous and partially overlapping analysis segments according to a set time window (e.g., 64ms) and sliding step size (e.g., 16ms). For each analysis segment, the EEG signal processor calculates its power or energy in one or more preset frequency bands as the feature value of that time segment. The frequency bands may include, but are not limited to, the δ frequency band (e.g., 1-4 Hz), the θ frequency band (4-8 Hz), the α frequency band (8-13 Hz), the β frequency band (13-30 Hz), and the γ frequency band (30-100 Hz). Preferably, it may also include the high γ frequency band (e.g., >70 Hz). By sliding the window along the time axis and repeating the above calculation, a power feature sequence is generated for each channel. Finally, the sequences of all channels are combined into a three-dimensional first LFP power feature matrix, whose dimensions correspond to the time step, channel number, and the extracted power feature (frequency band) dimension, respectively.

[0253] Optionally, in order to obtain richer information on group activity, the EEG signal processor can extract at least one of the phase information of the LFP signal, the coherence characteristics between different channels, or the temporal complexity index of the signal, in addition to calculating the power characteristics. These features, together with the power characteristics, constitute the first LFP power feature matrix to more comprehensively describe the neural cluster synchronization state and oscillation mode reflected by the LFP signal.

[0254] (2) SBP focuses on the sum or relative intensity of signal energy within a frequency band that highly overlaps with the frequency range of neuronal action potentials (i.e., pulses). The basic definition of SBP is to quantify the energy intensity of neuronal pulse signals within a specific frequency band. It can be applied to a single neuron or extended to a group of neurons, depending on the analysis target rather than being limited to a single neuron. The specific frequency band corresponding to SBP can be from 300 Hz to 1000 Hz.

[0255] When extracting SBP features, the EEG signal processor first performs bandpass filtering (preferably 300-1000Hz) on the pulse signal of each channel to separate the components related to the high-frequency energy of neuronal action potentials. Preferably, to improve signal quality, the Common Average Reference (CAR) method can be used to suppress common-mode noise in the filtered multi-channel signal. Subsequently, the EEG signal processor calculates the high-frequency envelope of the filtered signal for each channel at extremely short time intervals (e.g., 3.2 ms) to generate a high-temporal-resolution high-frequency energy sequence. To align with the LFP power features in time, the EEG signal processor uses the same uniform time window (e.g., 64 ms) and sliding step size (e.g., 16 ms) as the LFP feature processing to integrate or move average the high-frequency energy sequence, thereby obtaining an SBP feature value representing the sum of high-frequency energy in each aligned time window. Finally, a three-dimensional first SBP power feature matrix is ​​generated, whose dimensions correspond to the time step, channel number, and SBP feature dimension that are strictly aligned with the LFP feature matrix. The first SBP power feature matrix can effectively capture the dynamic energy changes of neural clusters in the pulse frequency range.

[0256] (3) ISI refers to the time interval between two consecutive pulse signals emitted by a single neuron, which is the most basic parameter describing the firing time pattern of a neuron. For example, if a neuron emits pulses at times t1=100ms, t2=150ms, and t3=220ms, the corresponding ISIs are t2-t1=50ms and t3-t2=70ms.

[0257] Inter-Spike Interval Bincount (ISI-Bincount) is a data foundation for creating an ISI histogram by grouping all ISI values ​​of a single neuron into intervals (Bin) and counting the number of ISI occurrences within each interval. Simply put, it's a statistical summary table of ISI values, designed to transform scattered ISI data into an intuitive distribution pattern.

[0258] Here, an interval refers to a continuous time range for all ISI values ​​of a single neuron, divided according to a fixed time length or a user-defined time range. Simply put, it divides the ISI time values ​​into time buckets, and each bucket is an interval. For example, the ISI value of a neuron might be 10ms, 25ms, 18ms, 32ms, etc. An interval categorizes these time values ​​into different continuous ranges, such as "0-10ms", "10-20ms", "20-30ms", and "30-40ms", with each range being an independent interval.

[0259] The most common method of partitioning is using a fixed time step: for example, using 10ms or 5ms as an interval, ensuring that the time length of each interval is consistent, which facilitates subsequent statistical analysis and standardized presentation of histograms. Of course, you can also customize the partitioning according to the research objective: for example, to target the firing characteristics of a certain type of neuron, divide "0-5ms" (short interval), "5-50ms" (medium interval), and "50-200ms" (long interval) into different intervals, focusing on the firing patterns within specific interval ranges.

[0260] Suppose the ISI values ​​of a neuron are: 5ms, 8ms, 12ms, 15ms, 22ms, 28ms, and 35ms. If the intervals are divided into 10ms steps, then: Interval "0-10ms": includes 5ms and 8ms, Count (number of times) = 2; Interval "10-20ms": includes 12ms and 15ms, Count = 2; Interval "20-30ms": includes 22ms and 28ms, Count = 2; Interval "30-40ms": includes 35ms, Count = 1.

[0261] These "interval-frequency" correspondences are the core data for drawing ISI histograms.

[0262] When generating the ISI-Bincount, the EEG signal processor first performs event detection on the pulse signals of each channel, extracting the timestamp corresponding to each action potential. Then, the EEG signal processor analyzes the pulse event sequence within each time window based on a uniform time window (e.g., 64 ms) and a sliding step size (e.g., 16 ms). For each time window, the EEG signal processor calculates the interval between all adjacent pulse timestamps within that time window, and performs histogram statistics on the calculated pulse intervals according to a preset interval range (i.e., bin), thereby obtaining a count vector reflecting the pulse firing rhythm pattern within that time period. This count vector is the ISI-Bincount feature for one time step.

[0263] Optionally, to improve the robustness and representativeness of the features, the EEG signal processor can use a preset smoothing kernel function (such as a Gaussian kernel, a uniform kernel, or an exponential kernel) to perform temporal smoothing on the original histogram count sequence generated for each channel. By sliding a window along the time axis and performing the above operation on all channels, a three-dimensional first ISI-Bincount matrix is ​​finally generated. Its dimensions correspond to the time step, channel number, and count dimension of the pulse interval histogram, which are strictly aligned with the LFP and SBP feature matrices, respectively. The first ISI-Bincount matrix quantitatively represents the fine temporal pattern of neuronal firing and the statistical regularity of group firing.

[0264] This embodiment is the first to align and fuse three specific modes with different physical meanings and huge time scales—LFP (Low Frequency Group Activity), SBP (High Frequency Energy), and ISI-Bincount (Impulse Timing)—within a unified, real-time synchronization framework. This fusion feature, as the input to the subsequent Dynamic Normalization (Dynamic Normalization) and LSTM networks, can significantly improve the robustness and accuracy of decoding.

[0265] After feature extraction, the three types of features, LFP, SBP and ISI-Bincount, have been initially aligned in terms of time window and sliding step size, but there may still be significant differences in dynamic range and statistical distribution. Therefore, it is necessary to perform independent or grouped normalization processing on the features of each modality in each channel.

[0266] Specifically, integrating the first LFP power feature matrix, the first SBP power feature matrix, and the first ISI-Bincount matrix into a first fused feature tensor may include: performing a first normalization process on the first LFP power feature matrix, the first SBP power feature matrix, and the first ISI-Bincount matrix to obtain the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix; and integrating the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix into the first fused feature tensor.

[0267] In this embodiment, Z-score normalization or quantile normalization can be used to reduce the dimensional differences between different modes and make their statistical distributions more similar. The normalization parameters (mean and standard deviation) here can be updated online to adapt to long-term electrode impedance changes or signal drift, serving as the first level of statistical adaptation.

[0268] Z-score normalization (also known as standardization) is a commonly used data preprocessing technique that aims to transform data into a standard normal distribution with a mean of 0 and a standard deviation of 1. This method adjusts the scale of the data, allowing different features to be compared under the same standard, which is particularly important in machine learning and statistical analysis.

[0269] The Z-score normalization formula is: z = (x - μ) / σ, where x represents the original data value, μ represents the mean of the dataset, and σ represents the standard deviation of the dataset. This formula converts each data point into its deviation from the mean, expressed in standard deviations. For example, z=1 means that the data point is one standard deviation above the mean; z=-2 means that the data point is two standard deviations below the mean.

[0270] The core idea of ​​quantile normalization is to adjust the data so that the values ​​of different samples at the same quantile are equal, thereby eliminating systematic differences between samples. We treat the feature values ​​of each channel at the same time step as a sample, and the specific steps are as follows: 1. Sorting: Sort the data of each sample.

[0271] 2. Calculate the mean: For each sorting position, calculate the average of the values ​​of all samples at that sorting position.

[0272] 3. Replacement: Replace the value of each sample at its corresponding sorting position with the mean calculated above.

[0273] Through the above steps, the values ​​of all samples at the same sorting position tend to be consistent, thereby achieving data standardization.

[0274] Through the first normalization process described above, the three feature matrices, which originally had different dimensions and distributions, were transformed into a second LFP power feature matrix, a second SBP power feature matrix, and a second ISI-Bincount matrix, respectively, with uniform scale and normalized distribution. Subsequently, the EEG signal processor concatenates these three matrices, which are aligned in the time and channel dimensions and normalized in the numerical scale, according to the feature dimensions, and integrates them into a first fusion feature tensor, thereby completing the standardized fusion of multimodal features at the numerical level.

[0275] Specifically, integrating the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix into a first fused feature tensor can include: extracting the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix for each time step based on the time window and sliding step size; and concatenating the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix for each time step according to the channel and feature dimensions to form the first fused feature tensor.

[0276] The EEG signal processor synchronously traverses the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix according to a unified time window and sliding step size. For each identical time step t, the EEG signal processor performs the following operations: extracts the LFP power features of all channels corresponding to time step t from the second LFP power feature matrix, obtaining a two-dimensional matrix of shape (channel number, LFP feature dimension), denoted as M. LFP(t) Similarly, slices corresponding to time step t are extracted from the second SBP power feature matrix and the third ISI-Bincount matrix, respectively, to obtain matrices M with shapes of (channel number, SBP feature dimension) and (channel number, ISI feature dimension), respectively. SBP(t) and M ISI(t) .

[0277] For each channel c, the EEG signal processor concatenates the feature row vectors corresponding to that channel c from the three matrices mentioned above. That is, it concatenates M... LFP(t) The LFP eigenvector in row c, M SBP(t) The SBP eigenvector in row c and M ISI(t) The ISI feature vectors in the c-th row are concatenated sequentially along the feature dimensions to form a longer fused feature vector F. c(t) The dimension of this vector is equal to the sum of the LFP feature dimension, SBP feature dimension, and ISI feature dimension.

[0278] The fused feature vector F of all channels c c(t) Stacked in channel order, they form the local fusion feature matrix for time step t, with the shape of (channel number, total fusion feature dimension).

[0279] By traversing all time steps t and arranging the local fusion feature matrices corresponding to each time step t in chronological order, a three-dimensional first fusion feature tensor is finally constructed. The three dimensions of the first fusion feature tensor correspond to the following in order: time step (generated by a uniform sliding step size), channel number, and fusion feature dimension (i.e., the sum of the concatenation of the three feature dimensions: LFP, SBP, and ISI).

[0280] After obtaining the first fused feature tensor, a dynamic normalization module can be used to perform dynamic online Z-score normalization. When receiving the first fused feature tensor for each batch, the dynamic normalization module estimates and updates the statistics for each feature channel in real time and online. Based on these dynamically updated statistics, dynamic Z-score normalization is performed on the first fused feature tensor of the current batch, outputting a second fused feature tensor after secondary normalization. The statistics involved in the dynamic normalization process are updated as the input data changes.

[0281] When the statistics include the global mean and standard deviation, the first fusion feature tensor is dynamically normalized to obtain the second fusion feature tensor. This can include: dynamically updating the mean and standard deviation of the feature matrix corresponding to each channel; and dynamically normalizing the first fusion feature tensor based on the updated mean and standard deviation to obtain the second fusion feature tensor.

[0282] Specifically, dynamically updating the mean and standard deviation of the feature matrix corresponding to each channel can include: updating the mean and standard deviation of the feature matrix corresponding to each channel based on the Welford online algorithm; and dynamically normalizing the first fused feature tensor based on the updated mean and standard deviation to obtain the second fused feature tensor, including: based on x norm =(x-μ dynamic ) / (σ dynamic The formula +e) is used to dynamically normalize the feature matrix corresponding to each channel in the first fused feature tensor to obtain the second fused feature tensor, where x norm This represents the dynamically normalized data, where x represents the input data and μ is the input data. dynamic σ represents the dynamically updated mean. dynamic This represents the dynamically updated standard value, and σ dynamic The sum of e and is not zero.

[0283] The Welford online algorithm is a numerically stable algorithm for calculating sample mean and variance online, particularly suitable for data stream processing and memory-constrained scenarios. Compared to traditional algorithms, the Welford online algorithm updates statistics incrementally during a single data iteration, avoiding numerical instability issues.

[0284] The Welford online algorithm calculates the mean and variance step by step by maintaining three variables: (1) counter (count): the number of data points processed.

[0285] (2) Mean: The mean of the current data points.

[0286] (3) M2: The sum of squares of the differences between the data points and the mean.

[0287] For each new data point x n The Welford online algorithm performs the following steps: 1. Update the counter: count ← count + 1 2. Calculate the increment of the mean: δ = x n -mean 3. Update the mean: mean ← mean + (δ / count) 4. Update M2: M2 ← M2 + δ*(x n After processing all data points, the variance is calculated using the following formulas: ① Sample variance (unbiased estimate): variance = M² / (count-1) ② Population variance (biased estimate): variance = M² / count Assuming that N data points have been processed at a certain time... old A sample was obtained, and the global mean M was calculated. old Correlation quantity S with global variance old When a new batch of data arrives, that batch contains N. batch There are M samples with a mean of M. batch The variance correlation coefficient is S batch .

[0288] The new statistic is calculated according to the following steps: 1. Update the total sample size (N) new ): N new =N old +N batch 2. Update the global mean (M) new The new global mean is a weighted average of the two data clusters, M. new =[N old *M old +N batch *M batch ] / N new 3. Update the global standard deviation correlation (σ) new ): , σ new = .

[0289] Traditional variance calculation methods may lead to numerical instability due to large datasets or small differences between data points, especially in calculations. and When the difference is calculated, a "catastrophic cancellation" may occur. However, the Welford online algorithm avoids this problem by using incremental updates, ensuring the stability and accuracy of the calculation.

[0290] The mean μ is obtained by using the Welford online algorithm.dynamic and the dynamically updated standard value σ dynamic Then, for any data point x in the first fusion feature tensor, the EEG signal processor uses the latest dynamic statistics of the channel to which the data point belongs and applies the following formula to calculate: x norm =(x-μ dynamic ) / (σ dynamic +e), where e is a very small positive constant whose function is to ensure that the denominator is not zero, thus ensuring numerical stability and preventing the denominator from being zero when σ. dynamic A computational overflow occurs when the value approaches zero.

[0291] For each data point in the first fusion feature tensor, dynamic normalization is performed using the latest dynamic statistics of its corresponding channel, following the above procedure. After all calculations are completed, a completely new three-dimensional tensor, which has undergone channel-level adaptive normalization, is obtained; this is the second fusion feature tensor.

[0292] Due to minute electrode movements or biological tissue reactions, the statistical properties of neural signals (such as mean and variance) drift over time, leading to a decline in the performance of the pre-trained model. In this embodiment, a second dynamic normalization process is performed on the second fusion feature tensor to counteract this drift in real time. This solves the problem of neural signal non-stationarity faced by invasive brain-computer interfaces during long-term use and improves the long-term robustness of the system.

[0293] In this embodiment, the second fused feature tensor is decoded by n parallel Long Short-Term Memory (LSTM) networks to obtain the decoding results of the target object in n different dimensions. This may include: downsampling the second fused feature tensor to obtain a third fused feature tensor; and decoding the third fused feature tensor by n parallel LSTM networks to obtain the decoding results of the target object in n different dimensions.

[0294] Specifically, the downsampling process is performed by a dedicated downsampling module. Its core operation is to reduce the dimensionality along the time dimension of the second fusion feature tensor, which aims to reduce the temporal resolution of the data stream. This reduces the computational load of the subsequent decoding network while ensuring that key neural information is not lost, and may also suppress random noise through aggregation operations.

[0295] The downsampling module can employ pooling operations, such as average pooling, to achieve downsampling. Specifically, the downsampling module can be configured with a pooling window size *k* and a stride *s*. For the time series of each channel and each fusion feature dimension in the second fusion feature tensor, the downsampling module slides the pooling window with a stride *s* and calculates the arithmetic mean of the feature values ​​of *k* consecutive time steps within each pooling window. This average is then used as the feature value for the new time step after downsampling. Through this operation, the time step length of the original second fusion feature tensor is compressed by approximately *k* times, generating a third fusion feature tensor that remains unchanged in the channel and feature dimensions but is more compact in the time dimension. The downsampling operation not only significantly reduces the number of time steps required by the subsequent decoding network by shortening the length of the input sequence, thereby reducing the computational load and memory consumption of the model and facilitating real-time decoding, but also potentially enhances the stability and robustness of the feature representation due to the smooth aggregation of neighboring temporal information. This allows neurons in the subsequent decoding network to extract information from a broader original time window, helping to learn more macroscopic temporal dependencies and thus expanding the receptive field.

[0296] The third fusion feature tensor, after downsampling, is then input in parallel into n parallel LSTM networks for decoding. The value of n can be set according to the needs of the application scenario, and is not limited in this embodiment.

[0297] This embodiment employs a Triple Network LSTM decoding architecture as the core decoding module of the EEG signal processor. The core of this Triple Network LSTM decoding architecture lies in combining completely independent sub-network structures, independent optimizer configurations, and flexible selective training mechanisms to achieve efficient, robust, and controllable parallel decoding of continuous motion trajectories and discrete events.

[0298] Traditional multi-task models typically employ a design that shares a low-level feature extractor and branches out into different task heads only at the top level. This structure is prone to performance compromises and internal representation interference when task requirements conflict or convergence speeds are inconsistent. In contrast, the Triple Network LSTM decoding architecture in this embodiment designs a completely independent LSTM network from input to output for each decoding dimension. These LSTM networks share the same input source (i.e., the second or third fused feature tensor after dynamic normalization), but have their own independent network parameters: including all gate weights and biases of the LSTM layers, as well as the parameters of the output layer, which are not shared among them.

[0299] Computational Path and Internal State: Each LSTM network independently performs sequence modeling and maintains its own hidden state and cell state.

[0300] Dedicated optimizer: Each LSTM network is configured with an independent optimizer (such as the Adam optimizer) to manage its unique parameter update process.

[0301] This physically isolated and optimization-independent design allows for the parallel optimization of two tasks—predicting continuous motion trajectories (a regression task) and predicting discrete button states (a classification task)—which differ fundamentally in feature emphasis, noise sensitivity, and convergence speed, without interfering with each other. Researchers can selectively train and update parameters for specific tasks (e.g., only recalibrating motion velocity decoding) as needed, without retraining or affecting other tasks, greatly improving the system's practicality and maintainability.

[0302] In this embodiment, the LSTM network can be configured to perform two basic types of prediction tasks, namely regression prediction and classification prediction, depending on the different output layer structures and training objectives.

[0303] 1. Regression Prediction: Regression prediction refers to the use of LSTM networks to predict one or more continuous, numerical target variables. In invasive brain-computer interface applications, this typically corresponds to the real-time estimation of continuous motion parameters or motion intentions. Its core characteristic is that the predicted output is numerically ordered and infinitely separable. For example, predicting the continuous motion trajectory of a hand or cursor on a two-dimensional plane, with the output being the X-direction velocity and Y-direction velocity at each moment (two independent regression values); or predicting the continuous position, velocity, or force of a robotic arm's end effector; or estimating continuously changing attention levels or cognitive load indices.

[0304] When an LSTM network is used for regression prediction, the LSTM network includes LSTM layers and linear layers. Then, n parallel LSTM networks are used to decode the third fusion feature tensor to obtain the decoding results of the target object in n different dimensions. This can include: using LSTM layers to decode the third fusion feature tensor and outputting the obtained first decoded sequence to the linear layer; using the linear layer to predict the continuous behavioral parameters of the target object based on the first decoded sequence.

[0305] LSTM networks used for regression prediction typically have a linear output layer (without an activation function or using an identity activation function). The number of neurons in this layer is equal to the dimension of the continuous variable to be predicted, and its output value is a direct real number. The training objective is to minimize the error (such as mean squared error) between the predicted value and the true value.

[0306] 2. Classification Prediction: Classification prediction refers to the use of LSTM networks to predict a discrete, categorical target variable. In invasive brain-computer interface applications, this typically corresponds to the recognition of discrete cognitive events, decision states, or operational commands. Its core characteristic is that the predicted output is a finite set of mutually exclusive category labels. For example, identifying whether a subject has an intention to "press a button," with the output being either "pressed" or "not pressed"; or determining the type of motor imagery, such as imagining the movement of the left hand, right hand, eyeballs, left foot, right foot, or tongue (multi-class classification); or detecting the occurrence of specific error-related potentials or event-related potentials.

[0307] When an LSTM network is used for classification prediction, the LSTM network includes LSTM layers and a classifier. Then, n parallel LSTM networks are used to decode the third fused feature tensor to obtain the decoding results of the target object in n different dimensions. This can include: decoding the third fused feature tensor using LSTM layers and outputting the obtained second decoded sequence to the classifier; using the classifier to predict the classification results of discrete events related to the target object based on the second decoded sequence.

[0308] LSTM networks used for classification prediction have an output layer that serves as a classifier, typically consisting of a linear layer followed by a non-linear activation function. For binary classification tasks, the sigmoid function is commonly used to map the logistic value of a single output neuron to the probability (between 0 and 1) of belonging to the positive class. For multi-class classification tasks, the softmax function is used to normalize the logistic values ​​of multiple output neurons into a probability distribution, representing the likelihood of belonging to each class. The training objective is to maximize the consistency between the predicted class and the true class (e.g., minimizing cross-entropy loss).

[0309] In one example, the three LSTM networks in the Triple Network LSTM decoding architecture are designed to simultaneously process and predict targets of different properties. For instance, two independent regression subnetworks predict continuous variables (such as the X and Y components of motion velocity), while a classification subnetwork predicts discrete events (such as the on or off state of a button).

[0310] When n LSTM networks include a first regression LSTM network, a second regression LSTM network, and a classification LSTM network, the third fusion feature tensor is decoded using n parallel LSTM networks to obtain decoding results of the target object in n different dimensions. This can include: using the first regression LSTM network to perform regression prediction on the third fusion feature tensor to obtain the first continuous motion component of the target object; using the second regression LSTM network to perform regression prediction on the third fusion feature tensor to obtain the second continuous motion component of the target object; and using the classification LSTM network to perform classification prediction on the third fusion feature tensor to obtain the classification results of discrete events related to the target object.

[0311] Each LSTM subnetwork is designed to save and propagate its hidden state at the end of the forward propagation call. This mechanism allows the model to utilize historical context information for predictions at the current time step when processing continuous fused feature streams, enhancing the coherence and accuracy of real-time decoding. To adapt to different sequences or experimental phases, the system provides a function to reset the hidden state to clear the historical context, ensuring that new decoding sequences are not affected by previously irrelevant information and guaranteeing decoding independence.

[0312] At each time step, the three LSTM networks independently and synchronously generate their respective decoding results based on the fused features of the current and historical data. The EEG signal processor integrates these time-aligned decoding results to form a unified output tensor. For example, the output tensor can be represented as [X velocity, Y velocity, button state probability], thus providing a complete and real-time description of the target object's multi-dimensional behavioral intentions.

[0313] In an optional embodiment, the brain control product also includes a display screen, preferably a high-resolution, high-brightness touch screen, whose core function is to realize bidirectional information flow: (1) Information output and visualization. The display screen shows the operation interface of the brain control product. The operation interface can provide graphical controls such as device switch, mode selection (such as training mode, decoding mode, calibration mode), and parameter configuration (such as time window, filter setting).

[0314] The display screen shows digital neural signals from multiple channels. For example, it can display the digital neural signals from one or more selected channels in real time as a scrolling waveform graph, allowing for immediate assessment of signal quality and electrode connection status.

[0315] The display screen shows a visual representation of the first fusion feature tensor and / or the second fusion feature tensor, which are intermediate data generated during the process of converting digital neural signals into decoding results, enabling visualization of the processing. For example, the energy or numerical distribution of different channels and feature dimensions can be displayed in the form of a heatmap, making the complex multimodal feature fusion process transparent and interpretable.

[0316] The display screen shows decoding results in n different dimensions, and the display formats include, but are not limited to, graphical, animated, and numerical formats. For example, it can display the decoding results of two continuous motion components as a two-dimensional cursor movement trajectory, or display the classification results of discrete events (such as button presses) as highlighted icons, providing users with the most direct behavioral output feedback.

[0317] (2) Command input and closed-loop control: The display screen is a touch screen. The display screen receives input information generated by touch operation on the operation interface. The brain control product controls the decoding of digital neural signals based on the input information.

[0318] As a touchscreen display, its core interactive function lies in receiving user input information generated on the interface based on touch gestures (such as clicking, swiping, and long-pressing). This input information is transmitted to the EEG signal processor in real time, which dynamically adjusts the system behavior accordingly, forming a closed loop of human-computer interaction. Specifically, the EEG signal processor can perform at least one of the following controls based on the input information: Start / Stop Control: Starting or stopping the recording and decoding process of neural signals.

[0319] Dynamic parameter adjustment: Based on the user's operation on the interface, the decoding algorithm parameters are adjusted in real time, such as the LSTM network output threshold and the dynamic normalization smoothing factor.

[0320] Task Triggering and Labeling: After viewing the decoding results, users can add a label to the current data segment by clicking the "Correct" or "Incorrect" button. This label will be used for subsequent model optimization datasets.

[0321] One embodiment of this application provides a computer-readable storage medium storing at least one instruction, which is loaded and executed by a processor to implement the mind control method described above.

[0322] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0323] The above description is not intended to limit the embodiments of this application. Any adjustments, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of the embodiments of this application.

Claims

1. A digital electroencephalogram (EEG) machine, characterized in that, The digital electroencephalogram (EEG) machine includes an EEG signal processor; The EEG signal processor is used to acquire digital neural signals from multiple channels for a target object, and the digital neural signals include at least local field potential (LFP) signals and pulse signals. The EEG signal processor is also used to extract features from the LFP signal and the pulse signal based on a unified time window and a unified sliding step size, and to integrate the extracted time-aligned feature matrices into a first fusion feature tensor. The EEG signal processor is further configured to perform dynamic normalization processing on the first fusion feature tensor to obtain a second fusion feature tensor. The statistics involved in the dynamic normalization processing are updated as the input data changes. The EEG signal processor is further configured to use n parallel Long Short-Term Memory (LSTM) networks to decode the second fusion feature tensor respectively to obtain the decoding results of the target object in n different dimensions. The n LSTM networks are independent of each other and each LSTM network has an independent optimizer and model parameters, where n≥3.

2. The digital electroencephalogram (EEG) machine according to claim 1, characterized in that, The EEG signal processor is further configured to downsample the second fusion feature tensor to obtain a third fusion feature tensor; the EEG signal processor is further configured to use n parallel LSTM networks to decode the third fusion feature tensor respectively to obtain the decoding results of the target object in n different dimensions.

3. The digital electroencephalogram (EEG) machine according to claim 2, characterized in that, When the LSTM network is used for regression prediction, the LSTM network includes an LSTM layer and a linear layer; the EEG signal processor is also used to decode the third fused feature tensor using the LSTM layer and output the obtained first decoded sequence to the linear layer; the EEG signal processor is also used to use the linear layer to predict the continuous behavioral parameters of the target object based on the first decoded sequence.

4. The digital electroencephalogram (EEG) machine according to claim 2, characterized in that, When the LSTM network is used for classification prediction, the LSTM network includes LSTM layers and a classifier; the EEG signal processor is also used to decode the third fused feature tensor using the LSTM layers and output the resulting second decoded sequence to the classifier; the EEG signal processor is also used to use the classifier to predict the classification result of discrete events related to the target object based on the second decoded sequence.

5. The digital electroencephalogram (EEG) machine according to claim 2, characterized in that, When the n LSTM networks include a first regression LSTM network, a second regression LSTM network, and a classification LSTM network, the EEG signal processor is further configured to use the first regression LSTM network to perform regression prediction on the third fusion feature tensor to obtain a first continuous motion component of the target object; the EEG signal processor is further configured to use the second regression LSTM network to perform regression prediction on the third fusion feature tensor to obtain a second continuous motion component of the target object; the EEG signal processor is further configured to use the classification LSTM network to perform classification prediction on the third fusion feature tensor to obtain a classification result of discrete events related to the target object.

6. The digital electroencephalogram (EEG) machine according to claim 1, characterized in that, The EEG signal processor is further configured to extract the low-frequency power features of the LFP signal based on the time window and the sliding step size to obtain a first LFP power feature matrix; the EEG signal processor is further configured to extract the pulse band power (SBP) features of the pulse signal based on the time window and the sliding step size to obtain a first SBP power feature matrix. The EEG signal processor is further configured to count the pulse interval histogram count (ISI-Bincount) based on the time window, the sliding step size, and the timestamp of the pulse signal, to obtain a first ISI-Bincount matrix; the EEG signal processor is further configured to integrate the first LFP power feature matrix, the first SBP power feature matrix, and the first ISI-Bincount matrix into a first fusion feature tensor.

7. The digital electroencephalogram (EEG) machine according to claim 6, characterized in that, The EEG signal processor is further configured to perform a first normalization process on the first LFP power feature matrix, the first SBP power feature matrix, and the first ISI-Bincount matrix to obtain a second LFP power feature matrix, a second SBP power feature matrix, and a second ISI-Bincount matrix; the EEG signal processor is further configured to integrate the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix into a first fused feature tensor.

8. The digital electroencephalogram (EEG) machine according to claim 7, characterized in that, The EEG signal processor is also used to extract the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix for each time step based on the time window and the sliding step size, and to concatenate the second LFP power feature matrix, the second SBP power feature matrix, and the second ISI-Bincount matrix for each time step according to the channel and feature dimensions to form a first fusion feature tensor.

9. The digital electroencephalogram (EEG) machine according to claim 1, characterized in that, When the statistics include the global mean and standard deviation, the EEG signal processor is also used to dynamically update the mean and standard deviation of the feature matrix corresponding to each channel; the EEG signal processor is also used to dynamically normalize the first fusion feature tensor based on the updated mean and standard deviation to obtain the second fusion feature tensor.

10. The digital electroencephalogram (EEG) machine according to claim 9, characterized in that, The EEG signal processor is also used to update the mean and standard deviation of the feature matrix corresponding to each channel based on the Welford online algorithm; the EEG signal processor is also used to update the mean and standard deviation of the feature matrix corresponding to each channel based on x norm =(x-μ dynamic ) / (σ dynamic The formula +e) is used to dynamically normalize the feature matrix corresponding to each channel in the first fused feature tensor to obtain the second fused feature tensor, where x norm This represents the dynamically normalized data, where x represents the input data and μ is the input data. dynamic σ represents the dynamically updated mean. dynamic This represents the dynamically updated standard value, and σ dynamic The sum of e and is not zero.

11. The digital electroencephalogram (EEG) machine according to claim 1, characterized in that, The digital electroencephalogram (EEG) machine further includes a sensor unit, a preprocessing unit, and an analog-to-digital converter; the sensor unit is used to acquire analog neural signals from multiple channels for the target object; the preprocessing unit is used to preprocess the analog neural signals from multiple channels; and the analog-to-digital converter is used to convert the preprocessed analog EEG neural signals into digital signals from multiple channels.

12. The digital electroencephalogram (EEG) machine according to claim 11, characterized in that, The preprocessing unit includes a preamplifier and a prefilter; the preamplifier is used to amplify the analog neural signals of the multiple channels; the prefilter is used to filter noise from the amplified analog neural signals.

13. The digital electroencephalogram (EEG) machine according to claim 1, characterized in that, The digital electroencephalogram (EEG) machine further includes a display screen, which is used to display at least one of the following: the operating interface of the digital EEG machine; the digital neural signals of the multiple channels; the visual representation of the first fusion feature tensor and / or the second fusion feature tensor; and the decoding results of the n different dimensions.

14. The digital electroencephalogram (EEG) machine according to claim 13, characterized in that, If the display screen is a touch screen, then the display screen is also used to receive input information generated based on touch operation on the operation interface, and the EEG signal processor is also used to control the decoding of the digital neural signal based on the input information.

15. The digital electroencephalogram (EEG) machine according to claim 1, characterized in that, The digital electroencephalogram (EEG) machine also includes multiple interfaces, including at least one of the following: a sensor interface for detachably connecting a sensor unit; and a data communication interface for connecting to an external device for data communication with the external device.

16. The digital electroencephalogram (EEG) machine according to claim 1, characterized in that, The digital electroencephalogram (EEG) machine also includes a power supply; the power supply is used to power the digital EEG machine.

Citation Information

Cited By

  • Non-contact electromagnetic brain wave physiotherapy method and system

    CN122141126A

  • Non-contact electromagnetic brain wave physiotherapy method and system

    CN122141126B