WO2021000674A1 - Cell image recognition method and system, computer device, and readable storage medium - Google Patents

Cell image recognition method and system, computer device, and readable storage medium Download PDF

Info

Publication number
WO2021000674A1
WO2021000674A1 PCT/CN2020/093042 CN2020093042W WO2021000674A1 WO 2021000674 A1 WO2021000674 A1 WO 2021000674A1 CN 2020093042 W CN2020093042 W CN 2020093042W WO 2021000674 A1 WO2021000674 A1 WO 2021000674A1
Authority
WO
WIPO (PCT)
Prior art keywords
cell
capsule
convolution
activation
feature maps
Prior art date
Application number
PCT/CN2020/093042
Other languages
French (fr)
Chinese (zh)
Inventor
庞烨
王义文
王健宗
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021000674A1 publication Critical patent/WO2021000674A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/69Microscopic objects, e.g. biological cells or cellular parts
    • G06V20/695Preprocessing, e.g. image segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/69Microscopic objects, e.g. biological cells or cellular parts
    • G06V20/698Matching; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/03Recognition of patterns in medical or anatomical images

Definitions

  • the embodiments of the present application relate to the field of artificial intelligence, and in particular to a method, system, computer equipment, and computer-readable storage medium for cell image recognition based on CapsNet capsule network.
  • the CNN model has become more and more mature, and researchers continue to try to use the CNN model to classify cells, but the CNN model still has many problems.
  • training the CNN model requires a large amount of data, but for many problems, a large number of data sets cannot be obtained. For example, for many unpopular classifications, there is no perfect data set to use; secondly, the CNN model cannot solve the image well.
  • the density of cells may be very high. If they are close together, CNN cannot identify their characteristics.
  • CNN uses a large-scale pooling layer, although the pooling layer can Help extract the main information and quickly reduce the size of the image, but the information is lost.
  • CNN can only extract the features of the image, but cannot learn between the features
  • CNN learns the classification task it may only recognize the eyes and nose and then judge it as a human face, but the eyes may be under the nose, which will lead to misjudgment.
  • the inventor realized that it is necessary to provide a new cell identification technology to improve the accuracy of cell identification.
  • the purpose of the embodiments of the present application is to provide a method, system, computer equipment, and computer-readable storage medium for cell image recognition based on the CapsNet capsule network to solve the problems of cell recognition errors and low recognition accuracy.
  • an embodiment of the present application provides a method for recognizing a cell image based on a CapsNet capsule network, which includes the following steps:
  • the probability that the cell image in the cell picture corresponds to each cell category is calculated.
  • the embodiment of the present application also provides a cell picture recognition system based on CapsNet capsule network, including:
  • Input module used to input cell pictures into CapsNet capsule network
  • the first convolution module is configured to perform a convolution operation on the cell image through a convolution layer to obtain A convolution feature maps
  • the second convolution module is configured to perform a convolution operation on the A convolution feature maps through the first capsule layer to obtain B multidimensional vectors;
  • the fully connected module is used to perform a fully connected operation on the B multi-dimensional vectors through the second capsule layer to obtain C activation vectors, where the C activation vectors indicate that there are C cell types;
  • the calculation module is used to calculate the probability that the cell image in the cell picture corresponds to each cell category according to the C activation vectors output by the second capsule layer.
  • an embodiment of the present application further provides a computer device, the computer device including a memory, a processor, and computer-readable instructions stored on the memory and running on the processor, the When the computer-readable instructions are executed by the processor, the following steps are implemented:
  • the probability that the cell image in the cell picture corresponds to each cell category is calculated.
  • an embodiment of the present application also provides a computer-readable storage medium having computer-readable instructions stored in the computer-readable storage medium, and the computer-readable instructions may be executed by at least one processor, So that the at least one processor executes the following steps:
  • the probability that the cell image in the cell picture corresponds to each cell category is calculated.
  • the method, system, computer equipment, and computer-readable storage medium for cell image recognition based on the CapsNet capsule network can obtain the characteristic parameters of different cells (for example, position, size, etc.) through the first capsule layer and the second capsule layer.
  • Direction, texture, color, etc.), as well as the relationship between the cells so that the cells squeeze and block each other, and still be able to identify the cell image in the cell picture according to the above characteristic parameters, and output multiple cells on the cell image Label, output the cell type of the cell image in the cell picture.
  • CapsNet capsule network structure of the embodiment of this application can identify cell types, and can perform identification operations on cells when the biomedical image data set is small, the cells are close to each other, and there are multiple cells in the same image. Maintain a high recognition accuracy rate.
  • FIG. 1 is a schematic flowchart of Embodiment 1 of a method for recognizing a cell image based on a CapsNet capsule network according to an embodiment of this application.
  • FIG. 2 is a schematic diagram of program modules of Embodiment 2 of a cell image recognition system based on CapsNet capsule network according to an embodiment of the application.
  • FIG. 3 is a schematic diagram of the hardware structure of the third embodiment of the computer equipment of this application.
  • FIG. 1 shows a flowchart of the steps of a method for recognizing a cell image based on a CapsNet capsule network in the first embodiment of the present application. It can be understood that the flowchart in this method embodiment is not used to limit the order of execution of the steps. details as follows.
  • Step S100 input the cell picture into the CapsNet capsule network.
  • the computer device 2 can directly or indirectly control the electron microscope to collect cell pictures of the sample cells, and input the cell pictures collected by the electron microscope into the CapsNet capsule network.
  • the length and width of the cell image are both 28 pixels.
  • the cell image refers to an image area representing the shape of the cell in the cell image.
  • Step S102 performing a convolution operation on the cell image through the convolution layer to obtain A convolution feature maps.
  • the convolutional layer includes 256 9*9 convolution kernels with a step length of 1, and a convolution operation is performed on the cell image through the convolutional layer to obtain 256 20*20 convolutions Feature map.
  • Step S104 performing a convolution operation on the A convolution feature maps through the first capsule layer to obtain B multidimensional vectors.
  • the step S104 further includes: dividing the A convolution feature maps into B convolution feature map combinations; performing a convolution operation on the B convolution feature map combinations to obtain B X* Y convolution feature map, each X*Y convolution feature map includes X*Y grids corresponding to each grid, and each grid corresponds to a multi-dimensional vector; wherein, the first capsule layer does not include an activation function.
  • a convolution feature map can be divided equally, such as segmenting into B convolution feature map combinations, and each convolution feature map combination includes Convolution feature maps, where, Is a positive integer greater than or equal to 2. It can be preferably 8, which means that 8 different forms (position, movement, rotation, size change, etc.) of the cell image are packaged together. of course, You can also choose other numbers.
  • the first capsule layer divides 256 convolutional feature maps into 32 parts, and performs a convolution operation on these 256 convolutional feature maps through a 9*9 convolution kernel and a step size of 1, to obtain 32 A 6*6 convolution feature map.
  • the grid of the 6*6 convolution feature map includes 6*6 grids, and each grid is an 8-dimensional vector. Therefore, the first capsule layer outputs 32*6*6 8-dimensional vectors (also called first-level capsules).
  • the length of each vector represents the estimated probability of whether the object exists, and its direction (for example, in an 8-dimensional space) records the posture parameters of the object (for example, precise position, rotation, etc.). If the object changes slightly (for example, movement, rotation, size change, etc.), the first capsule layer outputs a vector with the same length but slightly changed direction.
  • the first capsule layer Based on the characteristics of small morphological differences between various types of cells, the first capsule layer does not use the activation function ReLU.
  • Step S106 Perform a full connection operation on the B multi-dimensional vectors through the second capsule layer to obtain C activation vectors, where the C activation vectors indicate that there are C cell types.
  • the convolutional layer is to extract the picture features in the cell picture.
  • the first capsule layer contains B first-level capsules, and is to receive the image features extracted by the convolutional layer to form multiple feature combinations (ie, multi-dimensional vectors).
  • a one-dimensional capsule corresponds to a multi-dimensional vector, which is used for centralized representation Multiple graphical attributes of a cell, and its length characterizes the probability of cell existence.
  • the second capsule layer including C second-level capsules, each second-level capsule is based on multiple feature combinations and the fully connected layer in the second capsule layer to obtain the corresponding activation vector, the length of the activation vector represents the probability of the corresponding cell category V j .
  • C activation vectors can be obtained by the following formula:
  • u i represents the i-th multidimensional vector in the B X*Y convolution feature maps output by the first capsule layer, 1 ⁇ i ⁇ B;
  • W ij is the transformation matrix;
  • c ij is the coupling coefficient, which is used to measure a capsule activation stage i j is the probability of two capsules, 1 ⁇ j;
  • V j is the activation of cell class j is a vector, the vector V j for each active cell as two capsules of class j.
  • it further includes a training step of obtaining the coupling coefficient c ij :
  • Step (1) initialize the temporary variable b ij , and the initial value of b ij is 0;
  • Step (2) through the formula Calculate c ij , where the initial value of i is 1, and the initial value of j is 1;
  • Step (3) through the formula with Calculate s j ;
  • Step (4) input s j into the formula Calculate V j ;
  • Step (5) through the formula Update b ij ;
  • the layer may include a second capsule 10 two capsules, two capsules each cell corresponds to a category, which the transformation matrix W ij 16x8 dimension converting 8 capsules a capsule 16 through a two-dimensional shape , Each second-level capsule corresponds to a cell category j.
  • the prediction vector is:
  • the activation vector V j of cell category j is:
  • Each activation vector V j acts as a second-level capsule of cell category j.
  • the probability that the cell image in the cell picture is classified as j can be obtained by calculating
  • u i represents the i-th 8-dimensional vector in the 32 8-dimensional 6*6 convolutional feature maps output by the first capsule layer
  • Wij is the transformation matrix (16*8): the 8-dimensional first-level capsule is converted to 16 Dimensional second-level capsule; c ij is the coupling coefficient, which is used to measure how likely the first-level capsule i is to activate the second-level capsule j, and the sum is 1 (ie, the coupling coefficient of the second-level capsule j and all the first-level capsules in the upper layer The sum is 1, and is determined by "routing softmax").
  • Step S108 Calculate the probability that the cell image in the cell picture corresponds to each cell category according to the C activation vectors output by the second capsule layer.
  • is determined as the cell type of the cell image in the cell image.
  • FIG. 2 shows a schematic diagram of the program modules of the second embodiment of the cell image recognition system based on the CapsNet capsule network in the embodiment of the present application.
  • the cell picture recognition system 20 may include or be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to complete
  • This application can also implement the above-mentioned method for recognizing cell pictures based on the CapsNet capsule network.
  • the program module referred to in the embodiments of the present application refers to a series of computer-readable instruction segments capable of completing specific functions, and is more suitable for describing the execution process of the cell picture recognition system 20 in the storage medium than the program itself. The following description will specifically introduce the functions of each program module in this embodiment:
  • the input module 200 is used to input cell pictures into the CapsNet capsule network.
  • the computer device 2 can directly or indirectly control the electron microscope to collect cell pictures of the sample cells, and input the cell pictures collected by the electron microscope into the CapsNet capsule network.
  • the length and width of the cell image are both 28 pixels.
  • there may be differences in the shape of each cell image and multiple cell images may overlap. These cell images may correspond to different types of cells.
  • the first convolution module 202 is configured to perform a convolution operation on the cell image through a convolution layer to obtain A convolution feature maps.
  • the convolutional layer includes 256 9*9 convolution kernels with a step length of 1, and a convolution operation is performed on the cell through the convolutional layer to obtain 256 20*20 convolution features Figure.
  • the second convolution module 204 is configured to perform a convolution operation on the A convolution feature maps through the first capsule layer to obtain B multidimensional vectors.
  • the second convolution module 204 is configured to: divide the A convolution feature maps into B convolution feature map combinations; perform a convolution operation on the B convolution feature map combinations , Obtain B X*Y convolution feature maps, each X*Y convolution feature map includes X*Y grids corresponding to each grid, and each grid corresponds to a multi-dimensional vector; wherein, the first capsule layer does not include activation function.
  • the first capsule layer divides 256 convolution feature maps into 32 parts, and performs convolution operation on these 256 convolution feature maps through a 9*9 convolution kernel to obtain 32 6*6 convolutions Product feature map.
  • the grid of the 6*6 convolution feature map includes 6*6 grids, and each grid is an 8-dimensional vector. Therefore, the first capsule layer outputs 32*6*6 8-dimensional vectors (also called first-level capsules).
  • the length of each vector represents the estimated probability of whether the object exists, and its direction (for example, in an 8-dimensional space) records the posture parameters of the object (for example, precise position, rotation, etc.). If the object changes slightly (for example, movement, rotation, size change, etc.), the first capsule layer outputs a vector with the same length but slightly changed direction.
  • the first capsule layer Based on the characteristics of small morphological differences between various types of cells, the first capsule layer does not use the activation function ReLU.
  • the fully connected module 206 is configured to perform a fully connected operation on the B multi-dimensional vectors through the second capsule layer to obtain C activation vectors.
  • the C activation vectors indicate that there are C cell types.
  • C activation vectors can be obtained by the following formula:
  • u i represents the i-th multidimensional vector in the B X*Y convolution feature maps output by the first capsule layer, 1 ⁇ i ⁇ B;
  • W ij is the transformation matrix;
  • c ij is the coupling coefficient, which is used to measure a capsule activation stage i j is the probability of two capsules, 1 ⁇ j;
  • V j is the activation of cell class j is a vector, the vector V j for each active cell as two capsules of class j.
  • a coupling coefficient acquisition module is further included, configured to:
  • Step (1) initialize the temporary variable b ij , the initial value of b ij is 0; step (2), through the formula Calculate c ij , where the initial value of i is 1, and the initial value of j is 1; step (3), through the formula with Calculate s j ; step (4), enter s j into the formula Calculate V j ; step (5), through the formula Update b ij ; repeat steps (2) to (5) to obtain the value corresponding to c ij .
  • the calculation module 208 is configured to calculate the probability that the cell image in the cell picture corresponds to each cell category according to the C activation vectors output by the second capsule layer.
  • is determined as the cell type of the cell image in the cell image.
  • This application obtains the characteristic parameters of different cells (for example, position, size, direction, texture, color, etc.) through the first capsule layer and the second capsule layer, as well as the relationship between the cells, so that the cells squeeze each other to block , It can still identify each cell according to the above-mentioned characteristic parameters, and output multiple tags on the cell image, and output the cell type of each cell on the cell image. It can be seen that the CapsNet capsule network structure of the embodiment of this application can identify cell types, and can perform identification operations on cells when the biomedical image data set is small, the cells are close to each other, and there are multiple cells in the same image. Maintain a high recognition accuracy rate.
  • the computer device 2 is a device that can automatically perform numerical calculation and/or information processing according to pre-set or stored instructions.
  • the computer device 2 may be a PC, a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or a server cluster composed of multiple servers).
  • the computer device 2 at least includes, but is not limited to, a memory 21, a processor 22, a network interface 23, and a cell image recognition system 20 that can be communicated with each other through a system bus. among them:
  • the memory 21 includes at least one type of computer-readable storage medium.
  • the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory ( RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disks, optical disks, etc.
  • the memory 21 may be an internal storage unit of the computer device 2, such as a hard disk or memory of the computer device 2.
  • the memory 21 may also be an external storage device of the computer device 2, for example, a plug-in hard disk, a smart media card (SMC), and a secure digital (Secure Digital, SD card, Flash Card, etc.
  • the memory 21 may also include both the internal storage unit of the computer device 2 and its external storage device.
  • the memory 21 is generally used to store the operating system and various application software installed in the computer device 2, such as the program code of the cell image recognition system 20 in the second embodiment.
  • the memory 21 can also be used to temporarily store various types of data that have been output or will be output.
  • the processor 22 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments.
  • the processor 22 is generally used to control the overall operation of the computer device 2.
  • the processor 22 is used to run the program code or process data stored in the memory 21, for example, to run the cell image recognition system 20, so as to implement the CapsNet capsule network-based cell image recognition method of the first embodiment.
  • the network interface 23 may include a wireless network interface or a wired network interface, and the network interface 23 is generally used to establish a communication connection between the computer device 2 and other electronic devices.
  • the network interface 23 is used to connect the computer device 2 with an external terminal through a network, and establish a data transmission channel and a communication connection between the computer device 2 and the external terminal.
  • the network may be Intranet, Internet, Global System of Mobile Communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G Network, Bluetooth (Bluetooth), Wi-Fi and other wireless or wired networks.
  • FIG. 3 only shows the computer device 2 with components 20-23, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead.
  • the cell picture recognition system 20 stored in the memory 21 can also be divided into one or more program modules, and the one or more program modules are stored in the memory 21 and are composed of one or more program modules.
  • Multiple processors in this embodiment, the processor 22 are executed to complete the application.
  • FIG. 2 shows a schematic diagram of program modules for implementing the second embodiment of the cell picture recognition system 20.
  • the cell picture recognition system 20 can be divided into an input module 200 and a first convolution module 202. , The second convolution module 204, the fully connected module 206, and the calculation module 208.
  • the program module referred to in the present application refers to a series of computer-readable instruction segments that can complete specific functions, and is more suitable than a program to describe the execution process of the cell image recognition system 20 in the computer device 2.
  • the specific functions of the program modules 200-208 have been described in detail in the second embodiment, and will not be repeated here.
  • the computer-readable storage medium may be non-volatile or volatile, such as flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX). Memory, etc.), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory , Magnetic disks, optical disks, servers, App application malls, etc., on which computer-readable instructions are stored, and corresponding functions are realized when the programs are executed by the processor.
  • the computer-readable storage medium of this embodiment stores computer-readable instructions in the computer-readable storage medium, and the computer-readable instructions can be executed by at least one processor, so that the at least one processor performs the following steps :
  • the probability that the cell image in the cell picture corresponds to each cell category is calculated.

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

