# US 2023/0055256 A1 · Apparatus and method for image classification and segmentation based on feature-guided network, device, and medium

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

- Number: US 2023/0055256 A1
- Document ID: US20230055256A1
- Status: Published application
- Kind: A1
- Application number: 17/612,220
- Filed: 2021-01-29
- Published: 2023-02-23
- Earliest claimed: 2020-12-29
- Assignees: Jiangsu University
- Applicants: Jiangsu University
- Inventors: Zhe LIU; Jie PANG; Yuqing SONG; Yi LIU
- Web page: https://patentgrep.com/patent/US20230055256A1

## CPC

- G06V 10/267: {by performing operations on regions, e.g. growing, shrinking or watersheds}
- G06V 10/247: {by affine transforms, e.g. correction due to perspective effects; Quadrilaterals, e.g. trapezoids}
- G06V 10/25: Determination of region of interest [ROI] or a volume of interest [VOI]
- G06V 10/26: Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
- G06V 10/32: Normalisation of the pattern dimensions
- G06V 10/42: Global feature extraction by analysis of the whole pattern, e.g. using frequency domain transformations or autocorrelation
- G06V 10/764: using classification, e.g. of video objects
- 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/806: {of extracted features}
- G06V 10/82: using neural networks
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

The present invention provides an apparatus and method for image classification and segmentation based on a feature-guided network, a device, and a medium, and belongs to the technical field of deep learning. A feature-guided classification network and feature-guided segmentation network of the present invention include basic unit blocks. A local feature is enhanced and a global feature is extracted among the basic unit blocks. This resolves a problem that features are not fully utilized in existing image classification and image segmentation network models. In this way, a trained feature-guided classification network and feature-guided segmentation network have better effects and are more robust. The present invention selects the feature-guided classification network or the feature-guided segmentation network based on a requirement of an input image and outputs a corresponding category or segmented image, to resolve a problem that the existing classification or segmentation network model has an unsatisfactory classification or segmentation effect.

## Claims

### Claim 1

A method for image classification and segmentation based on a feature-guided network, characterized by comprising: choosing whether to classify or segment an input image based on a requirement of the input image, and if choosing to classify the image, inputting the image to a trained classification network model and outputting a corresponding category; or if choosing to segment the image, inputting the image to a trained segmentation network model and outputting a segmented image; wherein
the classification network model is a feature-guided classification network: the input image is processed by one 3×3 convolutional layer, and then five basic unit blocks and downsampling layers, and finally, an obtained output feature map is flattened and connected to a fully-connected network; residual connections are added before and after each basic unit block; and a local feature is enhanced in a spatial dimension and a global feature is extracted in a channel dimension for an output feature map generated by each basic unit block, and the global feature and local feature are fused before a fully-connected layer; and
the segmentation network model is a feature-guided segmentation network, adopting an encoder-decoder structure; in the encoder, the input image is processed by one 3×3 convolution layer, then four basic unit blocks and downsampling layers, and finally one basic unit block and a rectified linear unit (ReLU) activation function; residual connections are added before and after each basic unit block; the local feature is enhanced in the spatial dimension and the global feature is extracted in the channel dimension for an output feature map generated by each basic unit block; and in the decoder, an output feature map generated by the ReLU activation function is input into the decoder, the output feature map generated by each basic unit block in the encoder and a feature map generated by each upsampling layer in the decoder with a corresponding scale are connected in the channel dimension, then regular convolution is performed, a generated output feature map is used as an input feature map of a next upsampling layer, and the segmented image is output until fifth upsampling and fifth regular convolution are performed on an output feature map generated after fourth regular convolution.

### Claim 2 (depends on 1)

The method for the image classification and segmentation based on the feature-guided network according to claim 1, wherein the basic unit block adopts four parallel horizontal channels, and each horizontal channel adopts a different number of convolution operations; feature maps are connected such that features among the channels are fused; and residual connections are added to a same channel and different channels such that fusion of similar features on the same channel and fusion of features among different channels are enhanced.

