# US 2021/0241117 A1 · Method for processing batch-normalized data, electronic device and storage medium

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

- Number: US 2021/0241117 A1
- Document ID: US20210241117A1
- Status: Published application
- Kind: A1
- Application number: 17/234,202
- Filed: 2021-04-19
- Published: 2021-08-05
- Earliest claimed: 2019-07-19
- Applicants: Shenzhen Sensetime Technology Co., Ltd.
- Inventors: Xinjiang WANG; Sheng ZHOU; Litong FENG; Wei ZHANG
- Web page: https://patentgrep.com/patent/US20210241117A1

## CPC

- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/048: Activation functions
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/09: Supervised learning
- G06N 3/096: Transfer learning
- G06N 3/045: Combinations of networks
- G06N 5/02: Knowledge representation; Symbolic representation
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method for processing batch-normalized data, an electronic device, and a storage medium are provided. The method includes: a plurality of sample data are input into a batch normalization (BN) layer in a target network to be trained for normalization to obtain a processing result of the BN layer, wherein the plurality of sample data are obtained by extracting features of a plurality of image data; a shift adjustment of initial BN is performed on the processing result of the BN layer according to a specified constant shift to obtain a processing result of a post-shifted BN layer; and the processing result of the post-shifted BN layer is nonlinearly mapped through a rectified linear unit (ReLU) of an activation layer, a loss function is obtained step by step and then back propagation is carried out to obtain a first target network.

## Claims

### Claim 1

A method for processing batch-normalized data, comprising:
inputting a plurality of sample data into a batch normalization (BN) layer in a target network to be trained for normalization to obtain a processing result of the BN layer, wherein the plurality of sample data are obtained by extracting features of a plurality of image data;
performing a shift adjustment of initial BN on the processing result of the BN layer according to a specified constant shift to obtain a processing result of a post-shifted BN layer; and
nonlinearly mapping the processing result of the post-shifted BN layer through a rectified linear unit (ReLU) of an activation layer, obtaining a loss function step by step and then carrying out back propagation to obtain a first target network.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the inputting a plurality of sample data into a BN layer in a target network to be trained for normalization to obtain a processing result of the BN layer comprises:
based on a mean value and a variance corresponding to the plurality of sample data, normalizing the plurality of sample data to obtain a normalization result; and
based on a scaling coefficient and a shift coefficient of the BN layer, linearly transforming the normalization result to obtain the processing result of the BN layer.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the performing a shift adjustment of initial BN on the processing result of the BN layer according to a specified constant shift to obtain a processing result of a post-shifted BN layer comprises:
setting the constant shift as a positive number, and performing the shift adjustment of initial BN through the constant shift to obtain the processing result of the post-shifted BN layer.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the performing a shift adjustment of initial BN on the processing result of the BN layer according to a specified constant shift to obtain a processing result of a post-shifted BN layer comprises:
setting the constant shift as a negative number, and performing the shift adjustment of initial BN through the constant shift to obtain the processing result of the post-shifted BN layer.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the nonlinearly mapping the processing result of the post-shifted BN layer through a ReLU of an activation layer, obtaining a loss function step by step and then carrying out back propagation to obtain a first target network comprises:
after nonlinearly mapping the processing result of the post-shifted BN layer through the ReLU, entering a next layer for calculation to ultimately obtain the loss function; and
based on back propagation for the loss function, obtaining the first target network.

### Claim 6 (depends on 3)

The method according to claim 3, wherein a value range of the constant shift is between 0.01 and 0.1.

### Claim 7 (depends on 4)

The method according to claim 4, wherein a value range of the constant shift is between −0.1 and −0.01.

### Claim 8

