# US 11,120,303 B2 · Enhanced deep reinforcement learning deep q-network models

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

- Number: US 11,120,303 B2
- Document ID: US11120303B2
- Status: Granted
- Kind: B2
- Application number: 16/662,876
- Filed: 2019-10-24
- Published: 2020-06-18
- Granted: 2021-09-14
- Earliest claimed: 2018-12-17
- Assignees: King Fahd University of Petroleum and Minerals
- Applicants: King Fahd University of Petroleum and Minerals
- Inventors: Anas Mohammed Albaghajati; Lahouari Ghouti
- Web page: https://patentgrep.com/patent/US11120303B2

## CPC

- A63F 13/80: Special adaptations for executing a specific game genre or game mode
- A63F 13/67: adaptively or by learning from player actions, e.g. skill level adjustment or by storing successful combat sequences for re-use
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/092: Reinforcement learning
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/90: Dynamic range modification of images or parts thereof
- G06T 7/194: involving foreground-background segmentation
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/82: using neural networks
- G06V 20/40: in video content (extracting overlay text G06V20/62; video retrieval G06F16/70; processing of video elementary streams in video servers H04N21/234; processing of video elementary streams in video clients H04N21/44)
- A63F 13/25: Output arrangements for video game devices
- A63F 13/812: Ball games, e.g. soccer or baseball
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/20221: Image fusion; Image merging
- G06V 20/44: {Event detection}
- A63F: CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A reinforcement learning method and apparatus includes storing video frames in a video memory, performing a first preprocessing step of retrieving a sequence of n image frames of the stored video frames, and merging the n image frames in a fading-in fashion by incrementally increasing the intensity of each frame up to the most recent frame having full intensity to obtain a merged frame; and performing a training step of inputting the merged frame to the DQN and training the DQN to learn Q-values for all possible actions from a state represented by the merged frame with only a single forward pass through the network. The learning method and apparatus includes a second preprocessing step of removing the background from the merged frame. The method can be applied to any DQN learning method that uses a convolution neural network as its core value function approximator.

## Claims

### Claim 1

A reinforcement learning method for learning actions based on states of an environment depicted in a video, the method performed by processing circuitry, including:
obtaining and storing video frames of the video in a video memory;
performing, by the processing circuitry, a first preprocessing step of
retrieving a sequence of n image frames of the stored video frames, and
merging the n image frames in a fading-in fashion by incrementally increasing the intensity of each frame up to the most recent frame having full intensity to obtain a merged frame; and
performing, by the processing circuitry, a training step of
inputting the merged frame to a Deep Q Neural Network (DQN) and training the DQN to learn Q-values for all actions from a state of the environment represented by the merged frame with only a single forward pass through the network;
and
selecting an action based on the Q-values.

### Claim 2 (depends on 1)

The learning method of claim 1, further comprising:
performing, by the circuitry, a second preprocessing step of
removing background image data from the merged frame before inputting the merged frame to the DQN.

### Claim 3 (depends on 1)

The learning method of claim 1, wherein the DQN is a double DQN that learns two action-value functions in a mutually symmetric fashion.

### Claim 4 (depends on 1)

The learning method of claim 1, wherein the DQN includes a convolution neural network that outputs to two separated fully connected layers, one for a state value function and another for a state-dependent action function.

### Claim 5 (depends on 1)

The learning method of claim 1, wherein then image frames is a stack of 10 image frames.

### Claim 6 (depends on 1)

The learning method of claim 1, wherein the training comprises:
storing the merged image along with an associated action and a reward value that is based on the action in an experience memory;
retrieving the stored experience and provide an end state to the DQN;
operating the DQN to determine Q values for actions and selecting a next action based on a maximum Q-value;
determining a reward based on the selected next action.

### Claim 7 (depends on 1)

The learning method of claim 1, wherein the processing circuitry incrementally increases the intensity of each frame by multiplying each pixel value by a predetermined percentage.

### Claim 8 (depends on 7)

The learning method of claim 7, wherein the processing circuitry reduces the pixel values of the oldest frame to a predetermined minimum value.

### Claim 9 (depends on 1)

The learning method of claim 1, wherein the merging then image frames, by the processing circuitry, includes increasing the contrast of each frame before incrementally increasing the intensity of each frame.

### Claim 10 (depends on 1)

The learning method of claim 1, wherein the merging the n image frames, by the processing circuitry, includes normalizing the intensity values in each frame.

### Claim 11

A reinforcement learning apparatus for learning actions based on states of an environment depicted in a video, the method, comprising:
a video memory configured to store video frames of the video;
preprocessing circuitry configured to retrieve a sequence of n image frames of the stored video frames, and merge the n image frames in a fading-in fashion by incrementally increasing the intensity of each frame up to the most recent frame having full intensity to obtain a merged frame;
a Deep Q Neural Network (DQN) configured to receive the merged frame, perform a training process to learn Q-values for all possible actions from a state of the environment represented by the merged frame with only a single forward pass through the network, and selecting an action based on the Q-values.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the preprocessing circuitry is further configured to
perform a second preprocessing step of
removing background image data from the merged frame before inputting the merged frame to the DQN.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein the DQN is a double DQN that performs a training process to learn two action-value functions in a mutually symmetric fashion.

### Claim 14 (depends on 11)

The apparatus of claim 11, wherein the DQN includes a convolution neural network that outputs to two separated fully connected layers, one for a state value function and another for a state-dependent action function.

### Claim 15 (depends on 11)

The apparatus of claim 11, wherein the preprocessing circuitry is configured to retrieve a sequence of 10 image frames of the stored video frames.

### Claim 16 (depends on 11)

The apparatus of claim 11, wherein the DQN is configured to perform the training process including
storing the merged image along with an associated action and a reward value that is based on the action in an experience memory;
retrieving the stored experience and provide an end state to the DQN;
operating the DQN to determine Q values for actions and selecting a next action based on a maximum Q-value;
determining a reward based on the selected next action.

### Claim 17 (depends on 11)

The apparatus of claim 11, wherein the preprocessing circuitry incrementally increases the intensity of each frame by multiplying each pixel value by a predetermined percentage.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the preprocessing circuitry reduces the pixel values of the oldest frame to a predetermined minimum value.

### Claim 19 (depends on 11)

The apparatus of claim 11, wherein the preprocessing circuitry merges the n image frames including increasing the contrast of each frame before incrementally increasing the intensity of each frame.

### Claim 20 (depends on 11)

The apparatus of claim 11, wherein the preprocessing circuitry merges the n image frames including normalizing the intensity values in each frame.
