IP Library › Granted Patent US 11,513,520
Granted Patent B2
US 11,513,520 · App. 16/709,633 · Granted Nov 29, 2022

Formally safe symbolic reinforcement learning on visual inputs

Inventors: Subhro Das (Cambridge, MA); Nathan Fulton (Cambridge, MA); Nathan Hunt (Cambridge, MA); Trong Nghia Hoang (Cambridge, NY)
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
G05D1/0088G05D1/0055G06N20/00G06V20/10
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,513,520
App. No.
16/709,633
Granted
Nov 29, 2022
Kind
B2
Abstract

A method for training control software to reinforce safety constraints using visual inputs includes performing template matching for each object in an image of a reinforcement learning (RL) agent's action space using a visual template for each object wherein each object in the RL agent's action space is detected, mapping each detected object to a set of planar coordinates for each object in the RL agent's action space, determining a set of safe actions for the RL agent by applying a safety specification for the RL agent's action space to the set of variables for coordinates for each object in the RL agent's action space, outputting the set of safe actions to the RL agent for a current state of a RL procedure, and preventing the RL agent from executing an action that is unsafe, before the RL agent takes an action.

Claims (61)

1. A method for training control software to reinforce safety constraints using visual inputs, said method comprising the steps of:

performing template matching for each object in an image of a reinforcement learning (RL) agent's action space using a visual template for each object in the image wherein each object in the image of the RL agent's action space is detected;

mapping each detected object to a set of planar coordinates for each object in the image of the RL agent's action space,

determining a set of safe actions for the RL agent by applying a safety specification for the RL agent's action space to the set of variables for coordinates for each object in the image of the RL agent's action space;

outputting the set of safe actions to the RL agent for a current state of a RL procedure; and

preventing the RL agent from executing an action that is unsafe, before the RL agent takes an action.

2. The method of claim 1 , wherein performing template matching for each object in the image of the RL agent's action space comprises

using the visual template for each object to place bounding boxes about each object in the image of the RL agent's action space.

3. The method of claim 2 , wherein mapping each detected object to the set of planar coordinates for each object in the image of the RL agent's action space comprises

mapping a centroid of each bounding box to the planar coordinates for each object in the image of the RL agent's action space.

4. The method of claim 1 , further comprising

training template matching for each object by augmenting data in a single, labeled image of the RL agent's action space,

removing all templates from the image,

randomly sampling a plurality of templates,

augmenting each of the plurality of templates,

randomly placing each of the plurality of templates in the image using template masks, wherein a plurality of images are created, and

training the template matching using the plurality of images.

5. The method of claim 4 ,

wherein augmenting data in the single, labeled image includes one or more of randomly adjusting the brightness of the image, cropping the image, or left-right flipping of the image, and

wherein augmenting each of the plurality of templates comprises one or more of left-right flipping of the template, rotating the template, or dropping pixels from the template.

6. The method of claim 1 , wherein the RL agent is one of self-controlled land-based motor vehicle, a self-controlled aerial motor vehicle, a self-controlled floating aquatic motor vehicle, or a self-controlled underwater motor vehicle.

7. The method of claim 1 , further comprising:

using differences between the set of planar coordinates for each object at a current RL step and the set of planar coordinates for each object at a previous RL step to infer potential actions of each object;

wherein the RL agent uses knowledge of its dynamics and the safety specification to construct constraints that ensure that the RL agent takes an action only if, after taking the action and then following a worst possible outcome of all previously observed state transitions, the safety specification is still satisfied one step into the future.

8. The method of claim 1 , wherein the safety specification comprises a plurality of safety constraints specified in a formal logic for each object the image.

9. A method for training control software to reinforce safety constraints in a reinforcement learning (RL) algorithm that runs the control software, said method comprising the steps of:

forming visual templates of one or more safety-relevant objects in an input image from sample observations of each said safety-relevant object;

determining coordinates for each safety-relevant object from the visual template of each safety-relevant objects in the input image;

