[go: up one dir, main page]

CN114356074B - Animal brain-computer interface implementation method and system based on in-vivo fluorescence signals - Google Patents

Animal brain-computer interface implementation method and system based on in-vivo fluorescence signals Download PDF

Info

Publication number
CN114356074B
CN114356074B CN202111447778.3A CN202111447778A CN114356074B CN 114356074 B CN114356074 B CN 114356074B CN 202111447778 A CN202111447778 A CN 202111447778A CN 114356074 B CN114356074 B CN 114356074B
Authority
CN
China
Prior art keywords
brain
fluorescence
frame
signal
indicator
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
CN202111447778.3A
Other languages
Chinese (zh)
Other versions
CN114356074A (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.)
Shanghai Jiao Tong University
Original Assignee
Shanghai Jiao Tong University
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 Shanghai Jiao Tong University filed Critical Shanghai Jiao Tong University
Priority to CN202111447778.3A priority Critical patent/CN114356074B/en
Publication of CN114356074A publication Critical patent/CN114356074A/en
Application granted granted Critical
Publication of CN114356074B publication Critical patent/CN114356074B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Investigating, Analyzing Materials By Fluorescence Or Luminescence (AREA)

Abstract

The invention provides an animal brain-computer interface realization method and system based on an in-vivo fluorescence signal, comprising the following steps: injecting a calcium ion indicator or indicator protein into the cortex or deep nucleus of the brain to express the indicator or indicator protein in cells by using in vivo viruses; after the indication medium enters the cells, implanting a brain interface in a target brain area of the experimental animal, recording, and transmitting a recording result to a signal processing host; after the data result is transmitted, the data result enters a decoding algorithm to identify a pattern rule, and an output interface outputs the pattern rule to a control end; after the control terminal receiving device receives the signals, recoding the signals finally realizes coding control on external equipment, and brain-computer interaction is formed. The invention can solve the problems that the signal source of the traditional brain-computer interface of the brain-computer signal is greatly influenced by external electrical noise, and the problems of single coded information and low coding efficiency.

Description

基于在体荧光信号的动物脑机接口实现方法及系统Animal brain-computer interface implementation method and system based on in vivo fluorescence signal

技术领域Technical Field

本发明涉及脑电信号采集技术领域,具体地,涉及一种基于在体荧光信号的动物脑机接口实现方法及系统。The present invention relates to the technical field of electroencephalogram (EEG) signal acquisition, and in particular to a method and system for realizing an animal brain-computer interface based on in vivo fluorescence signals.

背景技术Background technique

脑机接口指在人或动物大脑与外部设备之间创建的直接连接,实现脑与设备的信息交换。目前常用脑机接口采用神经活动电信号进行信息解码,在生活场景中遇到的外部电干扰交大,在自由活动场景中使用较为局限。近年来,在动物实验中通过在体荧光显微成像技术,利用神经化学物质探针可以详细的记录到神经活动变化。通过这种方法可以精确的解析不同神经元的活动规律,同时为脑机接口中的信号识别提供了良好的信号来源,供信息解码和在编码。A brain-computer interface refers to a direct connection created between the human or animal brain and an external device to achieve information exchange between the brain and the device. Currently, the commonly used brain-computer interface uses electrical signals of neural activity to decode information. The external electrical interference encountered in life scenarios is very large, and its use in free activity scenarios is relatively limited. In recent years, in animal experiments, through in vivo fluorescence microscopy technology, neurochemical probes can be used to record changes in neural activity in detail. This method can accurately analyze the activity patterns of different neurons, and at the same time provide a good signal source for signal recognition in brain-computer interfaces, for information decoding and re-encoding.

公开号为CN106293088A的发明专利,公开了一种脑机接口处理系统及其实现方法,所述脑机接口处理系统包括脑机接口处理装置和软件应用平台,所述脑机接口处理装置包括依次连接的干电极、脑电信号采集及解析模块、微处理器、无线通信模块和处理及显示终端,所述软件应用平台包括脑电信号存储模块、脑电信号在线反馈模块和开放的API接口,所述微处理器分别与无线通信模块、脑电信号存储模块、脑电信号在线反馈模块和开放的API接口进行信息交互;所述无线通信模块与处理及显示终端进行信息交互。The invention patent with publication number CN106293088A discloses a brain-computer interface processing system and its implementation method. The brain-computer interface processing system includes a brain-computer interface processing device and a software application platform. The brain-computer interface processing device includes dry electrodes, EEG signal acquisition and analysis modules, microprocessors, wireless communication modules and processing and display terminals connected in sequence. The software application platform includes an EEG signal storage module, an EEG signal online feedback module and an open API interface. The microprocessor interacts with the wireless communication module, the EEG signal storage module, the EEG signal online feedback module and the open API interface respectively; the wireless communication module interacts with the processing and display terminal.

现有技术中存在以下缺陷:常用脑机接口中脑电信号受外部电噪声影响较大,对实现环境要求较高;脑电信号空间分辨率低,限制了脑机接口的编码能力;记录到的神经元信号无法长期对应,信号之间极易产生干扰。The existing technology has the following defects: the EEG signals in commonly used brain-computer interfaces are greatly affected by external electrical noise, and have high requirements for the implementation environment; the spatial resolution of EEG signals is low, which limits the encoding ability of the brain-computer interface; the recorded neuronal signals cannot correspond for a long time, and interference is very easy to occur between signals.

发明内容Summary of the invention

针对现有技术中的缺陷,本发明提供一种基于在体荧光信号的动物脑机接口实现方法及系统。In view of the defects in the prior art, the present invention provides a method and system for realizing an animal brain-computer interface based on in vivo fluorescence signals.

根据本发明提供的一种基于在体荧光信号的动物脑机接口实现方法及系统,所述方案如下:According to the present invention, a method and system for realizing an animal brain-computer interface based on in vivo fluorescence signals are provided, and the scheme is as follows:

第一方面,提供了一种基于在体荧光信号的动物脑机接口实现方法,所述实现方法包括:In a first aspect, a method for implementing an animal brain-computer interface based on an in vivo fluorescent signal is provided, the method comprising:

步骤S1:通过在大脑皮层或深部核团,注射钙离子指示剂或者指示蛋白在体病毒,使指示剂或者指示蛋白在胞内表达;Step S1: injecting a calcium ion indicator or an indicator protein in vivo virus into the cerebral cortex or deep nuclei to express the indicator or indicator protein in cells;

步骤S2:在指示媒介进入细胞后,在实验动物目标脑区植入脑部接口,通过在体微型荧光显微镜进行记录,记录结果经过信号采集主机,传输至信号处理主机;Step S2: After the indicator medium enters the cell, a brain interface is implanted in the target brain region of the experimental animal, and the recording is performed through an in vivo miniature fluorescence microscope. The recording results are transmitted to the signal processing host through the signal acquisition host;

步骤S3:数据结果经过传入后,进入解码算法进行模式规律识别,并经指令输出接口输出至控制端;Step S3: After the data result is input, it enters the decoding algorithm to identify the pattern and is output to the control end through the command output interface;

步骤S4:控制端接收装置接收信号后,对信号再编码最终实现对外部设备进行编码控制,形成脑机交互。Step S4: After receiving the signal, the control end receiving device re-encodes the signal to finally realize the coded control of the external device to form brain-computer interaction.

优选的,所述指示剂中荧光指示信号表达后,影像数据经采集端传入信号处理端进行信号处理,具体包括:实验动物大脑活动荧光原始信号经过采集设备采集后,传输至信号处理主机进行在线处理;原始数据需要经过算法进行神经元活动提取和识别,主要包括降噪校正和细胞标记。Preferably, after the fluorescent indication signal in the indicator is expressed, the image data is transmitted to the signal processing end through the acquisition end for signal processing, specifically including: the original fluorescent signal of the experimental animal's brain activity is collected by the acquisition device and then transmitted to the signal processing host for online processing; the original data needs to be processed by an algorithm for neuronal activity extraction and identification, mainly including noise reduction correction and cell labeling.

优选的,所述降噪校正是降低运动导致的信号噪音干扰,并对相同神经元不同时间点的位置进行实时校正,通过在原始图像帧上应用异性扩散去噪操作实现;Preferably, the noise reduction correction is to reduce the signal noise interference caused by movement and to perform real-time correction on the positions of the same neuron at different time points, which is achieved by applying anisotropic diffusion denoising operation on the original image frame;

