# US 2024/0005509 A1 · Method for training image processing model

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

- Number: US 2024/0005509 A1
- Document ID: US20240005509A1
- Status: Published application
- Kind: A1
- Application number: 18/046,397
- Filed: 2022-10-13
- Published: 2024-01-04
- Earliest claimed: 2022-05-24
- Assignees: Alibaba (China) Co., Ltd.
- Applicants: Alibaba (China) Co., Ltd.
- Inventors: Yingda XIA; Jiawen YAO; Dakai JIN; Xiansheng HUA; Le LU; Ling ZHANG
- Web page: https://patentgrep.com/patent/US20240005509A1

## CPC

- G06T 7/11: Region-based segmentation
- 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/764: using classification, e.g. of video objects
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/82: using neural networks
- G06T 2207/10081: Computed x-ray tomography [CT]
- G06T 2207/10088: Magnetic resonance imaging [MRI]
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/30028: Colon; Small intestine
- G06T 2207/30172: Centreline of tubular or elongated structure
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A method, an apparatus, and a non-transitory computer readable medium for training an image processing model are provided. The method includes: acquiring a sample image comprising a target object to determine an object segmentation image of the target object in the sample image; constructing an object coordinate map corresponding to the object segmentation image according to the object segmentation image; and training an image processing model comprising a self-attention mechanism layer according to the sample image, the object segmentation image, and the object coordinate map.

## Claims

### Claim 1

A method for training an image processing model, comprising:
acquiring a sample image comprising a target object to determine an object segmentation image of the target object in the sample image;
constructing an object coordinate map corresponding to the object segmentation image according to the object segmentation image; and
training an image processing model comprising a self-attention mechanism layer according to the sample image, the object segmentation image, and the object coordinate map.

### Claim 2 (depends on 1)

The method according to claim 1, wherein constructing the object coordinate map corresponding to the object segmentation image according to the object segmentation image further comprises:
extracting a sample centerline of the target object in the object segmentation image according to a preset centerline extraction algorithm;
establishing an initial coordinate map according to the object segmentation image, and determining a start point position of the sample centerline;
tracking the sample centerline from the start point position according to a preset tracking algorithm; and
constructing the object coordinate map corresponding to the object segmentation image by combining a foreground voxel in the object segmentation image and coordinates in the initial coordinate map.

### Claim 3 (depends on 2)

The method according to claim 2, wherein tracking the sample centerline from the start point position according to the preset tracking algorithm, and constructing the object coordinate map corresponding to the object segmentation image by combining the foreground voxel in the object segmentation image and coordinates in the initial coordinate map further comprises:
tracking the sample centerline from the start point position according to the preset tracking algorithm, and incrementally labeling the sample centerline in the initial coordinate map;
propagating a coordinate position to the foreground voxel in the object segmentation image according to the sample centerline in the initial coordinate map; and
mapping the corresponding foreground voxel into the initial coordinate map according to the coordinate position corresponding to the foreground voxel in the object segmentation image, and constructing the object coordinate map corresponding to the object segmentation image.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the image processing model comprises an encoder and a decoder; and training an image processing model comprising the self-attention mechanism layer according to the sample image, the object segmentation image, and the object coordinate map further comprises:
inputting the sample image into a convolutional layer of the encoder to obtain an initial sample feature map of the sample image;
inputting the initial sample feature map into a self-attention mechanism layer of the encoder, and learning a feature relationship between each feature and another feature in the initial feature map, to obtain a target sample feature map corresponding to the initial sample feature map;
inputting the target sample feature map into the decoder for processing, to obtain a predicted object segmentation image and a predicted object coordinate map of the target object in the sample image; and
training the image processing model according to the object segmentation image, the object coordinate map, the predicted object segmentation image, and the predicted object coordinate map.

### Claim 5 (depends on 4)

