CN112472108B - Neuron discharge spike signal picking method and device and computer equipment - Google Patents

Neuron discharge spike signal picking method and device and computer equipment Download PDF

Info

Publication number
CN112472108B
CN112472108B CN202110157269.0A CN202110157269A CN112472108B CN 112472108 B CN112472108 B CN 112472108B CN 202110157269 A CN202110157269 A CN 202110157269A CN 112472108 B CN112472108 B CN 112472108B
Authority
CN
China
Prior art keywords
signal
peak value
energy
discharge
picking
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
CN202110157269.0A
Other languages
Chinese (zh)
Other versions
CN112472108A (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.)
Nanjing Greathink Medical Technology Co ltd
Original Assignee
Nanjing Greathink Medical Technology Co ltd
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 Nanjing Greathink Medical Technology Co ltd filed Critical Nanjing Greathink Medical Technology Co ltd
Priority to CN202110157269.0A priority Critical patent/CN112472108B/en
Publication of CN112472108A publication Critical patent/CN112472108A/en
Application granted granted Critical
Publication of CN112472108B publication Critical patent/CN112472108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/14Fourier, Walsh or analogous domain transformations, e.g. Laplace, Hilbert, Karhunen-Loeve, transforms
    • G06F17/148Wavelet transforms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/15Correlation function computation including computation of convolution operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Algebra (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Operations Research (AREA)
  • Pathology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Probability & Statistics with Applications (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physiology (AREA)
  • Psychiatry (AREA)
  • Signal Processing (AREA)
  • Biophysics (AREA)
  • Evolutionary Biology (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Computing Systems (AREA)
  • Testing Relating To Insulation (AREA)

Abstract

The application relates to a neuron firing spike picking method, a neuron firing spike picking device, computer equipment and a storage medium. The method comprises the following steps: preprocessing a neuron discharge signal to be picked to obtain a continuous filtering discharge signal; performing energy calculation on the continuous filtering discharge signal to obtain a continuous energy signal; carrying out peak value statistics on the continuous energy signals to determine energy peak values; establishing a cumulative distribution function of chi-square distribution according to the continuous energy signals for analysis, and determining a picking threshold; screening the energy peak value through a preliminary peak value extraction model established by the picking threshold value to obtain a preliminary peak value; extracting a signal section in the continuous filtering discharge signal according to the preliminary peak value to obtain a discharge signal section; and analyzing the firing signal section according to the picking threshold value to determine a neuron firing spike signal. The method enables the robustness of the neuron discharge spike signal to be stronger, and improves the accuracy of the picking result.

Description

Neuron discharge spike signal picking method and device and computer equipment
Technical Field
The present application relates to the field of digital signal processing technologies, and in particular, to a method and an apparatus for picking neuron firing spikes, a computer device, and a storage medium.
Background
During the neural signal acquisition, a high sampling rate mode is used for recording continuous signals around the neurons, and the neuron discharge Spike signal (Spike) is a short discharge process lasting for about 1 ms. In order to extract the signal of the short time period, a method is often used to observe the signal, set a threshold value, and select the signal exceeding the threshold value as the firing process of a neuron.
This approach requires a person to observe the signal threshold, increasing the workload, and since the threshold is artificially specified, increasing the instability of signal extraction; and the method can only sort out the nerve discharge spikes with larger amplitude, and some spikes with smaller amplitude are ignored in the method, so that the statistical error of the nerve signals is caused.
Therefore, the accuracy of the neuron firing spikes picked by the current neural firing spike picking method is low.
Disclosure of Invention
In view of the above, there is a need to provide a neuron spiking method, a neuron spiking device, a computer device and a storage medium, which can improve the accuracy of picking neuron spiking.
A method of neuron firing spike picking, the method comprising:
preprocessing a neuron discharge signal to be picked to obtain a continuous filtering discharge signal;
performing energy calculation on the continuous filtering discharge signal to obtain a continuous energy signal;
carrying out peak value statistics on the continuous energy signals to determine energy peak values;
establishing a cumulative distribution function of chi-square distribution according to the continuous energy signals for analysis, and determining a picking threshold;
screening the energy peak value through a preliminary peak value extraction model established by the picking threshold value to obtain a preliminary peak value;
extracting a signal section in the continuous filtering discharge signal according to the preliminary peak value to obtain a discharge signal section;
and analyzing the firing signal section according to the picking threshold value to determine a neuron firing spike signal.
In one embodiment, the energy calculation is formulated as:
Figure 911068DEST_PATH_IMAGE001
wherein the content of the first and second substances,
Figure 795585DEST_PATH_IMAGE002
in order to be a continuous energy signal,
Figure 778585DEST_PATH_IMAGE003
is a continuous filtering discharge signal.
In one embodiment, the step of determining a picking threshold by analyzing a cumulative distribution function that establishes a chi-squared distribution based on the continuous energy signal comprises:
establishing a cumulative distribution function of chi-square distribution according to the continuous energy signals;
performing second-order difference on the cumulative distribution function, and determining an outlier critical value of the cumulative distribution function;
and taking the outlier critical value as a picking threshold value.
In one embodiment, the cumulative distribution function is:
Figure 439373DEST_PATH_IMAGE004
wherein the content of the first and second substances,
Figure 722587DEST_PATH_IMAGE005
the function of the cumulative distribution is represented,
Figure 748312DEST_PATH_IMAGE006
which represents a continuous energy signal, is,
Figure 484187DEST_PATH_IMAGE007
represents the signal length of the continuous energy signal,
Figure 948666DEST_PATH_IMAGE008
an outlier threshold representing the cumulative distribution function,
Figure 820807DEST_PATH_IMAGE009
a natural base number is represented by a number,
Figure 79750DEST_PATH_IMAGE010
is the gamma distribution.
In one embodiment, the step of screening the energy peaks by the preliminary peak extraction model constructed by the picking threshold to obtain preliminary peaks includes:
carrying out maximum extraction on the energy peak value to obtain a maximum value point;
and comparing the maximum point with the picking threshold value through a preliminary peak value extraction model established by the picking threshold value to determine a preliminary peak value.
In one embodiment, the step of extracting the signal segment in the continuous filtered discharge signal according to the preliminary peak value to obtain the discharge signal segment includes:
determining 1 energy peak value before and after the initial peak value is adjacent to the initial peak value according to the time point corresponding to the initial peak value;
determining time points between the front and rear 1 energy peak values adjacent to the preliminary peak value as time nodes of a discharge section;
and determining a discharge signal section of the discharge section on the continuous filtering discharge signal according to the time node of the discharge section.
In one embodiment, the step of analyzing the firing signal segment according to the picking threshold to determine the neuron firing spike comprises:
determining the amplitude of the discharge signal section according to the maximum peak value and the minimum peak value in the discharge signal section;
and comparing the amplitude of the firing signal section with 2 times of the picking threshold value, and determining the firing signal section with the amplitude larger than 2 times of the picking threshold value as a neuron firing spike signal.
A neuron firing spike picking device, the device comprising:
the preprocessing module is used for preprocessing the discharge signals of the neurons to be picked to obtain continuous filtering discharge signals;
the energy calculation module is used for performing energy calculation on the continuous filtering discharge signal to obtain a continuous energy signal;
the peak value counting module is used for carrying out peak value counting on the continuous energy signals and determining an energy peak value;
the threshold value determining module is used for establishing a cumulative distribution function of chi-square distribution according to the continuous energy signals for analysis and determining a picking threshold value;
the screening module is used for screening the energy peak value through a primary peak value extraction model constructed by the picking threshold value to obtain a primary peak value;
the signal segment extraction module is used for extracting the signal segments in the continuous filtering discharge signals according to the preliminary peak value to obtain discharge signal segments;
and the spike signal determining module is used for analyzing the firing signal section according to the picking threshold value and determining the neuron firing spike signal.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method.
According to the neuron discharge spike signal picking method, the neuron discharge spike signal picking device, the computer equipment and the storage medium, the discharge signal of the neuron to be picked is preprocessed to obtain the continuous filtering discharge signal, the energy calculation is carried out on the continuous filtering discharge signal to obtain the continuous energy signal, and the difference between the spike signal and the non-discharge process signal in the discharge process of the neuron in the filtered continuous filtering discharge signal is increased; further determining an energy peak value by performing peak value statistics on the continuous energy signal; establishing a chi-square distribution cumulative distribution function according to the continuous energy signals for analysis, determining a picking threshold value, enabling the picking of the neuron discharge signals to be more accurate, and screening the energy peak value through a primary peak value extraction model established by the picking threshold value to obtain a primary peak value; extracting a signal section in the continuous filtering discharge signal according to the preliminary peak value to obtain a discharge signal section; and analyzing the discharge signal section according to the picking threshold value to determine the neuron discharge spike signal, so that the robustness of the method for picking the neuron discharge spike signal is stronger, and the accuracy rate of picking the neuron discharge spike signal is improved.
Drawings
FIG. 1 is a schematic flow chart illustrating a method for neuron spiking in one embodiment;
FIG. 2 is a schematic diagram of a filtered continuous discharge signal;
FIG. 3 is a schematic diagram of a function inflection point of a cumulative distribution function;
FIG. 4 is a schematic diagram of neuron firing spike picking;
FIG. 5 is a block diagram of a neuron firing spike picking device in accordance with one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, there is provided a method for picking neuron firing spikes, comprising the following steps:
step S220, preprocessing the neuron firing signals to be picked to obtain continuous filtering firing signals.
The neuron firing signals to be picked are continuous original neuron firing signals which are continuously collected by neuron firing signal collecting equipment within a period of time. The preprocessing comprises up-sampling and filtering processing, the frequency band range of the neuron firing spike signal is 300 Hz-6000 Hz, so that the original neuron firing signal needs to be up-sampled to more than 30Ksps, and the picked neuron firing signal with the duration of 1ms can have enough points; and filtering the up-sampled discharge signal to filter out the low-frequency local field potential in the discharge signal. The continuous filtered discharge signal is a filtered continuous discharge signal, such as the schematic diagram of the filtered continuous discharge signal shown in fig. 2.
In one embodiment, the step of preprocessing the firing signals of the neurons to be picked to obtain the continuous filtering firing signals comprises: performing up-sampling processing on the discharge signals of the neurons to be picked to obtain continuous up-sampling discharge signals; and carrying out filtering processing on the continuous up-sampling discharge signal to obtain a continuous filtering discharge signal.
In one embodiment, the step of performing filtering processing on the up-sampled discharge signal to obtain a filtered discharge signal includes:
according to a wavelet packet decomposition reconstruction formula, performing 5-layer wavelet transform decomposition on the upsampled discharge signal by using a db10 wavelet basis to obtain a decomposed signal; denoising the decomposed signal by adopting a soft threshold method to obtain a denoised signal; and reconstructing the denoised signal according to a wavelet packet decomposition reconstruction formula to obtain a filtering discharge signal.
The wavelet packet decomposition reconstruction formula is as follows:
Figure 302921DEST_PATH_IMAGE011
wherein the content of the first and second substances,
Figure 243195DEST_PATH_IMAGE012
for the wavelet packet decomposition reconstruction function,jthe number of layers is reconstructed for the decomposition of the top wavelet packet,kthe number of layers is decomposed and reconstructed for the bottom layer wavelet packet,Sfor the wavelet decomposition of the maximum number of layers,Zis an integer which is the number of the whole,qfor the signal degrees of freedom of the decomposed and reconstructed discharge signal,
Figure 32160DEST_PATH_IMAGE013
in order to reconstruct the coefficients,tis a decomposed and reconstructed discharge signal and is,
Figure 423521DEST_PATH_IMAGE014
wavelet packets determined for the basis functions.
In one embodiment, the basis function used is the db10 wavelet basis.jAndkis determined according to the number of layers to be decomposed or reconstructed, in this embodiment
Figure 868409DEST_PATH_IMAGE015
. Determining and establishing a scale function and a wavelet function according to the basis function, and determining a wavelet packet according to the scale function and the wavelet function
Figure 409112DEST_PATH_IMAGE014
The following expression:
Figure 255845DEST_PATH_IMAGE016
wherein the content of the first and second substances,
Figure 59853DEST_PATH_IMAGE014
determining the wavelet packet for db10 base function according to the parity of signal freedom degree
Figure 54354DEST_PATH_IMAGE017
Defined as a scale function, with odd degrees of freedom
Figure 336431DEST_PATH_IMAGE018
Is defined as a function of the wavelet,
Figure 99987DEST_PATH_IMAGE019
is a filter function that is a function of the scale,
Figure 340476DEST_PATH_IMAGE020
a filter function that is a wavelet function.
Step S240, performing energy calculation on the continuous filtering discharge signal to obtain a continuous energy signal.
The energy calculation of the continuous filtering discharge signal is to calculate the energy of the signal at each time point in the continuous filtering discharge signal, and the formula of the energy calculation is as follows:
Figure 494377DEST_PATH_IMAGE021
wherein the content of the first and second substances,
Figure 642461DEST_PATH_IMAGE022
in order to be a continuous energy signal,
Figure 463787DEST_PATH_IMAGE023
in order to continuously filter the discharge signal, the discharge signal is,
Figure 108132DEST_PATH_IMAGE024
representing the point in time of the signal.
The method enlarges the difference degree of signal fluctuation, can detect the peak value and the valley value of the continuous filtering discharge signal at the same time, reduces the algorithm complexity and improves the calculation efficiency.
Step S260, peak value statistics is performed on the continuous energy signal, and an energy peak value is determined.
Wherein, the peak value statistics is to find out the peak value point in the continuous energy signal. The energy peak comprises the values of the energy signal corresponding to all peak points in the continuous energy signal.
Step S280, establishing a cumulative distribution function of chi-square distribution according to the continuous energy signals for analysis, and determining a picking threshold value.
The continuous filtering discharge signal accords with the normal distribution characteristic, and the continuous energy signal is the square term relation of the continuous filtering discharge signal, so that the data of the continuous energy signal accords with the chi-square distribution characteristic, the minimum value and the maximum value of the peak value are used as the definition domain of the independent variable, the energy peak value is used as the independent variable, the accumulation probability of the peak value is used as the dependent variable, and the accumulation distribution function of the chi-square distribution is established. After peak data is extracted from the continuous filtering discharge signal, the distribution of the peak value also presents normal distribution characteristics, so that a function related to normal distribution is adopted to determine the picking threshold value.
In one embodiment, the step of determining the picking threshold by establishing a cumulative distribution function of the chi-squared distribution from the continuous energy signal for analysis comprises:
establishing a cumulative distribution function of chi-square distribution according to the continuous energy signals; performing second-order difference on the cumulative distribution function, and determining an outlier critical value of the cumulative distribution function; and taking the cluster critical value as a picking threshold value.
Wherein the cumulative distribution function is:
Figure 811646DEST_PATH_IMAGE025
wherein the content of the first and second substances,
Figure 435526DEST_PATH_IMAGE026
the function of the cumulative distribution is represented,
Figure 376937DEST_PATH_IMAGE027
which represents a continuous energy signal, is,
Figure 755966DEST_PATH_IMAGE028
the point in time of the representation of the signal,
Figure 150038DEST_PATH_IMAGE029
an outlier threshold representing the cumulative distribution function,
Figure 577608DEST_PATH_IMAGE030
a natural base number is represented by a number,
Figure 904684DEST_PATH_IMAGE031
is the gamma distribution.
In the filtered high-frequency signal, the spike signal in the neuron discharging process is statistically low-frequency appearing signal relative to the non-discharging process, and the neuron discharging spike signal has a high amplitude, so the picking threshold is an outlier critical value in the cumulative distribution function of chi-square distribution, the cumulative distribution function of chi-square distribution can be subjected to second order difference, a function inflection point as shown in fig. 3 is found, the value of the energy signal corresponding to the function inflection point is the outlier critical value, and the outlier critical value is recorded as
Figure 392297DEST_PATH_IMAGE032
Time point of
Figure 273666DEST_PATH_IMAGE033
As a function of the inflection point, i.e.: in actual operation
Figure 567244DEST_PATH_IMAGE034
Make a second order difference if
Figure 952089DEST_PATH_IMAGE035
In which, according to the actual data, the data is in an exponential distribution mode, so that the time point is adopted
Figure 407341DEST_PATH_IMAGE036
The method for calculating the logarithm of the energy signal reduces the discrete degree of data and then searches for an inflection point. The current time point is
Figure 274540DEST_PATH_IMAGE033
Figure 43913DEST_PATH_IMAGE037
The energy signal logarithm value at the current time point is used as an independent variable, the cumulative distribution function value corresponding to the current time point is used as a second-order difference result of a dependent variable,
Figure 611161DEST_PATH_IMAGE038
the energy signal logarithm value of the next time point of the current time point is used as an independent variable, and the cumulative distribution function value corresponding to the current time point is used as a second-order difference result of the dependent variable.
When the cumulative contribution function reaches the function inflection point (which can be adjusted according to the actual situation during detection), the energy signal at the function inflection point is considered to be the outlier threshold of the continuous energy signal, and the firing signal corresponding to the energy signal whose value is greater than the outlier threshold may belong to the neuron firing spike signal.
And step S300, screening the energy peak value through a primary peak value extraction model established by the picking threshold value to obtain a primary peak value.
In one embodiment, the step of screening the energy peaks through a preliminary peak extraction model constructed by picking threshold values to obtain preliminary peaks includes:
carrying out maximum extraction on the energy peak value to obtain a maximum point; and comparing the maximum point with the picking threshold value through a primary peak value extraction model established by the picking threshold value to determine a primary peak value.
The maximum value point is a time point corresponding to a peak (i.e., a maximum value) extracted from a waveform formed by energy peaks, and for a discrete signal, if the discrete signal is a discrete signal
Figure 440577DEST_PATH_IMAGE039
Is as follows
Figure 30958DEST_PATH_IMAGE040
At a time point, if adopted
Figure 666339DEST_PATH_IMAGE040
The energy peak value of each time point is differentiated from the energy peak values of two adjacent time points, the difference of the energy peak value of the previous time point is larger than zero, and the difference of the energy peak value of the next time point is smaller than 0, then
Figure 760197DEST_PATH_IMAGE041
At the maximum point, i.e. the first
Figure 26093DEST_PATH_IMAGE040
Each time point is a time point corresponding to a maximum value in the energy peak value, and the formula is expressed as follows:
Figure 900508DEST_PATH_IMAGE042
wherein the content of the first and second substances,
Figure 277263DEST_PATH_IMAGE043
is as follows
Figure 553523DEST_PATH_IMAGE040
As a result of the difference of the energy peaks at the time points,
Figure 990321DEST_PATH_IMAGE044
is as follows
Figure 788250DEST_PATH_IMAGE045
The difference of the energy peaks at the time points.
All maximum points are recorded as peak values
Figure 765434DEST_PATH_IMAGE046
Wherein
Figure 833884DEST_PATH_IMAGE047
Figure 238320DEST_PATH_IMAGE048
Is a natural number which is a natural number,
Figure 290590DEST_PATH_IMAGE049
is as follows
Figure 743568DEST_PATH_IMAGE050
Energy peaks at each time point.
Figure 994421DEST_PATH_IMAGE051
Wherein the content of the first and second substances,
Figure 773021DEST_PATH_IMAGE052
the data is an empty set,
Figure 47007DEST_PATH_IMAGE053
in order to be the preliminary peak value,
Figure 365993DEST_PATH_IMAGE054
to pick the threshold, when the peak value
Figure 409036DEST_PATH_IMAGE055
Greater than the picking threshold
Figure 358537DEST_PATH_IMAGE056
If so, the peak point is retained, otherwise, the peak point is discarded.
And step S320, extracting the signal section in the continuous filtering discharge signal according to the preliminary peak value to obtain a discharge signal section.
In one embodiment, the step of extracting the signal segment in the continuous filtered discharge signal according to the preliminary peak value to obtain the discharge signal segment includes:
determining 1 energy peak value before and after the initial peak value is adjacent to the initial peak value according to the time point corresponding to the initial peak value; determining time points between the front and rear 1 energy peak values adjacent to the primary peak value as time nodes of the discharge section; and determining a discharge signal section of the discharge section on the continuous filtering discharge signal according to the time node of the discharge section.
Determining front and rear 1 energy peak values adjacent to the preliminary peak value according to the corresponding time point of the preliminary peak value; recording and preliminary peak values
Figure 916557DEST_PATH_IMAGE057
The time point between the adjacent front and back 1 energy peak values is determined as the time node of the discharge section and is recorded as
Figure 481312DEST_PATH_IMAGE058
(ii) a Determining the discharge signal section of the discharge section on the continuous filtering discharge signal according to the time node of the discharge section, and recording the discharge signal section as the discharge signal section
Figure 441178DEST_PATH_IMAGE059
Wherein, in the step (A),
Figure 561580DEST_PATH_IMAGE060
in order to discharge the signal segment, the signal segment is,
Figure 810159DEST_PATH_IMAGE061
the time point of the first 1 energy peak of the preliminary peak,
Figure 470948DEST_PATH_IMAGE062
the time point of the last 1 energy peak value of the primary peak value, the number of the discharge sections is determined according to the number of the primary peak values, such as: there are 2 preliminary peaks, and then there are 2 discharge segments. Each time point of the continuous energy signal corresponds to each time point of the continuous filtering discharge signal, each energy peak value corresponds to one time point, each preliminary peak value corresponds to one time point, therefore, each front energy peak value and each rear energy peak value correspond to two time points, the energy signal between the two time points is used as a discharge section, the starting time point and the ending time point of the discharge section are time nodes of the discharge section, and the discharge signal between the starting time point and the ending time point on the continuous filtering discharge signal is used as a discharge signal section.
Step S340, analyzing the firing signal segment according to the picking threshold to determine the neuron firing spike signal.
In one embodiment, the step of determining a neuron firing spike by analyzing the firing signal segment according to a picking threshold comprises:
determining the amplitude of the discharge signal section according to the maximum peak value and the minimum peak value in the discharge signal section; and comparing the amplitude of the discharge signal section with 2 times of the picking threshold value, and determining the discharge signal section with the amplitude larger than 2 times of the picking threshold value as the neuron discharge spike signal.
Determining the amplitude of the discharge signal section according to the maximum peak value and the minimum peak value in the discharge signal section, and recording the amplitude as the maximum peak value and the minimum peak value
Figure 223003DEST_PATH_IMAGE063
(ii) a And solving the difference value between the maximum peak value and the minimum peak value in the discharge signal section, wherein the difference value is the amplitude value of the discharge signal section, namely:
Figure 576624DEST_PATH_IMAGE064
Figure 312499DEST_PATH_IMAGE065
is the maximum peak in the discharge signal sectionThe value of the one or more of,
Figure 714661DEST_PATH_IMAGE066
comparing the amplitude of the firing signal section with 2 times of the picking threshold value for the minimum peak value in the firing signal section, and determining the firing signal section with the amplitude larger than 2 times of the picking threshold value as the neuron firing spike signal, wherein the neuron firing spike signal formula is as follows:
Figure 586802DEST_PATH_IMAGE067
wherein the content of the first and second substances,
Figure 111324DEST_PATH_IMAGE068
a neuron fires a spike. As shown in fig. 4, the amplitude of the firing signal segment is greater than 2 times of the picking threshold, and is retained as the neuron firing spike signal, and the amplitude of the firing signal segment is less than or equal to 2 times of the picking threshold, and does not belong to the neuron firing spike signal, the firing signal segment is discarded, and the finally picked neuron firing spike signal is the firing signal segment with the amplitude greater than 2 times of the picking threshold.
According to the neuron discharge spike signal picking method, the discharge signal of the neuron to be picked is preprocessed to obtain the continuous filtering discharge signal, the energy calculation is carried out on the continuous filtering discharge signal to obtain the continuous energy signal, and the difference between the discharge process and the non-discharge process of the neuron in the filtered continuous filtering discharge signal is increased; further performing peak value statistics on the continuous energy signals to determine energy peak values; establishing an accumulative distribution function of chi-square distribution according to the continuous energy signals for analysis, determining a picking threshold value, enabling the picking of the neuron discharge signals to be more accurate, and screening the energy peak value through a primary peak value extraction model established by the picking threshold value to obtain a primary peak value; extracting a signal section in the continuous filtering discharge signal according to the initial peak value to obtain a discharge signal section; the discharge signal section is analyzed according to the picking threshold value, so that the robustness of the method for picking the neuron discharge spike signal is higher, and the accuracy rate of the picking neuron discharge spike signal is higher.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided a neuron firing spike picking device comprising: a preprocessing module 310, an energy calculation module 320, a peak statistics module 330, a threshold determination module 340, a screening module 350, a signal segment extraction module 360, and a spike determination module 370.
The preprocessing module 310 is configured to preprocess the firing signals of the neurons to be picked to obtain continuous filtering firing signals;
the energy calculation module 320 is configured to perform energy calculation on the continuous filtering discharge signal to obtain a continuous energy signal;
a peak value statistic module 330, configured to perform peak value statistics on the continuous energy signal to determine an energy peak value;
a threshold determination module 340, configured to establish a cumulative distribution function of chi-square distribution according to the continuous energy signals for analysis, and determine a picking threshold;
the screening module 350 is configured to screen the energy peak through a preliminary peak extraction model established by the picking threshold to obtain a preliminary peak;
the signal segment extraction module 360 is configured to extract a signal segment in the continuous filtering discharge signal according to the preliminary peak value to obtain a discharge signal segment;
and the spike signal determining module 370 is configured to analyze the firing signal segments according to the picking threshold to determine a neuron firing spike signal.
In one embodiment, the formula for the energy calculation in the energy calculation module 320 is:
Figure 334495DEST_PATH_IMAGE069
wherein the content of the first and second substances,
Figure 773305DEST_PATH_IMAGE070
in order to be a continuous energy signal,
Figure 172056DEST_PATH_IMAGE071
is a continuous filtering discharge signal.
In one embodiment, the threshold determination module 340 is further configured to: establishing a cumulative distribution function of chi-square distribution according to the continuous energy signals; performing second-order difference on the cumulative distribution function, and determining an outlier critical value of the cumulative distribution function; and taking the cluster critical value as a picking threshold value.
In one embodiment, the cumulative distribution function in the threshold determination module 340 is:
Figure 867480DEST_PATH_IMAGE072
wherein the content of the first and second substances,
Figure 312367DEST_PATH_IMAGE073
the function of the cumulative distribution is represented,
Figure 56333DEST_PATH_IMAGE074
which represents a continuous energy signal, is,
Figure 965383DEST_PATH_IMAGE075
the point in time of the representation of the signal,y 0an outlier threshold representing the cumulative distribution function,
Figure 503811DEST_PATH_IMAGE076
a natural base number is represented by a number,
Figure 200110DEST_PATH_IMAGE077
is the gamma distribution.
In one embodiment, the screening module 350 is further configured to: carrying out maximum extraction on the energy peak value to obtain a maximum point; and comparing the maximum point with the picking threshold value through a primary peak value extraction model established by the picking threshold value to determine a primary peak value.
In one embodiment, the signal segment extraction module 360 is further configured to: determining 1 energy peak value before and after the initial peak value is adjacent to the initial peak value according to the time point corresponding to the initial peak value; determining time points between the front and rear 1 energy peak values adjacent to the primary peak value as time nodes of the discharge section; and determining a discharge signal section of the discharge section on the continuous filtering discharge signal according to the time node of the discharge section.
In one embodiment, spike determination module 370 is further configured to: determining the amplitude of the discharge signal section according to the maximum peak value and the minimum peak value in the discharge signal section; and comparing the amplitude of the discharge signal section with 2 times of the picking threshold value, and determining the discharge signal section with the amplitude larger than 2 times of the picking threshold value as the neuron discharge spike signal.
For specific definition of the neuron firing spike picking device, see the above definition of the neuron firing spike picking method, which is not described herein again. The modules in the above neuron firing spike picking apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above-mentioned neuron firing spike picking method when executing the computer program.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of the above-described method for neuron firing spike picking.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A method of neuron firing spike picking, the method comprising:
preprocessing a neuron discharge signal to be picked to obtain a continuous filtering discharge signal;
performing energy calculation on the continuous filtering discharge signal to obtain a continuous energy signal;
carrying out peak value statistics on the continuous energy signals to determine energy peak values;
establishing a cumulative distribution function of chi-square distribution according to the continuous energy signals for analysis, and determining a picking threshold;
screening the energy peak value through a preliminary peak value extraction model established by the picking threshold value to obtain a preliminary peak value;
extracting a signal section in the continuous filtering discharge signal according to the preliminary peak value to obtain a discharge signal section;
analyzing the firing signal section according to the picking threshold value to determine a neuron firing spike signal;
the step of analyzing the firing signal segment according to the picking threshold to determine a neuron firing spike signal comprises:
determining the amplitude of the discharge signal section according to the maximum peak value and the minimum peak value in the discharge signal section;
and comparing the amplitude of the firing signal section with 2 times of the picking threshold value, and determining the firing signal section with the amplitude larger than 2 times of the picking threshold value as a neuron firing spike signal.
2. The method of claim 1, wherein the energy calculation is formulated as:
yE(n)=|x(n)|2
wherein, yE(n) is a continuous energy signal, and x (n) is a continuous filtering discharge signal.
3. The method of claim 1, wherein said step of establishing a cumulative distribution function of chi-squared distributions from said continuous energy signals for analysis to determine a picking threshold comprises:
establishing a cumulative distribution function of chi-square distribution according to the continuous energy signals;
performing second-order difference on the cumulative distribution function, and determining an outlier critical value of the cumulative distribution function;
and taking the outlier critical value as a picking threshold value.
4. The method of claim 3, wherein the cumulative distribution function is:
Figure FDA0002990902540000021
where chi2cdf (x, n) represents the cumulative distribution function, x represents the continuous energy signal, n represents the time point of the signal, y0Representing the outlier threshold of the cumulative distribution function, e representing the natural base, and Γ being the gamma distribution.
5. The method according to claim 1, wherein the preliminary peak extraction model constructed by the picking threshold screens the energy peaks to obtain preliminary peaks, and the preliminary peak extraction model comprises:
carrying out maximum extraction on the energy peak value to obtain a maximum value point;
and comparing the maximum point with the picking threshold value through a preliminary peak value extraction model established by the picking threshold value to determine a preliminary peak value.
6. The method according to claim 1, wherein the step of extracting the signal segments in the continuously filtered discharge signal according to the preliminary peak values to obtain the discharge signal segments comprises:
determining 1 energy peak value before and after the initial peak value is adjacent to the initial peak value according to the time point corresponding to the initial peak value;
determining time points between the front and rear 1 energy peak values adjacent to the preliminary peak value as time nodes of a discharge section;
and determining a discharge signal section of the discharge section on the continuous filtering discharge signal according to the time node of the discharge section.
7. A neuron firing spike picking device, the device comprising:
the preprocessing module is used for preprocessing the discharge signals of the neurons to be picked to obtain continuous filtering discharge signals;
the energy calculation module is used for performing energy calculation on the continuous filtering discharge signal to obtain a continuous energy signal;
the peak value counting module is used for carrying out peak value counting on the continuous energy signals and determining an energy peak value;
the threshold value determining module is used for establishing a cumulative distribution function of chi-square distribution according to the continuous energy signals for analysis and determining a picking threshold value;
the screening module is used for screening the energy peak value through a primary peak value extraction model constructed by the picking threshold value to obtain a primary peak value;
the signal segment extraction module is used for extracting the signal segments in the continuous filtering discharge signals according to the preliminary peak value to obtain discharge signal segments;
the spike signal determining module is used for analyzing the firing signal section according to the picking threshold value and determining a neuron firing spike signal;
the spike determination module is further to: determining the amplitude of the discharge signal section according to the maximum peak value and the minimum peak value in the discharge signal section; and comparing the amplitude of the firing signal section with 2 times of the picking threshold value, and determining the firing signal section with the amplitude larger than 2 times of the picking threshold value as a neuron firing spike signal.
8. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202110157269.0A 2021-02-05 2021-02-05 Neuron discharge spike signal picking method and device and computer equipment Active CN112472108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110157269.0A CN112472108B (en) 2021-02-05 2021-02-05 Neuron discharge spike signal picking method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110157269.0A CN112472108B (en) 2021-02-05 2021-02-05 Neuron discharge spike signal picking method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN112472108A CN112472108A (en) 2021-03-12
CN112472108B true CN112472108B (en) 2021-05-04

Family

ID=74912352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110157269.0A Active CN112472108B (en) 2021-02-05 2021-02-05 Neuron discharge spike signal picking method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN112472108B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113057656B (en) * 2021-03-29 2022-02-01 浙江大学 Method, device and system for detecting brain nerve spike potential signal on line based on self-adaptive threshold
CN113440139B (en) * 2021-05-26 2023-06-09 上海交通大学重庆研究院 Electrophysiological signal action potential picking method, device and biological state detection method
CN113807242A (en) * 2021-09-15 2021-12-17 西安电子科技大学重庆集成电路创新研究院 Cerebellum purkinje cell complex peak identification method, system, equipment and application
CN116584959B (en) * 2023-07-14 2023-09-26 之江实验室 Method and system for spike detection and feature extraction during deep brain electrical stimulation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010073063A1 (en) * 2008-12-23 2010-07-01 Commissariat A L'energie Atomique Et Aux Energies Alternatives Methods and devices for processing pulse signals, and in particular neural action potential signals
CN109700463A (en) * 2019-03-12 2019-05-03 四川大学 A kind of magneticencephalogram epileptic spike recognition methods and system
CN110945597A (en) * 2017-07-25 2020-03-31 赛尔医疗股份有限公司 Method and system for predicting epileptic seizures

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010073063A1 (en) * 2008-12-23 2010-07-01 Commissariat A L'energie Atomique Et Aux Energies Alternatives Methods and devices for processing pulse signals, and in particular neural action potential signals
CN110945597A (en) * 2017-07-25 2020-03-31 赛尔医疗股份有限公司 Method and system for predicting epileptic seizures
CN109700463A (en) * 2019-03-12 2019-05-03 四川大学 A kind of magneticencephalogram epileptic spike recognition methods and system

Also Published As

Publication number Publication date
CN112472108A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN112472108B (en) Neuron discharge spike signal picking method and device and computer equipment
CN109858461B (en) Method, device, equipment and storage medium for counting dense population
US11561954B2 (en) Method and system to estimate the cardinality of sets and set operation results from single and multiple HyperLogLog sketches
CN111368758B (en) Face ambiguity detection method, face ambiguity detection device, computer equipment and storage medium
CN113057656B (en) Method, device and system for detecting brain nerve spike potential signal on line based on self-adaptive threshold
CN112487913A (en) Labeling method and device based on neural network and electronic equipment
CN112802076A (en) Reflection image generation model and training method of reflection removal model
CN110232349A (en) Shield lower fingerprint and removes shading method, apparatus, computer equipment and storage medium
CN113177640A (en) Discrete asynchronous event data enhancement method
CN115329880A (en) Meteorological feature extraction method and device, computer equipment and storage medium
CN115906337A (en) Engineering structure sectional type main aftershock toughness analysis method and system
CN112698160A (en) Switch cabinet partial discharge fault identification method and device, computer equipment and storage medium
CN112418481A (en) Radar echo map prediction method, device, computer equipment and storage medium
CN112836817A (en) Compression method of convolutional neural network model
Thornton et al. Character recognition using hierarchical vector quantization and temporal pooling
CN115762551A (en) Snore detection method and device, computer equipment and storage medium
CN113139417B (en) Action object tracking method and related equipment
CN113130028A (en) Block chain-based medical electronic medical record information management method and system
CN111598233A (en) Compression method, device and equipment of deep learning model
CN111753598A (en) Face detection method and device
Tsekhmystro et al. Web assembled benchmark for image visual quality assesment, prediction and improvement
CN114037747B (en) Image feature extraction method, device, computer equipment and storage medium
CN116228915B (en) Image reconstruction method, system and equipment based on region judgment
CN117009751B (en) Time sequence data cleaning method and device based on self-adaption
CN111739060B (en) Identification method, equipment and storage medium

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