对于每一帧图像,I∈RHxW,对于给定的扩散时间τ,演化遵循等式:For each frame image, I∈R HxW , for a given diffusion time τ , the evolution follows the equation:

其中,div是散度算子,和Δ分别是梯度和拉普拉斯算子,C是取决于像素和τ的扩散系数矩阵;Among them, div is the divergence operator, and Δ are the gradient and Laplacian operators, respectively, and C is the diffusion coefficient matrix that depends on pixels and τ;

I表示当前帧;RHxW表示帧集合;H表示帧画面高度;W表示帧画面宽度;I represents the current frame; R HxW represents a frame set; H represents the frame height; W represents the frame width;

随后,在不同帧之间使用KTL跟踪器来估计两个相邻帧之间潜在角状特征的位移;基于KTL跟踪器配准后,使用diffeomorphic Log-Demons进行进一步单位配准;Subsequently, a KTL tracker is used between different frames to estimate the displacement of potential angular features between two adjacent frames. After alignment based on the KTL tracker, diffeomorphic Log-Demons is used for further unit alignment.

最后采集到的影像数据将是运动噪音最小化,进而进行后续分析处理。The image data finally collected will minimize motion noise for subsequent analysis and processing.

优选的,所述细胞标记包括:经过图像平滑处理后,需要对潜在的细胞轮廓影像进行细胞标记:Preferably, the cell marking includes: after image smoothing, it is necessary to mark the potential cell outline image:

首先,随机选择一部分帧:First, randomly select a portion of the frames:

其中,a是随机轮廓集的帧编号;s表示轮廓投影;T表示最大帧编号;Where a is the frame number of the random contour set; s represents the contour projection; T represents the maximum frame number;

然后计算所选帧的最大投影图:Then calculate the maximum projection map of the selected frame:

并检测该图上所有局部最大点为Sα,多次重复上述过程,其中任意两个自己不包含相同的帧;And detect all local maximum points on the graph as S α , repeat the above process multiple times, any two of them do not contain the same frame;

最终采集全部最大投影图的Sα和有完整轮廓数据集计算最大投影图S的整合,作为最终的神经元轮廓种子集合。Finally, the integration of S α of all maximum projection images and the maximum projection image S calculated with the complete contour data set is collected as the final neuron contour seed set.

优选的,获得神经元轮廓之后,系统将对相应神经元进行荧光活动监测和模式学习和分类,具体地:Preferably, after obtaining the neuron profile, the system will perform fluorescence activity monitoring, pattern learning and classification on the corresponding neurons, specifically:

首先,需要对影像数据的荧光亮度归一化,用目标细胞轮廓的平均亮度Ft减去平局的背景荧光亮度F0再除以除以背景荧光亮度值F0,计算公式如下,其中ΔFt/F0简写为ΔF/F: First, the fluorescence brightness of the image data needs to be normalized. The average brightness of the target cell outline Ft minus the average background fluorescence brightness F0 is divided by the background fluorescence brightness value F0 . The calculation formula is as follows, where ΔFt / F0 is abbreviated as ΔF/F:

其次,还需要利用指数加权移动平均方法对记录到的钙信号进行去噪平滑;Secondly, it is necessary to use the exponentially weighted moving average method to de-noise and smooth the recorded calcium signals;

再次,在获得平滑后的荧光强度变化数值后,在线侦测荧光活动事件;Thirdly, after obtaining the smoothed fluorescence intensity change value, the fluorescence activity events are detected online;

最后,同步采集实验动物行为,并对动物行为和实时荧光成像结果进行配对,进行模式学习,并基于PCA和SVM算法进行特征提取和模式分类,对存在的荧光活动模式进行分类学习;Finally, the experimental animal behavior is collected synchronously, and the animal behavior and real-time fluorescence imaging results are paired for pattern learning. Based on the PCA and SVM algorithms, feature extraction and pattern classification are performed to classify and learn the existing fluorescence activity patterns.

在经过模式学习和分类后,根据分类模式对输出指令进行对应编码,执行工作时在线对荧光活动模式进行判断,并输出对应指令,控制外部设备。After pattern learning and classification, the output instructions are encoded accordingly according to the classification pattern. When executing the work, the fluorescent activity pattern is judged online, and the corresponding instructions are output to control the external equipment.

优选的,获得神经元轮廓之后,选用整体荧光观察方法,对核团活性进行指征,获得神经元轮廓后,计算整幅帧图像的平均灰度值,其步骤在于统计整幅图像的所有像素点,累加求取所有像素点的灰度值总和,平均灰度值为灰度值总和与像素点个数之商。Preferably, after obtaining the neuron outline, an overall fluorescence observation method is used to indicate the activity of the nucleus. After obtaining the neuron outline, the average grayscale value of the entire frame image is calculated. The steps are to count all the pixels of the entire image, accumulate the sum of the grayscale values of all the pixels, and the average grayscale value is the quotient of the sum of the grayscale values and the number of pixels.

优选的,计算平均灰度值具体步骤为:Preferably, the specific steps for calculating the average gray value are:

1)统计每一帧数据源图像的像素的灰度值进行累加求和sum;1) Count the grayscale values of the pixels of each frame of the data source image and add them up;

2)计算图像的像素点总个数:n=view width*view height;2) Calculate the total number of pixels in the image: n = view width * view height;

3)求图像的平均灰度值:avg_value=sum/n;3) Find the average gray value of the image: avg_value = sum/n;

获取平均值后,实时追踪平均荧光强度变化,绘制荧光强度曲线,进行核团活动监测;并根据研究需求设定活动阈值,在实际工作过程中,实时进行超阈监测,一旦超出阈值,即触发指令输出,实现对外部设备进行控制或进行闭环调控。After obtaining the average value, the change of average fluorescence intensity is tracked in real time, the fluorescence intensity curve is drawn, and nuclear activity is monitored; and the activity threshold is set according to research needs. In the actual working process, over-threshold monitoring is performed in real time. Once the threshold is exceeded, the command output is triggered to achieve control of external equipment or closed-loop regulation.

第二方面,提供了一种基于在体荧光信号的动物脑机接口系统,所述系统包括:In a second aspect, an animal brain-computer interface system based on in vivo fluorescence signals is provided, the system comprising:

模块M1:通过在大脑皮层或深部核团,注射钙离子指示剂或者指示蛋白在体病毒,使指示剂或者指示蛋白在胞内表达;Module M1: Inject calcium ion indicator or indicator protein in vivo virus into the cerebral cortex or deep nuclei to express the indicator or indicator protein in cells;

模块M2:在指示媒介进入细胞后,在实验动物目标脑区植入脑部接口,通过在体微型荧光显微镜进行记录,记录结果经过信号采集主机,传输至信号处理主机;Module M2: After the indicator medium enters the cell, a brain interface is implanted in the target brain area of the experimental animal, and the recording is performed through an in vivo miniature fluorescence microscope. The recording results are transmitted to the signal processing host through the signal acquisition host;

模块M3:数据结果经过传入后,进入解码算法进行模式规律识别,并经指令输出接口输出至控制端;Module M3: After the data result is input, it enters the decoding algorithm for pattern recognition and is output to the control end through the command output interface;

模块M4:控制端接收装置接收信号后,对信号再编码最终实现对外部设备进行编码控制,形成脑机交互。Module M4: After receiving the signal, the control end receiving device re-encodes the signal to finally realize the coded control of the external device to form brain-computer interaction.

优选地,所述指示剂中荧光指示信号表达后,影像数据经采集端传入信号处理端进行信号处理,具体包括:实验动物大脑活动荧光原始信号经过采集设备采集后,传输至信号处理主机进行在线处理;原始数据需要经过算法进行神经元活动提取和识别,主要包括降噪校正和细胞标记。Preferably, after the fluorescent indication signal in the indicator is expressed, the image data is transmitted to the signal processing end through the acquisition end for signal processing, specifically including: the original fluorescent signal of the experimental animal's brain activity is collected by the acquisition device and then transmitted to the signal processing host for online processing; the original data needs to be processed by an algorithm for neuronal activity extraction and identification, mainly including noise reduction correction and cell labeling.

