CN114305429B - Electrode cap for synchronizing transcranial direct current stimulation signal and brain electrical signal and testing method - Google Patents

Electrode cap for synchronizing transcranial direct current stimulation signal and brain electrical signal and testing method Download PDF

Info

Publication number
CN114305429B
CN114305429B CN202210021772.8A CN202210021772A CN114305429B CN 114305429 B CN114305429 B CN 114305429B CN 202210021772 A CN202210021772 A CN 202210021772A CN 114305429 B CN114305429 B CN 114305429B
Authority
CN
China
Prior art keywords
stimulation
signal
time delay
time
electroencephalogram
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210021772.8A
Other languages
Chinese (zh)
Other versions
CN114305429A (en
Inventor
周瑾
陈品红
王常勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Academy of Military Medical Sciences AMMS of PLA
Original Assignee
Academy of Military Medical Sciences AMMS of PLA
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Academy of Military Medical Sciences AMMS of PLA filed Critical Academy of Military Medical Sciences AMMS of PLA
Priority to CN202210021772.8A priority Critical patent/CN114305429B/en
Publication of CN114305429A publication Critical patent/CN114305429A/en
Application granted granted Critical
Publication of CN114305429B publication Critical patent/CN114305429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to an electrode cap for synchronizing transcranial direct current stimulation signals and brain electrical signals and a testing method, wherein the electrode cap comprises the following components: the device comprises an input device, a stimulation signal generating device, an electroencephalogram signal acquisition device, a time synchronization device, a stimulation electrode, an acquisition electrode and a reference signal generating device; the input device is respectively connected with the electroencephalogram signal acquisition device, the stimulation signal generation device and the reference signal generation device; the time synchronization device is respectively connected with the stimulation signal generation device, the electroencephalogram signal acquisition device and the reference signal generation device; the stimulation signal generating device is also connected with the stimulation electrode; the electroencephalogram signal acquisition device is also connected with an acquisition electrode; the invention eliminates the time difference between the implementation of the electric stimulation and the acquisition of the brain electrical signals while acquiring the corresponding brain electrical signals under certain electric stimulation, improves the accuracy of the corresponding brain electrical signals under certain electric stimulation, and ensures that the test result of the invention is more accurate.

Description

Electrode cap for synchronizing transcranial direct current stimulation signal and brain electrical signal and testing method
Technical Field
The invention relates to the technical field of electrode caps for testing, in particular to an electrode cap for synchronizing a transcranial direct current stimulation signal and an electroencephalogram signal and a testing method.
Background
Transcranial direct current stimulation (transcranial direct current stimulation, tDCS) is a non-invasive technique that uses weak currents (1-2 mA) to regulate cerebral cortical neuronal activity. The brain cortex is acted on with a weak polarized direct current by two electrodes placed on the scalp. The transcranial direct current stimulation can restore and stimulate the functions of various nerves, relieve intractable neuropathic pain, restore consciousness, change the brain electrical signals of a tested object and restore the functions of the body functions of the tested object. Therefore, research on the effect of transcranial direct current stimulation on the change of brain electrical signals has important medical significance.
In a specific test process of the current electrode cap, a stimulation signal is firstly applied to a brain cortex corresponding to a tested object, then an electroencephalogram signal of the tested object is collected, and finally the collected electroencephalogram signal is processed offline. However, the electrode cap causes a change of the brain electrical signal corresponding to the tested from outputting the stimulation signal to the stimulation signal, and the process needs to take a certain time, so that a time difference exists between the output time of the transcranial direct current stimulation signal of the related technology and the acquisition time of the brain electrical signal corresponding to the stimulation signal, the brain electrical signal acquired by the related technology does not correspond to the output stimulation signal, and the accuracy of the test result of the related technology is low.
Disclosure of Invention
Therefore, an electrode cap and a testing method for synchronizing a transcranial direct current stimulation signal and an electroencephalogram signal are provided, so that the problem that an electroencephalogram signal acquired by a related technology does not correspond to an output stimulation signal and the accuracy of a testing result is low is solved.
The invention adopts the following technical scheme:
in a first aspect, the present invention provides an electrode cap for synchronizing a transcranial direct current stimulation signal with an electroencephalogram signal, comprising: the device comprises an input device, a stimulation signal generating device, an electroencephalogram signal acquisition device, a time synchronization device, a stimulation electrode, an acquisition electrode and a reference signal generating device;
the input device is respectively connected with the electroencephalogram signal acquisition device, the stimulation signal generation device and the reference signal generation device; the time synchronization device is respectively connected with the stimulation signal generation device, the electroencephalogram signal acquisition device and the reference signal generation device; the stimulation signal generating device is also connected with the stimulation electrode; the electroencephalogram signal acquisition device is also connected with the acquisition electrode;
the stimulating electrode is used for connecting an external brain and the reference signal generating device; the acquisition electrode is used for connecting the external brain; the time synchronization device is used for synchronizing the time of each device connected with the time synchronization device;
when the input device acquires a first stimulation parameter according to a first setting operation of a user, the first stimulation parameter is sent to the stimulation signal generating device and the reference signal generating device, the stimulation signal generating device sends a first stimulation signal to the reference signal generating device according to the first stimulation parameter, the reference signal generating device generates a reference signal when receiving the first stimulation signal, the reference signal generating device acquires a first time delay sent by the stimulation signal generating device, determines a second time delay according to the first stimulation signal and the reference signal, acquires a prestored third time delay, performs summation operation on the first time delay, the second time delay and the third time delay, acquires a fixed time delay, and sends the fixed time delay to the electroencephalogram signal acquisition device; the first time delay is the time delay corresponding to the process from the time when the input device acquires the first stimulation parameter to the time when the stimulation signal generating device sends the first stimulation signal; the second time delay is the time delay corresponding to the process from the time when the stimulation signal generator sends the stimulation signal to the time when the stimulation signal acts on the external brain; the third time delay is the time delay corresponding to the process that the stimulation signal acts on the external brain and causes the change of the brain electrical signal of the external brain; the third time delay is a known value and is stored in a storage device of the electrode cap in advance;
when the input device acquires a second stimulation parameter according to a second setting operation of a user, the stimulation signal generating device outputs a second stimulation signal to the external brain through the stimulation electrode, meanwhile, the electroencephalogram signal acquisition device acquires the electroencephalogram signal of the external brain through the acquisition electrode, and determines a target electroencephalogram signal corresponding to the second stimulation signal in the electroencephalogram signal according to the fixed time delay.
Preferably, the electroencephalogram signal acquisition device is also connected with the stimulation signal generation device;
the electroencephalogram signal acquisition device is also used for judging whether the stimulation process deviates from a preset stimulation aim according to the target electroencephalogram signal, and sending the characteristic information of the target electroencephalogram signal to the stimulation signal generation device when judging that the stimulation process deviates from the preset stimulation aim;
the stimulation signal generating device is also used for adjusting the stimulation parameters according to the characteristic information of the target brain electrical signals.
Preferably, the stimulating electrode is further connected to the reference signal generating means.
Preferably, the input device is a keyboard, a mouse or an intelligent display screen.
In a second aspect, the present invention also provides a method for testing synchronization of a transcranial direct current stimulation signal and an electroencephalogram signal, which is applied to the electrode cap for synchronizing a transcranial direct current stimulation signal and an electroencephalogram signal as described above, and includes:
the time in the synchronous stimulation signal generation device, the electroencephalogram signal acquisition device and the reference signal generation device;
determining a fixed time delay; the fixed time delay is the time delay corresponding to the process from the time when the input device of the electrode cap acquires the first stimulation parameter to the time when the first stimulation signal acts on the external brain connected with the electrode cap to cause the change of the brain electrical signal of the external brain;
outputting a second stimulation signal to the external brain, and simultaneously collecting brain electrical signals of the external brain;
and determining a target brain electrical signal corresponding to the second stimulation signal from the brain electrical signals according to the fixed time delay.
Preferably, the fixed delay includes: a first delay, a second delay, and a third delay;
the first time delay is the time delay corresponding to the process from the time when the input device acquires the first stimulation parameter to the time when the stimulation signal generating device sends the first stimulation signal;
the second time delay is the time delay corresponding to the process from the time when the stimulation signal generator sends the stimulation signal to the time when the stimulation signal acts on the external brain;
the third time delay is the time delay corresponding to the process that the stimulation signal acts on the external brain and causes the change of the brain electrical signal of the external brain; the third time delay is a known value and is stored in a storage device of the electrode cap in advance;
the determining a fixed time delay includes:
acquiring a time length used by the stimulation signal generating device for executing a test instruction, and defining the time length as the first time delay; the test instruction is an instruction comprising the first stimulation parameter;
determining a second time delay according to the first stimulation signal and a reference signal based on a time-based deblurring algorithm and a dynamic digital correlation algorithm; the reference signal is generated by the reference signal generating device according to the first stimulation parameter when the first stimulation signal is received;
and carrying out summation operation on the first time delay, the second time delay and the third time delay to obtain the fixed time delay.
Preferably, the second stimulation parameters corresponding to the second stimulation signals include stimulation frequency, current intensity, stimulation duration, stimulation waveform and stimulation purpose.
Preferably, after determining the target electroencephalogram signal corresponding to the second stimulation signal in the electroencephalogram signals according to the fixed time delay, the method for testing synchronization of the transcranial direct current stimulation signal and the electroencephalogram signals further comprises:
judging whether the stimulation process deviates from the stimulation purpose according to the target brain electrical signal;
and when the stimulation process deviates from the stimulation purpose, adjusting the second stimulation parameters according to the characteristic information of the target brain electrical signals.
Preferably, when the stimulation process deviates from the stimulation purpose, the test method for synchronizing the transcranial direct current stimulation signal and the electroencephalogram signal according to the present invention further comprises:
calculating signal intensity data of the characteristic information;
determining the characteristic information with the maximum signal intensity according to the signal intensity data;
and defining a second stimulation parameter corresponding to the characteristic information with the maximum signal intensity as a suboptimal stimulation parameter.
Preferably, before the time in the synchronous stimulation signal generating device, the electroencephalogram signal collecting device and the reference signal generating device, the method for testing the synchronization of the transcranial direct current stimulation signal and the electroencephalogram signal further comprises the following steps:
obtaining an impedance value between the stimulation electrode and the external brain;
and displaying the impedance value so that a detector can judge whether poor contact exists between the stimulation electrode and the external brain according to the impedance value.
The invention adopts the technical proposal, and an electrode cap for synchronizing transcranial direct current stimulation signals and brain electrical signals comprises: the device comprises an input device, a stimulation signal generating device, an electroencephalogram signal acquisition device, a time synchronization device, a stimulation electrode, an acquisition electrode and a reference signal generating device; the input device is respectively connected with the electroencephalogram signal acquisition device, the stimulation signal generation device and the reference signal generation device; the time synchronization device is respectively connected with the stimulation signal generation device, the electroencephalogram signal acquisition device and the reference signal generation device; the stimulation signal generating device is also connected with the stimulation electrode; the electroencephalogram signal acquisition device is also connected with the acquisition electrode; the stimulating electrode is used for connecting an external brain and the reference signal generating device; the acquisition electrode is used for connecting the external brain; the time synchronization device is used for synchronizing the time of each device connected with the time synchronization device; when the input device acquires a first stimulation parameter according to a first setting operation of a user, the first stimulation parameter is sent to the stimulation signal generating device and the reference signal generating device, the stimulation signal generating device sends a first stimulation signal to the reference signal generating device according to the first stimulation parameter, the reference signal generating device generates a reference signal when receiving the first stimulation signal, the reference signal generating device acquires a first time delay sent by the stimulation signal generating device, determines a second time delay according to the first stimulation signal and the reference signal, acquires a prestored third time delay, performs summation operation on the first time delay, the second time delay and the third time delay, acquires a fixed time delay, and sends the fixed time delay to the electroencephalogram signal acquisition device; the first time delay is the time delay corresponding to the process from the time when the input device acquires the first stimulation parameter to the time when the stimulation signal generating device sends the first stimulation signal; the second time delay is the time delay corresponding to the process from the time when the stimulation signal generator sends the stimulation signal to the time when the stimulation signal acts on the external brain; the third time delay is the time delay corresponding to the process that the stimulation signal acts on the external brain and causes the change of the brain electrical signal of the external brain; the third time delay is a known value and is stored in a storage device of the electrode cap in advance; when the input device acquires a second stimulation parameter according to a second setting operation of a user, the stimulation signal generating device outputs a second stimulation signal to the external brain through the stimulation electrode, meanwhile, the electroencephalogram signal acquisition device acquires the electroencephalogram signal of the external brain through the acquisition electrode, and determines a target electroencephalogram signal corresponding to the second stimulation signal in the electroencephalogram signal according to the fixed time delay.
The invention has the beneficial effects that the time of the three devices is on the same time standard through the time of the stimulation signal generating device, the electroencephalogram signal acquisition device and the reference signal generating device in the synchronous electrode cap, then, the time of the input device is calculated to acquire the stimulation parameters until the stimulation signal acts on the external brain to cause the change of the electroencephalogram signal of the external brain, the time delay corresponding to the process is finally found out from the acquired electroencephalogram signals according to the fixed time delay, so that the invention acquires the corresponding electroencephalogram signal under certain electrical stimulation, simultaneously, the time difference between the implementation of the electrical stimulation and the acquisition of the electroencephalogram signal is eliminated, the accuracy of the corresponding electroencephalogram signal under certain electrical stimulation is improved, and the test result of the invention is more accurate.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an electrode cap for synchronizing a transcranial direct current stimulation signal with an electroencephalogram signal according to an embodiment of the present invention;
fig. 2 is a schematic circuit diagram of a stimulus signal generating device according to an embodiment of the present invention;
fig. 3 is a schematic circuit diagram of an electroencephalogram signal acquisition device according to an embodiment of the present invention;
fig. 4 is a flow chart of a method for testing synchronization of a transcranial direct current stimulation signal and an electroencephalogram signal according to an embodiment of the present invention;
fig. 5 is a schematic block diagram of a stimulus delay time measurement according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, based on the examples herein, which are within the scope of the invention as defined by the claims, will be within the scope of the invention as defined by the claims.
Fig. 1 is a schematic structural diagram of an electrode cap for synchronizing a transcranial direct current stimulation signal with an electroencephalogram signal according to an embodiment of the present invention. As shown in fig. 1, the electrode cap for synchronizing the transcranial direct current stimulation signal and the brain electrical signal according to the present embodiment includes: input device 11, stimulation signal generation device 12, brain signal acquisition device 13, time synchronization device 14, stimulation electrode 15, acquisition electrode 16 and reference signal generation device 17.
Wherein the input device 11 is respectively connected with the electroencephalogram signal acquisition device 13, the stimulation signal generation device 12 and the reference signal generation device 17; the time synchronization device 14 is respectively connected with the stimulation signal generation device 12, the electroencephalogram signal acquisition device 13 and the reference signal generation device 17; the stimulation signal generating device 12 is also connected with the stimulation electrode 15; the electroencephalogram signal acquisition device 13 is also connected with the acquisition electrode 16.
In a specific application process, the stimulating electrode is used for connecting an external brain and the reference signal generating device; the acquisition electrode is used for connecting the external brain.
After the time synchronization device synchronizes the time of each device connected with the time synchronization device, when the input device acquires a first stimulation parameter according to a first setting operation of a user, the first stimulation parameter is sent to the stimulation signal generating device and the reference signal generating device, the stimulation signal generating device sends a first stimulation signal to the reference signal generating device according to the first stimulation parameter, when the reference signal generating device receives the first stimulation signal, the reference signal generating device generates a reference signal, the reference signal generating device acquires the first time delay sent by the stimulation signal generating device, determines a second time delay according to the first stimulation signal and the reference signal, acquires a prestored third time delay, performs summation operation on the first time delay, the second time delay and the third time delay, and obtains a fixed time delay, and the fixed time delay is sent to the electroencephalogram signal acquisition device; the first time delay is the time delay corresponding to the process from the time when the input device acquires the first stimulation parameter to the time when the stimulation signal generating device sends the first stimulation signal; the second time delay is the time delay corresponding to the process from the time when the stimulation signal generator sends the stimulation signal to the time when the stimulation signal acts on the external brain; the third time delay is the time delay corresponding to the process that the stimulation signal acts on the external brain and causes the change of the brain electrical signal of the external brain; the third time delay is a known value and is stored in the storage device of the electrode cap in advance.
And then, when the input device acquires a second stimulation parameter according to a second setting operation of a user, the stimulation signal generating device outputs a second stimulation signal to the external brain through the stimulation electrode, and meanwhile, the electroencephalogram signal acquisition device acquires the electroencephalogram signal of the external brain through the acquisition electrode and determines a target electroencephalogram signal corresponding to the second stimulation signal from the electroencephalogram signal according to the fixed time delay.
Specifically, the input device may be a keyboard, a mouse, or an intelligent display screen, which can be implemented in the prior art. Fig. 2 is a schematic circuit diagram of a stimulus signal generating device according to an embodiment of the present invention. As shown in fig. 2, the stimulation signal generating device of the present embodiment includes a first controller 21, a digital-to-analog converter 22, and a constant current circuit 23, and the digital-to-analog converter 22 is connected to the first controller 21 and the constant current circuit 23, respectively. The constant current source can protect the brain epidermis from being damaged by the electrical stimulation signal.
The circuit configuration of the stimulation signal generating device 12 and the reference signal generating device 17 is similar, and they are basically all signal generating devices.
Fig. 3 is a schematic circuit diagram of an electroencephalogram signal acquisition device according to an embodiment of the present invention. As shown in fig. 3, the electroencephalogram signal acquisition device of the present embodiment includes a second controller 31, an ADS1299 analog-to-digital converter 32, an amplifying circuit 33, a filtering circuit 34, and an acquisition circuit 35, and the connection relationship of the components is shown in fig. 3.
It should be noted that the first controller and the second controller may be a DSP, an FPGA, or an ARM in the prior art.
The time synchronization device is a device with a built-in clock source, and can be used as the time synchronization device in the application in the prior art.
The method has the advantages that the time of the stimulation signal generation device, the electroencephalogram signal acquisition device and the reference signal generation device in the electrode cap is synchronized, so that the time of the stimulation signal generation device, the electroencephalogram signal acquisition device and the reference signal generation device is on the same time standard, then, the time difference between the implementation of electrical stimulation excitation and the acquisition of the electroencephalogram signals is eliminated, the accuracy of the corresponding electroencephalogram signals under certain electrical stimulation is improved, and the test result of the method is more accurate by calculating the time delay corresponding to the process when the stimulation signal acts on the external brain to cause the change of the electroencephalogram signals of the external brain and finally finding the target electroencephalogram signal corresponding to the stimulation signal in the acquired electroencephalogram signals according to the fixed time delay.
Preferably, the electroencephalogram signal acquisition device is also connected with the stimulation signal generation device;
the electroencephalogram signal acquisition device is also used for judging whether the stimulation process deviates from a preset stimulation aim according to the target electroencephalogram signal, and sending the characteristic information of the target electroencephalogram signal to the stimulation signal generation device when judging that the stimulation process deviates from the preset stimulation aim;
the stimulation signal generating device is also used for adjusting the stimulation parameters according to the characteristic information of the target brain electrical signals.
Preferably, the stimulating electrode is further connected with the reference signal generating device, so that a user only needs to connect the stimulating electrode with a tested object in the actual use process, the stimulating electrode does not need to be connected with the reference signal generating device, and the user can conveniently use the device.
Based on a general inventive concept, the invention also provides a method for testing the synchronization of the transcranial direct current stimulation signal and the brain electrical signal, which is applied to the electrode cap for synchronizing the transcranial direct current stimulation signal and the brain electrical signal.
Fig. 4 is a flow chart of a method for testing synchronization of a transcranial direct current stimulation signal and an electroencephalogram signal according to an embodiment of the present invention. As shown in fig. 4, the method for testing synchronization of the transcranial direct current stimulation signal and the electroencephalogram signal according to the present embodiment includes:
s401, synchronizing time in the stimulation signal generating device, the electroencephalogram signal acquisition device and the reference signal generating device.
Specifically, a high-precision clock source is arranged in the time synchronization device and used for synchronizing the time in the stimulation signal generation device, the electroencephalogram signal acquisition device and the reference signal generation device, and the time in the stimulation signal generation device, the electroencephalogram signal acquisition device and the reference signal generation device is unified on a time reference.
S402, determining fixed time delay; the fixed time delay is the time delay corresponding to the process from the time when the input device of the electrode cap acquires the first stimulation parameter to the time when the first stimulation signal acts on the external brain connected with the electrode cap to cause the change of the brain electrical signal of the external brain.
In detail, the fixed delay includes: a first delay, a second delay, and a third delay; the first time delay is the time delay corresponding to the process from the time when the input device acquires the first stimulation parameter to the time when the stimulation signal generating device sends the first stimulation signal; the second time delay is the time delay corresponding to the process from the time when the stimulation signal generator sends the stimulation signal to the time when the stimulation signal acts on the external brain; the third time delay is the time delay corresponding to the process that the stimulation signal acts on the external brain and causes the change of the brain electrical signal of the external brain; the third time delay is a known value and is stored in the storage device of the electrode cap in advance.
In a specific fixed time delay calculation process, the stimulation signal generating device includes a controller (such as DSP, FPGA, ARM), so the first time delay may be obtained by measuring the time by the controller of the stimulation signal generating device according to the instruction of the stimulation signal generating device, and then the stimulation signal generating device sends the first time delay to the reference signal generating device.
After the time synchronization device synchronizes the time of each device connected with the time synchronization device, when the input device acquires a first stimulation parameter according to a first setting operation of a user, the first stimulation parameter is sent to the stimulation signal generating device and the reference signal generating device, the stimulation signal generating device sends a first stimulation signal to the reference signal generating device according to the first stimulation parameter, and when the reference signal generating device receives the first stimulation signal, the reference signal generating device generates a reference signal. Based on the method, a determination process for determining the second time delay according to the first stimulation signal and the reference signal based on a time disambiguation algorithm and a dynamic digital correlation algorithm is as follows:
1. the reference signal generating device is used for outputting double-frequency signals f1 and f2, the stimulation signal generating device is used for outputting double-frequency signals f2 'and f2' with the same frequency, and the double-frequency signals can be sine waves or square waves;
2. cross-correlating the signal f1 with the signal f1', the signal f2 with the signal f 2';
3. solving time r1 corresponding to a phase difference d1 between the signal f1 and the signal f1 'and time r2 corresponding to a phase difference d2 between the signal f2 and the signal f 2'; the signals f1 and f1', the signals f2 and f2' have integral multiple wavelength delay, and time ambiguity exists;
assuming that the frequency is f, the relationship between the phase difference d and the time r is r= (1/f) d/(2 pi);
wherein Pi is the circumference ratio;
4. and carrying out a time solution fuzzy algorithm by using the frequency relation ratio between the double-frequency signals f1 and f2 as N/M, wherein N and M are prime relation, and simultaneous equations are:
a*T1+r1=b*T2+r2
wherein, T1 is the period of the double-frequency signal f1, T2 is the period of the double-frequency signal f1, r2, N/M are known quantities, f1: f2 =1/T1: 1/t2=n: m, T2: t1=n: m;
the simultaneous equation yields:
a-b*N/M=(r2-r1)/T1
since N and M are prime numbers with respect to each other, the unique values of a and b can be found to find the second time delay t2=a×t1+r1 from the generation of the first stimulus signal by the stimulus signal generating means to the input of the first stimulus signal to the reference signal generating means.
The solving process of r1 and r2 is as follows:
1. the stimulation signal generating device generates a sinusoidal signal with frequency f1, and the sinusoidal signal is transmitted to the stimulation electrode;
2. overlapping N/2 point segmentation is carried out on the electric stimulation signals at the stimulation electrode, then N point FFT operation is carried out, and complex conjugation is carried out on FFT results to obtain A1;
3. the reference signal generating device generates a local reference signal, the phase of the reference signal is 0 degrees, N/2 point local reference signals are taken, N/2 0 points are complemented, and then N point FFT operation is carried out to obtain A2;
4. multiplying A1 and A2 in a frequency domain, then performing IFFT, performing accumulated average on the result of the IFFT, and if the step is the first entry, recording the maximum point of the initial frequency spectrum; if the step is not the first entry, updating the maximum point of the frequency spectrum;
5. the reference signal generating device generates a local reference signal with a phase progressive step length of 360 degrees/p;
6. repeating the steps S502-S505, and finding out the phase d1 of the reference signal generating device corresponding to the maximum point of the frequency spectrum;
7. the stimulation signal generating device generates a sinusoidal signal with frequency f2, and the sinusoidal signal is transmitted to the stimulation electrode;
8. repeating the steps S502-S505, and finding out the phase d2 of the reference signal generating device corresponding to the maximum point of the frequency spectrum;
9. corresponding delay times r1 and r2 are obtained according to d1 and d 2.
After the first time delay, the second time delay and the third time delay are obtained, summing the first time delay, the second time delay and the third time delay to obtain the fixed time delay, wherein the parameter formula of the fixed time delay is as follows:
t=t1+t2+t3=t1+a*T1+r1+t3
wherein t1 is a first delay; t2 is the second delay and t3 is the third delay.
S403, outputting a second stimulation signal to the external brain, and simultaneously collecting an electroencephalogram signal of the external brain.
And after the fixed time delay is obtained, the fixed time delay is sent to an electroencephalogram signal acquisition device. Then, the input device acquires the stimulation frequency, the current intensity, the stimulation duration, the stimulation waveform form (pulse, sine, biphasic T-shaped wave) and the stimulation purpose (such as relieving tension emotion and pain) according to the second setting operation of the user, and synchronously performs an electric stimulation process and an electroencephalogram signal acquisition process.
S404, determining a target brain electrical signal corresponding to the second stimulation signal from the brain electrical signals according to the fixed time delay.
Specifically, the electroencephalogram signal acquisition device calculates a starting point position of an electroencephalogram signal event under the electrical stimulation according to fixed time delay, and then performs characteristic analysis on the electroencephalogram signal to obtain characteristics of the electroencephalogram signal, wherein the characteristics of the electroencephalogram signal comprise delta wave, theta wave, alpha wave, beta wave and gamma wave.
Preferably, after determining the target electroencephalogram signal corresponding to the second stimulation signal in the electroencephalogram signals according to the fixed time delay, the method for testing synchronization of the transcranial direct current stimulation signal and the electroencephalogram signals further comprises:
judging whether the stimulation process deviates from the stimulation purpose according to the target brain electrical signal;
and when the stimulation process deviates from the stimulation purpose, adjusting the second stimulation parameters according to the characteristic information of the target brain electrical signals.
Specifically, whether the stimulation process deviates from the stimulation purpose is judged according to the characteristics of the brain electrical signals, if so, the stimulation parameters are adjusted in the opposite direction, and new electrical stimulation is applied to the tested object, so that the stimulation effect is adjusted in real time. For example, the purpose of stimulation is to strengthen the delta wave signal, if the analyzed brain signal characteristics indicate that the delta wave signal is not strengthened, indicating that the stimulation direction is incorrect, the stimulation parameters (stimulation frequency, current intensity, stimulation duration and stimulation waveform) are adjusted, and whether the intensity of the delta wave signal in the brain signal characteristics corresponding to the stimulation signals after the adjustment parameters are strengthened is analyzed again.
Preferably, when the stimulation process deviates from the stimulation purpose, the test method for synchronizing the transcranial direct current stimulation signal and the electroencephalogram signal according to the present invention further comprises:
calculating signal intensity data of the characteristic information;
determining the characteristic information with the maximum signal intensity according to the signal intensity data;
and defining a second stimulation parameter corresponding to the characteristic information with the maximum signal intensity as a suboptimal stimulation parameter.
Preferably, before the time in the synchronous stimulation signal generating device, the electroencephalogram signal collecting device and the reference signal generating device, the method for testing the synchronization of the transcranial direct current stimulation signal and the electroencephalogram signal further comprises the following steps:
obtaining an impedance value between the stimulation electrode and the external brain;
and displaying the impedance value so that a detector can judge whether poor contact exists between the stimulation electrode and the external brain according to the impedance value.
Fig. 5 is a schematic block diagram of a stimulus delay time measurement according to an embodiment of the present invention. As shown in fig. 5, a) shows that the delay time between the time signal sequences x1 (t) and x2 (t) in the graph a) is 0, the sequences x1 (t) and x2 (t) are cross-correlated in the time domain to obtain a sequence a (t), and the maximum peak value occurs at the 0 point amplitude of the time, which means that the delay time between x1 (t) and x2 (t) is 0; b) In the figure, the delay time between the time signal sequences x1 (t) and x2 (t) is t1, the sequences x1 (t) and x2 (t) are subjected to cross-correlation in the time domain to obtain a sequence A (t), the maximum peak value occurs at the t1 point in time, the delay time between x1 (t) and x2 (t) is represented as t1, the delay time of the two sequences can be obtained by utilizing the principle, wherein x1 (t) is generated by a stimulation signal generating device, x2 (t) is generated by a reference signal generating device, and the delay time from a stimulation signal to a stimulation electrode can be obtained by carrying out cross-correlation on signals generated by the two signals.
It should be noted that, the present embodiment and the above embodiments have the same or corresponding implementation processes and beneficial effects based on a general inventive concept, and are not described herein again.
It is to be understood that the same or similar parts in the above embodiments may be referred to each other, and that in some embodiments, the same or similar parts in other embodiments may be referred to.
It should be noted that in the description of the present invention, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise indicated, the meaning of "plurality" means at least two.
Any process or method descriptions in flow diagrams or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order from that shown or discussed, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present invention.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (10)

