A method for processing electrophysiological signals
By initializing the data set, mapping timestamps, and upsampling and downsampling in electrophysiological signal acquisition equipment, combined with low-pass filter and other technologies, the efficiency and flexibility problems of traditional equipment in multi-channel data synchronization processing are solved, and multi-channel data synchronization processing is realized. Efficient simultaneous processing and analysis of electrophysiological signals.
Patent Information
- Application Number
- CN202410719477.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-05
AI Technical Summary
Traditional electrophysiological signal acquisition equipment has slow operation speed, poor portability, complex configuration, high price, high power consumption, lack of versatility and flexibility in synchronous multi-channel data acquisition and processing, and is difficult to be compatible with the synchronization of multiple electrophysiological signals. deal with.
By initializing the data set, setting the sampling rate, mapping the timestamp of each electrophysiological signal acquisition device to the time coordinate system of the data set, achieving timing alignment, and processing signal data with different sampling rates through upsampling and downsampling to make it consistent with the data set sampling The rate is consistent, combined with pre-processing technologies such as low-pass filters, and fusion of sampling data from multiple devices to achieve simultaneous processing and visual display of multiple electrophysiological signals.
It achieves timing alignment and data fusion of multiple electrophysiological signal devices, improves computing efficiency and flexibility, and can simultaneously collect and analyze multiple electrophysiological signals, such as EEG, EMG and ECG data, to accurately capture brain area activities. time changes and dynamic interactions.
Smart Images