An embodiment of the present application provides a cell image recognition method employing a CapsNet capsule network. The method comprises: inputting a cell image to a CapsNet capsule network; performing a convolution operation on the cell image by means of a convolution layer to acquire A convolution feature maps; performing a convolution operation on the A convolution feature maps by means of a first capsule layer to acquire B multidimensional vectors; performing a full connection operation on the B multidimensional vectors by means of a second capsule layer to acquire C activation vectors, wherein the C activation vectors indicate that C cell categories are present; and calculating, according to the C activation vectors outputted by the second capsule layer, the probability that a cell in the cell image corresponds to each cell category. The CapsNet capsule network structure of the embodiment of the present application identifies a cell category, and performs a cell recognition operation and maintains a high recognition accuracy rate in cases where a biomedical image data set is small, cells are closely spaced, and multiple cells are present in a single image.

Description

细胞图片识别方法、系统、计算机设备及可读存储介质Cell picture recognition method, system, computer equipment and readable storage medium
本申请申明2019年07月03日提交中国专利局、申请号为201910596892.9、名称为“细胞图片识别方法、系统、计算机设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application affirms the priority of the Chinese patent application filed with the Chinese Patent Office on July 3, 2019, the application number is 201910596892.9, and the name is "Cell image recognition method, system, computer equipment and readable storage medium", the entire content of which is incorporated by reference Incorporated in this application.
技术领域Technical field
本申请实施例涉及人工智能领域,尤其涉及一种基于CapsNet胶囊网络的细胞图片识别方法、系统、计算机设备及计算机可读存储介质。The embodiments of the present application relate to the field of artificial intelligence, and in particular to a method, system, computer equipment, and computer-readable storage medium for cell image recognition based on CapsNet capsule network.
背景技术Background technique
细胞分类通常需要借助生化和光路设备,当前研究人员多采用显微镜图像来采集病人血清图像,医生利用该血清图像检查抗体的存在,从而判断是否存在自体免疫疾病。凭借医生的判断是十分主观的方法,对于医生的经验依赖性较高,因此不易实现高效准确的诊断。因此,医学诊断领域迫切需要自动的显微镜图像处理技术和细胞分类技术,以辅助医生实现便捷和高效的医疗诊断。深度学习自从面世以来一直备受关注,深度学习技术开始应用于细胞分类技术中。使用深度学习对细胞进行分类能够帮助科研人员更好的认识细胞的特征,建立基因组连接,加速药物研发,甚至发现人类无法觉察到的细节。Cell classification usually requires the help of biochemical and light path equipment. Currently, researchers mostly use microscope images to collect patient serum images. Doctors use the serum images to check for the presence of antibodies to determine whether there are autoimmune diseases. Relying on the doctor's judgment is a very subjective method and highly dependent on the doctor's experience, so it is not easy to achieve an efficient and accurate diagnosis. Therefore, the field of medical diagnosis urgently needs automatic microscope image processing technology and cell classification technology to assist doctors in realizing convenient and efficient medical diagnosis. Deep learning has attracted much attention since its introduction, and deep learning technology has begun to be applied to cell classification technology. Using deep learning to classify cells can help researchers better understand cell characteristics, establish genome connections, accelerate drug development, and even discover details that humans cannot perceive.
近几年来,CNN模型日益成熟,科研人员不断尝试利用CNN模型对细胞进行分类,但是CNN模型依然存在很多问题。首先训练CNN模型需要准备大量的数据,但是对于很多问题并不能获取到大量的数据集,比如对很多冷门的分类,就没有完善的数据集可以使用;其次,CNN模型不能很好的解决图像中物体重叠的情况,在微观世界中,细胞之间可能密度很大,紧紧靠在一起,CNN便不能够很好的识别其特征;同时,CNN大规模的使用池化层,虽然池化层能够帮助提取主要信息,迅速缩小图像尺寸,但是带来的是信息的丢失,很可能在主要特征周围的细节特征被丢失掉;最后,CNN只能提取到图像的特征,但不能学习到特征之间的关系,导致CNN学习分类任务时,可能只识别到眼睛鼻子等就判定为人脸,但可能眼睛是在鼻子下面,这就会导致错误判别。In recent years, the CNN model has become more and more mature, and researchers continue to try to use the CNN model to classify cells, but the CNN model still has many problems. First, training the CNN model requires a large amount of data, but for many problems, a large number of data sets cannot be obtained. For example, for many unpopular classifications, there is no perfect data set to use; secondly, the CNN model cannot solve the image well. In the case of overlapping objects, in the microscopic world, the density of cells may be very high. If they are close together, CNN cannot identify their characteristics. At the same time, CNN uses a large-scale pooling layer, although the pooling layer can Help extract the main information and quickly reduce the size of the image, but the information is lost. It is very likely that the detailed features around the main feature will be lost. Finally, CNN can only extract the features of the image, but cannot learn between the features When CNN learns the classification task, it may only recognize the eyes and nose and then judge it as a human face, but the eyes may be under the nose, which will lead to misjudgment.
在细胞分类问题上,CNN的以上缺点就非常明显。首先,关于细胞类别缺少完善成熟的数据集可以使用;细胞之间可能互相距离很近,很难单个划分出来,同时,还会造成同一张图片有多个细胞,CNN不能在一张图上学习多个类别的特征;同时,在多标签分类时,CNN不能学习到细胞与细胞之间的关系,导致错分。On the issue of cell classification, the above shortcomings of CNN are very obvious. First of all, there is a lack of complete and mature data sets for cell types; cells may be very close to each other, and it is difficult to separate them individually. At the same time, it will also cause multiple cells in the same picture, and CNN cannot learn from one picture. Features of multiple categories; at the same time, in multi-label classification, CNN cannot learn the relationship between cells, resulting in misclassification.
因此,发明人意识到,有必要提供一种新的细胞识别技术,来提高细胞识别的准确性。Therefore, the inventor realized that it is necessary to provide a new cell identification technology to improve the accuracy of cell identification.
发明内容Summary of the invention
有鉴于此,本申请实施例的目的是提供一种基于CapsNet胶囊网络的细胞图片识别方法、系统、计算机设备及计算机可读存储介质,解决细胞识别错误、识别准确率低的问题。In view of this, the purpose of the embodiments of the present application is to provide a method, system, computer equipment, and computer-readable storage medium for cell image recognition based on the CapsNet capsule network to solve the problems of cell recognition errors and low recognition accuracy.
为实现上述目的,本申请实施例提供了一种基于CapsNet胶囊网络的细胞图片识别方法,包括以下步骤:In order to achieve the foregoing objective, an embodiment of the present application provides a method for recognizing a cell image based on a CapsNet capsule network, which includes the following steps:
将细胞图片输入到CapsNet胶囊网络中;Input the cell picture into the CapsNet capsule network;
通过卷积层对所述细胞图片执行卷积操作,以得到A个卷积特征图;Performing a convolution operation on the cell image through a convolution layer to obtain A convolution feature maps;
通过第一胶囊层对所述A个卷积特征图执行卷积操作,以得到B个多维向量;Performing a convolution operation on the A convolution feature maps through the first capsule layer to obtain B multidimensional vectors;
通过第二胶囊层对所述B个多维向量进行全连接操作,以得到C个激活向量,所述C个激活向量表示有C个细胞类别;及Perform a full connection operation on the B multi-dimensional vectors through the second capsule layer to obtain C activation vectors, where the C activation vectors indicate that there are C cell types; and
根据第二胶囊层输出的C个激活向量,计算所述细胞图片中的细胞影像对应各个细胞类别的概率。According to the C activation vectors output by the second capsule layer, the probability that the cell image in the cell picture corresponds to each cell category is calculated.
为实现上述目的,本申请实施例还提供了基于CapsNet胶囊网络的细胞图片识别系统,包括:In order to achieve the above objective, the embodiment of the present application also provides a cell picture recognition system based on CapsNet capsule network, including:
输入模块,用于将细胞图片输入到CapsNet胶囊网络中;Input module, used to input cell pictures into CapsNet capsule network;
第一卷积模块,用于通过卷积层对所述细胞图片执行卷积操作,以得到A个卷积特征图;The first convolution module is configured to perform a convolution operation on the cell image through a convolution layer to obtain A convolution feature maps;
第二卷积模块,用于通过第一胶囊层对所述A个卷积特征图执行卷积操作,以得到B个多维向量;The second convolution module is configured to perform a convolution operation on the A convolution feature maps through the first capsule layer to obtain B multidimensional vectors;
全连接模块,用于通过第二胶囊层对所述B个多维向量进行全连接操作,以得到C个激活向量,所述C个激活向量表示有C个细胞类别;及The fully connected module is used to perform a fully connected operation on the B multi-dimensional vectors through the second capsule layer to obtain C activation vectors, where the C activation vectors indicate that there are C cell types; and
计算模块,用于根据第二胶囊层输出的C个激活向量,计算所述细胞图片中的细胞影像对应各个细胞类别的概率。The calculation module is used to calculate the probability that the cell image in the cell picture corresponds to each cell category according to the C activation vectors output by the second capsule layer.
为实现上述目的,本申请实施例还提供了一种计算机设备,所述计算机设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述计算机可读指令被处理器执行时实现以下步骤:In order to achieve the foregoing objective, an embodiment of the present application further provides a computer device, the computer device including a memory, a processor, and computer-readable instructions stored on the memory and running on the processor, the When the computer-readable instructions are executed by the processor, the following steps are implemented:
将细胞图片输入到CapsNet胶囊网络中;Input the cell picture into the CapsNet capsule network;
通过卷积层对所述细胞图片执行卷积操作,以得到A个卷积特征图;Performing a convolution operation on the cell image through a convolution layer to obtain A convolution feature maps;
通过第一胶囊层对所述A个卷积特征图执行卷积操作,以得到B个多维向量;Performing a convolution operation on the A convolution feature maps through the first capsule layer to obtain B multidimensional vectors;
通过第二胶囊层对所述B个多维向量进行全连接操作,以得到C个激活向量,所述C个激活向量表示有C个细胞类别;及Perform a full connection operation on the B multi-dimensional vectors through the second capsule layer to obtain C activation vectors, where the C activation vectors indicate that there are C cell types; and
根据第二胶囊层输出的C个激活向量,计算所述细胞图片中的细胞影像对应各个细胞类别的概率。According to the C activation vectors output by the second capsule layer, the probability that the cell image in the cell picture corresponds to each cell category is calculated.
为实现上述目的,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机可读指令,所述计算机可读指令可被至少一个处理器所执行,以使所述至少一个处理器执行如下步骤:In order to achieve the foregoing objective, an embodiment of the present application also provides a computer-readable storage medium having computer-readable instructions stored in the computer-readable storage medium, and the computer-readable instructions may be executed by at least one processor, So that the at least one processor executes the following steps:
将细胞图片输入到CapsNet胶囊网络中;Input the cell picture into the CapsNet capsule network;
通过卷积层对所述细胞图片执行卷积操作,以得到A个卷积特征图;Performing a convolution operation on the cell image through a convolution layer to obtain A convolution feature maps;
通过第一胶囊层对所述A个卷积特征图执行卷积操作,以得到B个多维向量;Performing a convolution operation on the A convolution feature maps through the first capsule layer to obtain B multidimensional vectors;
通过第二胶囊层对所述B个多维向量进行全连接操作,以得到C个激活向量,所述C个激活向量表示有C个细胞类别;及Perform a full connection operation on the B multi-dimensional vectors through the second capsule layer to obtain C activation vectors, where the C activation vectors indicate that there are C cell types; and
根据第二胶囊层输出的C个激活向量,计算所述细胞图片中的细胞影像对应各个细胞类别的概率。According to the C activation vectors output by the second capsule layer, the probability that the cell image in the cell picture corresponds to each cell category is calculated.
本申请实施例提供的基于CapsNet胶囊网络的细胞图片识别方法、系统、计算机设备及计算机可读存储介质,通过第一胶囊层和第二胶囊层获取不同细胞的特征参数(例如,位置、大小、方向、纹理、色彩等),以及各个细胞之间的关系,使得细胞之间互相挤压,遮挡,依然能够根据上述特征参数对细胞图片中的细胞影像进行识别,并且在细胞图像上输出多个标签,输出细胞图片中的细胞影像的细胞类别。可知,本申请实施例的CapsNet胶囊网络结构对识别细胞类别,可以在生物医学图像数据集偏小、细胞之间互相距离近、同一张图有多个细胞等情况下,对细胞实施识别操作并保持较高的识别准确率。The method, system, computer equipment, and computer-readable storage medium for cell image recognition based on the CapsNet capsule network provided by the embodiments of this application can obtain the characteristic parameters of different cells (for example, position, size, etc.) through the first capsule layer and the second capsule layer. Direction, texture, color, etc.), as well as the relationship between the cells, so that the cells squeeze and block each other, and still be able to identify the cell image in the cell picture according to the above characteristic parameters, and output multiple cells on the cell image Label, output the cell type of the cell image in the cell picture. It can be seen that the CapsNet capsule network structure of the embodiment of this application can identify cell types, and can perform identification operations on cells when the biomedical image data set is small, the cells are close to each other, and there are multiple cells in the same image. Maintain a high recognition accuracy rate.
附图说明Description of the drawings
图1为本申请实施例基于CapsNet胶囊网络的细胞图片识别方法实施例一的流程示意图。FIG. 1 is a schematic flowchart of Embodiment 1 of a method for recognizing a cell image based on a CapsNet capsule network according to an embodiment of this application.
图2为本申请实施例基于CapsNet胶囊网络的细胞图片识别系统实施例二的程序模块示意图。FIG. 2 is a schematic diagram of program modules of Embodiment 2 of a cell image recognition system based on CapsNet capsule network according to an embodiment of the application.
图3为本申请计算机设备实施例三的硬件结构示意图。FIG. 3 is a schematic diagram of the hardware structure of the third embodiment of the computer equipment of this application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions, and advantages of this application clearer, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the application, and not used to limit the application. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
需要说明的是,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。It should be noted that the descriptions related to "first", "second", etc. in this application are only for descriptive purposes, and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. . Therefore, the features defined with "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on what can be achieved by a person of ordinary skill in the art. When the combination of technical solutions is contradictory or cannot be achieved, it should be considered that such a combination of technical solutions does not exist. , Not within the scope of protection required by this application.
以下实施例将以计算机设备2为执行主体进行示例性描述。The following embodiments will exemplarily describe the computer device 2 as the execution subject.
实施例一Example one
参阅图1,示出了本申请实施例一之基于CapsNet胶囊网络的细胞图片识别方法的步骤流程图。可以理解,本方法实施例中的流程图不用于对执行步骤的顺序进行限定。具体如下。Referring to FIG. 1, it shows a flowchart of the steps of a method for recognizing a cell image based on a CapsNet capsule network in the first embodiment of the present application. It can be understood that the flowchart in this method embodiment is not used to limit the order of execution of the steps. details as follows.
步骤S100,将细胞图片输入到CapsNet胶囊网络中。Step S100, input the cell picture into the CapsNet capsule network.
计算机设备2可以直接或间接地控制电子显微镜采集样本细胞的细胞图片,并将电子显微镜采集到的细胞图片输入到CapsNet胶囊网络中。The computer device 2 can directly or indirectly control the electron microscope to collect cell pictures of the sample cells, and input the cell pictures collected by the electron microscope into the CapsNet capsule network.
举例而言,所述细胞图像长宽均为28个像素点。在该细胞图片中,各个细胞影像之间可能具有形状的差异性,且多个细胞影像可能会出现重叠。需要说明的是,所述细胞影像指在细胞图像中表示细胞形状的图像区域。For example, the length and width of the cell image are both 28 pixels. In this cell picture, there may be differences in the shape of each cell image, and multiple cell images may overlap. It should be noted that the cell image refers to an image area representing the shape of the cell in the cell image.
步骤S102,通过卷积层对所述细胞图片执行卷积操作,以得到A个卷积特征图。Step S102, performing a convolution operation on the cell image through the convolution layer to obtain A convolution feature maps.
举例而言,所述卷积层包括256个步长为1的9*9的卷积核,通过该卷积层对所述细胞图片做卷积操作,以得到256个20*20的卷积特征图。For example, the convolutional layer includes 256 9*9 convolution kernels with a step length of 1, and a convolution operation is performed on the cell image through the convolutional layer to obtain 256 20*20 convolutions Feature map.
步骤S104,通过第一胶囊层对所述A个卷积特征图执行卷积操作,以得到B个多维向量。Step S104, performing a convolution operation on the A convolution feature maps through the first capsule layer to obtain B multidimensional vectors.
示例性的,所述步骤S104进一步包括:将所述A个卷积特征图分为B个卷积特征图组合;对所述B个卷积特征图组合进行卷积操作,得到B个X*Y卷积特征图,每个X*Y卷积特征图对应包括X*Y个网栅,每个网栅对应一个多维向量;其中,所述第一胶囊层不包括激活函数。Exemplarily, the step S104 further includes: dividing the A convolution feature maps into B convolution feature map combinations; performing a convolution operation on the B convolution feature map combinations to obtain B X* Y convolution feature map, each X*Y convolution feature map includes X*Y grids corresponding to each grid, and each grid corresponds to a multi-dimensional vector; wherein, the first capsule layer does not include an activation function.
需要说明的是,可以对A个卷积特征图进行等分操作,如分割为B个卷积特征图组合,每个卷积特征图组合包括
Figure PCTCN2020093042-appb-000001
个卷积特征图,其中,
Figure PCTCN2020093042-appb-000002
为大于或等于2的正整数。
Figure PCTCN2020093042-appb-000003
可以优选为8,意味着将细胞影像的8种不同形态(位置、移动、旋转、尺寸变化等)封装在一起。当然,
Figure PCTCN2020093042-appb-000004
也可以选择其他数字。
It should be noted that the A convolution feature map can be divided equally, such as segmenting into B convolution feature map combinations, and each convolution feature map combination includes
Figure PCTCN2020093042-appb-000001
Convolution feature maps, where,
Figure PCTCN2020093042-appb-000002
Is a positive integer greater than or equal to 2.
Figure PCTCN2020093042-appb-000003
It can be preferably 8, which means that 8 different forms (position, movement, rotation, size change, etc.) of the cell image are packaged together. of course,
Figure PCTCN2020093042-appb-000004
You can also choose other numbers.
举例而言,将该第一胶囊层将256个卷积特征图分成32份,并对这256个卷积特征图通过9*9的卷积核并且步长为1执行卷积操作,得到32个6*6卷积特征图,这6*6卷积特征图的网格中包括6*6个网栅,每个网栅为一个8维向量。因此,该第一胶囊层输出32*6*6个8维向量(又称之为一级胶囊)。For example, the first capsule layer divides 256 convolutional feature maps into 32 parts, and performs a convolution operation on these 256 convolutional feature maps through a 9*9 convolution kernel and a step size of 1, to obtain 32 A 6*6 convolution feature map. The grid of the 6*6 convolution feature map includes 6*6 grids, and each grid is an 8-dimensional vector. Therefore, the first capsule layer outputs 32*6*6 8-dimensional vectors (also called first-level capsules).
每个向量的长度代表了物体是否存在的估计概率,它的方向(例如在8维空间里)记录了物体的姿态参数(比如,精确的位置、旋转等)。如果物体有稍微的变化(比如,移动、旋转、尺寸变化等),所述第一胶囊层输出一个长度相同但是方向稍微变化的向量。The length of each vector represents the estimated probability of whether the object exists, and its direction (for example, in an 8-dimensional space) records the posture parameters of the object (for example, precise position, rotation, etc.). If the object changes slightly (for example, movement, rotation, size change, etc.), the first capsule layer outputs a vector with the same length but slightly changed direction.
基于各类细胞之间的形态差异较小等特点,所述第一胶囊层未使用激活函数ReLU。Based on the characteristics of small morphological differences between various types of cells, the first capsule layer does not use the activation function ReLU.
步骤S106,通过第二胶囊层对所述B个多维向量进行全连接操作,以得到C个激活向量,所述C个激活向量表示有C个细胞类别。Step S106: Perform a full connection operation on the B multi-dimensional vectors through the second capsule layer to obtain C activation vectors, where the C activation vectors indicate that there are C cell types.
可以理解,CapsNet胶囊网络中,卷积层,在于提取细胞图片中的图片特征。第一胶囊层包含B个一级胶囊,在于接收卷积层提取到的图片特征,形成多个特征组合(即,多维向量),一个一维胶囊对应一个多维向量,该多维向量用于集中表示细胞的多个图形属性,其长度表征细胞存在的概率。第二胶囊层,包括C个二级胶囊,每个二级胶囊在于基 于多个特征组合和第二胶囊层内的全连接层得到对应的激活向量,激活向量的长度表示了相应细胞类别的概率V jIt can be understood that in the CapsNet capsule network, the convolutional layer is to extract the picture features in the cell picture. The first capsule layer contains B first-level capsules, and is to receive the image features extracted by the convolutional layer to form multiple feature combinations (ie, multi-dimensional vectors). A one-dimensional capsule corresponds to a multi-dimensional vector, which is used for centralized representation Multiple graphical attributes of a cell, and its length characterizes the probability of cell existence. The second capsule layer, including C second-level capsules, each second-level capsule is based on multiple feature combinations and the fully connected layer in the second capsule layer to obtain the corresponding activation vector, the length of the activation vector represents the probability of the corresponding cell category V j .
示例性的,可以通过以下公式得到C个激活向量:Exemplarily, C activation vectors can be obtained by the following formula:
Figure PCTCN2020093042-appb-000005
Figure PCTCN2020093042-appb-000005
Figure PCTCN2020093042-appb-000006
Figure PCTCN2020093042-appb-000006
Figure PCTCN2020093042-appb-000007
Figure PCTCN2020093042-appb-000007
其中,u i表示第一胶囊层输出的B个X*Y卷积特征图中的第i个多维向量,1≤i≤B;W ij为变换矩阵;c ij为耦合系数,用于衡量一级胶囊i激活二级胶囊j的概率,1≤j;V j为细胞类别j的激活向量,每个激活向量V j作为细胞类别j的二级胶囊。 Among them, u i represents the i-th multidimensional vector in the B X*Y convolution feature maps output by the first capsule layer, 1≤i≤B; W ij is the transformation matrix; c ij is the coupling coefficient, which is used to measure a capsule activation stage i j is the probability of two capsules, 1≤j; V j is the activation of cell class j is a vector, the vector V j for each active cell as two capsules of class j.
示例性的,还包括获取耦合系数c ij的训练步骤: Exemplarily, it further includes a training step of obtaining the coupling coefficient c ij :
步骤(1),初始化临时变量b ij,b ij的初始值为0; Step (1), initialize the temporary variable b ij , and the initial value of b ij is 0;
步骤(2),通过公式
Figure PCTCN2020093042-appb-000008
计算c ij,其中,i的初始值为1,j的初始值为1;
Step (2), through the formula
Figure PCTCN2020093042-appb-000008
Calculate c ij , where the initial value of i is 1, and the initial value of j is 1;
步骤(3),通过公式
Figure PCTCN2020093042-appb-000009
Figure PCTCN2020093042-appb-000010
计算s j
Step (3), through the formula
Figure PCTCN2020093042-appb-000009
with
Figure PCTCN2020093042-appb-000010
Calculate s j ;
步骤(4),将s j输入到公式
Figure PCTCN2020093042-appb-000011
计算得到V j
Step (4), input s j into the formula
Figure PCTCN2020093042-appb-000011
Calculate V j ;
步骤(5),通过公式
Figure PCTCN2020093042-appb-000012
更新b ij
Step (5), through the formula
Figure PCTCN2020093042-appb-000012
Update b ij ;
重复执行步骤(2)~(5),以得到c ij对应的数值。 Repeat steps (2) to (5) to get the value corresponding to c ij .
举例而言,第二胶囊层可以包括10个二级胶囊,每个二级胶囊对应一个细胞类别,它通过一个形状为16x8的转换矩阵W ij将8维一级胶囊转换为16维二级胶囊,每一个二级胶囊对应于一个细胞类别j。 For example, the layer may include a second capsule 10 two capsules, two capsules each cell corresponds to a category, which the transformation matrix W ij 16x8 dimension converting 8 capsules a capsule 16 through a two-dimensional shape , Each second-level capsule corresponds to a cell category j.
预测向量为:
Figure PCTCN2020093042-appb-000013
The prediction vector is:
Figure PCTCN2020093042-appb-000013
细胞类别j的激活向量V j为: The activation vector V j of cell category j is:
Figure PCTCN2020093042-appb-000014
Figure PCTCN2020093042-appb-000014
Figure PCTCN2020093042-appb-000015
Figure PCTCN2020093042-appb-000015
每个激活向量V j作为细胞类别j的二级胶囊。细胞图片中的细胞影像被分类为j的概率可通过计算||V j||得到。 Each activation vector V j acts as a second-level capsule of cell category j. The probability that the cell image in the cell picture is classified as j can be obtained by calculating ||V j ||.
其中u i表示第一胶囊层输出的32个8维6*6卷积特征图中的第i个8维向量,W ij为变换矩阵(16*8):将8维一级胶囊转换为16维二级胶囊;c ij为耦合系数,用于衡量一级胶囊i有多大可能激活二级胶囊j,总和为1(即,二级胶囊j和其上一层中所有一级胶囊的耦合系数的和为1,并由“routing softmax”决定)。 Where u i represents the i-th 8-dimensional vector in the 32 8-dimensional 6*6 convolutional feature maps output by the first capsule layer, and Wij is the transformation matrix (16*8): the 8-dimensional first-level capsule is converted to 16 Dimensional second-level capsule; c ij is the coupling coefficient, which is used to measure how likely the first-level capsule i is to activate the second-level capsule j, and the sum is 1 (ie, the coupling coefficient of the second-level capsule j and all the first-level capsules in the upper layer The sum is 1, and is determined by "routing softmax").
步骤S108,根据第二胶囊层输出的C个激活向量,计算所述细胞图片中的细胞影像对应各个细胞类别的概率。Step S108: Calculate the probability that the cell image in the cell picture corresponds to each cell category according to the C activation vectors output by the second capsule layer.
举例而言,对每个激活向量求模||V j||,||V j||值越大,表示是对应细胞类别j的概率越高,因此,可以将最大||V j||值对应的细胞类别确定为所述细胞图像中的细胞影像的细胞类别。 For example, for each activation vector mod ||V j ||, the larger the value of ||V j ||, the higher the probability of the corresponding cell category j, therefore, the maximum ||V j || The cell type corresponding to the value is determined as the cell type of the cell image in the cell image.
实施例二Example two
请继续参阅图2,示出了本申请实施例基于CapsNet胶囊网络的细胞图片识别系统实施例二的程序模块示意图。在本实施例中,细胞图片识别系统20可以包括或被分割成一个或多个程序模块,一个或者多个程序模块被存储于存储介质中,并由一个或多个处理器所执行,以完成本申请,并可实现上述基于CapsNet胶囊网络的细胞图片识别方法。本申请实施例所称的程序模块是指能够完成特定功能的一系列计算机可读指令段,比程序本身更适合于描述细胞图片识别系统20在存储介质中的执行过程。以下描述将具体介绍本实施例各程序模块的功能:Please continue to refer to FIG. 2, which shows a schematic diagram of the program modules of the second embodiment of the cell image recognition system based on the CapsNet capsule network in the embodiment of the present application. In this embodiment, the cell picture recognition system 20 may include or be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to complete This application can also implement the above-mentioned method for recognizing cell pictures based on the CapsNet capsule network. The program module referred to in the embodiments of the present application refers to a series of computer-readable instruction segments capable of completing specific functions, and is more suitable for describing the execution process of the cell picture recognition system 20 in the storage medium than the program itself. The following description will specifically introduce the functions of each program module in this embodiment:
输入模块200,用于将细胞图片输入到CapsNet胶囊网络中。The input module 200 is used to input cell pictures into the CapsNet capsule network.
计算机设备2可以直接或间接地控制电子显微镜采集样本细胞的细胞图片,并将电子显微镜采集到的细胞图片输入到CapsNet胶囊网络中。The computer device 2 can directly or indirectly control the electron microscope to collect cell pictures of the sample cells, and input the cell pictures collected by the electron microscope into the CapsNet capsule network.
举例而言,所述细胞图像长宽均为28个像素点。在该细胞图片中,各个细胞影像之间可能具有形状的差异性,且多个细胞影像可能会出现重叠。这些细胞影像所对应细胞可能种类各不相同。For example, the length and width of the cell image are both 28 pixels. In this cell picture, there may be differences in the shape of each cell image, and multiple cell images may overlap. These cell images may correspond to different types of cells.
第一卷积模块202,用于通过卷积层对所述细胞图片执行卷积操作,以得到A个卷积特征图。The first convolution module 202 is configured to perform a convolution operation on the cell image through a convolution layer to obtain A convolution feature maps.
举例而言,所述卷积层包括256个步长为1的9*9的卷积核,通过该卷积层对所述细胞做卷积操作,以得到256个20*20的卷积特征图。For example, the convolutional layer includes 256 9*9 convolution kernels with a step length of 1, and a convolution operation is performed on the cell through the convolutional layer to obtain 256 20*20 convolution features Figure.
第二卷积模块204,用于通过第一胶囊层对所述A个卷积特征图执行卷积操作,以得到B个多维向量。在示例性实施例中,第二卷积模块204,用于:将所述A个卷积特征图分为B个卷积特征图组合;对所述B个卷积特征图组合进行卷积操作,得到B个X*Y卷积特征图,每个X*Y卷积特征图对应包括X*Y个网栅,每个网栅对应一个多维向量;其中,所述第一胶囊层不包括激活函数。The second convolution module 204 is configured to perform a convolution operation on the A convolution feature maps through the first capsule layer to obtain B multidimensional vectors. In an exemplary embodiment, the second convolution module 204 is configured to: divide the A convolution feature maps into B convolution feature map combinations; perform a convolution operation on the B convolution feature map combinations , Obtain B X*Y convolution feature maps, each X*Y convolution feature map includes X*Y grids corresponding to each grid, and each grid corresponds to a multi-dimensional vector; wherein, the first capsule layer does not include activation function.
举例而言,将该第一胶囊层将256个卷积特征图分成32份,并对这256个卷积特征图通过9*9的卷积核执行卷积操作,得到32个6*6卷积特征图,这6*6卷积特征图的网格 中包括6*6个网栅,每个网栅为一个8维向量。因此,该第一胶囊层输出32*6*6个8维向量(又称之为一级胶囊)。For example, the first capsule layer divides 256 convolution feature maps into 32 parts, and performs convolution operation on these 256 convolution feature maps through a 9*9 convolution kernel to obtain 32 6*6 convolutions Product feature map. The grid of the 6*6 convolution feature map includes 6*6 grids, and each grid is an 8-dimensional vector. Therefore, the first capsule layer outputs 32*6*6 8-dimensional vectors (also called first-level capsules).
每个向量的长度代表了物体是否存在的估计概率,它的方向(例如在8维空间里)记录了物体的姿态参数(比如,精确的位置、旋转等)。如果物体有稍微的变化(比如,移动、旋转、尺寸变化等),所述第一胶囊层输出一个长度相同但是方向稍微变化的向量。The length of each vector represents the estimated probability of whether the object exists, and its direction (for example, in an 8-dimensional space) records the posture parameters of the object (for example, precise position, rotation, etc.). If the object changes slightly (for example, movement, rotation, size change, etc.), the first capsule layer outputs a vector with the same length but slightly changed direction.
基于各类细胞之间的形态差异较小等特点,所述第一胶囊层未使用激活函数ReLU。Based on the characteristics of small morphological differences between various types of cells, the first capsule layer does not use the activation function ReLU.
全连接模块206,用于通过第二胶囊层对所述B个多维向量进行全连接操作,以得到C个激活向量,所述C个激活向量表示有C个细胞类别。The fully connected module 206 is configured to perform a fully connected operation on the B multi-dimensional vectors through the second capsule layer to obtain C activation vectors. The C activation vectors indicate that there are C cell types.
示例性的,可以通过以下公式得到C个激活向量:Exemplarily, C activation vectors can be obtained by the following formula:
Figure PCTCN2020093042-appb-000016
Figure PCTCN2020093042-appb-000016
Figure PCTCN2020093042-appb-000017
Figure PCTCN2020093042-appb-000017
Figure PCTCN2020093042-appb-000018
Figure PCTCN2020093042-appb-000018
其中,u i表示第一胶囊层输出的B个X*Y卷积特征图中的第i个多维向量,1≤i≤B;W ij为变换矩阵;c ij为耦合系数,用于衡量一级胶囊i激活二级胶囊j的概率,1≤j;V j为细胞类别j的激活向量,每个激活向量V j作为细胞类别j的二级胶囊。 Among them, u i represents the i-th multidimensional vector in the B X*Y convolution feature maps output by the first capsule layer, 1≤i≤B; W ij is the transformation matrix; c ij is the coupling coefficient, which is used to measure a capsule activation stage i j is the probability of two capsules, 1≤j; V j is the activation of cell class j is a vector, the vector V j for each active cell as two capsules of class j.
在示例性实施例中,还包括耦合系数获取模块,用于:In an exemplary embodiment, a coupling coefficient acquisition module is further included, configured to:
步骤(1),初始化临时变量b ij,b ij的初始值为0;步骤(2),通过公式
Figure PCTCN2020093042-appb-000019
计算c ij,其中,i的初始值为1,j的初始值为1;步骤(3),通过公式
Figure PCTCN2020093042-appb-000020
Figure PCTCN2020093042-appb-000021
计算s j;步骤(4),将s j输入到公式
Figure PCTCN2020093042-appb-000022
计算得到V j;步骤(5),通过公式
Figure PCTCN2020093042-appb-000023
更新b ij;重复执行步骤(2)~(5),以得到c ij对应的数值。
Step (1), initialize the temporary variable b ij , the initial value of b ij is 0; step (2), through the formula
Figure PCTCN2020093042-appb-000019
Calculate c ij , where the initial value of i is 1, and the initial value of j is 1; step (3), through the formula
Figure PCTCN2020093042-appb-000020
with
Figure PCTCN2020093042-appb-000021
Calculate s j ; step (4), enter s j into the formula
Figure PCTCN2020093042-appb-000022
Calculate V j ; step (5), through the formula
Figure PCTCN2020093042-appb-000023
Update b ij ; repeat steps (2) to (5) to obtain the value corresponding to c ij .
计算模块208,用于根据第二胶囊层输出的C个激活向量,计算所述细胞图片中的细胞影像对应各个细胞类别的概率。The calculation module 208 is configured to calculate the probability that the cell image in the cell picture corresponds to each cell category according to the C activation vectors output by the second capsule layer.
举例而言,对每个激活向量求模||V j||,||V j||值越大,表示是对应细胞类别j的概率越高,因此,可以将最大||V j||值对应的细胞类别确定为所述细胞图像中的细胞影像的细胞类别。 For example, for each activation vector mod ||V j ||, the larger the value of ||V j ||, the higher the probability of the corresponding cell category j, therefore, the maximum ||V j || The cell type corresponding to the value is determined as the cell type of the cell image in the cell image.
本申请通过第一胶囊层和第二胶囊层获取不同细胞的特征参数(例如,位置、大小、 方向、纹理、色彩等),以及各个细胞之间的关系,使得细胞之间互相挤压,遮挡,依然能够根据上述特征参数对应各个细胞进行识别,并且在细胞图像上输出多个标签,输出细胞图片上的各个细胞的细胞类别。可知,本申请实施例的CapsNet胶囊网络结构对识别细胞类别,可以在生物医学图像数据集偏小、细胞之间互相距离近、同一张图有多个细胞等情况下,对细胞实施识别操作并保持较高的识别准确率。This application obtains the characteristic parameters of different cells (for example, position, size, direction, texture, color, etc.) through the first capsule layer and the second capsule layer, as well as the relationship between the cells, so that the cells squeeze each other to block , It can still identify each cell according to the above-mentioned characteristic parameters, and output multiple tags on the cell image, and output the cell type of each cell on the cell image. It can be seen that the CapsNet capsule network structure of the embodiment of this application can identify cell types, and can perform identification operations on cells when the biomedical image data set is small, the cells are close to each other, and there are multiple cells in the same image. Maintain a high recognition accuracy rate.
实施例三Example three
参阅图3,是本申请实施例三之计算机设备的硬件架构示意图。本实施例中,所述计算机设备2是一种能够按照事先设定或者存储的指令,自动进行数值计算和/或信息处理的设备。该计算机设备2可以是PC、机架式服务器、刀片式服务器、塔式服务器或机柜式服务器(包括独立的服务器,或者多个服务器所组成的服务器集群)等。如图所示,所述计算机设备2至少包括,但不限于,可通过系统总线相互通信连接存储器21、处理器22、网络接口23、以及细胞图片识别系统20。其中:Refer to FIG. 3, which is a schematic diagram of the hardware architecture of the computer device in the third embodiment of the present application. In this embodiment, the computer device 2 is a device that can automatically perform numerical calculation and/or information processing according to pre-set or stored instructions. The computer device 2 may be a PC, a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or a server cluster composed of multiple servers). As shown in the figure, the computer device 2 at least includes, but is not limited to, a memory 21, a processor 22, a network interface 23, and a cell image recognition system 20 that can be communicated with each other through a system bus. among them:
本实施例中,存储器21至少包括一种类型的计算机可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器21可以是计算机设备2的内部存储单元,例如该计算机设备2的硬盘或内存。在另一些实施例中,存储器21也可以是计算机设备2的外部存储设备,例如该计算机设备20上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,存储器21还可以既包括计算机设备2的内部存储单元也包括其外部存储设备。本实施例中,存储器21通常用于存储安装于计算机设备2的操作系统和各类应用软件,例如实施例二的细胞图片识别系统20的程序代码等。此外,存储器21还可以用于暂时地存储已经输出或者将要输出的各类数据。In this embodiment, the memory 21 includes at least one type of computer-readable storage medium. The readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory ( RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disks, optical disks, etc. In some embodiments, the memory 21 may be an internal storage unit of the computer device 2, such as a hard disk or memory of the computer device 2. In other embodiments, the memory 21 may also be an external storage device of the computer device 2, for example, a plug-in hard disk, a smart media card (SMC), and a secure digital (Secure Digital, SD card, Flash Card, etc. Of course, the memory 21 may also include both the internal storage unit of the computer device 2 and its external storage device. In this embodiment, the memory 21 is generally used to store the operating system and various application software installed in the computer device 2, such as the program code of the cell image recognition system 20 in the second embodiment. In addition, the memory 21 can also be used to temporarily store various types of data that have been output or will be output.
处理器22在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器22通常用于控制计算机设备2的总体操作。本实施例中,处理器22用于运行存储器21中存储的程序代码或者处理数据,例如运行细胞图片识别系统20,以实现实施例一的基于CapsNet胶囊网络的细胞图片识别方法。The processor 22 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 22 is generally used to control the overall operation of the computer device 2. In this embodiment, the processor 22 is used to run the program code or process data stored in the memory 21, for example, to run the cell image recognition system 20, so as to implement the CapsNet capsule network-based cell image recognition method of the first embodiment.
所述网络接口23可包括无线网络接口或有线网络接口,该网络接口23通常用于在所述计算机设备2与其他电子装置之间建立通信连接。例如,所述网络接口23用于通过网络将所述计算机设备2与外部终端相连,在所述计算机设备2与外部终端之间的建立数据传输通道和通信连接等。所述网络可以是企业内部网(Intranet)、互联网(Internet)、全球移动通讯系统(Global System of Mobile communication,GSM)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、4G网络、5G网络、蓝牙(Bluetooth)、Wi-Fi等无线或有线网络。The network interface 23 may include a wireless network interface or a wired network interface, and the network interface 23 is generally used to establish a communication connection between the computer device 2 and other electronic devices. For example, the network interface 23 is used to connect the computer device 2 with an external terminal through a network, and establish a data transmission channel and a communication connection between the computer device 2 and the external terminal. The network may be Intranet, Internet, Global System of Mobile Communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G Network, Bluetooth (Bluetooth), Wi-Fi and other wireless or wired networks.
需要指出的是,图3仅示出了具有部件20-23的计算机设备2,但是应理解的是,并不要求实施所有示出的部件,可以替代的实施更多或者更少的部件。It should be pointed out that FIG. 3 only shows the computer device 2 with components 20-23, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead.
在本实施例中,存储于存储器21中的所述细胞图片识别系统20还可以被分割为一个或者多个程序模块,所述一个或者多个程序模块被存储于存储器21中,并由一个或多个处理器(本实施例为处理器22)所执行,以完成本申请。In this embodiment, the cell picture recognition system 20 stored in the memory 21 can also be divided into one or more program modules, and the one or more program modules are stored in the memory 21 and are composed of one or more program modules. Multiple processors (in this embodiment, the processor 22) are executed to complete the application.
例如,图2示出了所述实现细胞图片识别系统20实施例二的程序模块示意图,该实施例中,所述基于细胞图片识别系统20可以被划分为输入模块200、第一卷积模块202、第二卷积模块204、全连接模块206和计算模块208。其中,本申请所称的程序模块是指能够完成特定功能的一系列计算机可读指令段,比程序更适合于描述所述细胞图片识别系统20在所述计算机设备2中的执行过程。所述程序模块200-208的具体功能在实施例二中已有详细描述,在此不再赘述。For example, FIG. 2 shows a schematic diagram of program modules for implementing the second embodiment of the cell picture recognition system 20. In this embodiment, the cell picture recognition system 20 can be divided into an input module 200 and a first convolution module 202. , The second convolution module 204, the fully connected module 206, and the calculation module 208. Among them, the program module referred to in the present application refers to a series of computer-readable instruction segments that can complete specific functions, and is more suitable than a program to describe the execution process of the cell image recognition system 20 in the computer device 2. The specific functions of the program modules 200-208 have been described in detail in the second embodiment, and will not be repeated here.
实施例四Example four
本实施例还提供一种计算机可读存储介质,所述计算机可读存储介质可以是非易失性,也可以是易失性,如闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘、服务器、App应用商城等等,其上存储有计算机可读指令,程序被处理器执行时实现相应功能。本实施例的计算机可读存储介质所述计算机可读存储介质内存储有计算机可读指令,所述计算机可读指令可被至少一个处理器所执行,以使所述至少一个处理器执行如下步骤:This embodiment also provides a computer-readable storage medium. The computer-readable storage medium may be non-volatile or volatile, such as flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX). Memory, etc.), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory , Magnetic disks, optical disks, servers, App application malls, etc., on which computer-readable instructions are stored, and corresponding functions are realized when the programs are executed by the processor. The computer-readable storage medium of this embodiment stores computer-readable instructions in the computer-readable storage medium, and the computer-readable instructions can be executed by at least one processor, so that the at least one processor performs the following steps :
将细胞图片输入到CapsNet胶囊网络中;Input the cell picture into the CapsNet capsule network;
通过卷积层对所述细胞图片执行卷积操作,以得到A个卷积特征图;Performing a convolution operation on the cell image through a convolution layer to obtain A convolution feature maps;
通过第一胶囊层对所述A个卷积特征图执行卷积操作,以得到B个多维向量;Performing a convolution operation on the A convolution feature maps through the first capsule layer to obtain B multidimensional vectors;
通过第二胶囊层对所述B个多维向量进行全连接操作,以得到C个激活向量,所述C个激活向量表示有C个细胞类别;及Perform a full connection operation on the B multi-dimensional vectors through the second capsule layer to obtain C activation vectors, where the C activation vectors indicate that there are C cell types; and
根据第二胶囊层输出的C个激活向量,计算所述细胞图片中的细胞影像对应各个细胞类别的概率。According to the C activation vectors output by the second capsule layer, the probability that the cell image in the cell picture corresponds to each cell category is calculated.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the foregoing embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of this application, and do not limit the scope of this application. Any equivalent structure or equivalent process transformation made using the content of the description and drawings of this application, or directly or indirectly used in other related technical fields , The same reason is included in the scope of patent protection of this application.