优选地,所述降噪校正是降低运动导致的信号噪音干扰,并对相同神经元不同时间点的位置进行实时校正,通过在原始图像帧上应用异性扩散去噪操作实现;Preferably, the noise reduction correction is to reduce the signal noise interference caused by motion and to perform real-time correction on the positions of the same neuron at different time points, which is achieved by applying anisotropic diffusion denoising operation on the original image frame;

对于每一帧图像,I∈RHxW,对于给定的扩散时间τ,演化遵循等式:For each frame image, I∈R HxW , for a given diffusion time τ , the evolution follows the equation:

其中,div是散度算子,和Δ分别是梯度和拉普拉斯算子,C是取决于像素和τ的扩散系数矩阵;Among them, div is the divergence operator, and Δ are the gradient and Laplacian operators, respectively, and C is the diffusion coefficient matrix that depends on pixels and τ;

I表示当前帧;RHxW表示帧集合;H表示帧画面高度;W表示帧画面宽度;I represents the current frame; R HxW represents a frame set; H represents the frame height; W represents the frame width;

随后,在不同帧之间使用KTL跟踪器来估计两个相邻帧之间潜在角状特征的位移;基于KTL跟踪器配准后,使用diffeomorphic Log-Demons进行进一步单位配准;Subsequently, a KTL tracker is used between different frames to estimate the displacement of potential angular features between two adjacent frames. After alignment based on the KTL tracker, diffeomorphic Log-Demons is used for further unit alignment.

最后采集到的影像数据将是运动噪音最小化,进而进行后续分析处理。The image data finally collected will minimize motion noise for subsequent analysis and processing.

与现有技术相比,本发明具有如下的有益效果:Compared with the prior art, the present invention has the following beneficial effects:

1、本发明通过采集神经元活性探针荧光作为神经活动信号来源,解决传统脑电信号脑机接口信号来源受外界电噪声影响大的问题;1. The present invention collects the fluorescence of neuron activity probes as the source of neural activity signals, thereby solving the problem that the signal source of traditional EEG brain-computer interface is greatly affected by external electrical noise;

2、本发明通过大规模的神经元活动识别,进行大规模数据解码在编码,解决编码信息单一,编码效率低的问题。2. The present invention performs large-scale data decoding and encoding through large-scale neuron activity recognition, thereby solving the problems of single coding information and low coding efficiency.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

通过阅读参照以下附图对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

图1为本发明系统构成图;FIG1 is a diagram showing the system configuration of the present invention;

图2为本发明具体工作原理示意图。FIG. 2 is a schematic diagram of the specific working principle of the present invention.

附图标记:Reference numerals:

采集前端 1 实验动物 2Collection front end 1 Experimental animals 2

脑部接口 3 信号采集主机 4Brain interface 3 Signal acquisition host 4

信号处理主机 5 第一信号模式 6Signal processing host 5 First signal mode 6

第二信号模式 7 模式规律识别 8Second signal pattern 7 Pattern recognition 8

指令输出接口 9 控制端接收装置 10Command output interface 9 Control end receiving device 10

外部设备 11 荧光原始信号 101External Devices 11 Fluorescence Raw Signals 101

细胞识别模块 102 细胞识别结果 103Cell Identification Module 102 Cell Identification Results 103

模式学习和分类 104 模式库 105Pattern Learning and Classification 104 Pattern Library 105

模式判断指令输出模块 106 均值计算模块 107Mode judgment instruction output module 106 Mean value calculation module 107

活动监测模块 108 阈值监测模块 109Activity Monitoring Module 108 Threshold Monitoring Module 109

指令输出模块 110Command output module 110

具体实施方式Detailed ways

下面结合具体实施例对本发明进行详细说明。以下实施例将有助于本领域的技术人员进一步理解本发明,但不以任何形式限制本发明。应当指出的是,对本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变化和改进。这些都属于本发明的保护范围。The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

为了拓展脑机接口的大脑信号来源,降低外界电噪音对脑机接口功能的影响,丰富脑机接口的编码能力,避免神经电信号之间的互相干扰,本发明实施例提供了一种基于在体荧光信号的动物脑机接口系统,能够同时监测上千个神经元活动、不受外界电噪声干扰可以进行复杂编码;该系统可以对复杂的局部大脑活动进行解码,与外部设备11形成交互,对设备进行控制。In order to expand the brain signal source of the brain-computer interface, reduce the impact of external electrical noise on the function of the brain-computer interface, enrich the coding capability of the brain-computer interface, and avoid mutual interference between neural electrical signals, an embodiment of the present invention provides an animal brain-computer interface system based on in vivo fluorescence signals, which can monitor the activities of thousands of neurons at the same time, is not affected by external electrical noise, and can perform complex encoding; the system can decode complex local brain activities, interact with external devices 11, and control the devices.

一种基于在体荧光信号的动物脑机接口系统,通过荧光探针标记神经元内活性物质,可以间接反映神经元、神经系统的活动模式以及编码状态,以此为信号来源进行神经元信号解码能够提供除了电信号以外更为丰富信号来源,供脑机接口信号进行解码和再编码。参照图1和图2所示,该系统主要包括:化学物质指示媒介、在体荧光检测采集设备以及信号处理设备和输出控制终端。An animal brain-computer interface system based on in vivo fluorescence signals can indirectly reflect the activity pattern and coding state of neurons and nervous systems by marking active substances in neurons with fluorescent probes. Decoding neuronal signals using this as a signal source can provide a richer signal source in addition to electrical signals for decoding and recoding brain-computer interface signals. Referring to Figures 1 and 2, the system mainly includes: a chemical indicator medium, an in vivo fluorescence detection and acquisition device, a signal processing device, and an output control terminal.

化学物质指示媒介主要通过钙离子指示剂或者其他类型的化学物质荧光探针实现,包括所有浓度变化能指示神经细胞功能状态的离子和化合物的指示探针;The chemical indicator medium is mainly realized by calcium ion indicators or other types of chemical fluorescent probes, including all ion and compound indicator probes whose concentration changes can indicate the functional state of nerve cells;

在体荧光检测设备主要由微型在体荧光成像显微镜构成;The in vivo fluorescence detection equipment is mainly composed of a miniature in vivo fluorescence imaging microscope;

信号处理设备和输出控制终端由基于计算机的解码和编码算法及软硬件构成。The signal processing equipment and output control terminal are composed of computer-based decoding and encoding algorithms and software and hardware.

该系统中包括如下模块:模块M1:通过在大脑皮层或深部核团,注射钙离子指示剂或者指示蛋白在体病毒,使指示剂或者指示蛋白在胞内表达;The system includes the following modules: Module M1: injecting calcium ion indicator or indicator protein in vivo virus into the cerebral cortex or deep nuclei to express the indicator or indicator protein in cells;

模块M2:在指示媒介进入细胞后,在实验动物目标脑区植入脑部接口,通过在体微型荧光显微镜进行记录,记录结果经过信号采集主机,传输至信号处理主机;Module M2: After the indicator medium enters the cell, a brain interface is implanted in the target brain area of the experimental animal, and the recording is performed through an in vivo miniature fluorescence microscope. The recording results are transmitted to the signal processing host through the signal acquisition host;

模块M3:数据结果经过传入后,进入解码算法进行模式规律识别,并经指令输出接口输出至控制端;Module M3: After the data result is input, it enters the decoding algorithm for pattern recognition and is output to the control end through the command output interface;

模块M4:控制端接收装置接收信号后,对信号再编码最终实现对外部设备进行编码控制,形成脑机交互。Module M4: After receiving the signal, the control end receiving device re-encodes the signal to finally realize the coded control of the external device to form brain-computer interaction.

指示剂中荧光指示信号表达后,影像数据经采集端传入信号处理端进行信号处理,具体包括:实验动物大脑活动荧光原始信号经过采集设备采集后,传输至信号处理主机进行在线处理;原始数据需要经过算法进行神经元活动提取和识别,主要包括降噪校正和细胞标记。After the fluorescent indication signal in the indicator is expressed, the image data is transmitted to the signal processing end through the acquisition end for signal processing, which specifically includes: the original fluorescent signal of the experimental animal's brain activity is collected by the acquisition device and then transmitted to the signal processing host for online processing; the original data needs to be processed by the algorithm for neuronal activity extraction and identification, mainly including noise reduction correction and cell labeling.