enforcing safety constraints for a RL agent in the RL algorithm by using the coordinates for each safety-relevant object; and

preventing the RL agent from executing an action that is unsafe, before the RL agent takes an action.

10. The method of claim 9 , wherein determining coordinates for each safety-relevant object from the visual template of each safety-relevant objects in the input image comprises

placing bounding boxes each safety-relevant object by using the visual template for each object; and mapping a centroid of each bounding box to the coordinates for each safety-relevant object in the input image.

11. The method of claim 9 , wherein enforcing safety constraints for the RL agent in the RL algorithm comprises

receiving a safety specification for the RL agent,

determining safety constraints from the safety specification and the coordinates for each safety-relevant object, wherein each action of the RL agent is labeled, as safe or unsafe, and

preventing the RL agent from executing an action that is unsafe.

12. The method of claim 9 , wherein the RL agent is one of a self-controlled land-based motor vehicle, a self-controlled aerial motor vehicle, a self-controlled floating aquatic motor vehicle, or a self-controlled underwater motor vehicle.

13. A non-transitory program storage device readable by a computer, tangibly embodying a program of instructions executed by the computer to perform the method steps for training control software to reinforce safety constraints using visual inputs, said method comprising the steps of:

performing template matching for each object in an image of a reinforcement learning (RL) agent's action space using a visual template for each object in the image wherein each object in the image of the RL agent's action space is detected;

mapping each detected object to a set of planar coordinates for each object in the image of the RL agent's action space;

determining a set of safe actions for the RL agent by applying a safety specification for the RL agent's action space to the set of variables for coordinates for each object in the image of the RL agent's action space;

outputting the set of safe actions to the RL agent for a current state of a RL procedure, and

preventing the RL agent from executing, an action that is unsafe, before the RL agent takes an action.

14. The computer readable program storage device of claim 13 , wherein performing template matching for each object in the image of the RL agent's action space comprises

using the visual template for each object to place bounding boxes about each object in the image of the RL agent's action space.

15. The computer readable program storage device of claim 14 , wherein mapping each detected object to the set of planar coordinates for each object in the image of the RL agent's action space comprises

mapping a centroid of each bounding box to the planar coordinates for each object in the image of the RL agent's action space.

16. The computer readable program storage device of claim 13 , the method further comprising

training template matching for each object by augmenting data in a single, labeler image of the RL agent's action space,

removing all templates from the image,

randomly sampling a plurality of templates,

augmenting each of the plurality of templates,

randomly placing each of the plurality of templates in the image using template masks, wherein a plurality of images are created, and

training the template matching, using the plurality of images.

17. The computer readable program storage device of claim 16 ,

wherein augmenting data in the single, labeled image includes one or more of randomly adjusting the brightness of the image, cropping the image, or left-right flipping of the image, and

wherein augmenting each of the plurality of templates comprises one or more of left-right flipping of the template, rotating the template, or dropping pixels from the template.

18. The computer readable program storage device of claim 13 , wherein the RL agent is one of a self-controlled land-based motor vehicle, a self-controlled aerial motor vehicle, a self-controlled floating aquatic motor vehicle, or a self-controlled underwater motor vehicle.

19. The computer readable program storage device of claim 13 , the method further comprising:

using differences between the set of planar coordinates for each object at a current RL step and the set of planar coordinates for each object at a previous RL step to infer potential actions of each object; wherein the RL agent uses knowledge of its dynamics and the safety, specification to construct constraints that ensure that the RL agent takes an action only if, after taking the action and then following a worst possible outcome of all previously observed state transitions, the safety specification is still satisfied one step into the future.

20. The computer readable program storage device of claim 13 , wherein the safety specification comprises a plurality of safety constraints specified in a formal logic for each object in the image.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 10, 2019
From: DAS, SUBHRO; HUNT, NATHAN; FULTON, NATHAN; HOANG, TRONG NGHIA
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 051248/0135 →
Continuity (1)
Related Publication 20210173395A1 · Jun 10, 2021