1. An electrode cap for synchronizing transcranial direct current stimulation signals with brain electrical signals, comprising: the device comprises an input device, a stimulation signal generating device, an electroencephalogram signal acquisition device, a time synchronization device, a stimulation electrode, an acquisition electrode and a reference signal generating device;
the input device is respectively connected with the electroencephalogram signal acquisition device, the stimulation signal generation device and the reference signal generation device; the time synchronization device is respectively connected with the stimulation signal generation device, the electroencephalogram signal acquisition device and the reference signal generation device; the stimulation signal generating device is also connected with the stimulation electrode; the electroencephalogram signal acquisition device is also connected with the acquisition electrode;
the stimulating electrode is used for connecting an external brain and the reference signal generating device; the acquisition electrode is used for connecting the external brain; the time synchronization device is used for synchronizing the time of each device connected with the time synchronization device;
when the input device acquires a first stimulation parameter according to a first setting operation of a user, the first stimulation parameter is sent to the stimulation signal generating device and the reference signal generating device, the stimulation signal generating device sends a first stimulation signal to the reference signal generating device according to the first stimulation parameter, the reference signal generating device generates a reference signal when receiving the first stimulation signal, the reference signal generating device acquires a first time delay sent by the stimulation signal generating device, determines a second time delay according to the first stimulation signal and the reference signal, acquires a prestored third time delay, performs summation operation on the first time delay, the second time delay and the third time delay, acquires a fixed time delay, and sends the fixed time delay to the electroencephalogram signal acquisition device; the first time delay is the time delay corresponding to the process from the time when the input device acquires the first stimulation parameter to the time when the stimulation signal generating device sends the first stimulation signal; the second time delay is the time delay corresponding to the process from the time when the stimulation signal generator sends the stimulation signal to the time when the stimulation signal acts on the external brain; the third time delay is the time delay corresponding to the process that the stimulation signal acts on the external brain and causes the change of the brain electrical signal of the external brain; the third time delay is a known value and is stored in a storage device of the electrode cap in advance;
when the input device acquires a second stimulation parameter according to a second setting operation of a user, the stimulation signal generating device outputs a second stimulation signal to the external brain through the stimulation electrode, meanwhile, the electroencephalogram signal acquisition device acquires the electroencephalogram signal of the external brain through the acquisition electrode, and determines a target electroencephalogram signal corresponding to the second stimulation signal in the electroencephalogram signal according to the fixed time delay.
2. The electrode cap for synchronizing transcranial direct current stimulation signals with brain electrical signals according to claim 1, wherein the brain electrical signal acquisition device is further connected with the stimulation signal generation device;
the electroencephalogram signal acquisition device is also used for judging whether the stimulation process deviates from a preset stimulation aim according to the target electroencephalogram signal, and sending the characteristic information of the target electroencephalogram signal to the stimulation signal generation device when judging that the stimulation process deviates from the preset stimulation aim;
the stimulation signal generating device is also used for adjusting the stimulation parameters according to the characteristic information of the target brain electrical signals.
3. The transcranial direct current stimulation signal synchronized electrode cap of claim 1 with an electroencephalogram signal, wherein the stimulation electrode is further connected with the reference signal generating device.
4. The electrode cap for synchronizing transcranial direct current stimulation signals with brain electrical signals according to claim 1, wherein the input device is a keyboard, a mouse or an intelligent display screen.
5. A method for testing the synchronization of a transcranial direct current stimulation signal and an electroencephalogram signal, which is applied to the electrode cap for synchronizing a transcranial direct current stimulation signal and an electroencephalogram signal according to any one of claims 1 to 4, and is characterized by comprising the following steps:
the time in the synchronous stimulation signal generation device, the electroencephalogram signal acquisition device and the reference signal generation device;
determining a fixed time delay; the fixed time delay is the time delay corresponding to the process from the time when the input device of the electrode cap acquires the first stimulation parameter to the time when the first stimulation signal acts on the external brain connected with the electrode cap to cause the change of the brain electrical signal of the external brain;
outputting a second stimulation signal to the external brain, and simultaneously collecting brain electrical signals of the external brain;
and determining a target brain electrical signal corresponding to the second stimulation signal from the brain electrical signals according to the fixed time delay.
6. The method of claim 5, wherein the fixed time delay comprises: a first delay, a second delay, and a third delay;
the first time delay is the time delay corresponding to the process from the time when the input device acquires the first stimulation parameter to the time when the stimulation signal generating device sends the first stimulation signal;
the second time delay is the time delay corresponding to the process from the time when the stimulation signal generator sends the stimulation signal to the time when the stimulation signal acts on the external brain;
the third time delay is the time delay corresponding to the process that the stimulation signal acts on the external brain and causes the change of the brain electrical signal of the external brain; the third time delay is a known value and is stored in a storage device of the electrode cap in advance;
the determining a fixed time delay includes:
acquiring a time length used by the stimulation signal generating device for executing a test instruction, and defining the time length as the first time delay; the test instruction is an instruction comprising the first stimulation parameter;
determining a second time delay according to the first stimulation signal and a reference signal based on a time-based deblurring algorithm and a dynamic digital correlation algorithm; the reference signal is generated by the reference signal generating device according to the first stimulation parameter when the first stimulation signal is received;
and carrying out summation operation on the first time delay, the second time delay and the third time delay to obtain the fixed time delay.
7. The method according to claim 5, wherein the second stimulation parameters corresponding to the second stimulation signal include stimulation frequency, current intensity, stimulation duration, stimulation waveform, and stimulation purpose.
8. The method for testing synchronization of a transcranial direct current stimulation signal and an electroencephalogram signal according to claim 7, wherein after determining a target electroencephalogram signal corresponding to the second stimulation signal from the electroencephalogram signals according to the fixed time delay, further comprises:
judging whether the stimulation process deviates from the stimulation purpose according to the target brain electrical signal;
and when the stimulation process deviates from the stimulation purpose, adjusting the second stimulation parameters according to the characteristic information of the target brain electrical signals.
9. The method of claim 8, wherein when the stimulation process deviates from the stimulation objective, further comprising:
calculating signal intensity data of the characteristic information;
determining the characteristic information with the maximum signal intensity according to the signal intensity data;
and defining a second stimulation parameter corresponding to the characteristic information with the maximum signal intensity as a suboptimal stimulation parameter.
10. The method for testing the synchronization of a transcranial direct current stimulation signal and an electroencephalogram signal according to claim 5, wherein the time period between the synchronous stimulation signal generation device, the electroencephalogram signal acquisition device and the reference signal generation device is further comprised of:
obtaining an impedance value between the stimulation electrode and the external brain;
and displaying the impedance value so that a detector can judge whether poor contact exists between the stimulation electrode and the external brain according to the impedance value.
CN202210021772.8A 2022-01-10 2022-01-10 Electrode cap for synchronizing transcranial direct current stimulation signal and brain electrical signal and testing method Active CN114305429B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210021772.8A CN114305429B (en) 2022-01-10 2022-01-10 Electrode cap for synchronizing transcranial direct current stimulation signal and brain electrical signal and testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210021772.8A CN114305429B (en) 2022-01-10 2022-01-10 Electrode cap for synchronizing transcranial direct current stimulation signal and brain electrical signal and testing method

