# US 11,120,314 B2 · Joint training of neural networks using multi scale hard example mining

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

- Number: US 11,120,314 B2
- Document ID: US11120314B2
- Status: Granted
- Kind: B2
- Application number: 16/491,735
- Filed: 2017-04-07
- Published: 2021-05-06
- Granted: 2021-09-14
- Earliest claimed: 2017-04-07
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Anbang Yao; Yun Ren; Hao Zhao; Tao Kong; Yurong Chen
- Web page: https://patentgrep.com/patent/US11120314B2

## CPC

- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- G06F 18/24317: {Piecewise classification, i.e. whereby each classification requires several discriminant rules}
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06V 10/82: using neural networks
- G06V 20/10: Terrestrial scenes (scenes under surveillance with static cameras G06V20/52; scenes perceived from the exterior of a vehicle G06V20/56; scenes perceived from the interior of a vehicle G06V20/59)
- G06V 20/70: Labelling scene content, e.g. deriving syntactic or semantic representations
- G06V 30/19173: {Classification techniques}
- G06V 30/2504: {Coarse or fine approaches, e.g. resolution of ambiguities or multiscale approaches}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An example apparatus for mining multi-scale hard examples includes a convolutional neural network to receive a mini-batch of sample candidates and generate basic feature maps. The apparatus also includes a feature extractor and combiner to generate concatenated feature maps based on the basic feature maps and extract the concatenated feature maps for each of a plurality of received candidate boxes. The apparatus further includes a sample scorer and miner to score the candidate samples with multi-task loss scores and select candidate samples with multi-task loss scores exceeding a threshold score.

## Claims

### Claim 1

An apparatus for mining multi-scale hard examples, comprising:
a convolutional neural network to receive a mini-batch of sample candidates and generate basic feature maps;
a feature extractor and combiner to generate concatenated feature maps based on the basic feature maps and extract the concatenated feature maps for each of a plurality of received candidate boxes; and
a sample scorer and miner to score the candidate samples with multi-task loss scores and select candidate samples with multi-task loss scores exceeding a threshold score.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the candidate boxes are to be generated by a region proposal network in response to receiving a plurality of mini-batches of example images.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein each of the concatenated feature maps comprise a plurality of channels comprising the basic feature maps resized to a reference layer size.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the multi-task loss score for each candidate sample is to be calculated based on a localization score and a classification score corresponding to classification and localization losses calculated for each candidate sample in a respective Stochastic Gradient Descent (SGD).

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the convolutional neural network is to resize sample candidates from the received mini-batch into a standard scale.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the feature extractor and combiner is to select a reference layer in the convolutional neural network and up-sample or down-sample feature maps from other layers in the convolutional neural network to generate the concatenated feature maps comprising a feature map of the reference layer and the up-sampled or down-sampled feature maps of other layers in the convolutional neural network.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the mini-batch comprises negative example images and positive example images to be used for training.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the sample scorer and miner comprises a network of fully-connected layers.

### Claim 9 (depends on 1)

The apparatus of claim 1, wherein a predetermined number of the selected sample candidates are iteratively grouped for back-propagating and updating a detection network.

### Claim 10 (depends on 1)

The apparatus of claim 1, wherein the selected sample candidates are to be used to jointly train a region proposal network and a detection network.

### Claim 11

A method for training a neural network, comprising:
pretraining, via a processor, a CNN model to initialize base networks, the base networks comprising a region proposal network and a detection network;
training, via the processor, the region proposal network initialized with the pretrained CNN model to generate region proposals;
training, via the processor, the detection network initialized with the pretrained CNN model with the region proposals using multi-scale hard example mining to train feature layers to detect features;
fine-tuning, via the processor, the region proposal network using the trained feature layers to generate tuned region proposals and modified feature layers; and
training, via the processor, the detection network using multi-scale hard example mining based on the tuned region proposals and the modified feature layers.

### Claim 12 (depends on 11)

The method of claim 11, wherein multi-scale hard example mining comprises selecting hard examples within a received mini-batch of example images based on classification and localization losses calculated in a respective Stochastic Gradient Descent (SGD) for feature maps of each scale.

### Claim 13 (depends on 11)

The method of claim 11, wherein multi-scale hard example mining comprises generating concatenated feature maps and extracting the concatenated feature maps for a plurality of received candidate boxes from the region proposal network.

### Claim 14 (depends on 11)

The method of claim 11, wherein pretraining the CNN model comprises using a large scale object classification dataset.

### Claim 15 (depends on 11)

The method of claim 11, wherein fine-tuning the region proposal network comprises back-propagating parameter values based on generated feature layers from an initialized detection network.

### Claim 16 (depends on 11)

The method of claim 11, wherein training region proposal network comprises training the region proposal network to calculate objectness scores for a plurality of candidate boxes and select candidate boxes with objectness scores above a threshold score to generate the region proposals.

### Claim 17 (depends on 11)

The method of claim 11, wherein the tuned region proposals comprise mined hard examples.

### Claim 18 (depends on 11)

The method of claim 11, wherein the trained feature layers comprise shared layers.

### Claim 19 (depends on 11)

The method of claim 11, wherein training the region proposal network comprises training the region proposal network to generate a plurality of candidate boxes with a plurality of sizes and a plurality of scales based on a reference layers in the pretrained CNN model.

### Claim 20 (depends on 11)

The method of claim 11, wherein pretraining the CNN model comprises using mini-batches of example images comprising positive examples and negative examples.

### Claim 21

At least one non-transitory computer readable medium for training a neural network having instructions stored therein that, in response to being executed on a computing device, cause the computing device to: pretrain a convolutional neural network (CNN) model to initialize base networks comprising a region proposal network and a detection network; train a region proposal network initialized with the pretrained CNN model to generate region proposals; train a detection network initialized with the pretrained CNN model with the region proposals using multi-scale hard example mining to train feature layers to detect features; fine-tune the region proposal network using the trained feature layers to generate tuned region proposals and modified feature layers; and train the detection network using multi-scale hard example mining based on the tuned region proposals and the modified feature layers.

### Claim 22 (depends on 21)

The at least one non-transitory computer readable medium of claim 21, comprising instructions to receive a plurality of candidate boxes and sub-sample the candidate boxes based on loss values calculated for each of the candidate boxes.

### Claim 23 (depends on 21)

The at least one non-transitory computer readable medium of claim 21, comprising instructions to receive a plurality of candidate boxes and select a fixed number of high-loss examples from the plurality of candidate boxes to be used to execute a back-propagation and fine-tune parameters of the detection network.

### Claim 24 (depends on 21)

The at least one non-transitory computer readable medium of claim 21, comprising instructions to select a reference layer in the CNN model and up-sample or down-sample feature maps from other layers in the CNN model to generate a concatenated feature map comprising a feature map of the reference layer and the up-sampled or down-sampled feature maps of other layers in the CNN model.

### Claim 25 (depends on 21)

The at least one non-transitory computer readable medium of claim 21, comprising instructions to resize example images from a received mini-batch into a standard scale.
