Multichannel parallel real-time brain nerve spike potential signal detection method, device and system

文档序号:279174 发布日期:2021-11-23 浏览:21次 中文

阅读说明:本技术 一种多通道并行实时脑神经锋电位信号检测方法、装置和系统 (Multichannel parallel real-time brain nerve spike potential signal detection method, device and system ) 是由 陈耀武 宁佳琦 刘凯 蒋国栋 于 2021-07-30 设计创作,主要内容包括:本发明公开了一种多通道并行实时脑神经锋电位信号检测方法、装置和系统,包括以下步骤:接收高通量脑神经信号数据包,并解析数据包获取每个通道的脑神经信号数据;为每个通道的脑神经信号数据配置一个计算单元,每个计算单元单独检测对应通道的脑神经信号数据中的锋电位信号,以实现多通道并行实时脑神经锋电位信号检测;每一帧脑神经信号数据包检测完毕后,保留每个通道的脑神经信号数据的均方差和后一些脑神经信号点,用于下一帧脑神经信号数据包的锋电位信号检测,避免因为传输数据时的数据帧切割导致恰好出现在帧间位置的锋电位信号漏检,提升脑神经锋电位信号的检测准确性。(The invention discloses a method, a device and a system for detecting multichannel parallel real-time cranial nerve spike potential signals, which comprise the following steps: receiving a high-flux cranial nerve signal data packet, and analyzing the data packet to obtain cranial nerve signal data of each channel; configuring a computing unit for the cranial nerve signal data of each channel, wherein each computing unit independently detects spike signals in the cranial nerve signal data of the corresponding channel so as to realize multichannel parallel real-time cranial nerve spike signal detection; after the detection of each frame of cranial nerve signal data packet is finished, the mean square error of cranial nerve signal data of each channel and a plurality of cranial nerve signal points are reserved for detecting the spike signal of the next frame of cranial nerve signal data packet, thereby avoiding missing detection of the spike signal which just appears at the interframe position due to data frame cutting during data transmission and improving the detection accuracy of the cranial nerve spike signal.)

1. A multichannel parallel real-time brain nerve spike potential signal detection method is characterized by comprising the following steps:

receiving a high-flux cranial nerve signal data packet, and analyzing the data packet to obtain cranial nerve signal data of each channel;

configuring a computing unit for the cranial nerve signal data of each channel, wherein each computing unit independently detects spike signals in the cranial nerve signal data of the corresponding channel so as to realize multichannel parallel real-time cranial nerve spike signal detection;

after the detection of each frame of cranial nerve signal data packet is finished, the mean square error of cranial nerve signal data of each channel and a plurality of cranial nerve signal points are reserved for spike signal detection of the next frame of cranial nerve signal data packet.

2. The method as claimed in claim 1, wherein the total number of channels and the signal length are acquired during the analysis of the data packet, and a computing unit is configured for each channel according to the total number of channels and the signal length.

3. The method as claimed in claim 1, wherein when each computing unit individually detects the spike signal in the corresponding channel of the cranial nerve signal data, one computing node is configured for each signal point in the cranial nerve signal data, and the multiple computing nodes perform parallel computation on the multiple signal points to detect the spike signal.

4. The method according to claim 3, wherein the computing node determines the corresponding signal points according to the detection threshold to determine spike feature points, and extracts signals with a certain length before and after the spike feature points as spike signals.

5. The method according to claim 1 or 4, wherein the mean square error of the retained cranial nerve signal data of each channel is used to calculate auxiliary information, and the auxiliary information is used to assist in determining the detection threshold, wherein the auxiliary information (t) of the current frame is:

information(t)=(1-α)·information(t-1)+α·μ(t)

wherein, information (t-1) is the auxiliary information of the previous frame, α is the storage coefficient, and μ (t) is the mean square error of the cranial nerve signal data of each channel.

6. The method for detecting the multi-channel parallel real-time brain nerve spike signal according to claim 5, wherein the detection threshold is determined by:

and accumulating the weighted square sum of all the cranial nerve signals which are greater than the noise band threshold value in the previous section of historical cranial nerve signals by taking the noise band threshold value as a reference value for the previous section of historical cranial nerve signals up to the current cranial nerve signal, and accumulating the auxiliary information to obtain the detection threshold value.

7. The method according to claim 1, wherein the remaining brain nerve signal points of each channel are spliced to the starting position of the brain nerve signal data of the corresponding channel of the next frame, and the spike signal detection is performed on the spliced brain nerve signal data of the next frame.

8. A multichannel parallel real-time brain nerve spike signal detection device is characterized by comprising:

the receiving and analyzing module is used for receiving the high-flux cranial nerve signal data packet and analyzing the data packet to obtain cranial nerve signal data of each channel;

the parallel detection module is used for configuring a computing unit for the cranial nerve signal data of each channel, and each computing unit independently detects spike signals in the cranial nerve signal data of the corresponding channel so as to realize multichannel parallel real-time cranial nerve spike signal detection;

and the retention module is used for retaining the mean square error of the cranial nerve signal data of each channel and a plurality of cranial nerve signal points after the detection of each frame of cranial nerve signal data packet is finished and is used for detecting the spike potential signal of the next frame of cranial nerve signal data packet.

9. A multi-channel parallel real-time brain nerve spike signal detection system comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the multi-channel parallel real-time brain nerve spike signal detection method according to any one of claims 1 to 7 when executing the computer program.

Technical Field

The invention relates to the technical field of cranial nerve signal processing, in particular to a method, a device and a system for detecting a multichannel parallel real-time cranial nerve spike potential signal.

Background

In the field of cranial nerve signal processing technology, on-line detection of multi-channel real-time sampling signals is generally required. The on-line detection requires the real-time performance of the algorithm, and for high-flux signals, the algorithm needs to realize parallelization processing to meet the real-time performance requirement; meanwhile, online detection means that global information cannot be acquired in single detection, and the missing of the global information has a certain influence on the accuracy of the algorithm.

Because the cranial nerve signals of different channels have natural parallelism, the existing embedded processing system has hundreds of parallel computing units, and the two provide possibility for the parallelization of the algorithm; meanwhile, aiming at the loss of global information in online detection, a multichannel parallel brain nerve spike signal detection method with an information storage function is designed, and is used for improving the accuracy of an algorithm.

The parallel detection device and method for spike signals based on FPGA disclosed in patent application with publication number CN102394844A can realize detection of spike signals, and the detection method for spike signals based on adaptive threshold on-line brain nerve spike signals disclosed in patent application with publication number CN113057656A can cause missing detection of spike signals between signal frames.

Disclosure of Invention

In view of the above, the present invention provides a method, an apparatus and a system for detecting a brain nerve spike signal in a multi-channel parallel real-time manner, so as to realize the multi-channel parallel real-time detection of the brain nerve spike signal.

In a first aspect, an embodiment provides a method for detecting a multichannel parallel real-time brain nerve spike signal, including the following steps:

receiving a high-flux cranial nerve signal data packet, and analyzing the data packet to obtain cranial nerve signal data of each channel;

configuring a computing unit for the cranial nerve signal data of each channel, wherein each computing unit independently detects spike signals in the cranial nerve signal data of the corresponding channel so as to realize multichannel parallel real-time cranial nerve spike signal detection;

after the detection of each frame of cranial nerve signal data packet is finished, the mean square error of cranial nerve signal data of each channel and a plurality of cranial nerve signal points are reserved for spike signal detection of the next frame of cranial nerve signal data packet.

Preferably, when the data packet is analyzed, the total number of channels and the signal length are also acquired, and a calculation unit is configured for each channel according to the total number of channels and the signal length.

Preferably, when each computing unit separately detects a spike signal in the cranial nerve signal data of the corresponding channel, one computing node is configured for each signal point in the cranial nerve signal data, and the multiple computing nodes perform parallel computation on multiple signal points to detect the spike signal.