An electronic device, comprising:
a processor; and
a memory configured to store an instruction that, when executed by the processor, causes the processor to perform the following operations including:
inputting a plurality of sample data into a batch normalization (BN) layer in a target network to be trained for normalization to obtain a processing result of the BN layer, wherein the plurality of sample data are obtained by extracting features of a plurality of image data;
performing a shift adjustment of initial BN on the processing result of the BN layer according to a specified constant shift to obtain a processing result of a post-shifted BN layer; and
nonlinearly mapping the processing result of the post-shifted BN layer through a rectified linear unit (ReLU) of an activation layer, obtaining a loss function step by step and then carrying out back propagation to obtain a first target network.

### Claim 9 (depends on 8)

The electronic device according to claim 8, wherein the processor is configured for:
based on a mean value and a variance corresponding to the plurality of sample data, normalizing the plurality of sample data to obtain a normalization result; and
based on a scaling coefficient and a shift coefficient of the BN layer, linearly transforming the normalization result to obtain the processing result of the BN layer.

### Claim 10 (depends on 8)

The electronic device according to claim 8, wherein the processor is configured for:
setting the constant shift as a positive number, and performing the shift adjustment of initial BN through the constant shift to obtain the processing result of the post-shifted BN layer.

### Claim 11 (depends on 8)

The electronic device according to claim 8, wherein the processor is configured for:
setting the constant shift as a negative number, and performing the shift adjustment of initial BN through the constant shift to obtain the processing result of the post-shifted BN layer.

### Claim 12 (depends on 8)

The electronic device according to claim 8, wherein the processor is configured for:
after nonlinearly mapping the processing result of the post-shifted BN layer through the ReLU, entering a next layer for calculation to ultimately obtain the loss function; and
based on back propagation for the loss function, obtaining the first target network.

### Claim 13 (depends on 10)

The electronic device according to claim 10, wherein a value range of the constant shift is between 0.01 and 0.1.

### Claim 14 (depends on 11)

The electronic device according to claim 11, wherein a value range of the constant shift is between −0.1 and −0.01.

### Claim 15

A non-transitory computer-readable storage medium, having stored thereon a computer program instruction that, when executed by a processor, causes the processor to perform a method for processing batch-normalized data, the method comprising:
inputting a plurality of sample data into a batch normalization (BN) layer in a target network to be trained for normalization to obtain a processing result of the BN layer, wherein the plurality of sample data are obtained by extracting features of a plurality of image data;
performing a shift adjustment of initial BN on the processing result of the BN layer according to a specified constant shift to obtain a processing result of a post-shifted BN layer; and
nonlinearly mapping the processing result of the post-shifted BN layer through a rectified linear unit (ReLU) of an activation layer, obtaining a loss function step by step and then carrying out back propagation to obtain a first target network.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the inputting a plurality of sample data into a BN layer in a target network to be trained for normalization to obtain a processing result of the BN layer comprises:
based on a mean value and a variance corresponding to the plurality of sample data, normalizing the plurality of sample data to obtain a normalization result; and
based on a scaling coefficient and a shift coefficient of the BN layer, linearly transforming the normalization result to obtain the processing result of the BN layer.

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the performing a shift adjustment of initial BN on the processing result of the BN layer according to a specified constant shift to obtain a processing result of a post-shifted BN layer comprises:
setting the constant shift as a positive number, and performing the shift adjustment of initial BN through the constant shift to obtain the processing result of the post-shifted BN layer; or
setting the constant shift as a negative number, and performing the shift adjustment of initial BN through the constant shift to obtain the processing result of the post-shifted BN layer.

### Claim 18 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the nonlinearly mapping the processing result of the post-shifted BN layer through a ReLU of an activation layer, obtaining a loss function step by step and then carrying out back propagation to obtain a first target network comprises:
after nonlinearly mapping the processing result of the post-shifted BN layer through the ReLU, entering a next layer for calculation to ultimately obtain the loss function; and
based on back propagation for the loss function, obtaining the first target network.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein in the case of setting the constant shift as the positive number, a value range of the constant shift is between 0.01 and 0.1.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein in the case of setting the constant shift as the negative number, a value range of the constant shift is between −0.1 and −0.01.