Figure CN118303887B
Abstract
Description
Technical Field
[0001] The present application relates to the field of signal acquisition and processing, and in particular to an electrophysiological signal processing method. Background Art
[0002] The physiological activities of living organisms will produce diverse and complex bioelectric signals. Collecting and analyzing bioelectric signals to obtain the physiological information contained therein is an effective means of studying life activities and mechanisms. Among them, EEG, EMG and ECG are the three most widely used electrical signals in human bioelectricity. Clinically, the corresponding bioelectric acquisition through electroencephalographs, electromyographs and electrocardiographs has become one of the important means of disease diagnosis; in scientific research, the application of EEG to control prostheses and machinery, and the application of EMG to identify postures and movements are emerging in an endless stream.
[0003] Traditional electrophysiological signal acquisition equipment usually uses daisy chain cascading or independent SPI cascading to achieve synchronous acquisition and processing of multi-channel data, which often affects the computing speed, has very poor portability and complex configuration, is expensive, consumes too much power, and lacks versatility and flexibility. Summary of the invention
[0004] In order to solve the above technical problems, the purpose of the present invention is to provide an electrophysiological signal processing method. The present application is compatible with multiple electrophysiological signal acquisition devices, including electroencephalogram (EEG), cortical potential (ECOG), field potential (LFP), action potential (Spike), electromyography (EMG) and electrocardiogram (ECG). The present application satisfies the requirements of multiple subjects to collect multiple electrophysiological signals at the same time and process them synchronously.
[0005] The technical solution adopted by the present invention is: an electrophysiological signal acquisition method, comprising the following steps:
[0006] Initialize the data set and set the data set sampling rate; wherein the data set is the set composed of the sampling data of all electrophysiological signal acquisition devices;
[0007] Map the timestamp of each electrophysiological signal acquisition device to the time coordinate system of the data set to achieve time alignment;
[0008] Receive the electrophysiological signals collected by each electrophysiological signal acquisition device in the corresponding working mode, and process them into sampling data of the electrophysiological signal acquisition device;
[0009] According to the sampling data of the electrophysiological signal acquisition device, determining the size of the sampling rate of each electrophysiological signal acquisition device and the sampling rate of the data set; and,
[0010] If the sampling rate of the electrophysiological signal acquisition device is lower than the sampling rate of the data set, upsampling the sampled data of the electrophysiological signal acquisition device until the sampling rate of the sampled data is consistent with the sampling rate of the data set;
[0011] If the sampling rate of the electrophysiological signal acquisition device is greater than the sampling rate of the data set, downsampling the sampled data of the electrophysiological signal acquisition device until the sampling rate of the sampled data is consistent with the sampling rate of the data set;
[0012] According to the name of the electrophysiological signal acquisition device, determine whether the electrophysiological signal acquisition device exists in the data set name list, and if so, write the sampling data of each electrophysiological signal acquisition device after the sampling data of the corresponding electrophysiological signal acquisition device in the data set;
[0013] If not, calculate the difference between the timestamp of the sampling data of each electrophysiological signal acquisition device that does not exist in the data set and the starting value of the time coordinate system of the data set, convert the time difference value into seconds, multiply it by the sampling rate of the data set as the number of columns, and the number of channels of the electrophysiological signal acquisition device as the number of rows, and fill 0 at the front of the sampling data of the electrophysiological signal acquisition device, the number of 0s is the number of rows multiplied by the number of columns; then write the sampling data of the electrophysiological signal acquisition device into the corresponding position of the data set;
[0014] Visualize and save the data set data according to its time coordinate system;
[0015] Wherein, the upsampling refers to increasing the sampling rate of the signal. In the upsampling, zero values or other interpolation methods are first inserted into the original signal, and then the signal with zero values inserted is filtered through a low-pass filter to restore the spectrum of the original signal; the sampling rate of the final signal is increased, but the spectrum range remains unchanged;
[0016] Downsampling refers to reducing the sampling rate of a signal. In downsampling, frequency components in the signal that are higher than half of the sampling rate after downsampling are first filtered out through a low-pass filter, and then sampling points at regular intervals are retained and the remaining sampling points are removed, thereby reducing the sampling rate of the signal.
[0017] The name list: a list consisting of the names of all connected electrophysiological signal acquisition devices;
[0018] The total number of channels: the sum of the number of channels of all connected electrophysiological signal acquisition devices;
[0019] The data set sampling rate: the sampling rate is set by the user;
[0020] The time coordinate system: the time coordinate system of the data set;
[0021] The timestamp is the sampling time point of the electrophysiological signal acquisition device;
[0022] The sampling data is a two-dimensional array, in which the number of channels of the behavioral electrophysiological signal acquisition device is listed as the sampling rate of the electrophysiological signal acquisition device. Sampling duration;
[0023] The data set data is a two-dimensional array, where the rows are the total number of channels and the columns are the data set sampling rates. Sampling duration;
[0024] The event marker position: the event marker value and position of all electrophysiological signal acquisition devices.
[0025] Preferably, the number of data columns in the data set increases with the sampling time, and after preprocessing by baseline correction, filtering, and notching, the data set sampling rate, total number of channels, number of sampling points, data set data, amplitude range of each channel signal, starting value of the time coordinate system, and event marker information are written into the file in real time.
[0026] Preferably, the data set is preprocessed by baseline correction, filtering, and notching and then displayed, with the horizontal axis representing time and the vertical axis representing the amplitude of all channels.
[0027] Preferably, the filtering includes one or more of high-pass filtering, low-pass filtering, band-pass filtering, band-stop filtering, wavelet transform, adaptive filtering, and notch filtering.
[0028] Preferably, a high-pass filter removes low-frequency noise and baseline drift, retains high-frequency components, and helps to highlight rapidly changing signals such as event-related potentials.
[0029] Preferably, the low-pass filter removes high-frequency noise and high-frequency interference and retains low-frequency components, which is helpful for analyzing the rhythmic activity of the EEG signal.
[0030] Preferably, the bandpass filter selectively retains signals within a certain frequency range and filters out other frequency components.
[0031] Preferably, the band-stop filter selectively filters out signals within a certain frequency range and retains other frequency components.
[0032] Preferably, the wavelet transform decomposes the signal into scales of different frequencies, and performs filtering by selecting an appropriate scale. The wavelet transform can simultaneously realize analysis in the time domain and the frequency domain.
[0033] Preferably, the adaptive filtering automatically adjusts the filtering parameters according to the characteristics of the signal.
[0034] Preferably, a notch filter is used to remove interference from the AC power line frequency (such as 50 Hz or 60 Hz). In one embodiment, the notch filter is generally designed as a band-stop filter, which can suppress interference components of the signal within a specific frequency range.
[0035] The effective effects of this application:
[0036] This application establishes communication with multiple electrophysiological signal acquisition devices, maps the timestamp to the data set time coordinate system, achieves timing alignment, and solves the data alignment problem by adding 0 to the front of the sampled data of the electrophysiological signal acquisition device. The sampled data of multiple devices are fused at the software level to achieve multi-channel data output.
[0037] It can collect electrophysiological signals from multiple subjects at the same time, convert them into sampling data, analyze and process them, write them into data sets after processing, and visualize and save the data sets.
[0038] This application is compatible with a variety of electrophysiological signal acquisition devices and can simultaneously collect EEG, cortical potential, field potential, action potential, electromyography and ECG data for analysis and processing.
[0039] This application can record the simultaneous activities of multiple brain regions, more accurately measure the temporal changes in brain region activities, better capture the dynamic interactions between brain regions, and more accurately capture the complex cognitive processes of the brain. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 This is a diagram of the data set. DETAILED DESCRIPTION
[0041] In order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.
[0042] A method for processing electrophysiological signals comprises the following steps:
[0043] Initialize the data set and set the data set sampling rate; wherein the data set data is the set composed of the sampling data of all electrophysiological signal acquisition devices;
[0044] Map the timestamp of each electrophysiological signal acquisition device to the time coordinate system of the data set to achieve time alignment;
[0045] Receive the electrophysiological signals collected by each electrophysiological signal acquisition device in the corresponding working mode, and process them into sampling data of the electrophysiological signal acquisition device;
[0046] According to the sampling data of the electrophysiological signal acquisition device, determining the size of the sampling rate of each electrophysiological signal acquisition device and the sampling rate of the data set; and,
[0047] If the sampling rate of the electrophysiological signal acquisition device is lower than the sampling rate of the data set, upsampling the sampled data of the electrophysiological signal acquisition device until the sampling rate of the sampled data is consistent with the sampling rate of the data set;
[0048] If the sampling rate of the electrophysiological signal acquisition device is greater than the sampling rate of the data set, downsampling the sampled data of the electrophysiological signal acquisition device until the sampling rate of the sampled data is consistent with the sampling rate of the data set;
[0049] According to the name of the electrophysiological signal acquisition device, determining whether the electrophysiological signal acquisition device exists in the data set name list, and
[0050] If so, write the sampling data of each electrophysiological signal acquisition device into the data set after the sampling data of the corresponding electrophysiological signal acquisition device;
[0051] If not, calculate the difference between the timestamp of the sampling data of each electrophysiological signal acquisition device that does not exist in the data set and the starting value of the time coordinate system of the data set, convert the time difference value into seconds, multiply it by the sampling rate of the data set, as the number of columns, and the number of channels as the number of rows, and fill 0 at the front of the sampling data of the electrophysiological signal acquisition device, the number of 0s is the number of rows multiplied by the number of columns; then write the sampling data of the electrophysiological signal acquisition device into the corresponding position of the data set;
[0052] Wherein, the upsampling refers to increasing the sampling rate of the signal. In the upsampling, zero values or other interpolation methods are first inserted into the original signal, and then the signal with zero values inserted is filtered through a low-pass filter to restore the spectrum of the original signal; the sampling rate of the final signal is increased, but the spectrum range remains unchanged;
[0053] Downsampling refers to reducing the sampling rate of a signal. In downsampling, frequency components in the signal that are higher than half of the sampling rate after downsampling are first filtered out through a low-pass filter, and then sampling points at regular intervals are retained and the remaining sampling points are removed, thereby reducing the sampling rate of the signal.
[0054] In one embodiment, the name list: a list consisting of the names of all connected electrophysiological signal acquisition devices;
[0055] The total number of channels: the sum of the number of channels of all connected electrophysiological signal acquisition devices;
[0056] The data set sampling rate: the sampling rate is set by the user;
[0057] The time coordinate system: the time coordinate system of the data set;
[0058] The timestamp is the sampling time point of the electrophysiological signal acquisition device;
[0059] The sampling data is a two-dimensional array, in which the number of channels of the behavioral electrophysiological signal acquisition device is listed as the sampling rate of the electrophysiological signal acquisition device. Sampling duration;
[0060] The data set data is a two-dimensional array, where the rows are the total number of channels and the columns are the data set sampling rates. Sampling duration;
[0061] The event marker bit: the event marker value and position of all connected electrophysiological signal acquisition devices.
[0062] In one embodiment, as shown in the figure, there are n electrophysiological signal acquisition devices, and the electrophysiological signal sampling data of each device is an array, where the number of rows is the number of channels of the device, and the number of columns is the sampling points, that is, the sampling rate of each electrophysiological signal acquisition device Sampling duration;
[0063] Padding with 0: The number of rows filled with 0 is the number of channels of the electrophysiological signal acquisition device, and the number of columns filled with 0 is the difference between the timestamp of the sampling data of the electrophysiological signal acquisition device and the starting time of the time coordinate system of the data set. The time difference unit is converted to seconds and multiplied by the sampling rate of the data set;
[0064] Establish communication with n electrophysiological signal acquisition devices, map the timestamp to the time coordinate system of the data set, sort the devices from 1 to n according to the order in which the sampling data is received, and write them into the name list in sequence. The timestamp of the first group of sampling data of the electrophysiological signal sampling data of device 1 is used as the starting value of the time coordinate system, and the sampling data of other devices are "filled with 0" and written into the data set in sequence. After stopping receiving data, the sampling point where the data set is complete is the end of the data set.
[0065] In one embodiment, the data set is preprocessed by baseline correction, filtering, and notching and then displayed, with the horizontal axis representing time and the vertical axis representing the amplitude of all channels.
[0066] In one embodiment, a high-pass filter removes low-frequency noise and baseline drift, retains high-frequency components, and helps highlight rapidly changing signals such as event-related potentials.
[0067] In one embodiment, the low-pass filter removes high-frequency noise and high-frequency interference and retains low-frequency components, which is helpful for analyzing the rhythmic activity of the EEG signal.
[0068] In one embodiment, the bandpass filter selectively retains signals within a certain frequency range and filters out other frequency components.
[0069] In one embodiment, the band-stop filter selectively filters out signals within a certain frequency range and retains other frequency components.
[0070] In one embodiment, the wavelet transform decomposes the signal into different frequency scales, and performs filtering by selecting an appropriate scale. The wavelet transform can simultaneously perform analysis in the time domain and the frequency domain.
[0071] In one embodiment, the adaptive filtering automatically adjusts the filtering parameters according to the characteristics of the signal.
[0072] In one embodiment, a notch filter is used to remove interference from the AC power line frequency (such as 50 Hz or 60 Hz). In one embodiment, the notch filter is generally designed as a band-stop filter, which can suppress interference components of the signal within a specific frequency range.
[0073] In one embodiment, the data set sampling rate, the total number of channels, the number of sampling points, the data set data, the amplitude range of each channel signal, the starting value of the time coordinate system, and the event marker information are written into the file in real time.
[0074] The above is a description of the preferred implementation of the present application, which is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for processing electrophysiological signals, characterized in that: The steps include: 1) Initializing the data set and setting the data set sampling rate; wherein the data set is the set consisting of the sampling data of all electrophysiological signal acquisition devices; 2) Map the timestamp of each electrophysiological signal acquisition device to the time coordinate system of the data set to achieve time alignment; 3) Receive the electrophysiological signals collected by each electrophysiological signal acquisition device in the corresponding working mode, and process them into sampling data of the electrophysiological signal acquisition device; 4) judging the size of the sampling rate of each electrophysiological signal acquisition device and the sampling rate of the data set according to the sampling data of the electrophysiological signal acquisition device; and, If the sampling rate of the electrophysiological signal acquisition device is lower than the sampling rate of the data set, upsampling the sampled data of the electrophysiological signal acquisition device until the sampling rate of the electrophysiological signal acquisition device is consistent with the sampling rate of the data set; If the sampling rate of the electrophysiological signal acquisition device is greater than the sampling rate of the data set, downsampling the sampled data of the electrophysiological signal acquisition device until the sampling rate of the electrophysiological signal acquisition device is consistent with the sampling rate of the data set; 5) According to the name of the electrophysiological signal acquisition device, determine whether the electrophysiological signal acquisition device exists in the data set name list, and if so, write the sampling data of each electrophysiological signal acquisition device after the sampling data of the corresponding electrophysiological signal acquisition device in the data set; If not, calculate the difference between the timestamp of the sampling data of each electrophysiological signal acquisition device that does not exist in the data set and the starting value of the time coordinate system of the data set, convert the time difference value unit into seconds, multiply it by the sampling rate of the data set as the number of columns, and the number of channels of the electrophysiological signal acquisition device as the number of rows, and fill 0 at the front of the sampling data of the electrophysiological signal acquisition device, the number of 0s is the number of rows multiplied by the number of columns; then write the sampling data of the electrophysiological signal acquisition device into the corresponding position of the data set; 6) Visualize and save the data set data according to its time coordinate system; Among them, it also includes an event marker bit, which is the event marker value and position of all electrophysiological signal acquisition devices; The name list: a list consisting of the names of all connected electrophysiological signal acquisition devices; The sampling data is a two-dimensional array, in which the number of channels of the behavioral electrophysiological signal acquisition device is listed as the sampling rate*sampling duration of the electrophysiological signal acquisition device; The data set data is a two-dimensional array, where the rows are the total number of channels and the columns are the data set sampling rate*sampling duration; The total number of channels: the sum of the number of channels of all connected electrophysiological signal acquisition devices; The data set sampling rate: the sampling rate is set by the user; The time coordinate system: the time coordinate system of the data set; The timestamp is the sampling time point of the electrophysiological signal acquisition device; Upsampling refers to increasing the sampling rate of a signal. In upsampling, zero values or other interpolation methods are first inserted into the original signal, and then the signal with zero values inserted is filtered through a low-pass filter to restore the spectrum of the original signal. The final signal sampling rate is increased, but the spectrum range remains unchanged; Downsampling refers to reducing the sampling rate of a signal. In downsampling, frequency components in the signal that are higher than half of the sampling rate after downsampling are first filtered out through a low-pass filter, and then sampling points at regular intervals are retained and the remaining sampling points are removed, thereby reducing the sampling rate of the signal.
2. The electrophysiological signal processing method according to claim 1, characterized in that: The data set is preprocessed by baseline correction, filtering, and notching and then displayed. The horizontal axis is time and the vertical axis is the amplitude of all channels.
3. The electrophysiological signal processing method according to claim 2, characterized in that: The filtering includes one or more of high-pass filtering, low-pass filtering, band-pass filtering, band-stop filtering, wavelet transform, adaptive filtering, and notch filtering.
Citation Information
Patent Citations
Segmental variable repeat frequency model sampling uniformity digital processing method and device
CN107870330A
Multi-channel electroencephalogram and myoelectricity coupling analysis-oriented multivariate global synchronization index method
CN115474945A
Multi-device multi-physiological parameter synchronization device and method and offline acquisition device and method
CN116991200A
Single-device multi-physiological parameter synchronization method, acquisition system and data alignment method
CN116991201A