Preferably, the computing node judges the corresponding signal point according to the detection threshold value to determine the spike potential feature point, and extracts a signal with a certain length before and after the spike potential feature point as a spike potential signal.

Preferably, the retained mean square error of the brain neural signal data of each channel is used to calculate auxiliary information, which is used to assist in determining the detection threshold, wherein the auxiliary information (t) of the current frame is:

information(t)=(1-α)·information(t-1)+α·μ(t)

wherein, information (t-1) is the auxiliary information of the previous frame, α is the storage coefficient, and μ (t) is the mean square error of the cranial nerve signal data of each channel.

Preferably, the determination method of the detection threshold is as follows:

and accumulating the weighted square sum of all the cranial nerve signals which are greater than the noise band threshold value in the previous section of historical cranial nerve signals by taking the noise band threshold value as a reference value for the previous section of historical cranial nerve signals up to the current cranial nerve signal, and accumulating the auxiliary information to obtain the detection threshold value.

Preferably, the remaining brain nerve signal points of the brain nerve signal data of each channel are spliced to the starting position of the brain nerve signal data of the corresponding channel of the next frame, and spike signal detection is performed on the spliced brain nerve signal data of the next frame.

In a second aspect, an embodiment provides a multichannel parallel real-time brain nerve spike signal detection apparatus, including:

the receiving and analyzing module is used for receiving the high-flux cranial nerve signal data packet and analyzing the data packet to obtain cranial nerve signal data of each channel;

the parallel detection module is used for configuring a computing unit for the cranial nerve signal data of each channel, and each computing unit independently detects spike signals in the cranial nerve signal data of the corresponding channel so as to realize multichannel parallel real-time cranial nerve spike signal detection;

and the retention module is used for retaining the mean square error of the cranial nerve signal data of each channel and a plurality of cranial nerve signal points after the detection of each frame of cranial nerve signal data packet is finished and is used for detecting the spike potential signal of the next frame of cranial nerve signal data packet.

In a third aspect, an embodiment provides a multichannel parallel real-time brain nerve spike signal detection system, which is characterized by comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the multichannel parallel real-time brain nerve spike signal detection method when executing the computer program.

The technical scheme provided by the embodiment has the beneficial effects that at least:

after acquiring the cranial nerve signal data of each channel by analyzing the data packet, configuring a computing unit for the cranial nerve signal data of each channel, and individually detecting a spike signal in the cranial nerve signal data of the corresponding channel by each computing unit so as to realize multi-channel parallel real-time cranial nerve spike signal detection; meanwhile, the mean square error of the cranial nerve signal data of each channel and a plurality of the following cranial nerve signal points are reserved for detecting the spike signal of the next frame of cranial nerve signal data packet, thereby avoiding missing detection of the spike signal which happens to appear at the interframe position due to data frame cutting during data transmission and improving the detection accuracy of the cranial nerve spike signal.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.

FIG. 1 is a flow diagram of a method for multi-channel parallel real-time brain nerve spike signal detection in one embodiment;

FIG. 2 is a diagram illustrating an exemplary parsing format of a high throughput cranial nerve signal data packet;

FIG. 3 is a diagram illustrating inter-lane serial detection in one embodiment;

FIG. 4 is a diagram illustrating inter-channel parallel detection in one embodiment;

FIG. 5 is a diagram illustrating parallel detection between signal points in an embodiment

FIG. 6 is a schematic diagram of signal point splicing in one embodiment;

FIG. 7 is a schematic diagram of an embodiment of a multi-channel parallel real-time brain spike signal detection apparatus.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the detailed description and specific examples, while indicating the scope of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.

Under the existing general embedded processor system, the embodiment provides a method, a device and a system for detecting a multichannel parallel real-time cranial nerve spike potential signal, which can carry out on-line detection on a high-flux cranial nerve signal acquired in real time.