降噪校正是降低运动导致的信号噪音干扰,并对相同神经元不同时间点的位置进行实时校正,通过在原始图像帧上应用异性扩散去噪操作实现;Denoising correction is to reduce the signal noise interference caused by motion and to correct the position of the same neuron at different time points in real time, which is achieved by applying anisotropic diffusion denoising operation on the original image frame;

对于每一帧图像,I∈RHxW,对于给定的扩散时间τ,演化遵循等式:For each frame image, I∈R HxW , for a given diffusion time τ , the evolution follows the equation:

其中,div是散度算子,和Δ分别是梯度和拉普拉斯算子,C是取决于像素和τ的扩散系数矩阵;Among them, div is the divergence operator, and Δ are the gradient and Laplacian operators, respectively, and C is the diffusion coefficient matrix that depends on pixels and τ;

I表示当前帧;RHxW表示帧集合;H表示帧画面高度;W表示帧画面宽度;I represents the current frame; R HxW represents a frame set; H represents the frame height; W represents the frame width;

随后,在不同帧之间使用KTL跟踪器来估计两个相邻帧之间潜在角状特征的位移。基于KTL跟踪器配准后,使用diffeomorphic Log-Demons进行进一步单位配准;Subsequently, a KTL tracker is used between different frames to estimate the displacement of potential angular features between two adjacent frames. After KTL tracker-based registration, diffeomorphic Log-Demons is used for further unit registration;

最后采集到的影像数据将是运动噪音最小化,进而进行后续分析处理。The image data finally collected will minimize motion noise for subsequent analysis and processing.

本发明还提供了一种基于在体荧光信号的动物脑机接口实现方法,该方法包括:The present invention also provides a method for realizing an animal brain-computer interface based on an in vivo fluorescent signal, the method comprising:

步骤S1:通过在大脑皮层或深部核团,注射钙离子指示剂或者指示蛋白在体病毒,使指示剂或者指示蛋白在胞内表达;Step S1: injecting a calcium ion indicator or an indicator protein in vivo virus into the cerebral cortex or deep nuclei to express the indicator or indicator protein in cells;

步骤S2:在指示媒介进入细胞后,在实验动物2目标脑区植入脑部接口3,通过在体微型荧光显微镜进行记录,记录结果经过信号采集主机4,传输至信号处理主机5;Step S2: After the indicator medium enters the cell, a brain interface 3 is implanted in the target brain region of the experimental animal 2, and the recording is performed through an in vivo miniature fluorescence microscope. The recording result is transmitted to the signal processing host 5 through the signal acquisition host 4;

步骤S3:数据结果经过传入后,进入解码算法进行模式规律识别8,并经指令输出接口9输出至控制端;Step S3: After the data result is input, it enters the decoding algorithm for pattern recognition 8 and is output to the control end through the instruction output interface 9;

步骤S4:控制端接收装置10接收信号后,对信号再编码最终实现对外部设备11进行编码控制,形成脑机交互。Step S4: After receiving the signal, the control end receiving device 10 re-encodes the signal to finally implement coding control of the external device 11 to form brain-computer interaction.

具体地,指示剂中荧光指示信号表达后,影像数据经采集端传入信号处理端进行信号处理,具体包括:实验动物2大脑活动荧光原始信号101经过采集设备采集后,传输至信号处理主机5进行在线处理;原始数据需要经过细胞识别模块102的算法进行神经元活动提取和识别,主要包括降噪校正和细胞标记。Specifically, after the fluorescent indication signal in the indicator is expressed, the image data is transmitted to the signal processing end through the acquisition end for signal processing, which specifically includes: the original fluorescent signal 101 of the brain activity of the experimental animal 2 is collected by the acquisition device and transmitted to the signal processing host 5 for online processing; the original data needs to be extracted and identified by the algorithm of the cell recognition module 102 for neuronal activity extraction and identification, which mainly includes noise reduction correction and cell labeling.

其中,降噪校正是降低运动导致的信号噪音干扰,并对相同神经元不同时间点的位置进行实时校正,通过在原始图像帧上应用异性扩散去噪操作实现;Among them, noise reduction correction is to reduce the signal noise interference caused by movement and perform real-time correction on the position of the same neuron at different time points, which is achieved by applying anisotropic diffusion denoising operation on the original image frame;

对于每一帧图像,I∈RHxW,对于给定的扩散时间τ,演化遵循等式:For each frame image, I∈R HxW , for a given diffusion time τ , the evolution follows the equation:

其中,div是散度算子,和Δ分别是梯度和拉普拉斯算子,C是取决于像素和τ的扩散系数矩阵;Among them, div is the divergence operator, and Δ are the gradient and Laplacian operators, respectively, and C is the diffusion coefficient matrix that depends on pixels and τ;

I表示当前帧;RHxW表示帧集合;H表示帧画面高度;W表示帧画面宽度;I represents the current frame; R HxW represents a frame set; H represents the frame height; W represents the frame width;

随后,在不同帧之间使用KTL跟踪器来估计两个相邻帧之间潜在角状特征的位移。基于KTL跟踪器配准后,使用diffeomorphic Log-Demons进行进一步单位配准;Subsequently, a KTL tracker is used between different frames to estimate the displacement of potential angular features between two adjacent frames. After KTL tracker registration, diffeomorphic Log-Demons is used for further unit registration;

最后采集到的影像数据将是运动噪音最小化,进而进行后续分析处理。The image data finally collected will minimize motion noise for subsequent analysis and processing.

细胞标记包括:经过图像平滑处理后,需要对潜在的细胞轮廓影像进行细胞标记:Cell marking includes: After image smoothing, the potential cell outline image needs to be marked:

首先,随机选择一部分帧:First, randomly select a portion of the frames:

其中,a是随机轮廓集的帧编号;s表示轮廓投影;T表示最大帧编号;Where a is the frame number of the random contour set; s represents the contour projection; T represents the maximum frame number;

然后计算所选帧的最大投影图:Then calculate the maximum projection map of the selected frame:

并检测该图上所有局部最大点为Sα,多次重复上述过程,其中任意两个自己不包含相同的帧;And detect all local maximum points on the graph as S α , repeat the above process multiple times, any two of them do not contain the same frame;

最终采集全部最大投影图的Sα和有完整轮廓数据集计算最大投影图S的整合,作为最终的神经元轮廓种子集合。Finally, the integration of S α of all maximum projection images and the maximum projection image S calculated with the complete contour data set is collected as the final neuron contour seed set.

获得神经元轮廓细胞识别结果103之后,系统将对相应神经元进行荧光活动监测和模式学习和分类104,具体地:After obtaining the neuron outline cell recognition result 103, the system will perform fluorescence activity monitoring, pattern learning and classification 104 on the corresponding neurons, specifically:

首先,需要对影像数据的荧光亮度归一化,用目标细胞轮廓的平均亮度Ft减去平局的背景荧光亮度F0再除以除以背景荧光亮度值F0,计算公式如下,其中ΔFt/F0简写为ΔF/F: First, the fluorescence brightness of the image data needs to be normalized. The average brightness of the target cell outline Ft minus the average background fluorescence brightness F0 is divided by the background fluorescence brightness value F0 . The calculation formula is as follows, where ΔFt / F0 is abbreviated as ΔF/F:

其次,还需要利用指数加权移动平均方法对记录到的钙信号进行去噪平滑;Secondly, it is necessary to use the exponentially weighted moving average method to de-noise and smooth the recorded calcium signals;

再次,在获得平滑后的荧光强度变化数值后,在线侦测荧光活动事件;Thirdly, after obtaining the smoothed fluorescence intensity change value, the fluorescence activity events are detected online;

最后,同步采集实验动物2行为,并对动物行为和实时荧光成像结果进行配对,进行模式学习,并基于PCA和SVM算法进行特征提取和模式分类,对存在的荧光活动模式进行分类学习;Finally, the behavior of experimental animal 2 is collected synchronously, and the animal behavior and real-time fluorescence imaging results are paired to perform pattern learning, and feature extraction and pattern classification are performed based on PCA and SVM algorithms to classify the existing fluorescence activity patterns;

在经过模式学习和分类后,建立模式库105,通过模式判断指令输出模块106根据分类模式对输出指令进行对应编码,执行工作时在线对荧光活动模式进行判断,并输出对应指令,控制外部设备11。After pattern learning and classification, a pattern library 105 is established, and the output instructions are encoded accordingly according to the classification pattern through the pattern judgment instruction output module 106. When executing the work, the fluorescent activity pattern is judged online and the corresponding instructions are output to control the external device 11.