Claims (20)

  1. 一种基于CapsNet胶囊网络的细胞图片识别方法,其中,所述方法包括:A cell picture recognition method based on CapsNet capsule network, wherein the method includes:
    将细胞图片输入到CapsNet胶囊网络中;Input the cell picture into the CapsNet capsule network;
    通过卷积层对所述细胞图片执行卷积操作,以得到A个卷积特征图;Performing a convolution operation on the cell image through a convolution layer to obtain A convolution feature maps;
    通过第一胶囊层对所述A个卷积特征图执行卷积操作,以得到B个多维向量;Performing a convolution operation on the A convolution feature maps through the first capsule layer to obtain B multidimensional vectors;
    通过第二胶囊层对所述B个多维向量进行全连接操作,以得到C个激活向量,所述C个激活向量表示有C个细胞类别;及Perform a full connection operation on the B multi-dimensional vectors through the second capsule layer to obtain C activation vectors, where the C activation vectors indicate that there are C cell types; and
    根据第二胶囊层输出的C个激活向量,计算所述细胞图片中的细胞影像对应各个细胞类别的概率。According to the C activation vectors output by the second capsule layer, the probability that the cell image in the cell picture corresponds to each cell category is calculated.
  2. 根据权利要求1所述的基于CapsNet胶囊网络的细胞图片识别方法,其中,通过第一胶囊层对所述A个卷积特征图执行卷积操作,以得到B个多维向量的步骤,包括:The method for recognizing cell pictures based on the CapsNet capsule network according to claim 1, wherein the step of performing a convolution operation on the A convolution feature maps through the first capsule layer to obtain B multidimensional vectors comprises:
    将所述A个卷积特征图分为B个卷积特征图组合;Dividing the A convolution feature maps into B convolution feature map combinations;
    对所述B个卷积特征图组合进行卷积操作,得到B个X*Y卷积特征图,每个X*Y卷积特征图对应包括X*Y个网栅,每个网栅对应一个多维向量;Perform a convolution operation on the combination of the B convolution feature maps to obtain B X*Y convolution feature maps, each X*Y convolution feature map includes X*Y grids, and each grid corresponds to one Multidimensional vector
    其中,所述第一胶囊层不包括激活函数。Wherein, the first capsule layer does not include an activation function.
  3. 根据权利要求2所述的基于CapsNet胶囊网络的细胞图片识别方法,其中,通过以下公式得到C个激活向量:The method for cell image recognition based on CapsNet capsule network according to claim 2, wherein C activation vectors are obtained by the following formula:
    Figure PCTCN2020093042-appb-100001
    Figure PCTCN2020093042-appb-100001
    Figure PCTCN2020093042-appb-100002
    Figure PCTCN2020093042-appb-100002
    Figure PCTCN2020093042-appb-100003
    Figure PCTCN2020093042-appb-100003
    其中,u i表示第一胶囊层输出的B个X*Y卷积特征图中的第i个多维向量,1≤i≤B;W ij为变换矩阵;c ij为耦合系数,用于衡量一级胶囊i激活二级胶囊j的概率,1≤j;V j为细胞类别j的激活向量,每个激活向量V j作为细胞类别j的二级胶囊。 Among them, u i represents the i-th multidimensional vector in the B X*Y convolution feature maps output by the first capsule layer, 1≤i≤B; W ij is the transformation matrix; c ij is the coupling coefficient, which is used to measure a capsule activation stage i j is the probability of two capsules, 1≤j; V j is the activation of cell class j is a vector, the vector V j for each active cell as two capsules of class j.
  4. 根据权利要求3所述的基于CapsNet胶囊网络的细胞图片识别方法,其中,还包括获取耦合系数c ij的训练步骤: The method for recognizing cell pictures based on the CapsNet capsule network according to claim 3, further comprising a training step of obtaining the coupling coefficient c ij :
    步骤(1),初始化临时变量b ij,b ij的初始值为0; Step (1), initialize the temporary variable b ij , and the initial value of b ij is 0;
    步骤(2),通过公式
    Figure PCTCN2020093042-appb-100004
    计算c ij,其中,i的初始值为1,j的初始值为1;
    Step (2), through the formula
    Figure PCTCN2020093042-appb-100004
    Calculate c ij , where the initial value of i is 1, and the initial value of j is 1;
    步骤(3),通过公式
    Figure PCTCN2020093042-appb-100005
    Figure PCTCN2020093042-appb-100006
    计算s j
    Step (3), through the formula
    Figure PCTCN2020093042-appb-100005
    with
    Figure PCTCN2020093042-appb-100006
    Calculate s j ;
    步骤(4),将s j输入到公式
    Figure PCTCN2020093042-appb-100007
    计算得到V j
    Step (4), input s j into the formula
    Figure PCTCN2020093042-appb-100007
    Calculate V j ;
    步骤(5),通过公式
    Figure PCTCN2020093042-appb-100008
    更新b ij
    Step (5), through the formula
    Figure PCTCN2020093042-appb-100008
    Update b ij ;
    重复执行步骤(2)~(5),以得到c ij对应的数值。 Repeat steps (2) to (5) to get the value corresponding to c ij .
  5. 根据权利要求3所述的基于CapsNet胶囊网络的细胞图片识别方法,其中,第二胶囊层包括10个二级胶囊。The method for recognizing cell pictures based on CapsNet capsule network according to claim 3, wherein the second capsule layer includes 10 second-level capsules.
  6. 一种基于CapsNet胶囊网络的细胞图片识别系统,其中,所述系统包括:A cell picture recognition system based on CapsNet capsule network, wherein the system includes:
    输入模块,用于将细胞图片输入到CapsNet胶囊网络中;Input module, used to input cell pictures into CapsNet capsule network;
    第一卷积模块,用于通过卷积层对所述细胞图片执行卷积操作,以得到A个卷积特征图;The first convolution module is configured to perform a convolution operation on the cell image through a convolution layer to obtain A convolution feature maps;
    第二卷积模块,用于通过第一胶囊层对所述A个卷积特征图执行卷积操作,以得到B个多维向量;The second convolution module is configured to perform a convolution operation on the A convolution feature maps through the first capsule layer to obtain B multidimensional vectors;
    全连接模块,用于通过第二胶囊层对所述B个多维向量进行全连接操作,以得到C个激活向量,所述C个激活向量表示有C个细胞类别;及The fully connected module is used to perform a fully connected operation on the B multi-dimensional vectors through the second capsule layer to obtain C activation vectors, where the C activation vectors indicate that there are C cell types; and
    计算模块,用于根据第二胶囊层输出的C个激活向量,计算所述细胞图片中的细胞影像对应各个细胞类别的概率。The calculation module is used to calculate the probability that the cell image in the cell picture corresponds to each cell category according to the C activation vectors output by the second capsule layer.
  7. 根据权利要求6所述的基于CapsNet胶囊网络的细胞图片识别系统,其中,所述第二卷积模块,用于:The cell picture recognition system based on CapsNet capsule network according to claim 6, wherein the second convolution module is used for:
    将所述A个卷积特征图分为B个卷积特征图组合;Dividing the A convolution feature maps into B convolution feature map combinations;
    对所述B个卷积特征图组合进行卷积操作,得到B个X*Y卷积特征图,每个X*Y卷积特征图对应包括X*Y个网栅,每个网栅对应一个多维向量;Perform a convolution operation on the combination of the B convolution feature maps to obtain B X*Y convolution feature maps, each X*Y convolution feature map includes X*Y grids, and each grid corresponds to one Multidimensional vector
    其中,所述第一胶囊层不包括激活函数。Wherein, the first capsule layer does not include an activation function.
  8. 根据权利要求7所述的基于CapsNet胶囊网络的细胞图片识别系统,其中,通过以下公式得到C个激活向量:The cell picture recognition system based on the CapsNet capsule network of claim 7, wherein C activation vectors are obtained by the following formula:
    Figure PCTCN2020093042-appb-100009
    Figure PCTCN2020093042-appb-100009
    Figure PCTCN2020093042-appb-100010
    Figure PCTCN2020093042-appb-100010
    Figure PCTCN2020093042-appb-100011
    Figure PCTCN2020093042-appb-100011
    其中,u i表示第一胶囊层输出的B个X*Y卷积特征图中的第i个多维向量;W ij为变换矩阵;c ij为耦合系数,用于衡量一级胶囊i激活二级胶囊j的概率,总和为1;V j为细胞类别j的激活向量,每个激活向量V j作为细胞类别j的二级胶囊。 Among them, u i represents the i-th multidimensional vector in the B X*Y convolutional feature maps output by the first capsule layer; Wij is the transformation matrix; c ij is the coupling coefficient, which is used to measure the activation of the first-level capsule i The probability of capsule j, the total is 1; V j is the activation vector of cell type j, and each activation vector V j is used as the second-level capsule of cell type j.
  9. 根据权利要求8所述的基于CapsNet胶囊网络的细胞图片识别系统,其中,还包括耦合系数获取模块,用于:The cell picture recognition system based on CapsNet capsule network according to claim 8, further comprising a coupling coefficient acquisition module for:
    步骤(1),初始化临时变量b ij,b ij的初始值为0; Step (1), initialize the temporary variable b ij , and the initial value of b ij is 0;
    步骤(2),通过公式
    Figure PCTCN2020093042-appb-100012
    计算c ij,其中,i的初始值为1,j的初始值为1;
    Step (2), through the formula
    Figure PCTCN2020093042-appb-100012
    Calculate c ij , where the initial value of i is 1, and the initial value of j is 1;
    步骤(3),通过公式
    Figure PCTCN2020093042-appb-100013
    Figure PCTCN2020093042-appb-100014
    计算s j
    Step (3), through the formula
    Figure PCTCN2020093042-appb-100013
    with
    Figure PCTCN2020093042-appb-100014
    Calculate s j ;
    步骤(4),将s j输入到公式
    Figure PCTCN2020093042-appb-100015
    计算得到V j
    Step (4), input s j into the formula
    Figure PCTCN2020093042-appb-100015
    Calculate V j ;
    步骤(5),通过公式
    Figure PCTCN2020093042-appb-100016
    更新b ij
    Step (5), through the formula
    Figure PCTCN2020093042-appb-100016
    Update b ij ;
    重复执行步骤(2)~(5),以得到c ij对应的数值。 Repeat steps (2) to (5) to get the value corresponding to c ij .
  10. 根据权利要求8所述的基于CapsNet胶囊网络的细胞图片识别系统,其中,第二胶囊层包括10个二级胶囊。8. The cell picture recognition system based on CapsNet capsule network according to claim 8, wherein the second capsule layer includes 10 secondary capsules.
  11. 一种计算机设备,其中,所述计算机设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述计算机可读指令被处理器执行时实现以下步骤:A computer device, wherein the computer device includes a memory, a processor, and computer-readable instructions stored in the memory and capable of running on the processor, and the computer-readable instructions are implemented when the processor is executed The following steps:
    将细胞图片输入到CapsNet胶囊网络中;Input the cell picture into the CapsNet capsule network;
    通过卷积层对所述细胞图片执行卷积操作,以得到A个卷积特征图;Performing a convolution operation on the cell image through a convolution layer to obtain A convolution feature maps;
    通过第一胶囊层对所述A个卷积特征图执行卷积操作,以得到B个多维向量;Performing a convolution operation on the A convolution feature maps through the first capsule layer to obtain B multidimensional vectors;
    通过第二胶囊层对所述B个多维向量进行全连接操作,以得到C个激活向量,所述C个激活向量表示有C个细胞类别;及Perform a full connection operation on the B multi-dimensional vectors through the second capsule layer to obtain C activation vectors, where the C activation vectors indicate that there are C cell types; and
    根据第二胶囊层输出的C个激活向量,计算所述细胞图片中的细胞影像对应各个细胞类别的概率。According to the C activation vectors output by the second capsule layer, the probability that the cell image in the cell picture corresponds to each cell category is calculated.
  12. 根据权利要求11所述的计算机设备,其中,所述计算机可读指令还可被至少一个处理器所执行,以使所述至少一个处理器执行如下步骤:The computer device according to claim 11, wherein the computer-readable instructions are also executable by at least one processor, so that the at least one processor executes the following steps:
    将所述A个卷积特征图分为B个卷积特征图组合;Dividing the A convolution feature maps into B convolution feature map combinations;
    对所述B个卷积特征图组合进行卷积操作,得到B个X*Y卷积特征图,每个X*Y卷积特征图对应包括X*Y个网栅,每个网栅对应一个多维向量;Perform a convolution operation on the combination of the B convolution feature maps to obtain B X*Y convolution feature maps, each X*Y convolution feature map includes X*Y grids, and each grid corresponds to one Multidimensional vector
    其中,所述第一胶囊层不包括激活函数。Wherein, the first capsule layer does not include an activation function.
  13. 根据权利要求12所述的计算机设备,其中,通过以下公式得到C个激活向量:The computer device according to claim 12, wherein the C activation vectors are obtained by the following formula:
    Figure PCTCN2020093042-appb-100017
    Figure PCTCN2020093042-appb-100017
    Figure PCTCN2020093042-appb-100018
    Figure PCTCN2020093042-appb-100018
    Figure PCTCN2020093042-appb-100019
    Figure PCTCN2020093042-appb-100019
    其中,u i表示第一胶囊层输出的B个X*Y卷积特征图中的第i个多维向量,1≤i≤B;W ij为变换矩阵;c ij为耦合系数,用于衡量一级胶囊i激活二级胶囊j的概率,1≤j;V j 为细胞类别j的激活向量,每个激活向量V j作为细胞类别j的二级胶囊。 Among them, u i represents the i-th multidimensional vector in the B X*Y convolution feature maps output by the first capsule layer, 1≤i≤B; W ij is the transformation matrix; c ij is the coupling coefficient, which is used to measure a capsule activation stage i j is the probability of two capsules, 1≤j; V j is the activation of cell class j is a vector, the vector V j for each active cell as two capsules of class j.
  14. 根据权利要求13所述的计算机设备,其中,所述计算机可读指令还可被至少一个处理器所执行,以使所述至少一个处理器执行如下步骤:The computer device according to claim 13, wherein the computer-readable instructions are also executable by at least one processor, so that the at least one processor executes the following steps:
    获取耦合系数c ij的训练步骤: Training steps to obtain the coupling coefficient c ij :
    步骤(1),初始化临时变量b ij,b ij的初始值为0; Step (1), initialize the temporary variable b ij , and the initial value of b ij is 0;
    步骤(2),通过公式
    Figure PCTCN2020093042-appb-100020
    计算c ij,其中,i的初始值为1,j的初始值为1;
    Step (2), through the formula
    Figure PCTCN2020093042-appb-100020
    Calculate c ij , where the initial value of i is 1, and the initial value of j is 1;
    步骤(3),通过公式
    Figure PCTCN2020093042-appb-100021
    Figure PCTCN2020093042-appb-100022
    计算s j
    Step (3), through the formula
    Figure PCTCN2020093042-appb-100021
    with
    Figure PCTCN2020093042-appb-100022
    Calculate s j ;
    步骤(4),将s j输入到公式
    Figure PCTCN2020093042-appb-100023
    计算得到V j
    Step (4), input s j into the formula
    Figure PCTCN2020093042-appb-100023
    Calculate V j ;
    步骤(5),通过公式
    Figure PCTCN2020093042-appb-100024
    更新b ij
    Step (5), through the formula
    Figure PCTCN2020093042-appb-100024
    Update b ij ;
    重复执行步骤(2)~(5),以得到c ij对应的数值。 Repeat steps (2) to (5) to get the value corresponding to c ij .
  15. 根据权利要求13所述的计算机设备,其中,第二胶囊层包括10个二级胶囊。The computer device according to claim 13, wherein the second capsule layer includes 10 secondary capsules.
  16. 一种计算机可读存储介质,其中,所述计算机可读存储介质内存储有计算机可读指令,所述计算机可读指令可被至少一个处理器所执行,以使所述至少一个处理器执行如下步骤:A computer-readable storage medium, wherein computer-readable instructions are stored in the computer-readable storage medium, and the computer-readable instructions can be executed by at least one processor, so that the at least one processor executes the following step:
    将细胞图片输入到CapsNet胶囊网络中;Input the cell picture into the CapsNet capsule network;
    通过卷积层对所述细胞图片执行卷积操作,以得到A个卷积特征图;Performing a convolution operation on the cell image through a convolution layer to obtain A convolution feature maps;
    通过第一胶囊层对所述A个卷积特征图执行卷积操作,以得到B个多维向量;Performing a convolution operation on the A convolution feature maps through the first capsule layer to obtain B multidimensional vectors;
    通过第二胶囊层对所述B个多维向量进行全连接操作,以得到C个激活向量,所述C个激活向量表示有C个细胞类别;及Perform a full connection operation on the B multi-dimensional vectors through the second capsule layer to obtain C activation vectors, where the C activation vectors indicate that there are C cell types; and
    根据第二胶囊层输出的C个激活向量,计算所述细胞图片中的细胞影像对应各个细胞类别的概率。According to the C activation vectors output by the second capsule layer, the probability that the cell image in the cell picture corresponds to each cell category is calculated.
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述计算机可读指令还可被至少一个处理器所执行,以使所述至少一个处理器执行如下步骤:The computer-readable storage medium according to claim 16, wherein the computer-readable instructions are also executable by at least one processor, so that the at least one processor executes the following steps:
    将所述A个卷积特征图分为B个卷积特征图组合;Dividing the A convolution feature maps into B convolution feature map combinations;
    对所述B个卷积特征图组合进行卷积操作,得到B个X*Y卷积特征图,每个X*Y卷积特征图对应包括X*Y个网栅,每个网栅对应一个多维向量;Perform a convolution operation on the combination of the B convolution feature maps to obtain B X*Y convolution feature maps, each X*Y convolution feature map includes X*Y grids, and each grid corresponds to one Multidimensional vector
    其中,所述第一胶囊层不包括激活函数。Wherein, the first capsule layer does not include an activation function.
  18. 根据权利要求17所述的计算机可读存储介质,其中,通过以下公式得到C个激活向量:The computer-readable storage medium according to claim 17, wherein the C activation vectors are obtained by the following formula:
    Figure PCTCN2020093042-appb-100025
    Figure PCTCN2020093042-appb-100025
    Figure PCTCN2020093042-appb-100026
    Figure PCTCN2020093042-appb-100026
    Figure PCTCN2020093042-appb-100027
    Figure PCTCN2020093042-appb-100027
    其中,u i表示第一胶囊层输出的B个X*Y卷积特征图中的第i个多维向量,1≤i≤B;W ij为变换矩阵;c ij为耦合系数,用于衡量一级胶囊i激活二级胶囊j的概率,1≤j;V j为细胞类别j的激活向量,每个激活向量V j作为细胞类别j的二级胶囊。 Among them, u i represents the i-th multidimensional vector in the B X*Y convolution feature maps output by the first capsule layer, 1≤i≤B; W ij is the transformation matrix; c ij is the coupling coefficient, which is used to measure a capsule activation stage i j is the probability of two capsules, 1≤j; V j is the activation of cell class j is a vector, the vector V j for each active cell as two capsules of class j.
  19. 根据权利要求18所述的计算机可读存储介质,其中,所述计算机可读指令还可被至少一个处理器所执行,以使所述至少一个处理器执行如下步骤:The computer-readable storage medium according to claim 18, wherein the computer-readable instructions are also executable by at least one processor, so that the at least one processor executes the following steps:
    获取耦合系数c ij的训练步骤: Training steps to obtain the coupling coefficient c ij :
    步骤(1),初始化临时变量b ij,b ij的初始值为0; Step (1), initialize the temporary variable b ij , and the initial value of b ij is 0;
    步骤(2),通过公式
    Figure PCTCN2020093042-appb-100028
    计算c ij,其中,i的初始值为1,j的初始值为1;
    Step (2), through the formula
    Figure PCTCN2020093042-appb-100028
    Calculate c ij , where the initial value of i is 1, and the initial value of j is 1;
    步骤(3),通过公式
    Figure PCTCN2020093042-appb-100029
    Figure PCTCN2020093042-appb-100030
    计算s j
    Step (3), through the formula
    Figure PCTCN2020093042-appb-100029
    with
    Figure PCTCN2020093042-appb-100030
    Calculate s j ;
    步骤(4),将s j输入到公式
    Figure PCTCN2020093042-appb-100031
    计算得到V j
    Step (4), input s j into the formula
    Figure PCTCN2020093042-appb-100031
    Calculate V j ;
    步骤(5),通过公式
    Figure PCTCN2020093042-appb-100032
    更新b ij
    Step (5), through the formula
    Figure PCTCN2020093042-appb-100032
    Update b ij ;
    重复执行步骤(2)~(5),以得到c ij对应的数值。 Repeat steps (2) to (5) to get the value corresponding to c ij .
  20. 根据权利要求18所述的计算机可读存储介质,其中,第二胶囊层包括10个二级胶囊。The computer readable storage medium of claim 18, wherein the second capsule layer includes 10 secondary capsules.
