# US 2022/0284720 A1 · Method for grouping cells according to density and electronic device employing method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0284720 A1
- Document ID: US20220284720A1
- Status: Published application
- Kind: A1
- Application number: 17/684,538
- Filed: 2022-03-02
- Published: 2022-09-08
- Earliest claimed: 2021-03-04
- Assignees: Hon Hai Precision Industry Co., Ltd.
- Applicants: Hon Hai Precision Industry Co., Ltd.
- Inventors: WAN-JHEN LEE; CHIH-TE LU; CHIN-PIN KUO
- Web page: https://patentgrep.com/patent/US20220284720A1

## CPC

- G06V 20/695: {Preprocessing, e.g. image segmentation}
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0499: Feedforward networks
- G06N 3/09: Supervised learning
- G06V 10/7715: {Feature extraction, e.g. by transforming the feature space, e.g. multi-dimensional scaling [MDS]; Mappings, e.g. subspace methods}
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/776: Validation; Performance evaluation
- G06V 10/82: using neural networks
- G06V 10/98: Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns
- G06N 3/08: Learning methods
- G06V 2201/03: Recognition of patterns in medical or anatomical images
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method of grouping certain cell densities to establish the number and volume of cells appearing in an image input the image into a self-encoder having a preset number of a density grouping models to obtain a preset number of reconstructed images. The image and each reconstructed image are input into a twin network model of the density grouping model corresponding to each reconstructed image, and a first error value is calculated between the image and each reconstructed image. A minimum first error value in the first error value set is determined, and a density range corresponding to the density grouping model corresponding to minimum first error value is taken as the density range. An electronic device and a non-volatile storage medium performing the above-described method are also disclosed.

## Claims

### Claim 1

A method of grouping cell density comprising:
inputting an image into a self-encoder of a preset number of a density grouping model to obtain the preset number of reconstructed images, wherein each of the density grouping model is composed of the self-encoder and the twin network model, each of the density grouping model corresponds to a density range, and each of the reconstructed images corresponds to a corresponding one of the density grouping model;
inputting the image and each of the reconstructed images into a twin network model of the corresponding density grouping model of the reconstructed images, and calculating a first error value between the image and each of the reconstructed images;
wherein a first error value set is composed of all the first error values, and each of the first error value corresponds to a corresponding one of the density grouping model; and
determining a minimum first error value in the first error value set, wherein the density range corresponding to the density grouping model having the minimum first error value as density range of the image.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
training the density grouping model comprising:
dividing the cell image set according to the density range to obtain a preset number of cell training image sets; wherein each of the cell training image set corresponds to the density range; and
performing training operation on each of the cell training image set to obtain a preset number of density grouping models; wherein each of the density grouping model corresponds to the density range.

### Claim 3 (depends on 2)

The method according to claim 2, training the density grouping model further comprising:
converting the cell training image in the cell training image set into a cell training image vector, wherein a cell training image vector set is composed of all the cell training image vectors;
applying the cell training image vector set to train the self-encoder to obtain a trained self-encoder;
inputting the cell training image vector set into the trained self-encoder of the density grouping model to obtain a cell reconstruction image vector set; wherein the cell reconstruction image vector set comprises a cell reconstruction image vector;
applying the cell training image vector set and the cell reconstruction image vector set to train the twin network model to obtain the trained twin network model; wherein the trained self-encoder and the trained twin network model form the density grouping model.

### Claim 4 (depends on 3)

The method according to claim 3, further comprising:
inputting the cell training image vector in the cell training image vector set into a coding layer of the self-encoder to obtain a hidden vector of the cell training image vector;
inputting the hidden vector into a decoding layer of the self-encoder to obtain the reconstructed image vector of the cell training image vector;
calculating a second error value between the cell training image vector and the reconstructed image vector through a preset error function; adjusting the parameters of an encoding layer and a decoding layer to minimize error value to obtain the self-encoder of the density grouping model.

### Claim 5 (depends on 3)

The method according to claim 3, further comprising:
inputting the cell training image vector in the cell training image vector set into a first neural network to obtain a first feature map;
inputting the cell reconstruction image vector in the cell reconstruction image vector set into a second neural network to obtain a second feature map;
calculating a third error value between the first feature map and the second feature map, optimizing the first neural network and the second neural network according to the third error value, and obtain a trained twin network model.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the first neural network and the second neural network are equally weighted, and structure of the first neural network is same as structure of the second neural network.

### Claim 7 (depends on 5)

The method according to claim 5, further comprising:
inputting the cell training image vector into the first neural network;
calculating the cell training image vector and a matrix in the first neural network to obtain features of the cell training image vector and form the first feature map.

### Claim 8 (depends on 5)

The method according to claim 5, further comprising:
calculating an average absolute value error between the first feature map and the second feature map through an average absolute value error function, and taking the average absolute value error as the third error value between the first feature map and the second feature map.

### Claim 9

An electronic device, comprising:
a storage device; and
at least one processor, wherein the storage device stores one or more programs, when executed by the at least one processor, the one or more programs cause the at least one processor to:
input an image into a self-encoder of a preset number of a density grouping model to obtain the preset number of reconstructed images, wherein each of the density grouping model is composed of the self-encoder and the twin network model, each of the density grouping model corresponds to a density range, and each of the reconstructed images corresponds to a corresponding one of the density grouping model;
input the image and each of the reconstructed images into a twin network model of the corresponding density grouping model of the reconstructed images, and calculate a first error value between the image and each of the reconstructed images; wherein a first error value set is composed of all the first error values, and each first error value corresponds to a corresponding one of the density grouping model; and
determine a minimum first error value in the first error value set, wherein the density range corresponding to the density grouping model having the minimum first error value as density range of the image.