FIG. 1 is a flowchart illustrating a method for detecting a multi-channel parallel real-time brain nerve spike signal according to an embodiment. As shown in fig. 1, the method for detecting a multichannel parallel real-time brain nerve spike signal provided by the embodiment includes the following steps:

step 1, receiving a high-flux cranial nerve signal data packet, and analyzing the data packet to obtain cranial nerve signal data of each channel.

In the embodiment, data analysis is performed on the high-flux cranial nerve signal data packets according to the channel types to obtain data such as the total channel number, the signal length, the signal value and the like, as shown in fig. 2, when each data packet is analyzed, after the multichannel cranial nerve signal data is spread, the total channel number, the signal length and the linked list nodes are obtained, and each linked list node corresponds to the cranial nerve signal data of one channel.

And 2, configuring a computing unit for the cranial nerve signal data of each channel, and individually detecting spike signals in the cranial nerve signal data of the corresponding channel by each computing unit.

Before parallel processing is performed on multi-channel cranial nerve signal data, calculation among channels is in a serial mode, as shown in fig. 3, a calculation unit performs detection on a channel 2 after detection on a channel 1 is completed, performs detection on a channel 3 after detection on the channel 2 is completed, and so on, and assuming that the total number of channels is N and the signal length of each channel is M, the time complexity of the whole detection flow is o (nm).

In the embodiment, a parallel channel cranial nerve signal data processing mode is adopted, as shown in fig. 4, a computing unit is configured for each channel according to the total channel number and the signal length, each computing unit independently detects spike signals in cranial nerve signal data of a corresponding channel, that is, spike detection of each channel is performed in parallel and independent of each other, so as to realize multichannel parallel real-time cranial nerve spike signal detection, and the detection complexity of the multichannel parallel detection mode is reduced to o (m).

In the embodiment, on the basis of channel parallel processing, two-stage parallel is also implemented, that is, parallel processing is also adopted among each signal point, that is, a computing node is configured for each signal point in the cranial nerve signal data, and the multi-computing node performs parallel computing on the multi-signal point to detect spike potential signals.

Before parallel, the calculation among the signal points is in a serial mode, the calculation unit detects the signal point 2 after the detection of the signal point 1 is finished, detects the signal point 3 after the detection of the signal point 2 is finished, and so on, and if the signal length of each channel is M, the time complexity of the detection flow of each channel is O (M).

In the embodiment, a signal point parallel processing mode is adopted, as shown in fig. 5, a computing node is assigned to each signal point, the spike characteristic point judgment of each signal point is performed in parallel and independent of each other, when a point is judged to be a spike characteristic point, signals of a certain length before and after the point are extracted as spike signals, and the detection complexity is reduced to O (1).

In the embodiment, when detecting a spike signal, the computing node judges the corresponding signal point according to the detection threshold value to determine a spike characteristic point, and extracts signals with a certain length before and after the spike characteristic point as the spike signal.

And 3, after the detection of each frame of cranial nerve signal data packet is finished, reserving the mean square error of cranial nerve signal data of each channel and a plurality of cranial nerve signal points later for spike signal detection of the next frame of cranial nerve signal data packet.

In the embodiment, after the detection of each frame of the cranial nerve signal data packet is finished, two kinds of information are reserved, wherein one kind of information is the mean square value of the current frame signal, and the other kind of information is the last L nerve signal points of each channel.

The retained mean square error of the cranial nerve signal data of each channel is used for calculating auxiliary information, and the auxiliary information is used for assisting in determining a detection threshold, wherein the auxiliary information (t) of the current frame is as follows:

information(t)=(1-α)·information(t-1)+α·μ(t)

wherein, information (t-1) is the auxiliary information of the previous frame, α is the storage coefficient, and μ (t) is the mean square error of the cranial nerve signal data of each channel.

In an embodiment, the method for determining the detection threshold according to the auxiliary information includes:

and accumulating the weighted square sum of all the cranial nerve signals which are greater than the noise band threshold value in the previous section of historical cranial nerve signals by taking the noise band threshold value as a reference value for the previous section of historical cranial nerve signals up to the current cranial nerve signal, and accumulating the auxiliary information to obtain the detection threshold value.