### Claim 3 (depends on 1)

The method for the image classification and segmentation based on the feature-guided network according to claim 1, wherein the convolution operation is designed as a depthwise separable convolution operation.

### Claim 4 (depends on 1)

The method for the image classification and segmentation based on the feature-guided network according to claim 1, wherein enhancing the local feature in the spatial dimension specifically comprises: performing global average pooling (GAP) on the output feature map of each basic unit block to obtain an eigenvector, performing a dot-product operation on the original output feature map of the basic unit block and the eigenvector to obtain an enhanced output feature map, using the enhanced feature map as an input of a next basic unit block, performing GAP on an enhanced output feature map of the last basic unit block, and using an obtained feature map as an input of the fully-connected network.

### Claim 5 (depends on 1)

The method for the image classification and segmentation based on the feature-guided network according to claim 1, wherein extracting the global feature in the channel dimension specifically comprises: compressing a multi-channel output feature map generated by each basic unit block to extract a single-channel global output feature map.

### Claim 6 (depends on 1)

The method for the image classification and segmentation based on the feature-guided network according to claim 1, wherein a region of interest is cut out before the image is input.

### Claim 7 (depends on 1)

The method for the image classification and segmentation based on the feature-guided network according to claim 1, wherein before the image is input, affine transformation and normalization are performed on the input image.

### Claim 8

An apparatus for image classification and segmentation based on a feature-guided network, characterized by comprising:
a data preprocessing module, configured to perform various affine transformation operations and normalization on an input image;
an image classification module, configured to construct a feature-guided classification network, wherein the feature-guided classification network comprises one 3×3 convolutional layer, five basic unit blocks, and a fully-connected network; and
an image segmentation module, configured to construct a feature-guided segmentation network, wherein the feature-guided segmentation network adopts an encoder-decoder structure; the encoder comprises one 3×3 convolutional layer, four basic unit blocks and downsampling layers, and one basic unit block and a rectified linear unit (ReLU) activation function; and the decoder comprises five upsampling layers and five regular convolutional layers,
wherein whether to classify or segment an input image based on a requirement of the input image is chosen, and if choosing to classify the image, the image is input to a trained classification network model and outputting a corresponding category; or if choosing to segment the image, the image is input to a trained segmentation network model and outputting a segmented image;
in the feature-guided classification network, the input image is processed by one 3×3 convolutional layer, and then the five basic unit blocks and downsampling layers, and finally, an obtained output feature map is flattened and connected to the fully-connected network; residual connections are added before and after each basic unit block; and a local feature is enhanced in a spatial dimension and a global feature is extracted in a channel dimension for an output feature map generated by each basic unit block, and the global feature and local feature are fused before a fully-connected layer;
in the encoder, the input image is processed by one 3×3 convolution layer, then four basic unit blocks and downsampling layers, and finally one basic unit block and a rectified linear unit (ReLU) activation function; residual connections are added before and after each basic unit block; the local feature is enhanced in the spatial dimension and the global feature is extracted in the channel dimension for an output feature map generated by each basic unit block; and in the decoder, an output feature map generated by the ReLU activation function is input into the decoder, the output feature map generated by each basic unit block in the encoder and a feature map generated by each upsampling layer in the decoder with a corresponding scale are connected in the channel dimension, then regular convolution is performed, a generated output feature map is used as an input feature map of a next upsampling layer, and a segmented image is output until fifth upsampling and fifth regular convolution are performed on an output feature map generated after fourth regular convolution.

### Claim 9 (depends on 1)

A computer device, characterized by comprising a processor and a memory; wherein
the memory is configured to store a computer program; and
the processor is configured to execute the computer program to implement the method for the image classification and segmentation according to claim 1.

### Claim 10 (depends on 1)

A non-transitory computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the method for the image classification and segmentation according to claim 1.