### Claim 10 (depends on 9)

The electronic device according to claim 9, wherein the at least one processor is further caused to:
divide the cell image set according to the density range to obtain a preset number of cell training image sets; wherein each of the cell training image set corresponds to the density range; and
perform training operation on each of the cell training image set to obtain a preset number of density grouping models; wherein each of the density grouping model corresponds to the density range.

### Claim 11 (depends on 10)

The electronic device according to claim 10, wherein the at least one processor is further caused to:
convert the cell training image in the cell training image set into a cell training image vector, wherein a cell training image vector set is composed of all the cell training image vectors;
apply the cell training image vector set to train the self-encoder to obtain a trained self-encoder;
input the cell training image vector set into the trained self-encoder of the density grouping model to obtain a cell reconstruction image vector set; wherein the cell reconstruction image vector set comprises a cell reconstruction image vector;
apply the cell training image vector set and the cell reconstruction image vector set to train the twin network model to obtain the trained twin network model; wherein the trained self-encoder and the trained twin network model form the density grouping model.

### Claim 12 (depends on 11)

The electronic device according to claim 11, wherein the at least one processor is further caused to:
input the cell training image vector in the cell training image vector set into a coding layer of the self-encoder to obtain a hidden vector of the cell training image vector;
input the hidden vector into a decoding layer of the self-encoder to obtain the reconstructed image vector of the cell training image vector;
calculate a second error value between the cell training image vector and the reconstructed image vector through a preset error function; adjust the parameters of an encoding layer and a decoding layer to minimize error value to obtain the self-encoder of the density grouping model.

### Claim 13 (depends on 11)

The electronic device according to claim 11, wherein the at least one processor is further caused to:
input the cell training image vector in the cell training image vector set into a first neural network to obtain a first feature map;
input the cell reconstruction image vector in the cell reconstruction image vector set into a second neural network to obtain a second feature map;
calculate a third error value between the first feature map and the second feature map, optimize the first neural network and the second neural network according to the third error value, and obtain a trained twin network model.

### Claim 14 (depends on 12)

The electronic device according to claim 12, wherein the first neural network and the second neural network are equally weighted, and structure of the first neural network is same as structure of the second neural network.

### Claim 15

A non-transitory storage medium having stored thereon instructions that, when executed by a processor of a computer device installed in an electronic device, causes the processor to perform a grouping method, wherein the method comprises:
inputting an image into a self-encoder of a preset number of a density grouping model to obtain the preset number of reconstructed images, wherein each of the density grouping model is composed of the self-encoder and the twin network model, each of the density grouping model corresponds to a density range, and each of the reconstructed images corresponds to a corresponding one of the density grouping model;
inputting the image and each of the reconstructed images into a twin network model of the corresponding density grouping model of the reconstructed images, and calculating a first error value between the image and each of the reconstructed images; wherein a first error value set is composed of all the first error values, and each of the first error value corresponds to a corresponding one of the density grouping model; and
determining a minimum first error value in the first error value set, wherein the density range corresponding to the density grouping model having the minimum first error value as density range of the image.

### Claim 16 (depends on 15)

The non-transitory storage medium according to claim 15, further comprising:
training the density grouping model comprising:
dividing the cell image set according to the density range to obtain a preset number of cell training image sets; wherein each of the cell training image set corresponds to a density range; and
performing training operation on each of the cell training image set to obtain a preset number of density grouping models; wherein each of the density grouping model corresponds to a density range.

### Claim 17 (depends on 16)

The non-transitory storage medium according to claim 16, training the density grouping model further comprising:
converting the cell training image in the cell training image set into a cell training image vector, wherein a cell training image vector set is composed of all the cell training image vectors;
applying the cell training image vector set to train the self-encoder to obtain a trained self-encoder;
inputting the cell training image vector set into the trained self-encoder of the density grouping model to obtain a cell reconstruction image vector set; wherein the cell reconstruction image vector set comprises a cell reconstruction image vector;
applying the cell training image vector set and the cell reconstruction image vector set to train the twin network model to obtain the trained twin network model; wherein the trained self-encoder and the trained twin network model form the density grouping model.

### Claim 18 (depends on 17)

The non-transitory storage medium according to claim 17, further comprising:
inputting the cell training image vector in the cell training image vector set into a coding layer of the self-encoder to obtain a hidden vector of the cell training image vector;
inputting the hidden vector into a decoding layer of the self-encoder to obtain the reconstructed image vector of the cell training image vector;
calculating a second error value between the cell training image vector and the reconstructed image vector through a preset error function; adjusting the parameters of an encoding layer and a decoding layer to minimize error value to obtain the self-encoder of the density grouping model.

### Claim 19 (depends on 17)

The non-transitory storage medium according to claim 17, further comprising:
inputting the cell training image vector in the cell training image vector set into a first neural network to obtain a first feature map;
inputting the cell reconstruction image vector in the cell reconstruction image vector set into a second neural network to obtain a second feature map;
calculating a third error value between the first feature map and the second feature map, optimizing the first neural network and the second neural network according to the third error value, and obtain a trained twin network model.

### Claim 20 (depends on 19)

The non-transitory storage medium according to claim 19, wherein the first neural network and the second neural network are equally weighted, and structure of the first neural network is same as structure of the second neural network.