同时,获得神经元轮廓细胞识别结果103之后,也可以并行选用整体荧光观察方法,对核团活性进行指征,获得神经元轮廓细胞识别结果103后,在均值计算模块107中计算整幅帧图像的平均灰度值,其步骤在于统计整幅图像的所有像素点,累加求取所有像素点的灰度值总和,平均灰度值为灰度值总和与像素点个数之商。At the same time, after obtaining the neuron contour cell identification result 103, the overall fluorescence observation method can also be used in parallel to indicate the activity of the nucleus. After obtaining the neuron contour cell identification result 103, the average grayscale value of the entire frame image is calculated in the mean calculation module 107. The steps are to count all the pixel points of the entire image, accumulate and obtain the sum of the grayscale values of all the pixel points, and the average grayscale value is the quotient of the sum of the grayscale values and the number of pixels.

具体步骤为:The specific steps are:

1)统计每一帧数据源图像的像素的灰度值进行累加求和sum;1) Count the grayscale values of the pixels of each frame of the data source image and add them up;

2)计算图像的像素点总个数:n=view width*view height;2) Calculate the total number of pixels in the image: n = view width * view height;

3)求图像的平均灰度值:avg_value=sum/n;3) Find the average gray value of the image: avg_value = sum/n;

获取平均值后,实时追踪平均荧光强度变化,绘制荧光强度曲线,在活动监测模块108进行核团活动监测;并根据研究需求设定活动阈值,实际工作过程中,在阈值监测模块109实时进行超阈监测,一旦超出阈值,即在指令输出模块110中触发指令输出,实现对外部设备11进行控制或进行闭环调控。After obtaining the average value, the change of the average fluorescence intensity is tracked in real time, the fluorescence intensity curve is drawn, and the nuclear activity is monitored in the activity monitoring module 108; and the activity threshold is set according to the research requirements. In the actual working process, the threshold monitoring module 109 performs real-time over-threshold monitoring. Once the threshold is exceeded, the command output is triggered in the command output module 110 to realize the control of the external device 11 or closed-loop regulation.

接下来,对本发明进行更为具体的说明。Next, the present invention will be described in more detail.

本发明的实现过程如下:通过在大脑皮层或深部核团注射钙离子指示剂或者指示蛋白在体病毒,使指示剂或者指示蛋白在胞内表达。在指示媒介进入细胞后,在实验动物2目标脑区植入脑部接口3,通过在体微型荧光显微镜进行记录,记录结果经过信号采集主机4,传输至信号处理主机5,数据包含两种形式,荧光强度变化数值可以获得第一信号模式6以及图像数据可以获得第二信号模式7。数据结果经过传入后,进入解码算法进行模式规律识别8,并经指令输出接口9输出至控制端。控制端接收装置10接收信号后,对信号再编码最终实现对外部设备11进行编码控制,形成脑机交互。The implementation process of the present invention is as follows: by injecting calcium ion indicator or indicator protein in vivo virus into the cerebral cortex or deep nuclei, the indicator or indicator protein is expressed intracellularly. After the indicator medium enters the cell, a brain interface 3 is implanted in the target brain area of the experimental animal 2, and the recording is performed through an in vivo miniature fluorescence microscope. The recording results are transmitted to the signal processing host 5 through the signal acquisition host 4. The data contains two forms. The fluorescence intensity change value can obtain the first signal mode 6 and the image data can obtain the second signal mode 7. After the data results are transmitted, they enter the decoding algorithm for pattern regularity recognition 8, and are output to the control end through the instruction output interface 9. After the control end receiving device 10 receives the signal, it re-encodes the signal to finally realize the coding control of the external device 11 to form brain-computer interaction.

其中,荧光指示信号表达后,影像数据经采集端传入信号处理端进行信号处理,工作原理:Among them, after the fluorescence indication signal is expressed, the image data is transmitted to the signal processing end through the acquisition end for signal processing. The working principle is:

实验动物2大脑活动荧光原始信号101经过采集设备采集后,传输至信号处理主机5进行在线处理。原始数据需要经过算法进行神经元活动提取和识别,主要包含降噪校正和细胞标记。After the raw fluorescent signal 101 of the brain activity of the experimental animal 2 is collected by the acquisition device, it is transmitted to the signal processing host 5 for online processing. The raw data needs to be processed by an algorithm for neuronal activity extraction and identification, which mainly includes noise reduction correction and cell labeling.

降噪校正模块的主要功能是降低运动导致的信号噪音干扰,并对相同神经元不同时间点的位置进行实时校正。其主要通过在原始图像帧上应用异性扩散去噪操作实现。对于每一帧图像,I∈RHxW,对于给定的扩散时间τ,演化遵循等式The main function of the noise reduction correction module is to reduce the signal noise interference caused by motion and to correct the position of the same neuron at different time points in real time. It is mainly achieved by applying anisotropic diffusion denoising operation on the original image frame. For each frame image, I∈R HxW , for a given diffusion time τ, the evolution follows the equation

其中,div是散度算子,和Δ分别是梯度和拉普拉斯算子,C是取决于像素和τ的扩散系数矩阵;Among them, div is the divergence operator, and Δ are the gradient and Laplacian operators, respectively, and C is the diffusion coefficient matrix that depends on pixels and τ;

I表示当前帧;RHxW表示帧集合;H表示帧画面高度;W表示帧画面宽度;I represents the current frame; R HxW represents a frame set; H represents the frame height; W represents the frame width;

通过选择C和τ的具体形式,我们可以控制沿着或垂直于神经元和背景之间边界的平滑水平。C选择经典的Perona-Malik滤波器优先平滑低对比度区域,其中,exp(.)表示e为底的指数函数;||.||表示矩阵的行列式的值;k表示边界灵敏度。By choosing the specific form of C and τ, we can control the level of smoothing along or perpendicular to the boundary between the neuron and the background. C selects the classic Perona-Malik filter Prioritize smoothing of low-contrast areas, where exp(.) represents an exponential function with base e; ||.|| represents the value of the determinant of the matrix; and k represents boundary sensitivity.

随后,在不同帧之间使用Kanade-Lucas-Tomasi(KTL)跟踪器来估计两个相邻帧之间潜在角状特征的位移。基于KTL跟踪器配准后,使用diffeomorphic Log-Demons进行进一步单位配准。diffeomorphic Log-Demons是一种非参数配准方法,可以通过最小化对数域中的全局能量来找到全部像素的位移:Subsequently, the Kanade-Lucas-Tomasi (KTL) tracker is used between different frames to estimate the displacement of potential corner features between two adjacent frames. After the KTL tracker-based registration, diffeomorphic Log-Demons is used for further unit registration. Diffeomorphic Log-Demons is a non-parametric registration method that can find the displacement of all pixels by minimizing the global energy in the logarithmic domain:

它包括相似性,对应性和正则化项,其中,Sim(.)表示相似度项;dist(.)表示距离项;Reg(.)表示标注项;s表示轮廓投影;F和M分别是固定像和移动像,u是位移/更新场,σix和σT表示噪声水平,对应的空间不确定性和正反化水平。经过上述步骤后,采集到的影像数据将是运动噪音最小化,可以进行后续分析处理。It includes similarity, correspondence and regularization terms, where Sim(.) represents the similarity term; dist(.) represents the distance term; Reg(.) represents the annotation term; s represents the contour projection; F and M are the fixed image and the moving image respectively, u is the displacement/update field, σ ix and σ T represent the noise level, the corresponding spatial uncertainty and the regularization level. After the above steps, the collected image data will minimize the motion noise and can be processed for subsequent analysis.

经过图像平滑处理后,需要对潜在的细胞轮廓影像进行细胞标记。初步生成的所有潜在实际细胞轮廓ROI中心的轮廓集,但是轮廓中包含大量假阳性的细胞轮廓。该过程首先随机选择一部分帧After image smoothing, the potential cell contour images need to be labeled. The initial generated contour set of all potential actual cell contour ROI centers, but the contours contain a large number of false positive cell contours. The process first randomly selects a part of the frame

