# US 2021/0279262 A1 · Generating clusters based on messaging system activity

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

- Number: US 2021/0279262 A1
- Document ID: US20210279262A1
- Status: Published application
- Kind: A1
- Application number: 17/328,540
- Filed: 2021-05-24
- Published: 2021-09-09
- Earliest claimed: 2018-04-04
- Assignees: Snap Inc.
- Applicants: Snap Inc
- Inventors: Anatoli Chklovski; Douglas Cohen; Scott Lippert
- Web page: https://patentgrep.com/patent/US20210279262A1

## CPC

- G06F 16/285: {Clustering or classification}
- H04L 51/04: Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L 51/216: Handling conversation history, e.g. grouping of messages in sessions or threads
- H04L 51/52: for supporting social networking services
- H04L 67/535: {Tracking the activity of the user (network monitoring arrangements H04L43/00; recording of computer activity G06F11/34)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A system analyzes user activity data generated by computing devices associated with a plurality of users in a messaging system to extract a random user from the plurality of users. Based on determining that user activity data associated with the random user comprises a consistent pattern, a cluster associated with the consistent pattern is generated and the random user is added to the cluster. Then user activity data for the other users in the plurality of users is analyzed to determine whether user activity data for each of the other users comprises a similar pattern as the generated cluster. Each user that is determined to be associated with user activity data comprising a similar pattern as the consistent pattern of the generated cluster is added to the generated cluster and user activity data associated with each user added to the generated cluster is removed from the user activity data.

## Claims

### Claim 1

A method comprising:
analyzing, by a computing system, user activity data generated by a plurality of computing devices associated with a plurality of users in a messaging system, to define a plurality of time periods based on time periods with high user activity using the messaging system;
determining, based on the user activity data, when each user of the plurality of users was consistently active in using the messaging system during each of the defined plurality of time periods during a predetermined timeframe;
summarizing, for each user, the user activity data for each of a subset of the defined plurality of time periods that the user was consistently active in using the messaging system;
for each of the defined plurality of time periods, analyzing the summarized user activity data associated with a random user to determine that the summarized user activity data associated with the random user meets a threshold of user activity using the messaging system;
generating a new cluster associated with the consistent pattern of activity using the messaging system from the summarized user activity data associated with the random user;
adding the random user to the new cluster associated with the consistent pattern of activity using the messaging system from the summarized user activity data associated with the random user;
analyzing the summarized user activity data specific to each of the other users in the plurality of users to determine whether the summarized user activity data specific to each of the other users in the plurality of users comprises a similar pattern of activity using the messaging system as the new cluster; and
adding, to the new cluster, each user with corresponding summarized user activity data comprising a similar pattern as the consistent pattern of the new cluster.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining that the random user meets the threshold of user activity using the messaging system comprises:
analyzing the summarized user activity data associated with the random user to determine user activity using the messaging system for each of the time periods in the plurality of time periods;
incrementing a count for each time period of the plurality of time periods that comprises user activity;
determining whether the summarized user activity data meets the threshold of user activity using the messaging system by comparing the count for each time period to the threshold.

### Claim 3 (depends on 1)

The method of claim 1, wherein defining the plurality of time periods further comprises:
generating the plurality of time periods by grouping similar day of a week and time of the day together based on time periods that have similar user activity.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
determining whether a number of users added to the new cluster meet a threshold number of users for a cluster;
removing the users added to the new cluster from the new cluster based on determining that the number of users added to the new cluster does not meet the threshold number of users for a cluster.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
determining that a number of users added to the new cluster meets a threshold number of users for a cluster;
extracting a second random user from the plurality of users;
determining the second random user has a second consistent pattern; and
generating a next new cluster associated with the second consistent pattern.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
receiving a request for clusters associated with the user activity data; and
providing the clusters and associated data.

### Claim 7 (depends on 6)

The method of claim 6, wherein the associated data comprises at least one of: a primary time period when a user in the cluster is active, a primary preference for a day or days of the week, demographics, or amount of time using the messaging system per day.

### Claim 8 (depends on 1)

The method of claim 1, wherein the summarized user activity data comprises a list of time periods of the plurality of time periods during which each user is consistently active.

### Claim 9 (depends on 1)

The method of claim 1, wherein defining the plurality of time periods is further based on generating a series of time correlation matrices to determine time intervals that can be grouped together into time periods.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
grouping together, into one time period, any two time intervals that are correlated significantly higher than an average correlation among all time intervals.

### Claim 11

A system comprising:
a memory that stores instructions; and
one or more hardware processors configured by the instructions to perform operations comprising:
analyzing user activity data generated by a plurality of computing devices associated with a plurality of users in a messaging system, to define a plurality of time periods based on time periods with high user activity using the messaging system;
determining, based on the user activity data, when each user of the plurality of users was consistently active in using the messaging system during each of the defined plurality of time periods during a predetermined timeframe;
summarizing, for each user, the user activity data for each of a subset of the defined plurality of time periods that the user was consistently active in using the messaging system;
for each of the defined plurality of time periods, analyzing the summarized user activity data associated with a random user to determine that the summarized user activity data associated with the random user meets a threshold of user activity using the messaging system;
generating a new cluster associated with the consistent pattern of activity using the messaging system from the summarized user activity data associated with the random user;
adding the random user to the new cluster associated with the consistent pattern of activity using the messaging system from the summarized user activity data associated with the random user;
analyzing the summarized user activity data specific to each of the other users in the plurality of users to determine whether the summarized user activity data specific to each of the other users in the plurality of users comprises a similar pattern of activity using the messaging system as the new cluster; and
adding, to the new cluster, each user with corresponding summarized user activity data comprising a similar pattern as the consistent pattern of the new cluster.

### Claim 12 (depends on 10)

The system of claim 10, wherein determining that the random user meets the threshold of user activity using the messaging system comprises:
analyzing the summarized user activity data associated with the random user to determine user activity using the messaging system for each of the time periods in the plurality of time periods;
incrementing a count for each time period of the plurality of time periods that comprises user activity;
determining whether the summarized user activity data meets the threshold of user activity using the messaging system by comparing the count for each time period to the threshold.

### Claim 13 (depends on 10)

The system of claim 10, wherein defining the plurality of time periods further comprises:
generating the plurality of time periods by grouping similar day of a week and time of the day together based on time periods that have similar user activity.

### Claim 14 (depends on 10)

The system of claim 10, the operations further comprising:
determining whether a number of users added to the new cluster meet a threshold number of users for a cluster;
removing the users added to the new cluster from the new cluster based on determining that the number of users added to the new cluster does not meet the threshold number of users for a cluster.

### Claim 15 (depends on 10)

The system of claim 10, the operations further comprising:
determining that a number of users added to the new cluster meets a threshold number of users for a cluster;
extracting a second random user from the plurality of users;
determining the second random user has a second consistent pattern; and
generating a next new cluster associated with the second consistent pattern.

### Claim 16 (depends on 10)

The system of claim 10, the operations further comprising:
receiving a request for clusters associated with the user activity data; and
providing the clusters and associated data.

### Claim 17 (depends on 16)

The system of claim 16, wherein the associated data comprises at least one of: a primary time period when a user in the cluster is active, a primary preference for a day or days of the week, demographics, or amount of time using the messaging system per day.

### Claim 18 (depends on 10)

The system of claim 10, wherein the summarized user activity data comprises a list of time periods of the plurality of time periods during which each user is consistently active.

### Claim 19 (depends on 10)

The system of claim 10, wherein defining the plurality of time periods is further based on generating a series of time correlation matrices to determine time intervals that can be grouped together into time periods, and the operations further comprise:
grouping together, into one time period, any two time intervals that are correlated significantly higher than an average correlation among all time intervals.

### Claim 20

A non-transitory computer-readable medium comprising instructions stored thereon that are executable by at least one processor to cause a computing device to perform operations comprising:
analyzing user activity data generated by a plurality of computing devices associated with a plurality of users in a messaging system, to define a plurality of time periods based on time periods with high user activity using the messaging system;
determining, based on the user activity data, when each user of the plurality of users was consistently active in using the messaging system during each of the defined plurality of time periods during a predetermined timeframe;
summarizing, for each user, the user activity data for each of a subset of the defined plurality of time periods that the user was consistently active in using the messaging system;
for each of the defined plurality of time periods, analyzing the summarized user activity data associated with a random user to determine that the summarized user activity data associated with the random user meets a threshold of user activity using the messaging system;
generating a new cluster associated with the consistent pattern of activity using the messaging system from the summarized user activity data associated with the random user;
adding the random user to the new cluster associated with the consistent pattern of activity using the messaging system from the summarized user activity data associated with the random user;
analyzing the summarized user activity data specific to each of the other users in the plurality of users to determine whether the summarized user activity data specific to each of the other users in the plurality of users comprises a similar pattern of activity using the messaging system as the new cluster; and
adding, to the new cluster, each user with corresponding summarized user activity data comprising a similar pattern as the consistent pattern of the new cluster.
