CN112270406B - Nerve information visualization method of brain-like computer operating system - Google Patents
Nerve information visualization method of brain-like computer operating system Download PDFInfo
- Publication number
- CN112270406B CN112270406B CN202011255463.4A CN202011255463A CN112270406B CN 112270406 B CN112270406 B CN 112270406B CN 202011255463 A CN202011255463 A CN 202011255463A CN 112270406 B CN112270406 B CN 112270406B
- Authority
- CN
- China
- Prior art keywords
- neuron
- node
- nodes
- layer
- importance
- 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
Links
- 238000007794 visualization technique Methods 0.000 title claims abstract description 15
- 210000005036 nerve Anatomy 0.000 title description 2
- 210000002569 neuron Anatomy 0.000 claims abstract description 156
- 238000013528 artificial neural network Methods 0.000 claims abstract description 41
- 238000012421 spiking Methods 0.000 claims abstract description 31
- 230000001537 neural effect Effects 0.000 claims abstract description 23
- 238000012800 visualization Methods 0.000 claims abstract description 20
- 239000003086 colorant Substances 0.000 claims abstract description 5
- 230000000007 visual effect Effects 0.000 claims description 7
- 238000000034 method Methods 0.000 abstract description 10
- 238000013527 convolutional neural network Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000013135 deep learning Methods 0.000 description 3
- 238000005070 sampling Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000012993 chemical processing Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003062 neural network model Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/06—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
- G06N3/061—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using biological neurons, e.g. biological neurons connected to an integrated circuit
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- General Engineering & Computer Science (AREA)
- Molecular Biology (AREA)
- General Physics & Mathematics (AREA)
- Neurology (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Mathematical Physics (AREA)
- Artificial Intelligence (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明公开了一种类脑计算机操作系统的神经信息可视化方法,包括以下步骤:获得脉冲神经网络的连接描述文件,并根据连接描述文件对各层神经元节点进行全局编码,每个神经元节点获得一个全局唯一标识,每层神经元节点聚集表示且采用不同颜色区分,相邻层级之间神经元节点的连接关系用连边表示且采用不同颜色区分;根据神经元节点的连边数量和连边权重计算每个神经元节点的重要性,依据重要性大小选择神经元节点进行可视化。以解决连接描述文件多、神经元节点数量多、神经元节点间的连线多不易区分的问题。实现对类脑计算机操作系统的神经信息的合理可视化,方便对脉冲神经网络工作过程的理解。
The invention discloses a neural information visualization method for a brain-inspired computer operating system, comprising the following steps: obtaining a connection description file of a pulse neural network, and performing global coding on neuron nodes of each layer according to the connection description file, and each neuron node obtains A globally unique identifier, each layer of neuron nodes is aggregated and represented by different colors, and the connection relationship of neuron nodes between adjacent layers is represented by edges and distinguished by different colors; according to the number of neuron nodes and the number of edges The weight calculates the importance of each neuron node, and selects the neuron node for visualization according to the importance. In order to solve the problems of many connection description files, a large number of neuron nodes, and many connections between neuron nodes that are difficult to distinguish. Realize the reasonable visualization of the neural information of the brain-like computer operating system, and facilitate the understanding of the working process of the spiking neural network.
Description
技术领域technical field
本发明属于新型计算机技术领域,具体涉及一种类脑计算机操作系统的神经信息可视化方法。The invention belongs to the technical field of new computers, and in particular relates to a neural information visualization method for a brain-inspired computer operating system.
背景技术Background technique
深度学习自2006年产生之后就受到科研机构、工业界的高度关注,在图像和语音等多个领域取得了很大的发展,在多个领域全面超越传统算法。脉冲神经网络(SNN-Spiking Neuron Networks)经常被誉为第三代人工神经网络。第一代神经网络是感知器,它是一个简单的神经元模型并且只能处理二进制数据。第二代神经网络包括比较广泛,包括应用较多的BP神经网络。而脉冲神经网络更加接近实际的模拟了脑神经元的连接关系和行为。Since its inception in 2006, deep learning has been highly concerned by scientific research institutions and the industry. It has made great progress in many fields such as image and voice, and has surpassed traditional algorithms in many fields. Spiking Neuron Networks (SNN-Spiking Neuron Networks) are often hailed as the third generation of artificial neural networks. The first generation of neural networks was the perceptron, which was a simple model of neurons and could only process binary data. The second-generation neural network includes a wide range, including the BP neural network with more applications. The spiking neural network is closer to the actual simulation of the connection relationship and behavior of brain neurons.
目前,网络上公开的针对卷积神经网络结构可视化的工具较多,主要有:1)Netscope:以模型定义文件作为输入,得到神经网络的可视化结构图,是一个基于网页的可视化神经网络拓扑工具,仅仅支持加州大学伯克利分校的caffe深度学习框架。2)ConvNetDraw:使用可视化命令作为输入,可视化输出神经网络模型结构,也是一种基于网页的工具。以结构块的模型进行展现的,可以对结构块进行三个维度的比例调整,非常形象直观。3)Netron:以模型定义文件和模型权重文件(可以缺省)作为输入,获得神经网络的可视化结构图,同样是基于网页,并运用了js和python,能够支持ONNX、Keras、CoreML、TensorFlow、caffe、MXNET等主流的深度学习框架。At present, there are many tools for visualization of convolutional neural network structure publicly available on the Internet, mainly including: 1) Netscope: It uses the model definition file as input to obtain the visual structure diagram of the neural network. It is a web-based visual neural network topology tool , only supports the caffe deep learning framework of the University of California, Berkeley. 2) ConvNetDraw: Use visualization commands as input to visualize the output neural network model structure, and it is also a web-based tool. It is displayed in the model of the structural block, and the proportion of the structural block can be adjusted in three dimensions, which is very visual and intuitive. 3) Netron: The model definition file and model weight file (can be defaulted) are used as input to obtain the visual structure diagram of the neural network. It is also based on the webpage and uses js and python. It can support ONNX, Keras, CoreML, TensorFlow, Mainstream deep learning frameworks such as caffe and MXNET.
中国传媒大学的曹力宏在公布号为CN106372721A的专利申请公开了一种以3D形式可视化大规模神经网络的方法,以3D的形式展示了神经网络的结构;上海精密计量测试研究所的邱春芳等人在公布号为CN107392085A的专利申请公开了一种可视化卷积神经网络的方法,能够可很好地展示出有助于了解卷积神经网络,用于探究卷积神经网络的优越性;北京计算机技术及应用研究所在公布号为CN110782031A的专利申请公开了一种多框架卷积神经网络模型结构可视化以及网络重建方法,可以直观的修改不同的层来实现网络的重建,同时能够更改神经网络属性并进行实时更新显示。Cao Lihong from Communication University of China disclosed a method for visualizing large-scale neural networks in 3D in a patent application with publication number CN106372721A, showing the structure of neural networks in 3D; Qiu Chunfang from Shanghai Institute of Precision Metrology and Testing et al. The patent application with the publication number CN107392085A discloses a method for visualizing convolutional neural networks, which can be well demonstrated to help understand convolutional neural networks and to explore the superiority of convolutional neural networks; Beijing Computer Technology The patent application of CN110782031A disclosed by the Research Institute of Technology and Application discloses a multi-frame convolutional neural network model structure visualization and network reconstruction method, which can intuitively modify different layers to achieve network reconstruction, and at the same time can change the properties of the neural network and The display is updated in real time.
由于类脑计算机操作系统的脉冲神经网络结构的复杂性,在对类脑计算机操作系统的脉冲神经网络结构进行可视化时,会出现连接描述文件多、神经元节点数量多、神经元节点间的连线多不易区分的问题。因此,上述所有可视化方法均不适用于类脑计算机操作系统的脉冲神经网络结构的可视化。Due to the complexity of the spiking neural network structure of the brain-like computer operating system, when visualizing the spiking neural network structure of the brain-like computer operating system, there will be many connection description files, a large number of neuron nodes, and connections between neuron nodes. There are many lines that are difficult to distinguish. Therefore, all the visualization methods mentioned above are not suitable for the visualization of the spiking neural network structure of the brain-like computer operating system.
发明内容Contents of the invention
本发明的目的是提供一种类脑计算机操作系统的神经信息可视化方法,以解决连接描述文件多、神经元节点数量多、神经元节点间的连线多不易区分的问题。The purpose of the present invention is to provide a neural information visualization method for a brain-inspired computer operating system to solve the problems of many connection description files, a large number of neuron nodes, and many connections between neuron nodes that are difficult to distinguish.
为实现上述发明目的,本发明提供以下技术方案:In order to realize the above-mentioned purpose of the invention, the present invention provides the following technical solutions:
一种类脑计算机操作系统的神经信息可视化方法,包括以下步骤:A neural information visualization method for a brain-inspired computer operating system, comprising the following steps:
获得脉冲神经网络的连接描述文件,并根据连接描述文件对各层神经元节点进行全局编码,每个神经元节点获得一个全局唯一标识,每层神经元节点聚集表示且采用不同颜色区分,相邻层级之间神经元节点的连接关系用连边表示且采用不同颜色区分;Obtain the connection description file of the spiking neural network, and globally encode the neuron nodes of each layer according to the connection description file. Each neuron node obtains a globally unique identifier. The connection relationship of neuron nodes between layers is represented by edges and differentiated by different colors;
根据神经元节点的连边数量和连边权重计算每个神经元节点的重要性,依据重要性大小选择神经元节点进行可视化。The importance of each neuron node is calculated according to the number of connected edges of the neuron node and the weight of the connected edge, and the neuron node is selected for visualization according to the importance.
优选地,处于脉冲神经网络同一层的所有神经元节点聚集表示,且采用相同颜色表示,相邻两层的神经元节点的聚集表示也处于相邻位置,便于相邻两层的神经元节点之间的连接关系表示。Preferably, all neuron nodes in the same layer of the spiking neural network are aggregated and expressed in the same color, and the aggregated representations of neuron nodes in two adjacent layers are also in adjacent positions, which is convenient for neuron nodes in adjacent two layers. connection relationship between.
优选地,每层神经元节点聚集成几何形状进行表示。所述几何形状可以为圆形、椭圆形等不具有棱角的光滑几何形状,还可以是矩阵、三角形等具有棱角的几何形状。Preferably, neuron nodes in each layer are aggregated into geometric shapes for representation. The geometric shape may be a smooth geometric shape without corners such as a circle or an ellipse, or may be a geometric shape with corners such as a matrix or a triangle.
优选地,两层神经元节点之间的所有连接关系采用相同颜色连边表示。为了提升可视化清晰度,神经元节点的颜色与其对应的连边颜色不同。Preferably, all connections between neuron nodes in the two layers are represented by edges of the same color. To improve visualization clarity, neuron nodes are colored differently from their corresponding edges.
优选地,在进行神经信息可视化时,神经元信息布局以一种数据结构存储,该数据结构包含数据单元、连接关系单元以及层单元,其中,数据单元用于存储神经元节点的全局唯一标识、可视化位置坐标以及所在层级;连接关系单元用于存储两个神经元节点和两个神经元节点之间连边的可视化颜色;层单元用于存储层级名称。Preferably, when performing neural information visualization, the neuron information layout is stored in a data structure, which includes data units, connection relationship units, and layer units, wherein the data units are used to store the global unique identification of neuron nodes, Visualize the position coordinates and the level; the connection relationship unit is used to store two neuron nodes and the visual color of the edge between two neuron nodes; the layer unit is used to store the level name.
由于神经元节点的数量很多,根据神经元节点与其它神经元的连边数量和连边权重选择是否显示某个神经元。如果对神经元节点的采样过多,会造成可视化后神经元节点过于稠密,无法看出各个神经元节点之间的连接关系;如果对神经元节点的采样过少,会造成主要信息的丢失,不能观察到脉冲神经网络的主要结构。为了对神经元进行合理的稀疏化采样,需要计算神经元节点的重要性并进行排序。优选地,采用以下公式计算每个神经元节点的重要性:Due to the large number of neuron nodes, choose whether to display a certain neuron according to the number of connections between the neuron node and other neurons and the weight of the connections. If the neuron nodes are sampled too much, the neuron nodes will be too dense after visualization, and the connection relationship between each neuron node cannot be seen; if the neuron nodes are sampled too little, the main information will be lost. The main structure of the spiking neural network cannot be observed. In order to perform a reasonable sparse sampling of neurons, the importance of neuron nodes needs to be calculated and sorted. Preferably, the following formula is used to calculate the importance of each neuron node:
其中,表示第i个神经元节点nodei的正则化以前神经元的绝对重要性,InNum代表神经元节点的入度,w1是神经元节点的入度系数,OutNum代表神经元节点的出度,w2是神经元节点的出度系数,Weight代表神经元节点连边权重的绝对值之和,w3是神经元节点的权重系数,/>是最终的神经元节点的重要性,/>表示第j个神经元节点nodej的正则化以前神经元的绝对重要性,n表示神经元节点的总个数。其中,将接入当前神经元节点的连边个数作为当前神经元节点的入度,将当前神经元节点接出的连边个数作为当前神经元节点的出度。in, Indicates the absolute importance of neurons before the regularization of the i-th neuron node node i , InNum represents the in-degree of the neuron node, w 1 is the in-degree coefficient of the neuron node, OutNum represents the out-degree of the neuron node, w 2 is the out-degree coefficient of the neuron node, Weight represents the sum of the absolute value of the neuron node’s edge weight, w 3 is the weight coefficient of the neuron node, /> is the importance of the final neuron node, /> Indicates the absolute importance of the neuron before the regularization of the jth neuron node node j , and n indicates the total number of neuron nodes. Wherein, the number of connected edges connected to the current neuron node is taken as the in-degree of the current neuron node, and the number of connected edges connected to the current neuron node is taken as the out-degree of the current neuron node.
优选地,依据重要性大小选择神经元节点进行可视化时,设置重要性阈值,筛选重要性大于该重要性阈值的神经元节点进行可视化。这样神经元节点连接到的边越多、边的权重绝对值越大会被优先保留。Preferably, when selecting neuron nodes for visualization based on importance, an importance threshold is set, and neuron nodes with importance greater than the importance threshold are selected for visualization. In this way, the more edges connected to the neuron node and the greater the absolute value of the weight of the edge will be preferentially reserved.
与现有技术相比,本发明具有的有益效果至少包括:Compared with the prior art, the beneficial effects of the present invention at least include:
本发明提供的类脑计算机操作系统的神经信息可视化方法,通过对神经元进行全局编码来解决连接描述文件多的问题,依据神经元节点的重要性对神经元进行筛选并可视化,采用这种稀疏化处理方法解决了神经元节点多显示困难的问题,同时将连接关系以连边形式表示且采用不同颜色区分,解决了神经元节点之间的连线多不易区分的问题。实现了对类脑计算机操作系统的神经信息的合理可视化,方便对对脉冲神经网络工作过程的理解。The neural information visualization method of the brain-like computer operating system provided by the present invention solves the problem of too many connection description files by globally encoding neurons, and screens and visualizes neurons according to the importance of neuron nodes. The chemical processing method solves the problem that it is difficult to display too many neuron nodes. At the same time, the connection relationship is expressed in the form of edges and differentiated by different colors, which solves the problem that the connections between neuron nodes are too many and difficult to distinguish. Realize the reasonable visualization of the neural information of the brain-like computer operating system, and facilitate the understanding of the working process of the spiking neural network.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动前提下,还可以根据这些附图获得其他附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明实施例提供的类脑计算机操作系统的神经信息可视化方法流程图;Fig. 1 is a flowchart of a neural information visualization method for a brain-inspired computer operating system provided by an embodiment of the present invention;
图2是本发明实施例提供的脉冲神经网络的连接描述文件的内部数据结构;Fig. 2 is the internal data structure of the connection description file of the spiking neural network provided by the embodiment of the present invention;
图3是本发明实施例提供的用于神经信息可视化的中间json文件的内部数据结构;Fig. 3 is the internal data structure of the intermediate json file used for neural information visualization provided by the embodiment of the present invention;
图4是本发明实施例提供的json文件的data字段内部的四元组;Fig. 4 is the quaternion inside the data field of the json file that the embodiment of the present invention provides;
图5是本发明实施例提供的json文件links字段内部的三元组;Fig. 5 is the triplet inside the links field of the json file provided by the embodiment of the present invention;
图6是本发明实施例提供的脑电模拟脉冲神经网络的神经信息可视化图;Fig. 6 is a neural information visualization diagram of an EEG simulation pulse neural network provided by an embodiment of the present invention;
图7是本发明实施例提供的记忆模型脉冲神经网络的神经信息可视化图。Fig. 7 is a visualization diagram of neural information of the memory model spiking neural network provided by the embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例对本发明进行进一步的详细说明。应当理解,此处所描述的具体实施方式仅仅用以解释本发明,并不限定本发明的保护范围。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, and do not limit the protection scope of the present invention.
在对浙江大学达尔文2号神经拟态芯片的类脑计算机操作系统的脉冲神经网络进行神经信息可视化的过程中,遇到了连接描述文件多、神经元节点数量多、神经元节点间的连线多不易区分的问题。为了解决因为这些问题导致神经信息可视化困难的问题,本发明实施例提供了一种类脑计算机操作系统的神经信息可视化方法,基于达尔文2号神经拟态芯片的类脑计算机操作系统的脉冲神经网络模型连接描述文件进行神经信息可视化。In the process of visualizing the neural information of the spiking neural network of the brain-like computer operating system of the
图1是本发明实施例提供的类脑计算机操作系统的神经信息可视化方法流程图。如图1所示,该神经信息可视化方法包括以下步骤:Fig. 1 is a flowchart of a neural information visualization method for a brain-inspired computer operating system provided by an embodiment of the present invention. As shown in Figure 1, the neural information visualization method includes the following steps:
步骤1,根据脉冲神经网络层与层的连接关系,按照从输入层到输出层的顺序读取脉冲神经网络的连接描述文件。
脉冲神经网络的连接描述文件描述了脉冲神经网络神经元和神经元之间的连接关系。脉冲神经网络的连接描述文件有多个,每个文件描述了两层神经元之间的连接关系。图2是脉冲神经网络的连接描述文件的内部数据结构。如图2所示,连接描述文件的每一行都是一个四元组,四元组的第一个字段是起始神经元层内编号,即起始神经元在起始层中的编号,第二个字段是目标神经元层内编号,即目标神经元在目标层中的编号,第三个字段为权重,即神经元的处理输入值的权重,该权重是神经元连边的固有属性,第四个字段是脉冲延时,即脉冲信号从起始神经元到目标神经元的延时。The connection description file of the spiking neural network describes the connection relationship between neurons and neurons in the spiking neural network. There are multiple connection description files of the spiking neural network, and each file describes the connection relationship between two layers of neurons. Figure 2 is the internal data structure of the connection description file of the spiking neural network. As shown in Figure 2, each line of the connection description file is a quaternion, and the first field of the quaternion is the number in the starting neuron layer, that is, the number of the starting neuron in the starting layer. The second field is the number in the target neuron layer, that is, the number of the target neuron in the target layer, and the third field is the weight, that is, the weight of the neuron’s processing input value, which is the inherent attribute of the neuron’s edge. The fourth field is the spike delay, that is, the delay of the spike signal from the originating neuron to the target neuron.
步骤2,依据读取的脉冲神经网络连接描述文件,对各层神经元节点重新全局编号,将层内编号转化为全局唯一标识,同时确定每一层神经元的颜色,组成神经元自身属性。
步骤3,根据连接描述文件和神经元节点的自身属性生成描述节点连接关系的三元组(起始神经元编号,目标神经元编号,边的颜色),边的颜色根据边连接神经元所在的层确定。
步骤4,根据脉冲神经网络神经元之间的连接关系对神经元节点进行布局,同一层的神经元节点聚集放置在同一区域,相邻层的神经元聚集放置在相邻位置。In step 4, neuron nodes are laid out according to the connection relationship between neurons in the spiking neural network. Neuron nodes of the same layer are aggregated and placed in the same area, and neurons of adjacent layers are aggregated and placed in adjacent positions.
步骤5,根据神经元与其它神经元的连边数量和连边权重选择是否显示某个神经元。Step 5, choose whether to display a certain neuron according to the number of connections between the neuron and other neurons and the weight of the connections.
由于原始的脉冲神经网络中的神经元节点和连线过多,如果全部显示,所有的节点和连线会挤在一起,不能展示出脉冲神经网络的关键结构,因此需要对脉冲神经网络进行稀疏化显示。如果对神经元的采样过多,会造成可视化后神经元过于稠密,无法看出各个神经元之间的连接关系;如果对神经元的采样过少,会造成主要信息的缺失,不能观察到脉冲神经网络的主要结构。具体的做法是根据神经元与其它神经元的连边数量和连边权重计算神经元的重要性,根据重要性对神经元进行排序,重要性越大的神经元会被优先保留。Because there are too many neuron nodes and connections in the original spiking neural network, if all of them are displayed, all the nodes and connections will be crowded together, and the key structure of the spiking neural network cannot be displayed, so the spiking neural network needs to be sparse displayed. If the sampling of neurons is too much, the neurons after visualization will be too dense, and the connection relationship between each neuron cannot be seen; if the sampling of neurons is too small, the main information will be lost, and the pulse cannot be observed. The main structure of the neural network. The specific method is to calculate the importance of the neuron according to the number of connections between the neuron and other neurons and the weight of the connection, and sort the neurons according to the importance, and the neurons with greater importance will be reserved first.
神经元的重要性的公式如下:The formula for the importance of a neuron is as follows:
在计算得到神经元的重要性以后,设置重要度阈值∈(∈∈(0,1))来控制显示哪些神经元,重要性大于阈值的神经元会被显示,小于阈值的神经元会被隐藏。After calculating the importance of neurons, set the importance threshold ∈(∈∈(0,1)) to control which neurons are displayed. Neurons whose importance is greater than the threshold will be displayed, and neurons less than the threshold will be hidden. .
步骤6,导出描述神经元布局和边的颜色的json文件,利用echarts将导出的json文件进行可视化。Step 6, export the json file describing the neuron layout and edge color, and use echarts to visualize the exported json file.
实施例中,采用python代码生成json文件,采用echarts的graph类型对的json文件进行可视化。图3是json文件的数据结构,其中包含了三个字段:数据单元data,连接关系单元links和层单元layers。data字段是一个数组,内部的每个元素是一个四元组,四元组内包含了神经元节点的键值name、位置坐标(x,y)和所属层信息,如图4所示。links字段同样是一个数组,内部的每个元素是一个三元组,三元组内部包含了起始神经元节点的键值source,目标神经元的键值target,连线的颜色lineStyle,如图5所示。In the embodiment, the python code is used to generate the json file, and the graph type of echarts is used to visualize the json file. Figure 3 is the data structure of the json file, which contains three fields: data unit data, connection relationship unit links and layer unit layers. The data field is an array, and each element inside is a quadruple, which contains the key value name, position coordinates (x, y) and layer information of the neuron node, as shown in Figure 4. The links field is also an array, and each element inside is a triplet, which contains the key value source of the starting neuron node, the key value target of the target neuron node, and the color lineStyle of the connection, as shown in the figure 5.
利用上述类脑计算机操作系统的神经信息可视化方法方法,对脑电模拟脉冲神经网络和记忆模型脉冲神经网络神经信息可视化的结果如图6和图7所示,图中清晰地展示出了脉冲神经网络的结构,即展示出脉冲神经网络的神经元节点和各个神经元节点之间的连接关系。Using the neural information visualization method of the above-mentioned brain-like computer operating system, the neural information visualization results of the EEG simulated spiking neural network and the memory model spiking neural network are shown in Figures 6 and 7. The spiking nerves are clearly shown in the figure. The structure of the network, that is, it shows the neuron nodes of the spiking neural network and the connection relationship between each neuron node.
以上所述的具体实施方式对本发明的技术方案和有益效果进行了详细说明,应理解的是以上所述仅为本发明的最优选实施例,并不用于限制本发明,凡在本发明的原则范围内所做的任何修改、补充和等同替换等,均应包含在本发明的保护范围之内。The above-mentioned specific embodiments have described the technical solutions and beneficial effects of the present invention in detail. It should be understood that the above-mentioned are only the most preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, supplements and equivalent replacements made within the scope shall be included in the protection scope of the present invention.
Claims (3)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011255463.4A CN112270406B (en) | 2020-11-11 | 2020-11-11 | Nerve information visualization method of brain-like computer operating system |
PCT/CN2020/128463 WO2022099557A1 (en) | 2020-11-11 | 2020-11-12 | Neuron information visualization method for operating system of brain-like computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011255463.4A CN112270406B (en) | 2020-11-11 | 2020-11-11 | Nerve information visualization method of brain-like computer operating system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112270406A CN112270406A (en) | 2021-01-26 |
CN112270406B true CN112270406B (en) | 2023-05-23 |
Family
ID=74340656
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011255463.4A Active CN112270406B (en) | 2020-11-11 | 2020-11-11 | Nerve information visualization method of brain-like computer operating system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112270406B (en) |
WO (1) | WO2022099557A1 (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112819160B (en) * | 2021-02-24 | 2023-10-31 | 文远鄂行(湖北)出行科技有限公司 | Visualization method, device and equipment for neural network model and storage medium |
CN112561042B (en) * | 2021-03-01 | 2021-06-29 | 浙江大学 | A neural model mapping method for brain-like computer operating system |
CN112561043B (en) * | 2021-03-01 | 2021-06-29 | 浙江大学 | A neural model splitting method of brain-like computer operating system |
CN113297314B (en) * | 2021-07-28 | 2021-11-02 | 深圳市永达电子信息股份有限公司 | Data visualization method and device and storage medium |
CN113791913B (en) * | 2021-11-16 | 2022-02-11 | 浙江大学 | A task migration method for brain-like computer operating system |
CN114399033B (en) * | 2022-03-25 | 2022-07-19 | 浙江大学 | Brain-like computing system and computing method based on neuron instruction coding |
CN114611686B (en) * | 2022-05-12 | 2022-08-30 | 之江实验室 | Synaptic Delay Implementation System and Method Based on Programmable Neuromorphic Core |
CN115879544B (en) * | 2023-02-28 | 2023-06-16 | 中国电子科技南湖研究院 | Neuron coding method and system for distributed brain-like simulation |
CN118334041B (en) * | 2023-11-30 | 2025-02-07 | 上海医视际医疗科技发展有限公司 | Brain tumor image automatic segmentation method, system, terminal and medium |
Family Cites Families (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014076698A1 (en) * | 2012-11-13 | 2014-05-22 | Elminda Ltd. | Neurophysiological data analysis using spatiotemporal parcellation |
US10095718B2 (en) * | 2013-10-16 | 2018-10-09 | University Of Tennessee Research Foundation | Method and apparatus for constructing a dynamic adaptive neural network array (DANNA) |
BR112017019821B8 (en) * | 2015-03-20 | 2024-02-15 | Fraunhofer Ges Forschung | Relevance score assignment for artificial neural networks |
US10318584B2 (en) * | 2015-05-26 | 2019-06-11 | Ayasdi, Inc. | Outcome analysis for graph generation |
CN105788608B (en) * | 2016-03-03 | 2019-03-26 | 渤海大学 | Chinese phonetic mother method for visualizing neural network based |
US11086471B2 (en) * | 2016-06-06 | 2021-08-10 | Salesforce.Com, Inc. | Visualizing neural networks |
CN106372721B (en) * | 2016-08-29 | 2018-08-21 | 中国传媒大学 | The 3D method for visualizing of Large Scale Neural Networks |
US11544539B2 (en) * | 2016-09-29 | 2023-01-03 | Tsinghua University | Hardware neural network conversion method, computing device, compiling method and neural network software and hardware collaboration system |
CN106650922B (en) * | 2016-09-29 | 2019-05-03 | 清华大学 | Hardware neural network conversion method, computing device, and software-hardware cooperation system |
US20190005384A1 (en) * | 2017-06-29 | 2019-01-03 | General Electric Company | Topology aware graph neural nets |
US10366322B2 (en) * | 2017-10-06 | 2019-07-30 | DeepCube LTD. | System and method for compact and efficient sparse neural networks |
CN107704925B (en) * | 2017-10-16 | 2020-04-14 | 清华大学 | Visual analysis system and method for deep neural network training process |
CN110322010B (en) * | 2019-07-02 | 2021-06-25 | 深圳忆海原识科技有限公司 | Pulse neural network operation system and method for brain-like intelligence and cognitive computation |
CN110782031A (en) * | 2019-09-27 | 2020-02-11 | 北京计算机技术及应用研究所 | Multi-frame convolutional neural network model structure visualization and network reconstruction method |
CN110781933B (en) * | 2019-10-14 | 2022-08-05 | 杭州电子科技大学 | A Visual Analytics Approach for Understanding Graph Convolutional Neural Networks |
CN111082949B (en) * | 2019-10-29 | 2022-01-28 | 广东工业大学 | Method for efficiently transmitting pulse data packets in brain-like computer |
CN110909869B (en) * | 2019-11-21 | 2022-08-23 | 浙江大学 | Brain-like computing chip based on impulse neural network |
CN111291243B (en) * | 2019-12-30 | 2022-07-12 | 浙江大学 | Visual reasoning method for uncertainty of spatiotemporal information of character event |
CN111797333B (en) * | 2020-06-04 | 2021-04-20 | 南京擎盾信息科技有限公司 | Public opinion spreading task display method and device |
-
2020
- 2020-11-11 CN CN202011255463.4A patent/CN112270406B/en active Active
- 2020-11-12 WO PCT/CN2020/128463 patent/WO2022099557A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
CN112270406A (en) | 2021-01-26 |
WO2022099557A1 (en) | 2022-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112270406B (en) | Nerve information visualization method of brain-like computer operating system | |
CN113961718A (en) | Knowledge inference method based on industrial machine fault diagnosis knowledge graph | |
CN110781406B (en) | A multi-attribute inference method for social network users based on variational autoencoders | |
CN113325816A (en) | Industrial Internet-oriented digital twin body data management method | |
CN107464244A (en) | A kind of image irradiation method of estimation based on neutral net | |
CN106022469A (en) | Method for scalable neurosynaptic networks | |
CN105101093A (en) | A Network Topology Visualization Method for Geographic Information | |
CN116245013A (en) | Geological prediction model construction method, modeling method, equipment and storage medium | |
CN115512785A (en) | Attention mechanism-based three-dimensional protein-ligand activity prediction method | |
CN106372721B (en) | The 3D method for visualizing of Large Scale Neural Networks | |
CN118427720A (en) | Power system transient stability judging method and system based on interpretable graph neural tree | |
CN116051839B (en) | A 3D tooth segmentation method based on multi-branch fusion learning | |
CN115828233B (en) | A data encapsulation method for power grid dynamic security detection system | |
CN115757604A (en) | GDP (generalized projection) space-time evolution analysis method based on noctilucent image data | |
CN110569616A (en) | A Decision Support Method for Building Multi-objective Optimal Design Based on SOM | |
CN118154996B (en) | Three-dimensional scene point cloud classification method for multi-scale depth feature aggregation | |
Ye et al. | [Retracted] Application of CNN Algorithm Based on Chaotic Recursive Diagonal Model in Medical Image Processing | |
CN104778308B (en) | The recognition methods of aircaft configuration section bar and device | |
CN117078518A (en) | Three-dimensional point cloud superdivision method based on multi-mode iterative fusion | |
CN117743980A (en) | Method, device, equipment and medium for identifying branch connection status of distribution network topology diagram | |
CN117437481A (en) | A collaborative image classification method and system between pulse neural network and quantum circuit | |
CN116502380A (en) | Power Grid Transient Instability Location Method and System Based on Interpretable Graph Neural Network | |
CN114386573A (en) | Static sounding soil layer dividing method and system based on multilayer perceptron | |
CN116561329A (en) | A training method, system, device and medium for a knowledge map prediction model | |
CN107170023A (en) | A kind of method for visualizing developed towards the individual central site network of multivariate |
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 |