其中,a是随机轮廓集的帧编号;s表示轮廓投影;T表示最大帧编号;Where a is the frame number of the random contour set; s represents the contour projection; T represents the maximum frame number;

然后计算所选帧的最大投影图:Then calculate the maximum projection map of the selected frame:

并检测该图上所有局部最大点为Sα,多次重复上述过程,其中任意两个自己不包含相同的帧。最终采集全部最大投影图的Sα和有完整轮廓数据集计算最大投影图S的整合,作为最终的神经元轮廓种子集合。And detect all local maximum points on the graph as S α , repeat the above process multiple times, any two of which do not contain the same frame. Finally, collect the integration of S α of all maximum projection graphs and the maximum projection graph S calculated with the complete contour data set as the final neuron contour seed set.

获得神经元轮廓细胞识别结果103之后,系统将对相应神经元进行荧光活动监测和模式学习和分类,首先,需要对影像数据的荧光亮度归一化,用目标细胞轮廓的平均亮度Ft减去平局的背景荧光亮度F0再除以除以背景荧光亮度值F0,计算公式如下,其中ΔFt/F0简写为ΔF/F: After obtaining the neuron contour cell recognition result 103, the system will monitor the fluorescence activity of the corresponding neuron and perform pattern learning and classification. First, the fluorescence brightness of the image data needs to be normalized. The average brightness of the target cell contour Ft minus the average background fluorescence brightness F0 is divided by the background fluorescence brightness value F0 . The calculation formula is as follows, where ΔFt / F0 is abbreviated as ΔF/F:

其次,还需要利用指数加权移动平均(EWMA)方法对记录到的钙信号进行去噪平滑;Secondly, the recorded calcium signals need to be denoised and smoothed using the exponentially weighted moving average (EWMA) method;

再次,在获得平滑后的荧光强度变化数值后,在线侦测荧光活动事件。其步骤主要包含定义基线长度,设定探测窗口长度,并定义上升速率阈值,超阈值后定义为一个荧光活动事件,并对顶峰点的荧光值进行实时采集。Next, after obtaining the smoothed fluorescence intensity change value, the fluorescence activity event is detected online. The steps mainly include defining the baseline length, setting the detection window length, and defining the rising rate threshold. After exceeding the threshold, it is defined as a fluorescence activity event, and the fluorescence value of the peak point is collected in real time.

最后,同步采集实验动物2行为,并对动物行为和实时荧光成像结果进行配对,进行模式学习,并基于PCA和SVM算法进行特征提取和模式分类,对存在的荧光活动模式进行分类学习。Finally, the behavior of experimental animal 2 is collected synchronously, and the animal behavior and real-time fluorescence imaging results are paired for pattern learning. Feature extraction and pattern classification are performed based on PCA and SVM algorithms to classify the existing fluorescence activity patterns.

在经过模式学习和分类后,根据分类模式对输出指令进行对应编码,执行工作时在线对荧光活动模式进行判断,并输出对应指令,控制外部设备11。After pattern learning and classification, the output instruction is encoded accordingly according to the classification pattern, and the fluorescence activity pattern is judged online during execution, and the corresponding instruction is output to control the external device 11.

同时,在获得神经元轮廓细胞识别结果103之后,也可以并行选用整体荧光观察方法,对核团活性进行指征。首先获得神经元轮廓细胞识别结果103后,均值计算模块107中计算整幅帧图像的平均灰度值,其步骤在于统计整幅图像的所有像素点,累加求取所有像素点的灰度值总和,平均灰度值为灰度值总和与像素点个数之商,步骤如下:At the same time, after obtaining the neuron outline cell recognition result 103, the overall fluorescence observation method can also be used in parallel to indicate the activity of the nucleus. First, after obtaining the neuron outline cell recognition result 103, the average gray value of the entire frame image is calculated in the mean calculation module 107. The steps are to count all the pixels of the entire image and accumulate the sum of the gray values of all the pixels. The average gray value is the quotient of the sum of the gray values and the number of pixels. The steps are as follows:

1)统计每一帧数据源图像的像素的灰度值进行累加求和sum;1) Count the grayscale values of the pixels of each frame of the data source image and add them up;

2)计算图像的像素点总个数:n=view width*view height;2) Calculate the total number of pixels in the image: n = view width * view height;

3)求图像的平均灰度值:avg_value=sum/n。3) Find the average grayscale value of the image: avg_value = sum/n.

获取平均值后,实时追踪平均荧光强度变化,绘制荧光强度曲线,在活动监测模块108进行核团活动监测。并根据研究需求设定活动阈值,实际工作过程中,在阈值监测模块109实时进行超阈监测,一旦超出阈值,即在指令输出模块110中触发指令输出,实现对外部设备11进行控制或进行闭环调控。After obtaining the average value, the change of the average fluorescence intensity is tracked in real time, and the fluorescence intensity curve is drawn. The activity monitoring module 108 monitors the nuclear group activity. The activity threshold is set according to the research requirements. In the actual working process, the threshold monitoring module 109 performs real-time over-threshold monitoring. Once the threshold is exceeded, the command output is triggered in the command output module 110 to realize the control of the external device 11 or closed-loop regulation.

软件和硬件相互配合的工作流程:该发明系统包括化学物质指示媒介、在体荧光检测采集设备以及信号处理设备和输出控制终端。通过监测大脑的化学物质活动,指示神经元活性,识别不同行为范式下导致的神经元活动模式,实现模式识别与输出,进而控制外部设备11。利用荧光指示信号作为信号来源,可以避免外界电噪声的干扰,并实现更为直观有效的神经元活动解码能力,提升脑机接口的编码效果。本设计不同于现有的基于脑电信号的脑机接口,通过化学物质荧光信号实时活动,实现神经元活动模式的识别,并与外接设备形成交互,丰富脑机接口的信号来源,并可以实现对神经活动编码的深入研究。Workflow of software and hardware cooperating with each other: The invented system includes a chemical indicator medium, an in vivo fluorescence detection and acquisition device, a signal processing device, and an output control terminal. By monitoring the activity of chemical substances in the brain, indicating neuronal activity, identifying the neuronal activity patterns caused by different behavioral paradigms, realizing pattern recognition and output, and then controlling external devices 11. Using fluorescent indicator signals as signal sources can avoid interference from external electrical noise, and achieve more intuitive and effective neuronal activity decoding capabilities, thereby improving the coding effect of brain-computer interfaces. This design is different from existing brain-computer interfaces based on EEG signals. It uses real-time activity of chemical substance fluorescence signals to realize the recognition of neuronal activity patterns, interact with external devices, enrich the signal sources of brain-computer interfaces, and can achieve in-depth research on neural activity coding.

基于钙离子信号的脑机控制实验:Brain-computer control experiment based on calcium ion signals:

a)实验动物2:健康成年C57bl/6小鼠,清洁级,体重为20-25g。实验动物2饲养于12h-12h昼夜交替的独立环境中,室温维持在24±2℃,自由饮水和摄食,在适应环境1周后进行实验。a) Experimental Animal 2: Healthy adult C57bl/6 mice, clean grade, weighing 20-25 g. Experimental Animal 2 was housed in an independent environment with a 12-hour-12-hour day and night cycle, with room temperature maintained at 24±2°C, free access to water and food, and the experiment was conducted after acclimatization for 1 week.

b)实验器材:钙信号指示转基因小鼠(GCaMP6转基因小鼠),特异性钙信号指示蛋白载体病毒(由特定启动子驱动的GCaMP6载体病毒),病毒注射仪器,树脂镜头、固定手术器材,脑机系统。b) Experimental equipment: calcium signal indicator transgenic mice (GCaMP6 transgenic mice), specific calcium signal indicator protein vector virus (GCaMP6 vector virus driven by a specific promoter), virus injection instrument, resin lens, fixed surgical equipment, brain-computer system.

