# US 2026/0064915 A1 · Method for predicting urban regional traffic flow considering multiple spatio-temporal granularities

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

- Number: US 2026/0064915 A1
- Document ID: US20260064915A1
- Status: Published application
- Kind: A1
- Application number: 19/030,976
- Filed: 2025-01-17
- Published: 2026-03-05
- Earliest claimed: 2024-08-27
- Assignees: Hangzhou Dianzi University
- Applicants: Hangzhou Dianzi University
- Inventors: Liming Tu; Xiaoying Shi; Haitao Xu; Geng Liu; Guoyi Li; Bowen He
- Web page: https://patentgrep.com/patent/US20260064915A1

## CPC

- G06F 30/27: using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
- G06F 17/11: for solving equations {, e.g. nonlinear equations, general mathematical optimization problems (optimization specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06F 2111/10: Numerical modelling
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for predicting urban regional traffic flow considering multiple spatio-temporal granularities is provided. In this method, a traffic flow dataset, a regional dataset, a weather dataset, and a Points of Interest (POI) dataset are acquired first. Then, data in the traffic flow dataset is preprocessed, and attribute features as well as flow sub-tensors at three temporal granularities are constructed. Next, two regional association graphs are constructed for each area, including a distance graph and a semantic graph. Finally, spatio-temporal network (STN) blocks are constructed, and based on the distance graph and the semantic graph, spatio-temporal representations at each temporal granularity are obtained through the STN blocks combined with the attribute features and the flow sub-tensors at the three temporal granularities. The spatio-temporal representations of the data at each temporal granularity are fused for flow predictions and back-propagation is performed to obtain the final model.

## Claims

### Claim 1

A method for predicting urban regional traffic flow considering multiple spatio-temporal granularities, comprising the following steps:
step 1: acquiring a traffic flow dataset, a regional dataset, a weather dataset, and a Points of Interest (POI) dataset;
step 2: preprocessing data in the traffic flow dataset and constructing attribute features;
step 3: constructing flow sub-tensors at three temporal granularities based on the preprocessed traffic flow data;
step 4: constructing two regional association graphs for each area, comprising a distance graph and a semantic graph;
step 5: constructing spatio-temporal network (STN) blocks, and based on the distance graph and the semantic graph, obtaining spatio-temporal representations at each temporal granularity through the STN blocks combined with the attribute features and the flow sub-tensors at the three temporal granularities;
step 6: fusing the spatio-temporal representations of the data at each temporal granularity for flow predictions and performing back-propagation.

### Claim 2 (depends on 1)

The method for predicting urban regional traffic flow considering multiple spatio-temporal granularities according to claim 1, wherein the traffic flow dataset comprises a taxi dataset and a shared bicycle dataset, and each record in the dataset contains an entry time, an entry area ID, an exit time, and an exit area ID;
each record in the regional dataset contains an area ID, latitude and longitude of an area center, and boundary information of an area;
the weather dataset comprises temperature, precipitation, and weather conditions; and
the POI dataset comprises POI type labels related to locations, and each record in the POI dataset contains latitude and longitude of a location and a corresponding POI type label.

### Claim 3 (depends on 1)

The method for predicting urban regional traffic flow considering multiple spatio-temporal granularities according to claim 1, wherein step 2 is specifically implemented as follows:
step 2.1: summarizing the records in the traffic flow dataset by hour based on the entry time to obtain a historical flow sequence for each area in a city, where it is assumed that a city contains N areas, with X=(X0, . . . , Xt, . . . , XT-1)∈RN×F×T representing regional flow tensors, wherein T represents a time step length in hours; Xt represents a flow matrix for all areas in the city at time t, and F represents the number of flow features, comprising inflow and outflow; and
step 2.2: constructing attribute features, comprising date attribute features Attrdate and weather attribute features Attrwea, wherein for a time step, Attrdate comprises: whether it is a weekday, which hour of the day it is, and which day of the week it is; Attrwea comprises temperature, precipitation, and weather conditions, and the weather conditions are represented in a composite one-hot encoding format.

### Claim 4 (depends on 3)

The method for predicting urban regional traffic flow considering multiple spatio-temporal granularities according to claim 3, wherein a specific process of constructing the flow sub-tensors at the three temporal granularities comprises:
defining temporal patterns of regional traffic flow at three temporal granularities: a recent pattern, a daily periodic pattern, and a weekly periodic pattern; and organizing an original flow tensor X into three sub-tensors, each reflecting one of the three patterns;
wherein it is assumed that t0−1 represents a current time, and t0 represents a prediction time point; a recent sub-tensor Xr comprises flow of an area in past few hours, defined as:
𝒳
r
=
(
X
t
0
-
T
r
,
X
t
0
-
T
,
+
1
)
,
…
,
X
t
0
-
1
)
,
𝒳
r
∈
ℝ
N
×
F
×
T
,
(
1
)
wherein N is the number of areas, F is the number of features, and Tr is a historical window size at an adjacent temporal granularity;
a daily periodic sub-tensor Xd is formed by flow in the same hour as the prediction time point from past few days, defined as:
𝒳
r
=
(
X
t
0
-
T
d
×
P
d
,
X
t
0
-
(
T
d
-
1
)
×
P
4
,
…
,
X
t
0
-
1
×
P
d
)
,
𝒳
d
∈
ℝ
N
×
F
×
T
d
(
2
)
wherein Td is a historical window size at a daily periodic temporal granularity, that is, the number of past days taken into consideration, Pd=24, representing the 24 hours in a day; and
a weekly periodic sub-tensor Xw is formed by flow, having the same weekly attribute and at the same time point as the prediction time point, from past few weeks, and Xw is defined as:
𝒳
w
=
(
X
t
0
-
T
w
×
P
w
,
⁢
X
t
0
-
(
T
w
-
1
)
×
P
w
,
…
,
X
t
0
-
1
×
P
w
)
,
𝒳
w
∈
ℝ
N
×
F
×
T
w
(
3
)
wherein Tw is a historical window size at a weekly periodic temporal granularity, that is, the number of past weeks taken into consideration, Pw=168, representing the number of hours in a week.

### Claim 5 (depends on 4)

The method for predicting urban regional traffic flow considering multiple spatio-temporal granularities according to claim 4, wherein a specific process of constructing the two regional association graphs comprises:
step 4.1: constructing the distance graph, and encoding geographical associations between areas by using the distance graph Gd=(V, Ed, Ad), wherein V∈N represents a set of area center points, while an edge set (vi, vj)∈Ed represents geographical connection relationships between areas, and each element Ad(i, j) in an adjacency matrix Ad is defined as:
A
d
(
i
,
j
)
=
{
1
,
if
⁢
norm
⁡
(
dis
⁡
(
i
,
j
)
)
≤
λ
d
,
i
≠
j
0
,
if
⁢
norm
⁡
(
dis
⁡
(
i
,
j
)
)
>
λ
d
,
or
i
=
j
(
4
)
wherein dis(i, j) represents a distance between area i and area j, and λd is a predefined distance threshold; norm( ) denotes a normalization operation; if norm(dis(i, j)≤λd, it indicates that the two areas are geographically adjacent, and Ad(i, j)=1, that is, (vi, vj)∈Ed; otherwise, Ad(i, j)=0, that is, (vi, vj)∉Ed;
step 4.2: constructing the semantic graph, and encoding semantic relationships between areas by using the semantic graph Gs=(V, Es, As, Rs), wherein V∈N represents a set of area center points, while edges (vi, vj)∈Es represent semantic connection relationships between areas; As represents an adjacency matrix of the semantic graph, and Rs represents a node type set;
wherein, first, a Pearson Correlation Coefficient (PCC) is used to calculate similarities between nodes based on historical traffic patterns of the areas; historical flow of area i is represented as
F
i
=
(
I
i
0
,
O
i
0
,
…
,
I
i
t
,
O
i
t
,
…
,
I
i
T
-
1
,
O
i
T
-
1
)
,
wherein T is a time step length;
I
i
t
⁢
and
⁢
O
i
t
represent inflow and outflow of area i at time step t; a similarity PCCi,j between nodes vi and vj is defined as:
PCC
i
,
j
=
∑
t
=
0
T
-
1
⁢
(
F
i
(
t
)
-
F
l
¯
)
⁢
(
F
j
(
t
)
-
F
¯
j
)
∑
t
=
0
T
-
1
⁢
(
F
i
(
t
)
-
F
i
¯
)
2
⁢
∑
t
=
0
T
-
1
⁢
(
F
j
(
t
)
-
F
¯
j
)
2
(
5
)
wherein Fi and Fj are average flow values for area i and area j, respectively;
then, based on the set of area center points V and PCC similarities between nodes, an edge set Es of the semantic graph is constructed using a complex network construction algorithm;
finally, based on distribution of POIs within each area, a semantic type is assigned to each area, resulting in the node type set Rs; for each area, all POIs within the area are first obtained, and then a semantic type is assigned to each area based on a POI category with highest distribution frequency in the area, defined as follows:
p
i
j
=
c
i
j
∑
k
=
1
N
⁢
c
k
j
(
6
)
R
i
=
arg
⁢
max
j
⁢
p
i
j
(
7
)
wherein
c
i
j
⁢
and
⁢
p
i
j
represent the number and distribution frequency of POI category j in area i, respectively; Ri represents a semantic type of area i.

### Claim 6 (depends on 5)

The method for predicting urban regional traffic flow considering multiple spatio-temporal granularities according to claim 5, wherein a specific process of constructing the edge set Es of the semantic graph using the complex network construction algorithm comprises:
first, initializing As to be a zero matrix, indicating that initially, all nodes are disconnected, and each node forms a node group; then, performing an iterative merging operation on the node groups, wherein when the number of node groups is greater than 1, two most similar node groups are found based on similarities between node groups, the similarity between node groups being defined as a maximum PCC similarity from all node pairs between the node groups, most similar k pairs of nodes are selected from two node groups, and if a PCC similarity of two nodes in a pair is greater than a threshold λs, corresponding positions in As are set to 1, indicating that the two nodes are connected; merging the found two most similar node groups into one, and updating the similarities between the node groups; stopping the iterative merging operation when there is only one node group left; finally, setting diagonal values of As to 1, indicating that each node is connected to itself, resulting in final As through calculation, and obtaining edge connection relationships Es, that is, the edge set.

### Claim 7 (depends on 6)

The method for predicting urban regional traffic flow considering multiple spatio-temporal granularities according to claim 6, wherein step 5 is specifically implemented as follows:
constructing the STN blocks, wherein in the STN block, the distance graph and the semantic graph are processed separately using a graph convolutional network and a relational graph convolutional network, respectively, and are fused through a fully connected layer to obtain a spatial representation XS at a specific temporal granularity:
𝒳
S
=
f
c
(
f
g
⁢
c
⁢
n
(
G
d
,
𝒳
r
/
d
/
w
)
+
f
rgcn
(
G
s
)
)
(
8
)
wherein Xr/d/w represents a specific flow sub-tensor: Xr or Xd or Xw; and fgcn frgcn represent the graph convolutional network and the relational graph convolutional network, respectively, while fc is the fully connected layer; in fgcn, residual connections are used to accelerate training convergence; and by fusing processing results of fgcn and frgcn, a spatial representation of an urban area network is obtained;
then, capturing temporal dependencies by using a Non-stationary Transformer (NST) algorithm, resulting in a temporal representation at a specific temporal granularity, defined as:
𝒳
T
=
f
c
(
f
NST
(
𝒳
r
/
d
/
w
)
)
(
9
)
wherein fNST and fc represent a non-stationary transformer layer and a fully connected layer, respectively; and
finally, concatenating the date attribute features Attrdate, the weather attribute features Attrwea, the spatial representation XS, and the temporal representation XT, and passing combined data through the fully connected layer to obtain a spatio-temporal representation X.

### Claim 8 (depends on 7)

The method for predicting urban regional traffic flow considering multiple spatio-temporal granularities according to claim 7, wherein a specific process of fusing the spatio-temporal representations of the data at each temporal granularity for flow predictions comprises:
first, processing the recent sub-tensor Xr, the daily periodic sub-tensor Xd, and the weekly periodic sub-tensor Xw by using three STN blocks, respectively, to obtain spatio-temporal representations at each temporal granularity: Xr, and Xd, and Xw, then fusing the obtained spatio-temporal representations:
𝒳
~
=
f
c
(
𝒳
_
r
,
𝒳
_
d
,
𝒳
_
w
)
)
(
10
)
then, inputting weather forecast information and a date attribute at a corresponding time point into the model as external factors to predict regional flow at time step T, with an output represented as:
Y
¯
T
=
f
c
(
𝒳
~
,
Attr
wea
T
,
Attr
date
T
)
(
11
)
wherein YT is predicted urban regional traffic flow at the time step T, comprising inflow and outflow, and
Attr
wea
T
⁢
and
⁢
Attr
date
T
are weather attribute features and date attribute features at the time step T, respectively.