The method according to claim 4, wherein training the image processing model according to the object segmentation image, the object coordinate map, the predicted object segmentation image, and the predicted object coordinate map further comprises:
determining a first loss function formed according to the object segmentation image and the predicted object segmentation image;
determining a second loss function formed according to the object coordinate map and the predicted object coordinate map; and
training the image processing model according to the first loss function and the second loss function.

### Claim 6 (depends on 4)

The method according to claim 4, wherein inputting the initial sample feature map into the self-attention mechanism layer of the encoder, and learning the feature relationship between each feature and another feature in the initial feature map, to obtain the target sample feature map corresponding to the initial sample feature map further comprises:
inputting the initial sample feature map into the self-attention mechanism layer of the encoder, and down-sampling the self-attention mechanism layer to obtain a down-sampled initial sample feature map;
processing the down-sampled initial sample feature map through a multi-head self-attention mechanism in the self-attention mechanism layer, and learning a feature relationship between each feature and other features in the down-sampled initial sample feature map, to obtain a candidate sample feature map; and
up-sampling the candidate sample feature map, to obtain an up-sampled target sample feature map corresponding to the initial sample feature map.

### Claim 7 (depends on 5)

The method according to claim 5, wherein determining the second loss function formed according to the object coordinate map and the predicted object coordinate map comprises:
obtaining the second loss function according to the object coordinate map and the predicted object coordinate map by using a first preset algorithm.

### Claim 8 (depends on 7)

The method according to claim 7, wherein training the image processing model according to the first loss function and the second loss function comprises:
obtaining a target loss function according to the first loss function and the second loss function by using a second preset algorithm; and
training the image processing model according to the target loss function.

### Claim 9 (depends on 1)

The method according to claim 1, wherein after training the image processing model comprising the self-attention mechanism layer, the method further comprises:
receiving a to-be-processed image comprising the target object; and
inputting the to-be-processed image into the image processing model, to obtain an object segmentation image of the target object in the to-be-processed image.

### Claim 10 (depends on 4)

The method according to claim 4, wherein the self-attention mechanism layer is a global self-attention mechanism layer, and at least two global self-attention mechanism layers are provided and each of the global self-attention mechanism layers is arranged after a corresponding convolutional layer of the encoder.

### Claim 11 (depends on 1)

The method according to claim 1, wherein the to-be-processed image comprising the target object is a computed tomography (CT) image comprising colorectum.

### Claim 12

An apparatus for training an image processing model, the apparatus comprising:
a memory configured to store instructions; and
one or more processors configured to execute the instructions to cause the apparatus to perform:
acquiring a sample image comprising a target object to determine an object segmentation image of the target object in the sample image;
constructing an object coordinate map corresponding to the object segmentation image according to the object segmentation image; and
training an image processing model comprising a self-attention mechanism layer according to the sample image, the object segmentation image, and the object coordinate map.

### Claim 13 (depends on 12)

The apparatus according to claim 12, wherein in constructing the object coordinate map corresponding to the object segmentation image according to the object segmentation image, the one or more processors are further configured to execute the instructions to cause the apparatus to perform:
extracting a sample centerline of the target object in the object segmentation image according to a preset centerline extraction algorithm;
establishing an initial coordinate map according to the object segmentation image, and determining a start point position of the sample centerline;
tracking the sample centerline from the start point position according to a preset tracking algorithm; and
constructing the object coordinate map corresponding to the object segmentation image by combining a foreground voxel in the object segmentation image and coordinates in the initial coordinate map.

### Claim 14 (depends on 13)

The apparatus according to claim 13, wherein in tracking the sample centerline from the start point position according to the preset tracking algorithm, and constructing the object coordinate map corresponding to the object segmentation image by combining the foreground voxel in the object segmentation image and coordinates in the initial coordinate map, the one or more processors are further configured to execute the instructions to cause the apparatus to perform:
tracking the sample centerline from the start point position according to the preset tracking algorithm, and incrementally labeling the sample centerline in the initial coordinate map;
propagating a coordinate position to the foreground voxel in the object segmentation image according to the sample centerline in the initial coordinate map; and
mapping the corresponding foreground voxel into the initial coordinate map according to the coordinate position corresponding to the foreground voxel in the object segmentation image, and constructing the object coordinate map corresponding to the object segmentation image.