C)实验步骤:如图1和图2所示,以运动皮层为例,选用转基因小鼠或通过特异性的钙信号指示蛋白病毒侵染目标脑区的特定神经元,实现目标脑区的特定神经元类群钙信号活动的指示标记。通过立体定位手段,将脑部接口3植入目标脑区,并利用固定材料进行长时程固定。小鼠恢复后,利用采集前端1和信号采集主机4对目标脑区神经元钙离子活动进行实时采集分析。通过信号处理主机5进行第一信号模式6和第二信号模式7的钙离子活动识别。数据结果经过传入后,进入解码算法进行模式规律识别8,包括荧光强度和神经元活化次序和模式规律,并经指令输出接口9输出至控制端。控制端接收装置10接收信号后,对信号再编码最终实现对外部设备11进行编码控制,形成脑机交互,控制外部设备11或闭环调控身体相应机能。C) Experimental steps: As shown in Figures 1 and 2, taking the motor cortex as an example, transgenic mice are selected or specific neurons in the target brain area are infected by specific calcium signal indicator protein viruses to achieve indicator marks for calcium signal activities of specific neuronal groups in the target brain area. The brain interface 3 is implanted into the target brain area by stereotaxic means, and fixed for a long time using a fixing material. After the mouse recovers, the acquisition front end 1 and the signal acquisition host 4 are used to collect and analyze the calcium ion activities of neurons in the target brain area in real time. The calcium ion activities of the first signal mode 6 and the second signal mode 7 are identified by the signal processing host 5. After the data results are transmitted, they enter the decoding algorithm for pattern rule recognition 8, including fluorescence intensity and neuronal activation order and pattern rules, and are output to the control end through the command output interface 9. After the control end receiving device 10 receives the signal, it re-encodes the signal and finally realizes the encoding control of the external device 11, forming brain-computer interaction, controlling the external device 11 or closed-loop regulation of the corresponding functions of the body.

本发明实施例提供了一种基于在体荧光信号的动物脑机接口实现方法及系统,利用神经元活性探针荧光信号作为脑机接口信号来源,解决传统脑电信号脑机接口信号来源受外界电噪声影响大的问题;通过在体荧光检测手段采集获取不同行为过程中的大脑活动特征;通过动物大脑局部神经元内部化学物质动态变化进行神经活动解码和再编码,解决编码信息单一,编码效率低的问题。The embodiments of the present invention provide an animal brain-computer interface implementation method and system based on in vivo fluorescence signals, which utilizes the fluorescence signals of neuron activity probes as the brain-computer interface signal source to solve the problem that the traditional EEG signal brain-computer interface signal source is greatly affected by external electrical noise; the brain activity characteristics during different behavioral processes are collected and acquired by in vivo fluorescence detection means; the neural activity is decoded and re-encoded through the dynamic changes of chemical substances inside local neurons in the animal brain, solving the problem of single encoding information and low encoding efficiency.

本领域技术人员知道,除了以纯计算机可读程序代码方式实现本发明提供的系统及其各个装置、模块、单元以外,完全可以通过将方法步骤进行逻辑编程来使得本发明提供的系统及其各个装置、模块、单元以逻辑门、开关、专用集成电路、可编程逻辑控制器以及嵌入式微控制器等的形式来实现相同功能。所以,本发明提供的系统及其各项装置、模块、单元可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置、模块、单元也可以视为硬件部件内的结构;也可以将用于实现各种功能的装置、模块、单元视为既可以是实现方法的软件模块又可以是硬件部件内的结构。Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.

以上对本发明的具体实施例进行了描述。需要理解的是,本发明并不局限于上述特定实施方式,本领域技术人员可以在权利要求的范围内做出各种变化或修改,这并不影响本发明的实质内容。在不冲突的情况下,本申请的实施例和实施例中的特征可以任意相互组合。The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other at will.

Claims (10)

1. An animal brain-computer interface implementation method based on an in-vivo fluorescence signal is characterized by comprising the following steps:
Step S1: injecting a calcium ion indicator or indicator protein into the cortex or deep nucleus of the brain to express the indicator or indicator protein in cells by using in vivo viruses;
Step S2: after the indication medium enters cells, a brain interface is implanted in a target brain area of an experimental animal, the brain interface is recorded by an in-vivo micro fluorescent microscope, and a recording result is transmitted to a signal processing host through a signal acquisition host;
Step S3: after the data result is transmitted, the data result enters a decoding algorithm to identify a pattern rule and is output to a control end through an instruction output interface;
step S4: after the control terminal receiving device receives the signals, recoding the signals finally realizes coding control on external equipment, and brain-computer interaction is formed.
2. The method for realizing an animal brain-computer interface based on an in-vivo fluorescence signal according to claim 1, wherein after the fluorescence indication signal in the indicator is expressed, the image data is transmitted into a signal processing end for signal processing through an acquisition end, and the method specifically comprises the following steps: after being collected by the collecting equipment, the brain activity fluorescence original signals of the experimental animals are transmitted to the signal processing host for on-line processing; the original data is subjected to neuron activity extraction and identification through an algorithm, and mainly comprises noise reduction correction and cell marking.
3. The method for realizing the animal brain-computer interface based on the in-vivo fluorescence signal according to claim 2, wherein the noise reduction correction is to reduce signal noise interference caused by motion and correct the positions of the same neuron at different time points in real time by applying an anisotropic diffusion noise removal operation on an original image frame;
For each frame of image, I ε R HxW, the evolution follows the equation for a given diffusion time τ:
Where div is the divergence operator, And delta is the gradient and laplace operator, respectively, C is the diffusion coefficient matrix dependent on pixel and τ;
I represents the current frame; r HxW represents a set of frames; h represents a frame height; w represents the frame width;
Subsequently, a KTL tracker is used between different frames to estimate the displacement of potential angular features between two adjacent frames; after KTL tracker based registration, further unit registration is performed using diffeomorphic Log-Demons;
finally, the acquired image data is minimized in motion noise, and further subsequent analysis and processing are performed.
4. The method of claim 3, wherein the cell labeling comprises: after the image smoothing process, the potential cell contour image needs to be subjected to cell marking:
First, a portion of the frames is randomly selected:
Where a is the frame number of the random profile set; s represents contour projection; t represents the maximum frame number;
The maximum projection map for the selected frame is then calculated:
Detecting that all local maximum points on the graph are S α, repeating the process for a plurality of times, wherein any two of the local maximum points do not contain the same frame;
and finally, collecting S α of all the maximum projection graphs and calculating the integration of the maximum projection graphs S with the complete contour data set as a final neuron contour seed set.
5. The method according to claim 4, wherein after obtaining the neuron profile, the system will perform fluorescence activity monitoring and pattern learning and classification of the corresponding neurons, in particular:
First, the fluorescence brightness of the image data needs to be normalized, and the average brightness F t of the target cell contour is subtracted by the average background fluorescence brightness F 0 of the tie and divided by the background fluorescence brightness value F 0, and the calculation formula is as follows, wherein Δf t/F0 is abbreviated as Δf/F:
Secondly, denoising and smoothing the recorded calcium signals by using an exponential weighted moving average method;
thirdly, after the smoothed fluorescence intensity change value is obtained, detecting a fluorescence activity event on line;
Finally, synchronously collecting the behaviors of the experimental animal, pairing the behaviors of the animal with real-time fluorescence imaging results, performing pattern learning, extracting features and classifying patterns based on PCA and SVM algorithms, and performing classification learning on existing fluorescence activity patterns;
After pattern learning and classification, corresponding coding is carried out on the output instruction according to the classification pattern, the fluorescence activity pattern is judged online when the operation is executed, and the corresponding instruction is output to control the external equipment.
6. The method for realizing the animal brain-computer interface based on the in-vivo fluorescence signal according to claim 4, wherein after obtaining the neuron outline, a whole fluorescence observation method is selected to indicate the activity of the nucleus, after obtaining the neuron outline, the average gray value of the whole frame image is calculated, wherein the method comprises the steps of counting all pixel points of the whole image, accumulating and calculating the gray value sum of all the pixel points, and the average gray value is the quotient of the gray value sum and the number of the pixel points.
7. The method for realizing the animal brain-computer interface based on the in-vivo fluorescence signal according to claim 6, wherein the specific steps of calculating the average gray value are as follows:
1) Counting the gray value of the pixel of each frame of data source image to carry out accumulation summation;
2) Calculating the total number of pixels of the image: n= VIEW WIDTH × VIEW HEIGHT;
3) Calculating the average gray value of the image: avg_value=sum/n;
After the average value is obtained, the change of the average fluorescence intensity is tracked in real time, a fluorescence intensity curve is drawn, and nuclear mass activity monitoring is carried out; and the activity threshold is set according to the research requirement, the threshold exceeding monitoring is carried out in real time in the actual working process, and once the threshold is exceeded, the command output is triggered, so that the external equipment is controlled or closed-loop regulation and control are carried out.
8. An animal brain-computer interface system based on in vivo fluorescence signals, comprising:
Module M1: injecting a calcium ion indicator or indicator protein into the cortex or deep nucleus of the brain to express the indicator or indicator protein in cells by using in vivo viruses;
Module M2: after the indication medium enters cells, a brain interface is implanted in a target brain area of an experimental animal, the brain interface is recorded by an in-vivo micro fluorescent microscope, and a recording result is transmitted to a signal processing host through a signal acquisition host;
Module M3: after the data result is transmitted, the data result enters a decoding algorithm to identify a pattern rule and is output to a control end through an instruction output interface;
Module M4: after the control terminal receiving device receives the signals, recoding the signals finally realizes coding control on external equipment, and brain-computer interaction is formed.
9. The animal brain-computer interface system based on in-vivo fluorescence signals according to claim 8, wherein after the fluorescence indication signals in the indicator are expressed, the image data are transmitted into the signal processing end through the acquisition end for signal processing, and specifically comprising: after being collected by the collecting equipment, the brain activity fluorescence original signals of the experimental animals are transmitted to the signal processing host for on-line processing; the original data is subjected to neuron activity extraction and identification through an algorithm, and mainly comprises noise reduction correction and cell marking.
10. The animal brain-computer interface system based on an in-vivo fluorescence signal according to claim 9, wherein said noise reduction correction is to reduce motion-induced signal noise interference and correct the positions of the same neuron at different time points in real time by applying a hetero-diffusion denoising operation on the original image frame;
For each frame of image, I ε R HxW, the evolution follows the equation for a given diffusion time τ:
Where div is the divergence operator, And delta is the gradient and laplace operator, respectively, C is the diffusion coefficient matrix dependent on pixel and τ;
I represents the current frame; r HxW represents a set of frames; h represents a frame height; w represents the frame width;
Subsequently, a KTL tracker is used between different frames to estimate the displacement of potential angular features between two adjacent frames; after KTL tracker based registration, further unit registration is performed using diffeomorphic Log-Demons;
finally, the acquired image data is minimized in motion noise, and further subsequent analysis and processing are performed.
CN202111447778.3A 2021-11-30 2021-11-30 Animal brain-computer interface implementation method and system based on in-vivo fluorescence signals Active CN114356074B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111447778.3A CN114356074B (en) 2021-11-30 2021-11-30 Animal brain-computer interface implementation method and system based on in-vivo fluorescence signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111447778.3A CN114356074B (en) 2021-11-30 2021-11-30 Animal brain-computer interface implementation method and system based on in-vivo fluorescence signals

