# US 2022/0292394 A1 · Multi-scale deep supervision based reverse attention model

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

- Number: US 2022/0292394 A1
- Document ID: US20220292394A1
- Status: Published application
- Kind: A1
- Application number: 17/401,632
- Filed: 2021-08-13
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: Tongji University
- Applicants: Tongji university
- Inventors: Deshuang Huang; Di Wu; Changan Yuan; Zhongqiu Zhao; Jianbin Huang
- Web page: https://patentgrep.com/patent/US20220292394A1

## CPC

- G06N 20/00: Machine learning
- G06V 10/82: using neural networks
- G06F 18/25: Fusion techniques
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/09: Supervised learning
- G06V 20/52: Surveillance or monitoring of activities, e.g. for recognising suspicious objects (recognising microscopic objects G06V20/69)
- G06V 40/10: Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A multi-scale deep supervision based reverse attention model is provided and includes an input end, a multi-scale feature learning module, an attention mechanism module, a reverse attention mechanism module, a deep supervision module, multiple loss functions, multiple average pool layers, multiple linear layers and multiple branches. The reverse attention mechanism module as provided can alleviate the problem of feature information loss caused by attention mechanisms, and part of the modules can be discarded in the testing phase, thereby improving the testing efficiency.

## Claims

### Claim 1

A multi-scale deep supervision based reverse attention model, comprising: an input end, a multi-scale feature learning module, an attention mechanism module, a reverse attention mechanism module, a deep supervision module, a plurality of loss functions, a plurality of average pool layers, a plurality of linear layers and a plurality of branches; wherein
the multi-scale feature learning module, the attention mechanism module, the reverse attention mechanism module, the deep supervision module, the plurality of loss functions, the plurality of average pool layers, the plurality of linear layers and the plurality of branches are software modules stored in a memory and executable by a processor coupled to the memory;
the input end is configured to input features of different hierarchies extracted from a plurality of person pictures;
the multi-scale feature learning module is configured to carry out multi-scale learning and training on the features, and comprises four phases: a first phase, a second phase, a third phase and a fourth phase, and the four phases input feature sets and output feature maps;
the attention mechanism module is configured to strengthen an attention to local important feature information;
the reverse attention mechanism module is configured to change features suppressed by the attention mechanism module into emphasized features, and is complementary to the attention mechanism module;
the deep supervision module is configured to correct an accuracy of the attention of the attention mechanism module to important features;
the plurality of branches comprise a branch 1, a branch 2, a branch 3, a branch 4 and a branch 5;
the multi-scale feature learning module, the reverse attention module, the plurality of average pool layers and the plurality of loss functions are successively connected;
the second phase of the multi-scale feature learning module is successively connected to the deep supervision module, the branch 5 and the plurality of loss functions through the attention mechanism module;
the third phase of the multi-scale feature learning module is successively connected to the deep supervision module, the branch 4 and the plurality of loss functions through the attention mechanism module;
the first, second, third and fourth phases of the multi-scale feature learning module, the plurality of average pool layers and the branch 2 are successively connected;
the branch 2 is directly connected to the plurality of loss functions; and
the branch 2 is also connected to the plurality of loss functions through the branch 3.

### Claim 2 (depends on 1)

The multi-scale deep supervision based reverse attention model according to claim 1, wherein single-dimensional convolution operations are carried out in the multi-scale feature learning module.

### Claim 3 (depends on 1)

The multi-scale deep supervision based reverse attention model according to claim 1, wherein the attention mechanism module comprises a channel attention module and a spatial attention module, the channel attention module is configured to output a set of weight values to feature channels, the spatial attention module is configured to strengthen the attention to local important feature information, the channel attention module and the spatial attention module are both configured to process feature maps outputted by each phase of the multi-scale feature learning module, and the channel attention module and the spatial attention module are fused:
ATT=σ(ATTC×ATTS)
where ATT refers to an output of the whole attention mechanism module, σ refers to a Sigmoid function, ATTC refers to the output of the channel attention module, and ATTS refers to an output of the spatial attention module.

### Claim 4 (depends on 3)

The multi-scale deep supervision based reverse attention model according to claim 3, wherein the channel attention module comprises an average pool layer and two linear layers, and the output of the channel attention module is implemented through steps that: firstly, the feature map passes through the average pool layer to carry out a global average pool operation; then, the feature map passes through the two linear layers, a first one of the two linear layers is configured to reduce the number of parameters, and a second one of the two linear layers is configured to recover the number of channels; and a batch normalization operation is carried out on the feature map after passing through the two linear layers, so that a range of output values and a range of channel attention values are adjusted to be consistent.

### Claim 5 (depends on 3)

The multi-scale deep supervision based reverse attention model according to claim 3, wherein the spatial attention module comprises two convolutional layers and two dimensionality reduction layers, and the output of the spatial attention module is implemented through steps that: firstly, the feature map passes through one of the two dimensionality reduction layers to carry out dimensionality reduction; then, the feature map is successively inputted into the two convolutional layers, and then enters the other one of the two dimensionality reduction layers to carry out further dimensionality reduction; and finally, a batch normalization operation is performed on the feature map.

### Claim 6 (depends on 1)

The multi-scale deep supervision based reverse attention model according to claim 1, wherein in the reverse attention mechanism module, a method for changing the suppressed feature into the emphasized feature is implemented through taking a dot product of a feature outputted by each phase and an output, where the output is:
ATTR=1−σ(ATTC×ATTS)
where, ATTR refers to the output of the reverse attention mechanism module.

### Claim 7 (depends on 1)

The multi-scale deep supervision based reverse attention model according to claim 1, wherein the deep supervision module is also configured to introduce multi-scale information in a feature learning process.

### Claim 8 (depends on 1)

The multi-scale deep supervision based reverse attention model according to claim 1, wherein the plurality of loss functions comprise four identification loss functions, four smoothed cross entropy loss functions and a triple loss function; the four identification loss functions comprise an ID loss1, an ID loss2, an ID loss3 and an ID loss4, the four smoothed cross entropy loss functions are respectively configured to train the branch 1, the branch 3, the branch 4 and the branch 5, and the triple loss function is a ranked list loss function.

### Claim 9 (depends on 8)

The multi-scale deep supervision based reverse attention model according to claim 8, wherein the ID loss 1 is configured to supervise the learning of the reverse attention mechanism module, the ID loss2 and the triple loss function are respectively configured to learn global features and corresponding distance measurement methods, and the ID loss3 and the ID loss4 are configured to perform deep multi-scale feature supervision operations.

### Claim 10 (depends on 1)

The multi-scale deep supervision based reverse attention model according to claim 1, wherein in a predicting process, the model only comprises the input end, the multi-scale feature learning module, the attention mechanism module, the plurality of average pool layers, the plurality of linear layers and the branch 3.