Publications (2)

Publication Number Publication Date
CN114305429A CN114305429A (en) 2022-04-12
CN114305429B true CN114305429B (en) 2023-07-28

Family

ID=81026685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210021772.8A Active CN114305429B (en) 2022-01-10 2022-01-10 Electrode cap for synchronizing transcranial direct current stimulation signal and brain electrical signal and testing method

Country Status (1)

Country Link
CN (1) CN114305429B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6366805B1 (en) * 1999-05-26 2002-04-02 Viasys Healthcare Inc. Time frame synchronization of medical monitoring signals
WO2004034883A2 (en) * 2002-10-15 2004-04-29 Medtronic Inc. Synchronization and calibration of clocks for a medical device and calibrated clock
CN2891967Y (en) * 2006-04-21 2007-04-25 北京易飞华通科技开发有限公司 Driver's fatigue driving monitoring and feedback stimulating instrument
CN1956751A (en) * 2004-05-27 2007-05-02 于利奇研究中心有限公司 Method and device for decoupling and/or desynchronizing neural brain activity
WO2008025048A2 (en) * 2006-09-01 2008-03-06 Austrian Research Centers Gmbh - Arc METHOD AND DEVICE FOR CONTROLLING EQUIPMENT WITH THE AID OF ELECTROENCEPHALOGRAMS (EEG) OR ELECTROCORTICOGRAMS (ECoG)
CN203576500U (en) * 2013-10-16 2014-05-07 上海谱康电子科技有限公司 Electroencephalogram detection signal synchronous circuit and electroencephalogram detection system
CN107362465A (en) * 2017-07-06 2017-11-21 上海交通大学 It is a kind of that the system synchronous with eeg recording is stimulated for human body TCD,transcranial Doppler
CN208158599U (en) * 2018-06-25 2018-11-27 北京津发科技股份有限公司 A kind of multimodal human-computer interaction and man-machine environment test data synchronizing device and system
CN110433397A (en) * 2019-08-20 2019-11-12 国家康复辅具研究中心 A kind of the dynamic brain function detection method and system synchronous with transcranial magnetic stimulation
CN110967064A (en) * 2018-09-28 2020-04-07 罗伯特·博世有限公司 Method, device and sensor system for environmental detection of a vehicle
CN111543986A (en) * 2020-05-12 2020-08-18 清华大学 Electroencephalogram event synchronization method without hardware connection
CN111885569A (en) * 2020-07-13 2020-11-03 深兰人工智能芯片研究院(江苏)有限公司 Visual stimulation and response acquisition control system
CN113625769A (en) * 2021-09-07 2021-11-09 中国人民解放军军事科学院军事医学研究院 Unmanned aerial vehicle formation multi-mode control system based on electroencephalogram signals
CN113648541A (en) * 2021-08-13 2021-11-16 上海大学 Magnetic stimulation and brain signal acquisition combined synchronous integrated device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102012002437B4 (en) * 2012-02-08 2014-08-21 Forschungszentrum Jülich GmbH Device for calibrating an invasive, electrical and desynchronizing neurostimulation
FR2989240B1 (en) * 2012-04-10 2017-08-11 Commissariat Energie Atomique DATA SYNCHRONIZATION METHOD AND DATA TRANSMISSION SYSTEM IMPLEMENTING SUCH A METHOD.
US20170020406A1 (en) * 2012-04-13 2017-01-26 UE Technology Method for measuring biological stimulus signal
US20160082263A1 (en) * 2014-09-18 2016-03-24 Harinder Jaseja System and method for determining optimal deep brain stimulation parameters for treating intractable epilepsy

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6366805B1 (en) * 1999-05-26 2002-04-02 Viasys Healthcare Inc. Time frame synchronization of medical monitoring signals
WO2004034883A2 (en) * 2002-10-15 2004-04-29 Medtronic Inc. Synchronization and calibration of clocks for a medical device and calibrated clock
CN1956751A (en) * 2004-05-27 2007-05-02 于利奇研究中心有限公司 Method and device for decoupling and/or desynchronizing neural brain activity
CN2891967Y (en) * 2006-04-21 2007-04-25 北京易飞华通科技开发有限公司 Driver's fatigue driving monitoring and feedback stimulating instrument
WO2008025048A2 (en) * 2006-09-01 2008-03-06 Austrian Research Centers Gmbh - Arc METHOD AND DEVICE FOR CONTROLLING EQUIPMENT WITH THE AID OF ELECTROENCEPHALOGRAMS (EEG) OR ELECTROCORTICOGRAMS (ECoG)
CN203576500U (en) * 2013-10-16 2014-05-07 上海谱康电子科技有限公司 Electroencephalogram detection signal synchronous circuit and electroencephalogram detection system
CN107362465A (en) * 2017-07-06 2017-11-21 上海交通大学 It is a kind of that the system synchronous with eeg recording is stimulated for human body TCD,transcranial Doppler
CN208158599U (en) * 2018-06-25 2018-11-27 北京津发科技股份有限公司 A kind of multimodal human-computer interaction and man-machine environment test data synchronizing device and system
CN110967064A (en) * 2018-09-28 2020-04-07 罗伯特·博世有限公司 Method, device and sensor system for environmental detection of a vehicle
CN110433397A (en) * 2019-08-20 2019-11-12 国家康复辅具研究中心 A kind of the dynamic brain function detection method and system synchronous with transcranial magnetic stimulation
CN111543986A (en) * 2020-05-12 2020-08-18 清华大学 Electroencephalogram event synchronization method without hardware connection
CN111885569A (en) * 2020-07-13 2020-11-03 深兰人工智能芯片研究院(江苏)有限公司 Visual stimulation and response acquisition control system
CN113648541A (en) * 2021-08-13 2021-11-16 上海大学 Magnetic stimulation and brain signal acquisition combined synchronous integrated device
CN113625769A (en) * 2021-09-07 2021-11-09 中国人民解放军军事科学院军事医学研究院 Unmanned aerial vehicle formation multi-mode control system based on electroencephalogram signals

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Teplan, M. ; Palus, M. ; Vejmelka, M..EEG phase synchronization and information flow during audio-visual stimulation.《2010 3rd International Symposium on Applied Sciences in Biomedical and Communication Technologies (ISABEL 2010)》.2010,1-4. *
基于神经网络迁移学习和增量学习的脑电信号分类;韩久琦,柯昂,孟桂芳等;《中国力学学会动力学与控制专业委员会神经动力学专业组.第四届全国神经动力学学术会议摘要集》;71-72 *
基于脑电自回归预测的实时相位估计方法;陈妮,覃玉荣,孙鹏飞;《电子测量与仪器学报》;183-190 *