Publications (2)

Publication Number Publication Date
CN114356074A CN114356074A (en) 2022-04-15
CN114356074B true CN114356074B (en) 2024-04-23

Family

ID=81098031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111447778.3A Active CN114356074B (en) 2021-11-30 2021-11-30 Animal brain-computer interface implementation method and system based on in-vivo fluorescence signals

Country Status (1)

Country Link
CN (1) CN114356074B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357125A (en) * 2022-10-19 2022-11-18 之江实验室 Interactive brain-computer interface method and device carrying graphical interface
CN116382465B (en) * 2023-02-17 2024-02-13 中国科学院自动化研究所 Optical brain-computer interface systems and methods
CN120167892A (en) * 2023-12-20 2025-06-20 中国科学院深圳先进技术研究院 Animal experiment model and method for calcium signal recording
CN119314174B (en) * 2024-12-17 2025-05-13 深圳湾实验室 Cell analysis method, device, apparatus and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110974219A (en) * 2019-12-20 2020-04-10 北京脑陆科技有限公司 Human brain idea recognition system based on invasive BCI
CN111406706A (en) * 2019-01-04 2020-07-14 温州医科大学 A method for constructing a behavioral model of brain-computer interface
US10795440B1 (en) * 2017-04-17 2020-10-06 Facebook, Inc. Brain computer interface for text predictions
CN112107307A (en) * 2020-08-24 2020-12-22 中国科学院上海微系统与信息技术研究所 Preparation method and structure of high-flux implanted flexible nerve electrode
CN112462055A (en) * 2015-09-14 2021-03-09 Essenlix公司 Device and system for analyzing a sample, in particular blood, and method for using same
US11013411B1 (en) * 2018-06-13 2021-05-25 The Research Foundation For The State University Of New York Chromatic bioluminescence as a cellular level readout system of neural activity
CN113440143A (en) * 2021-07-12 2021-09-28 北京华科恒生医疗科技有限公司 Fluorescence sensing composite deep electrode

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180039328A1 (en) * 2014-04-21 2018-02-08 The General Hospital Corporation Biomedical system variably configured based on estimation of information content of input signals

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112462055A (en) * 2015-09-14 2021-03-09 Essenlix公司 Device and system for analyzing a sample, in particular blood, and method for using same
US10795440B1 (en) * 2017-04-17 2020-10-06 Facebook, Inc. Brain computer interface for text predictions
US11013411B1 (en) * 2018-06-13 2021-05-25 The Research Foundation For The State University Of New York Chromatic bioluminescence as a cellular level readout system of neural activity
CN111406706A (en) * 2019-01-04 2020-07-14 温州医科大学 A method for constructing a behavioral model of brain-computer interface
CN110974219A (en) * 2019-12-20 2020-04-10 北京脑陆科技有限公司 Human brain idea recognition system based on invasive BCI
CN112107307A (en) * 2020-08-24 2020-12-22 中国科学院上海微系统与信息技术研究所 Preparation method and structure of high-flux implanted flexible nerve electrode
CN113440143A (en) * 2021-07-12 2021-09-28 北京华科恒生医疗科技有限公司 Fluorescence sensing composite deep electrode

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
光纤式在体荧光显微成像系统在动态观测活体动物脑内神经元中的应用;石莹;陈露岚;姜民;;生理学报;20121225(06);全文 *
脑―机接口技术研究;王萍;杨静丽;万柏坤;;医疗卫生装备;20071115(11);全文 *

Also Published As

Publication number Publication date
CN114356074A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN114356074B (en) Animal brain-computer interface implementation method and system based on in-vivo fluorescence signals
Kaldera et al. Brain tumor classification and segmentation using faster R-CNN
Giovannucci et al. Onacid: Online analysis of calcium imaging data in real time
Clack et al. Automated tracking of whiskers in videos of head fixed rodents
Wu et al. Unsupervised deep feature learning for deformable registration of MR brain images
CN109770903B (en) Classification prediction system for functional magnetic resonance image
CN110991348B (en) Facial micro-expression detection method based on optical flow gradient amplitude feature
Friedrich et al. Online analysis of microendoscopic 1-photon calcium imaging data streams
US9569845B2 (en) Method and system for characterizing cell motion
Seo et al. A yolo-based separation of touching-pigs for smart pig farm applications
Guo et al. Localisation and segmentation of optic disc with the fractional‐order Darwinian particle swarm optimisation algorithm
CN108171138A (en) A kind of biological information acquisition methods and device
Bekhouche et al. Spatiotemporal CNN with Pyramid Bottleneck Blocks: Application to eye blinking detection
Kriegel et al. Cell shape characterization and classification with discrete Fourier transforms and self‐organizing maps
Melbin et al. An enhanced model for skin disease detection using dragonfly optimization based deep neural network
AL-Hatab et al. Comparison study between three axis views of vision, motor and pre-frontal brain activities
Ruchay et al. On-barn cattle facial recognition using deep transfer learning and data augmentation
Avşar Effects of image preprocessing on the performance of convolutional neural networks for pneumonia detection
Yang An efficient automatic gait anomaly detection method based on semisupervised clustering
Kumar et al. Experimental Evaluation of Deep Learning Assisted Autism Spectrum Disorder Prediction Scheme using Convolutional Classification Principle
Nivedha et al. Melanoma diagnosis using enhanced faster region convolutional neural networks optimized by artificial gorilla troops algorithm
Jemimma et al. Brain tumor segmentation and classification using deep belief network
Rajinikanth et al. Examination of retinal anatomical structures—A study with spider monkey optimization algorithm
Zhang et al. A swarm intelligence based searching strategy for articulated 3D human body tracking
CN116759096A (en) Disease prediction system based on multiple comparison functional connectivity matrix

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