# US 2022/0292318 A1 · Method of hop count matrix recovery based on decision tree classifier

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

- Number: US 2022/0292318 A1
- Document ID: US20220292318A1
- Status: Published application
- Kind: A1
- Application number: 17/566,732
- Filed: 2021-12-31
- Published: 2022-09-15
- Earliest claimed: 2021-03-15
- Assignees: Sun Yat-Sen University
- Applicants: Sun Yat-sen University
- Inventors: Xingcheng LIU; Yingying ZHAO; Yitong LIU
- Web page: https://patentgrep.com/patent/US20220292318A1

## CPC

- G06F 18/245: relating to the decision surface
- G06F 18/21322: {Rendering the within-class scatter matrix non-singular}
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06F 18/2411: based on the proximity to a decision surface, e.g. support vector machines
- G06F 18/24323: {Tree-organised classifiers}
- H04L 45/20: {Hop count for routing purposes, e.g. TTL}
- H04W 40/023: {Limited or focused flooding to selected areas of a network}
- H04W 84/18: Self-organising networks, e.g. ad-hoc networks or sensor networks
- H04W 64/006: {with additional information processing, e.g. for direction or speed determination}
- Y02D 30/70: in wireless communication networks
- 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)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A method of hop count matrix recovery based on a decision tree classifier, includes: S1: performing a flooding process to acquire a hop count matrix {tilde over (H)} with missing entries; S2: constructing a training sample set according to relationships between a part of observed hop counts in the hop count matrix {tilde over (H)}, and modeling the observed hop counts in the hop count matrix as labels of the training sample set, wherein a maximum hop count represents a number of classes; S3: training a decision tree classifier according to the training sample set obtained in step S2; and S4: constructing a feature for an unobserved hop count, to obtain an unknown sample; and inputting the unknown sample to the trained decision tree classifier, to obtain a class of the unknown sample which represents a missing hop count at a corresponding position in the matrix, to recover a complete hop count matrix H.

## Claims

### Claim 1

A method of hop count matrix recovery based on a decision tree classifier, comprising the following steps:
S1: performing a flooding process to acquire a hop count matrix {tilde over (H)} with missing entries;
S2: constructing a training sample set according to relationships between a part of observed hop counts in the hop count matrix {tilde over (H)}, and modeling the observed hop counts in the hop count matrix as labels of the training sample set, wherein a maximum hop count represents a number of classes;
S3: training a decision tree classifier according to the training sample set obtained in step S2; and
S4: constructing a feature for an unobserved hop count, to obtain an unknown sample; and inputting the unknown sample to the trained decision tree classifier, to obtain a class of the unknown sample which equals to a missing hop count at a corresponding position in the matrix, so as to recover a complete hop count matrix H.

### Claim 2 (depends on 1)

The method o according to claim 1, wherein a hop count vector of any node i is constructed: hi={hi1, hi2, . . . , hin}, hij represents a hop count between node i and node j, i=1, . . . , n; j=1, . . . , n; and
the hop count matrix H with missing entries is represented by formula (2):
H
~
=
H
⊙
Ω
=
[
0
h
1
⁢
2
×
ω
1
⁢
2
h
1
⁢
3
×
ω
1
⁢
3
…
h
1
⁢
n
×
ω
1
⁢
n
h
2
⁢
1
×
ω
2
⁢
1
0
h
2
⁢
3
×
ω
2
⁢
3
…
h
2
⁢
n
×
ω
2
⁢
n
h
3
⁢
1
×
ω
3
⁢
1
h
3
⁢
2
×
ω
3
⁢
2
0
…
h
3
⁢
n
×
ω
3
⁢
n
⋮
⋮
⋮
⋱
⋮
h
n
⁢
1
×
ω
n
⁢
1
h
n
⁢
2
×
ω
n
⁢
2
h
n
⁢
3
×
ω
n
⁢
3
…
0
]
=
[
0
h
˜
1
⁢
2
h
˜
1
⁢
3
…
h
˜
1
⁢
n
h
˜
2
⁢
1
0
h
˜
2
⁢
3
…
h
˜
2
⁢
n
h
˜
3
⁢
1
h
˜
3
⁢
2
0
…
h
˜
3
⁢
n
⋮
⋮
⋮
⋱
⋮
h
˜
n
⁢
1
h
˜
n
⁢
2
h
˜
n
⁢
3
…
0
]
,
(
2
)
wherein ⊙ represents a Hadamard product; Ω=[ωij]n*n is a binary matrix; ωij indicates whether a hop count at a corresponding position of the hop count matrix is missing, and is expressed as follows:
ω
i
⁢
j
=
{
1
,
if
⁢
hop
⁢
count
⁢
h
ij
⁢
is
⁢
observed
0
,
other
⁢
cases
.

### Claim 3 (depends on 2)

The method according to claim 2, wherein after step S1 and before step S2, if a symmetric position of a missing hop count is observed, the missing hop count is supplemented by using a hop count at the symmetric position.

### Claim 4 (depends on 3)

The method according to claim 3, wherein step S2 specifically comprises:
S201: traversing the hop count matrix {tilde over (H)}, and performing a next step if a hop count at a certain position is observed; otherwise, traversing a next value in the hop count matrix {tilde over (H)};
S202: using node i and node j to represent two nodes between which a hop count is missing, and with respect to all other nodes k, k=1, 2, . . . , n in a network, calculating a minimum hop count sum of a hop count {tilde over (h)}ik from node i to node k and a hop count {tilde over (h)}kj from node k to node j, as a first feature of a training sample;
S203: calculating an average value of hop counts from neighboring nodes of node i to node j and hop counts from neighboring nodes of node j to node i, as a second feature of the training sample;
S204: using the observed hop count as a class, forming the training sample by using the class together with the first feature and second feature, and adding the training sample to the training sample set; and
S205: traversing the entire hop count matrix {tilde over (H)}, and obtaining the training sample set after the traversing is finished.

### Claim 5 (depends on 4)

The method according to claim 4, wherein step S203 specifically comprises: initializing two neighbor lists Li and Lj, selecting neighbors of node i according to a hop count vector {tilde over (h)}i, and selecting neighbors of node j according to a hop count vector {tilde over (h)}j; storing indexes of neighboring nodes of node i and indexes of neighboring nodes of node j in the corresponding neighbor lists Li and Lj respectively, wherein a variable ni represents a number of available neighboring nodes of node i, and a variable nj represents a number of available neighboring nodes of node j; and if a hop count {tilde over (h)}Li(k)j between a neighboring node Li(k) and node j is observed, incrementing the number of available neighboring nodes ni by 1;
wherein the second feature of the training sample is calculated as shown in formula (4):
f
2
=
∑
k
=
1
,
h
˜
j
⁢
L
i
(
k
)
≠
0
n
i
h
˜
j
⁢
L
i
(
k
)
+
∑
k
=
1
,
h
˜
i
⁢
L
j
(
k
)
≠
0
n
j
h
˜
i
⁢
L
j
(
k
)
n
i
+
n
j
(
4
)
wherein f2 represents a second feature of the training sample.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the constructed training sample set is expressed as formula (5):
S=[s1,s2, . . . ,sN]=[(f11,f12,c1);(f21,f22,c2); . . . (fN1,fN2,cN)], (5)
wherein fm1 represents a first feature of an mth training sample, fm2 represents a second feature of the mth training sample, and cm∈{1, 2, . . . , hmax} represents a class of the mth training sample, m=1, 2, . . . ,N, and hmax is a maximum hop count.

### Claim 7 (depends on 6)

The method according to claim 6, wherein step S4 specifically comprises:
S401: if the hop count at a certain position in the hop count matrix {tilde over (H)} is not observed, performing a next step; otherwise, traversing a next value in the hop count matrix {tilde over (H)};
S402: using node i and node j to represent two nodes between which a hop count is missing, and with respect to all other nodes k, k=1, 2, . . . , n in the network, calculating a minimum hop count sum of a hop count {tilde over (h)}ik from node i to node k and a hop count {tilde over (h)}kj from node k to node j, as a first feature of the unknown sample;
S403: calculating an average value of hop counts from neighboring nodes of node i to node j and hop counts from neighboring nodes of node j to node i, as a second feature of the unknown sample;
S404: forming the unknown sample by using the constructed first feature and second feature of the unknown sample, inputting the unknown sample to the trained decision tree classifier to obtain the class of the unknown sample, that is, obtain the hop count at the position; and
S405: if traversing of the hop count matrix {tilde over (H)} is not finished, traversing a next value in the matrix and returning to step S401; and if traversing of the hop count matrix {tilde over (H)} is finished, obtaining the recovered hop count matrix.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the constructed unknown sample is expressed as follows:
(
min
⁡
(
h
˜
i
⁢
k
+
h
˜
k
⁢
j
)
,
∑
k
=
1
,
h
˜
j
⁢
L
i
(
k
)
≠
0
n
i
h
˜
j
⁢
L
i
(
k
)
+
∑
k
=
1
,
h
˜
i
⁢
L
j
(
k
)
≠
0
n
j
h
˜
i
⁢
L
j
(
k
)
n
i
+
n
j
)
,
wherein min({tilde over (h)}ik+{tilde over (h)}kj) represents a minimum sum of a hop count {tilde over (h)}ik from node i to node k and a hop count {tilde over (h)}kj from node k to node j.

### Claim 9 (depends on 1)

A computer system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to claim 1 when executing the computer program.

### Claim 10 (depends on 1)

A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the method according to claim 1 is implemented.