Also Published As

Publication number Publication date
CN114305429A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
US20220233150A1 (en) Method and device for detecting a neural response in a neural measurement
Hramov et al. Detection of synchronization from univariate data using wavelet transform
Nozaradan et al. Enhanced brainstem and cortical encoding of sound during synchronized movement
JP4881574B2 (en) Acupuncture point evaluation device
Schuettler et al. Fibre-selective recording from the peripheral nerves of frogs using a multi-electrode cuff
WO2009068961A2 (en) System and method for conducting multiplexed electrical impedance tomography
CN104571504B (en) A kind of online brain-machine interface method based on Imaginary Movement
CN103705236A (en) Bioelectric impedance resistance-spectrum multi-frequency synchronous quick measurement method
Zawawi et al. Electromyography signal analysis using spectrogram
EP3679860B1 (en) Control method and system for filtering out working frequency interference signal
Miller et al. Spectral analysis of oscillatory neural circuits
CN114305429B (en) Electrode cap for synchronizing transcranial direct current stimulation signal and brain electrical signal and testing method
KR102533262B1 (en) Method and apparatus for simulating body tissues and recording responses
KR20200019914A (en) Pulse wave measurement apparatus and measurement method therefor
Fiori et al. ECG waveforms reconstruction based on equivalent time sampling
CN116473556A (en) Emotion calculation method and system based on multi-site skin physiological response
CN111398663B (en) Cardiac pacemaker induction current testing method and processing terminal
Min et al. A sampling multichannel bioimpedance analyzer for tissue monitoring
EP3082589B1 (en) Method of ekg signal processing and apparatus for performing the method
Luo et al. Concurrent encoding of frequency and amplitude modulation in human auditory cortex: encoding transition
US6831467B2 (en) QSD recovery of superposed transient responses
KR20190134433A (en) Cardiac output signal analyzer and method
US20230138844A1 (en) Systems for suppression of ballistocardiogram artifacts in electroencephalography signals via dynamic heartbeat modeling
EP4194046A1 (en) A method for controlling a stimulation signal and a system for providing a stimulation signal
EP4001930A1 (en) Measuring apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant