# US 2022/0286416 A1 · Method and apparatus for generating account intimacy

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

- Number: US 2022/0286416 A1
- Document ID: US20220286416A1
- Status: Published application
- Kind: A1
- Application number: 17/824,570
- Filed: 2022-05-25
- Published: 2022-09-08
- Earliest claimed: 2021-06-30
- Assignees: Beijing Baidu Netcom Science and Techology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science Techology Co., Ltd.
- Inventors: Shijie CAO; Yanan LI; Bolei HE; Kunbin CHEN; Wei HE; Feng HE
- Web page: https://patentgrep.com/patent/US20220286416A1

## CPC

- H04L 51/04: Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L 51/046: Interoperability with other network applications or services
- H04L 51/18: Commands or executable codes
- H04L 51/216: Handling conversation history, e.g. grouping of messages in sessions or threads
- H04L 51/52: for supporting social networking services
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method for generating an account intimacy includes: obtaining a set of accounts in an instant messaging (IM) group; obtaining a communication frequency between two accounts in the set of accounts within a preset time period; generating a communication network graph based on the communication frequency; obtaining an embedding vector of each account output by a graph model, in which the graph model is trained based on the communication network graph; and generating an intimacy between two accounts based on the embedding vectors of the two accounts.

## Claims

### Claim 1

A method for generating an account intimacy, performed by a terminal, comprising:
obtaining a set of accounts in an instant messaging (IM) group;
obtaining a communication frequency between two accounts in the set of accounts within a preset time period;
generating a communication network graph based on the communication frequency;
obtaining an embedding vector of each account output by a graph model, wherein the graph model is trained based on the communication network graph; and
generating an intimacy between two accounts based on the embedding vectors of the two accounts.

### Claim 2 (depends on 1)

The method according to claim 1, before generating the communication network graph, the method comprising:
determining a total communication frequency of an account based on communication frequencies between the account and other accounts in the set; and
deleting an account having a total communication frequency less than or equal to a preset communication frequency threshold from the set of accounts.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the graph model comprises at least one of a Node2Vec graph model and a graph attention model, and generating the intimacy between the two accounts based on the embedding vector, comprises:
obtaining a first cosine similarity between the two accounts based on the embedding vectors of the two accounts output by the Node2Vec graph model;
obtaining a second cosine similarity between the two accounts based on the embedding vectors of the two accounts output by the graph attention model; and
generating the intimacy between the two accounts based on the first cosine similarity and the second cosine similarity.

### Claim 4 (depends on 1)

The method according to claim 1, wherein generating the intimacy between the accounts based on the embedding vector, comprises:
generating the intimacy between the two accounts based on the embedding vectors and statistical characteristics of the two accounts.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the statistical characteristics comprises one or more of:
the communication frequency, a shortest reachable distance, a shortest reachable path, a betweenness centrality value, and a time difference between the last communication time and current time.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
determining a community to which an account belongs with a community division algorithm based on the communication network graph.

### Claim 7 (depends on 1)

The method according to claim 1, further comprising:
determining an intimacy level based on the intimacy between the two accounts.

### Claim 8

A terminal, comprising:
at least one processor; and
a memory stored with instructions executable by the at least one processor;
wherein the at least one processor is configured to
obtain a set of accounts in an instant messaging (IM) group;
obtain a communication frequency between two accounts in the set of accounts within a preset time period;
generate a communication network graph based on the communication frequency;
obtain an embedding vector of each account output by a graph model, wherein the graph model is trained based on the communication network graph; and
generate an intimacy between two accounts based on the embedding vectors of the two accounts.

### Claim 9 (depends on 8)

The terminal according to claim 8, wherein the at least one processor is further configured to:
determine a total communication frequency of an account based on communication frequencies between the account and other accounts in the set; and
delete an account having a total communication frequency less than or equal to a preset communication frequency threshold from the set of accounts.

### Claim 10 (depends on 8)

The terminal according to claim 8, wherein the graph model comprises at least one of a Node2Vec graph model and a graph attention model, and the at least one processor is further configured to:
obtain a first cosine similarity between the two accounts based on the embedding vector s of the two accounts output by the Node2Vec graph model;
obtain a second cosine similarity between the two accounts based on the embedding vectors of the two accounts output by the graph attention model; and
generate the intimacy between the two accounts based on the first cosine similarity and the second cosine similarity.

### Claim 11 (depends on 8)

The terminal according to claim 8, wherein the at least one processor is further configured to:
generate the intimacy between the two accounts based on the embedding vector and statistical characteristics of the two accounts.

### Claim 12 (depends on 11)

The terminal according to claim 11, wherein the statistical characteristics comprises one or more of:
the communication frequency, a shortest reachable distance, a shortest reachable path, a betweenness centrality value, and a time difference between the last communication time and current time.

### Claim 13 (depends on 8)

The terminal according to claim 8, wherein the at least one processor is further configured to:
determine a community to which each account belongs based on the communication network graph and a community division algorithm.

### Claim 14 (depends on 8)

The terminal according to claim 8, wherein the at least one processor is further configured to:
determine an intimacy level based on the intimacy between the two accounts.

### Claim 15

A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are configured to cause a computer to execute a method for generating an account intimacy, the method comprising:
obtaining a set of accounts in an instant messaging (IM) group;
obtaining a communication frequency between two accounts in the set of accounts within a preset time period;
generating a communication network graph based on the communication frequency;
obtaining an embedding vector of each account output by a graph model, wherein the graph model is trained based on the communication network graph; and
generating an intimacy between two accounts based on the embedding vectors of the two accounts.

### Claim 16 (depends on 15)

The storage medium according to claim 15, before generating the communication network graph, the method comprises:
determining a total communication frequency of an account based on communication frequencies between the account and other accounts in the set; and
deleting an account having a total communication frequency less than or equal to a preset communication frequency threshold from the set of accounts.

### Claim 17 (depends on 15)

The storage medium according to claim 15, wherein the graph model comprises at least one of a Node2Vec graph model and a graph attention model, and generating the intimacy between the two accounts based on the embedding vector comprises:
obtaining a first cosine similarity between the two accounts based on the embedding vectors of the two accounts output by the Node2Vec graph model;
obtaining a second cosine similarity between the two accounts based on the embedding vectors of the two accounts output by the graph attention model; and
generating the intimacy between the two accounts based on the first cosine similarity and the second cosine similarity.

### Claim 18 (depends on 15)

The storage medium according to claim 15, wherein generating the intimacy between the accounts based on the embedding vector comprises:
generating the intimacy between the two accounts based on the embedding vectors and statistical characteristics of the two accounts.

### Claim 19 (depends on 18)

The storage medium according to claim 18, wherein the statistical characteristics comprises one or more of:
the communication frequency, a shortest reachable distance, a shortest reachable path, a betweenness centrality value, and a time difference between the last communication time and current time.

### Claim 20 (depends on 15)

The storage medium according to claim 15, wherein the method further comprises:
determining a community to which an account belongs with a community division algorithm based on the communication network graph.
