# US 2026/0087539 A1 · Generating an item selection sequence using a machine learning model for identifying foundational items

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

- Number: US 2026/0087539 A1
- Document ID: US20260087539A1
- Status: Published application
- Kind: A1
- Application number: 18/892,150
- Filed: 2024-09-20
- Published: 2026-03-26
- Earliest claimed: 2024-09-20
- Assignees: Maplebear Inc.
- Applicants: Maplebear Inc.
- Inventors: Shaun Navin Maharaj; Mark Oberemk; Brent Scheibelhut; Madeline Mesard
- Web page: https://patentgrep.com/patent/US20260087539A1

## CPC

- G06Q 30/0633: {Managing shopping lists, e.g. compiling or processing purchase lists (shipping orders G06Q10/083; order filling G06Q10/087)}
- G06Q 30/0201: Market modelling; Market analysis; Collecting market data
- G06Q 30/0631: {Recommending goods or services}
- 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

## Abstract

An online system receives orders from users and fulfills the orders by dispatching a picker to a physical source to obtain the items for delivery. Some items in an order may be considered “foundational,” meaning that a user who ordered the items may wish to cancel one or more other items in the order if the foundational item is unavailable (e.g., the item is a critical ingredient for a recipe). The online system predicts items in the order that are foundational using a trained machine-learning model. The online system presents the items to the picker in a sequence so the foundational items are obtained earlier by the picker. This enables the picker to observe whether the determined foundational item is available sooner in the picking process, allowing earlier performance of a remedial action and possibly avoiding replacing previously obtained items affected by the unavailability of the foundational item.

## Claims

### Claim 1

A method, performed at a computer system comprising a processor and a computer-readable medium, comprising:
receiving, at the computer system, an order from a user, the order including one or more items to obtain from a source specified by the order;
generating scores for items included in the order by applying a foundational item model to the order and attributes of the items included in the order, wherein the foundational item model comprises a machine-learning model and is trained by:
retrieving training data including a plurality of training examples, each training example including: a grouping of items and attributes of items included in the grouping, and a label indicating which items of the grouping are foundational items;
applying the foundational item model to each training example of the training data to generate a predicted score for an item in the training example;
evaluating a loss function that compares the label of the training example to the predicted score; and
updating one or more parameters of the foundational item model based on the evaluated loss function;
identifying a foundational item from the one or more items included in the order based on the generated scores from the foundational item model;
generating, by the computer system, a sequence of the items in the order based on the identified foundational item, each item in the order having a corresponding position in the sequence; and
generating a collection interface for presentation by a user client device to the user, the collection interface presenting the one or more items in the determined sequence to provide an ordered sequence for obtaining the items from the source.

### Claim 2 (depends on 1)

The method of claim 1, wherein generating the sequence of the items in the order based on the foundational item comprises:
receiving, at the computer system, an order status from the user client device that the user device is located at the source; and
generating, by the computer system, the sequence of the items in the order in response to receiving the order status that the user has arrived at the source.

### Claim 3 (depends on 1)

The method of claim 1, wherein generating the sequence of the items in the order based on the foundational item comprises:
generating a sequence having the foundational item in at least a threshold position of the sequence.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
transmitting a notification that the foundational item is unavailable at the source from the computer system to a user client device of the user in response to the computer system receiving an order status from the user client device that the foundational item is unavailable at the source.

### Claim 5 (depends on 4)

The method of claim 4, wherein a score for an item is based on a number of other items in the order having at least a threshold correlation score to the item, a correlation score for an item determined by the foundational item model.

### Claim 6 (depends on 5)

The method of claim 5, wherein transmitting the notification that the foundational item is unavailable at the source from the computer system to a user client device of the user in response to the computer system receiving the order status from the user client device that the foundational item is unavailable at the source comprises:
transmitting a notification identifying the foundational item and one or more additional items of the order that each have at least the threshold correlation score to the foundational item.

### Claim 7 (depends on 6)

The method of claim 6, wherein the notification identifies a replacement item for at least one of the additional items of the order having at least the threshold correlation score to the foundational item.

### Claim 8 (depends on 1)

The method of claim 1, wherein items of the order having higher scores have higher positions in the sequence.

### Claim 9 (depends on 1)

The method of claim 1, wherein applying the foundational item model to the order and attributes of the items included in the order comprises applying the foundational item model to one or more of: one or more attributes of the item, an availability of the item at the source, or one or more replacement items for the item specified by the user.

### Claim 10 (depends on 1)

The method of claim 1, wherein generating the sequence of the items in the order based on the foundational item comprises:
generating a set of candidate sequences, each candidate sequence including the foundational item in a different position;
generating an expected cost for each candidate sequence, the expected cost based at least in part on a probability of the foundational item being unavailable at the source; and
selecting the sequence as a candidate sequence having a minimum expected cost.

### Claim 11 (depends on 10)

The method of claim 10, wherein generating an expected cost for a candidate sequence comprises subtracting a cost to the computer system for an amount of time the user spends obtaining items when the foundational item has a highest position in the sequence from a product of the probability of the foundational item being unavailable and a cost to the computer system for a user restocking items having positions in the candidate sequence higher than a position of the foundational item in the candidate sequence.

### Claim 12

A computer program product comprising a non-transitory computer readable storage medium having instructions encoded thereon that, when executed by a processor, cause the processor to perform steps comprising:
receiving, at a computer system, an order from a user, the order including one or more items to obtain from a source specified by the order;
identifying a foundational item from the one or more items included in the order based on scores determined for items included in the order by applying a foundational item model to the order and attributes of the items included in the order, wherein the foundational item model comprises a machine-learning model and is trained by:
retrieving training data including a plurality of training examples, each training example including: a grouping of items and attributes of items included in the grouping, and a label indicating which items of the grouping are foundational items;
applying the foundational item model to each training example of the training data to generate a predicted score for an item in the training example;
evaluating a loss function that compares the label of the training example to the predicted score; and
updating one or more parameters of the foundational item model based on the evaluated loss function;
generating, by the computer system, a sequence of the items in the order based on the identified foundational item, each item in the order having a corresponding position in the sequence; and
generating a collection interface for presentation by a user client device to the user, the collection interface presenting the one or more items in the determined sequence indicating how a user should obtain the items from the source.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein generating the sequence of the items in the order based on the foundational item comprises:
receiving, at the computer system, an order status from the user client device that the user device is located at the source; and
generating, by the computer system, the sequence of the items in the order in response to receiving the order status that the user has arrived at the source.

### Claim 14 (depends on 12)

The computer program product of claim 12, wherein generating the sequence of the items in the order based on the foundational item comprises:
generating a sequence having the foundational item in at least a threshold position of the sequence.

### Claim 15 (depends on 12)

The computer program product of claim 12, wherein the non-transitory computer readable storage medium further has instructions encoded thereon that, when executed by the processor, cause the processor to perform steps comprising:
transmitting a notification that the foundational item is unavailable at the source from the computer system to a user client device of the user in response to the computer system receiving an order status from the user client device that the foundational item is unavailable at the source.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein a score for an item is based on a number of other items in the order having at least a threshold correlation score to the item, a correlation score for an item determined by the foundational item model.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein transmitting the notification that the foundational item is unavailable at the source from the computer system to a user client device of the user in response to the computer system receiving the order status from the user client device that the foundational item is unavailable at the source comprises:
transmitting a notification identifying the foundational item and one or more additional items of the order that each have at least the threshold correlation score to the foundational item.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the notification identifies a replacement item for at least one of the additional items of the order having at least the threshold correlation score to the foundational item.

### Claim 19 (depends on 12)

The computer program product of claim 12, wherein generating, by the computer system, a sequence of the items in the order based on the foundational item, each item in the order having the corresponding position in the sequence comprises:
generating a set of candidate sequences, each candidate sequence including the foundational item in a different position;
generating an expected cost for each candidate sequence, the expected cost based at least in part on a probability of the foundational item being unavailable at the source; and
selecting the sequence as a candidate sequence having a minimum expected cost.

### Claim 20

A system comprising:
a processor; and
a non-transitory computer readable storage medium having instructions encoded thereon that, when executed by the processor, cause the processor to perform steps comprising:
receiving an order from a user, the order including one or more items to obtain from a source specified by the order;
identifying a foundational item from the one or more items included in the order based on scores determined for items included in the order by applying a foundational item model to the order and attributes of the items included in the order, wherein the foundational item model comprises a machine-learning model and is trained by:
retrieving training data including a plurality of training examples, each training example including: a grouping of items and attributes of items included in the grouping, and a label indicating which items of the grouping are foundational items;
applying the foundational item model to each training example of the training data to generate a predicted score for an item in the training example;
evaluating a loss function that compares the label of the training example to the predicted score; and
updating one or more parameters of the foundational item model based on the evaluated loss function;
generating a sequence of the items in the order based on the identified foundational item, each item in the order having a corresponding position in the sequence; and
generating a collection interface for presentation by a user client device to the user, the collection interface presenting the one or more items in the determined sequence indicating how a user should obtain the items from the source.