Specifically, the calculation formula of the detection threshold is as follows:

wherein the content of the first and second substances,an adaptive threshold, thresh, representing the tth cranial nerve signalnoiseThe noise band threshold value of the testing period where the apparent cranial nerve signal belongs, beta is a weight coefficient, the value range is 2-4, L is the length of the previous section of historical cranial nerve signals until the t-th cranial nerve signal, and k is the index of the cranial nerve signal in L.

As shown in fig. 6, the last L cranial nerve signal points of the cranial nerve signal data of each channel are spliced to the starting position of the cranial nerve signal data of the corresponding channel of the next frame, and spike signal detection is performed on the spliced next frame of cranial nerve signal data, so that missing detection of spike signals which just appear at inter-frame positions due to data frame cutting during data transmission can be avoided, and the detection accuracy of the cranial nerve spike signals is improved.

Based on the same inventive concept, as shown in fig. 7, an embodiment further provides a multi-channel parallel real-time brain spike signal detecting apparatus 700, including:

the receiving and analyzing module 710 is configured to receive the high-flux cranial nerve signal data packet, and analyze the data packet to obtain cranial nerve signal data of each channel;

the parallel detection module 720 is configured to configure a computing unit for the cranial nerve signal data of each channel, and each computing unit separately detects a spike signal in the cranial nerve signal data of the corresponding channel to realize multi-channel parallel real-time cranial nerve spike signal detection;

and a reserving module 730, configured to reserve the mean square error of the cranial nerve signal data of each channel and some of the following cranial nerve signal points after the detection of each frame of cranial nerve signal data packet is completed, and use the data in the spike signal detection of the next frame of cranial nerve signal data packet.

It should be noted that, when the multi-channel parallel real-time brain nerve spike signal detection device provided in the embodiment performs online brain nerve spike signal detection, the division of the functional modules is taken as an example, and the function distribution can be completed by different functional modules according to needs, that is, the internal structure of the terminal or the server is divided into different functional modules to complete all or part of the functions described above. In addition, the embodiment of the multi-channel parallel real-time brain nerve spike signal detection device and the embodiment of the multi-channel parallel real-time brain nerve spike signal detection method provided by the embodiment belong to the same concept, and the specific implementation process is detailed in the embodiment of the multi-channel parallel real-time brain nerve spike signal detection method, and is not described herein again.

In the method and the device for detecting a multichannel parallel real-time cranial nerve spike signal provided by the embodiment, after the cranial nerve signal data of each channel is acquired by analyzing a data packet, a computing unit is configured for the cranial nerve signal data of each channel, and each computing unit independently detects a spike signal in the cranial nerve signal data of the corresponding channel so as to realize multichannel parallel real-time cranial nerve spike signal detection; the information storage function that has simultaneously, be used for the spike signal detection of next frame cranial nerve signal data package through keeping the mean square error of cranial nerve signal data of every passageway and some cranial nerve signal points afterwards, avoid because the data frame cutting when transmitting data leads to appearing in the spike signal of interframe position just missing the detection, promote the detection accuracy of cranial nerve spike signal.

The embodiment also provides a multichannel parallel real-time brain nerve spike signal detection system, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the multichannel parallel real-time brain nerve spike signal detection method is realized when the computer program is executed by the processor.

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 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. In particular, the calculation processor may be a Central Processing Unit (CPU), a microprocessor unit (MPU), a Digital Signal Processor (DSP), or a Field Programmable Gate Array (FPGA).

The above-mentioned embodiments are intended to illustrate the technical solutions and advantages of the present invention, and it should be understood that the above-mentioned embodiments are only the most preferred embodiments of the present invention, and are not intended to limit the present invention, and any modifications, additions, equivalents, etc. made within the scope of the principles of the present invention should be included in the scope of the present invention.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:疲劳识别模型的训练方法、装置、终端及介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!