# US 2022/0292434 A1 · Resource planning for delivery of goods

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

- Number: US 2022/0292434 A1
- Document ID: US20220292434A1
- Status: Published application
- Kind: A1
- Application number: 17/196,371
- Filed: 2021-03-09
- Published: 2022-09-15
- Earliest claimed: 2021-03-09
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Hossein KHADIVI HERIS; Kence McCurtis ANDERSON; Brice Hoani Valentin CHUNG
- Web page: https://patentgrep.com/patent/US20220292434A1

## CPC

- G06Q 10/063118: {Staff planning in a project environment}
- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06N 20/00: Machine learning
- G06Q 10/083: Shipping
- G06Q 50/40: Business processes related to the transportation industry (shipping G06Q10/083)
- G06Q 10/0843: {using forecasting or optimisation}
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods, systems, and computer programs are presented for scheduling resources used for package delivery. One method includes an operation for initializing a reinforcement learning (RL) agent that calculates staff requirements for performing jobs, each job including a delivery of a package to a respective location. The method further includes training the RL agent by performing a set of iterations. Each iteration includes operations for accessing job data, the job data including jobs for delivery, coordinates for the deliveries, and deadlines for the deliveries; generating clusters in a map for the jobs using unsupervised learning; generating the staff requirements by the RL agent based on feature extraction from the spatial and temporal distribution of the jobs; calculating a reward for the generated staff requirements; and modifying the RL agent using reinforcement learning based on the reward. Further, the trained RL agent is utilized for determining staff requirements for new jobs.

## Claims

### Claim 1

A computer-implemented method comprising:
initializing a reinforcement learning (RL) agent that calculates staff requirements for performing a plurality of jobs, each job including a delivery of a package to a respective location; and
training he RL agent by performing a plurality of iterations, each iteration comprising:
accessing job data, the job data including jobs for delivery, coordinates for the deliveries, and deadlines for the deliveries;
generating clusters in a map for the jobs using unsupervised. learning, each cluster comprising one or more jobs from the plurality of jobs;
generating the staff requirements by the RL agent based on the clusters;
calculating a reward for the generated staff requirements; and
modifying the RL agent using reinforcement learning based on the reward; and
utilizing the trained RL agent for determining staff requirements for new jobs.

### Claim 2 (depends on 1)

The method as recited in claim 1, further includes:
generating synthetic data with a plurality of random job deliveries for use as the job data.

### Claim 3 (depends on 1)

The method as recited in claim 1, wherein the job data further includes a probability that the job will be cancelled.

### Claim 4 (depends on 1)

The method as recited in claim 1, wherein the job data further includes a probability that a new job will be created.

### Claim 5 (depends on 1)

The method as recited in claim 1, wherein the job data further includes a probability that the deadline for the job will change.

### Claim 6 (depends on 1)

The method as recited in claim 1, wherein generating the clusters includes:
creating a plurality of bins to classify the jobs, each bin including jobs to be delivered withing a corresponding delivery window of time.

### Claim 7 (depends on 1)

The method as recited in claim 1, wherein the reward is calculated based on a number of drivers for the generated staff requirements and distance travelled by the drivers to make the deliveries.

### Claim 8 (depends on 1)

The method as recited in claim 1, wherein utilizing the trained RL agent for deters staff requirements further comprises:
accessing data for new jobs to deliver a plurality of new packages; and
using the trained RL agent o determine staff requirements for the new jobs and routes for delivering the packages of the new jobs.

### Claim 9

A system comprising:
a memory comprising instructions; and
one or more computer processors, wherein the instructions, when executed by the one or more computer processors, cause the system to perform operations comprising:
initializing a reinforcement learning (RL) agent that calculates staff requirements for performing a plurality of jobs, each job including a delivery of a package to a respective location; and
training the RL agent by performing a plurality of iterations, each iteration comprising:
accessing job data, the job data including jobs for delivery, coordinates for the deliveries, and deadlines for the deliveries;
generating clusters in a map for the jobs using unsupervised learning, each cluster comprising one or more jobs from the plurality of jobs;
generating the staff requirements by the RL agent based on the clusters;
calculating a reward for the generated staff requirements; and
modifying the RL agent using reinforcement learning based on the reward; and
utilizing the trained RL agent for determining staff requirements for new jobs.

### Claim 10 (depends on 9)

The system as recited in claim 9, wherein the instructions further cause the one or more computer processors to perform operations comprising:
generating synthetic data with a plurality of random job deliveries for use as the job data.

### Claim 11 (depends on 9)

The system as recited in claim 9, wherein the job data further includes a probability that the job will be cancelled.

### Claim 12 (depends on 9)

The system as recited in claim 9, wherein the job data further includes a probability that a new job will be created.

### Claim 13 (depends on 9)

The system as recited in claim 9, wherein the, job data further includes a probability that the deadline for the job will change.

### Claim 14 (depends on 9)

The system as recited claim 9, wherein generating the clusters includes:
creating a plurality of bins to classify the jobs, each bin including jobs to be delivered withing a corresponding delivery window of time.

### Claim 15 (depends on 9)

The system as recited in claim 9 wherein the reward is calculated based on a number of drivers for the generated staff requirements and distance travelled by the drivers to make the deliveries.

### Claim 16

A tangible machine-readable storage medium including instructions that, when executed by a machine, cause the machine to perform operations comprising:
initializing a reinforcement learning (RL) agent that calculates staff requirements for performing a plurality of jobs, each job including a delivery of a package to a respective location; and
training the RL agent by performing a plurality of iterations, each iteration comprising:
accessing job data, the job data including jobs for delivery, coordinates for the deliveries, and deadlines for the deliveries;
generating clusters in a map for the jobs using unsupervised learning, each cluster comprising one or more jobs from the plurality of jobs;
generating the staff requirements by the RL agent based on the clusters;
calculating a reward for the generated staff requirements; and
modifying the RL agent using reinforcement learning based on the reward; and
the trained RL agent for determining staff requirements for new jobs.

### Claim 17 (depends on 16)

The tangible machine-readable storage medium as recited in claim 16, wherein the machine further performs operations comprising:
generating synthetic data with a plurality of random job deliveries for use as the job data.

### Claim 18 (depends on 16)

The tangible machine-readable storage medium as recited in claim 16, wherein the job data further includes a probability that the job will be cancelled.

### Claim 19 (depends on 16)

The tangible machine-readable storage medium as recited in claim 16, wherein the job data further includes a probability that a new job will be created.

### Claim 20 (depends on 16)

The tangible machine-readable storage medium as recited in claim 16, wherein the job data further includes a probability that the deadline for the job will change.