### Claim 15 (depends on 12)

The apparatus according to claim 12, wherein the image processing model comprises an encoder and a decoder, and in training an image processing model comprising the self-attention mechanism layer according to the sample image, the object segmentation image, and the object coordinate map, the one or more processors are further configured to execute the instructions to cause the apparatus to perform:
inputting the sample image into a convolutional layer of the encoder to obtain an initial sample feature map of the sample image;
inputting the initial sample feature map into a self-attention mechanism layer of the encoder, and learning a feature relationship between each feature and another feature in the initial feature map, to obtain a target sample feature map corresponding to the initial sample feature map;
inputting the target sample feature map into the decoder for processing, to obtain a predicted object segmentation image and a predicted object coordinate map of the target object in the sample image; and
training the image processing model according to the object segmentation image, the object coordinate map, the predicted object segmentation image, and the predicted object coordinate map.

### Claim 16 (depends on 15)

The apparatus according to claim 15, wherein in training the image processing model according to the object segmentation image, the object coordinate map, the predicted object segmentation image, and the predicted object coordinate map, the one or more processors are further configured to execute the instructions to cause the apparatus to perform:
determining a first loss function formed according to the object segmentation image and the predicted object segmentation image;
determining a second loss function formed according to the object coordinate map and the predicted object coordinate map; and
training the image processing model according to the first loss function and the second loss function.

### Claim 17

A non-transitory computer readable medium that stores a set of instructions that is executable by one or more processors of an apparatus to cause the apparatus to initiate a method for training an image processing model, the method comprising:
acquiring a sample image comprising a target object to determine an object segmentation image of the target object in the sample image;
constructing an object coordinate map corresponding to the object segmentation image according to the object segmentation image; and
training an image processing model comprising a self-attention mechanism layer according to the sample image, the object segmentation image, and the object coordinate map.

### Claim 18 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein constructing the object coordinate map corresponding to the object segmentation image according to the object segmentation image comprises:
extracting a sample centerline of the target object in the object segmentation image according to a preset centerline extraction algorithm;
establishing an initial coordinate map according to the object segmentation image, and determining a start point position of the sample centerline;
tracking the sample centerline from the start point position according to a preset tracking algorithm; and
constructing the object coordinate map corresponding to the object segmentation image by combining a foreground voxel in the object segmentation image and coordinates in the initial coordinate map.

### Claim 19 (depends on 18)

The non-transitory computer readable medium of claim 18, wherein tracking the sample centerline from the start point position according to the preset tracking algorithm, and constructing the object coordinate map corresponding to the object segmentation image by combining the foreground voxel in the object segmentation image and coordinates in the initial coordinate map comprises:
tracking the sample centerline from the start point position according to the preset tracking algorithm, and incrementally labeling the sample centerline in the initial coordinate map;
propagating a coordinate position to the foreground voxel in the object segmentation image according to the sample centerline in the initial coordinate map; and
mapping the corresponding foreground voxel into the initial coordinate map according to the coordinate position corresponding to the foreground voxel in the object segmentation image, and constructing the object coordinate map corresponding to the object segmentation image.

### Claim 20 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein the image processing model comprises an encoder and a decoder; and training the image processing model comprising a self-attention mechanism layer according to the sample image, the object segmentation image, and the object coordinate map comprises:
inputting the sample image into a convolutional layer of the encoder to obtain an initial sample feature map of the sample image;
inputting the initial sample feature map into a self-attention mechanism layer of the encoder, and learning a feature relationship between each feature and another feature in the initial feature map, to obtain a target sample feature map corresponding to the initial sample feature map;
inputting the target sample feature map into the decoder for processing, to obtain a predicted object segmentation image and a predicted object coordinate map of the target object in the sample image; and
training the image processing model according to the object segmentation image, the object coordinate map, the predicted object segmentation image, and the predicted object coordinate map.