PCT/CN2020/093042 2019-07-03 2020-05-28 Cell image recognition method and system, computer device, and readable storage medium WO2021000674A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910596892.9A CN110502970A (en) 2019-07-03 2019-07-03 Cell image identification method, system, computer equipment and readable storage medium storing program for executing
CN201910596892.9 2019-07-03

Publications (1)

Publication Number Publication Date
WO2021000674A1 true WO2021000674A1 (en) 2021-01-07

Family

ID=68585531

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/093042 WO2021000674A1 (en) 2019-07-03 2020-05-28 Cell image recognition method and system, computer device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN110502970A (en)
WO (1) WO2021000674A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113420628A (en) * 2021-06-16 2021-09-21 深圳大学 Group behavior identification method and device, computer equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502970A (en) * 2019-07-03 2019-11-26 平安科技(深圳)有限公司 Cell image identification method, system, computer equipment and readable storage medium storing program for executing

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170193336A1 (en) * 2014-12-22 2017-07-06 Yahoo! Inc. Generating preference indices for image content
CN108830826A (en) * 2018-04-28 2018-11-16 四川大学 A kind of system and method detecting Lung neoplasm
CN108898577A (en) * 2018-05-24 2018-11-27 西南大学 Based on the good malign lung nodules identification device and method for improving capsule network
CN109376636A (en) * 2018-10-15 2019-02-22 电子科技大学 Eye ground image classification method based on capsule network
CN110084320A (en) * 2019-05-08 2019-08-02 广东工业大学 Thyroid papillary carcinoma Ultrasound Image Recognition Method, device, system and medium
CN110414317A (en) * 2019-06-12 2019-11-05 四川大学 Full-automatic Arneth's count method based on capsule network
CN110502970A (en) * 2019-07-03 2019-11-26 平安科技(深圳)有限公司 Cell image identification method, system, computer equipment and readable storage medium storing program for executing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108985316B (en) * 2018-05-24 2022-03-01 西南大学 Capsule network image classification and identification method for improving reconstruction network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170193336A1 (en) * 2014-12-22 2017-07-06 Yahoo! Inc. Generating preference indices for image content
CN108830826A (en) * 2018-04-28 2018-11-16 四川大学 A kind of system and method detecting Lung neoplasm
CN108898577A (en) * 2018-05-24 2018-11-27 西南大学 Based on the good malign lung nodules identification device and method for improving capsule network
CN109376636A (en) * 2018-10-15 2019-02-22 电子科技大学 Eye ground image classification method based on capsule network
CN110084320A (en) * 2019-05-08 2019-08-02 广东工业大学 Thyroid papillary carcinoma Ultrasound Image Recognition Method, device, system and medium
CN110414317A (en) * 2019-06-12 2019-11-05 四川大学 Full-automatic Arneth's count method based on capsule network
CN110502970A (en) * 2019-07-03 2019-11-26 平安科技(深圳)有限公司 Cell image identification method, system, computer equipment and readable storage medium storing program for executing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MOBINY ARYAN; LU HENGYANG; NGUYEN HIEN V; ROYSAM BADRINATH; VARADARAJAN NAVIN: "Automated Classification of Apoptosis in Phase Contrast Microscopy Using Capsule Network", IEEE TRANSACTIONS ON MEDICAL IMAGING, vol. 39, no. 1, 1 January 2020 (2020-01-01), pages 1 - 10, XP011763668, ISSN: 0278-0062, DOI: 10.1109/TMI.2019.2918181 *
ZHU YINGZHAO, HU YINGMAO, LI MAN: "Research on Capsule Network Technology and Its Development Trend", GUANGDONG COMMUNICATION TECHNOLOGY, no. 10, 15 October 2018 (2018-10-15), pages 51 - 54,74, XP009525431, ISSN: 1006-6403, DOI: 10.3969/j.issn.1006-6403.2018.10.014 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113420628A (en) * 2021-06-16 2021-09-21 深圳大学 Group behavior identification method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110502970A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
US20230087526A1 (en) Neural network training method, image classification system, and related device
WO2021008328A1 (en) Image processing method and device, terminal, and storage medium
WO2021227726A1 (en) Methods and apparatuses for training face detection and image detection neural networks, and device
US20210342643A1 (en) Method, apparatus, and electronic device for training place recognition model
WO2020215672A1 (en) Method, apparatus, and device for detecting and locating lesion in medical image, and storage medium
EP3635629A1 (en) Fine-grained image recognition
CN109815788A (en) A kind of picture clustering method, device, storage medium and terminal device
WO2021027142A1 (en) Picture classification model training method and system, and computer device
CN110765882B (en) Video tag determination method, device, server and storage medium
WO2021233017A1 (en) Image processing method and apparatus, and device and computer-readable storage medium
US20230326173A1 (en) Image processing method and apparatus, and computer-readable storage medium
TW202125415A (en) Training method, equipment and storage medium of 3d target detection and model
CN111368672A (en) Construction method and device for genetic disease facial recognition model
CN111931931A (en) Deep neural network training method and device for pathology full-field image
CN110838125A (en) Target detection method, device, equipment and storage medium of medical image
WO2015042891A1 (en) Image semantic segmentation method and apparatus
WO2021000674A1 (en) Cell image recognition method and system, computer device, and readable storage medium
JP6863926B2 (en) Data analysis system and data analysis method
CN109817339A (en) Patient's group technology and device based on big data
CN112614133B (en) Three-dimensional pulmonary nodule detection model training method and device without anchor point frame
US11568212B2 (en) Techniques for understanding how trained neural networks operate
CN111079833A (en) Image recognition method, image recognition device and computer-readable storage medium
WO2021169642A1 (en) Video-based eyeball turning determination method and system
CN111091010A (en) Similarity determination method, similarity determination device, network training device, network searching device and storage medium
CN111026865A (en) Relation alignment method, device and equipment of knowledge graph and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20835183

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20835183

Country of ref document: EP

Kind code of ref document: A1