Transformer model-based multi-scale fine-grained identification and classification of regional traffic states

View article
PeerJ Computer Science

Main article text

 

Introduction

Literature review

Materials and Methods

Definition of traffic state classification levels

where F denotes the model to be learned. In our research, we utilize the Transformer model to learn hierarchical traffic spatiotemporal features, and then apply k-means clustering and non-dominated sorting to achieve the identification of traffic states.

Determination of traffic state classification metrics

Selection of important road segments

Entropy weight method

where n is the number of samples, and pij is the proportion of the i-th sample for the j-th indicator, computed as in Eq. (7).

where m is the total number of indicators, j represents the indicator.

CRITIC method

TOPSIS method

where D+i indicates the distance between segment i and the PIS, Di indicates the distance between segment i and the NIS, wj is the weight of the j-th indicator, vij is the standardized value of segment i for the j-th indicator, V+j is the standardized value of the PIS for the j-th indicator, and Vj is the standardized value of the NIS for the j-th indicator.

where S(i) represents the comprehensive score of road segment i, with values closer to 1 indicating higher comprehensive scores.

Ranking and selection of road segments

Traffic state estimation model

Transformer feature extraction

where dk is the dimension of the key vectors.

where dim is the dimension of the input embeddings.

K-means clustering

where xi is a data point, cj is a centroid, and d is the number of dimensions.

Non-dominated sorting

Results and discussion

Data preprocessing

Assessment of traffic state estimation

Evaluation of traffic decongestion impact

Conclusions

Supplemental Information

Traffic state with congestion mitigation measure.

DOI: 10.7717/peerj-cs.2625/supp-2

Normal traffic state.

DOI: 10.7717/peerj-cs.2625/supp-3

A comparative algorithm applying the Transformer methodology for the classification of traffic conditions into both 16 categories and four categories.

DOI: 10.7717/peerj-cs.2625/supp-4

Transformer.

A comparative algorithm applying the Transformer method for traffic state identification.

DOI: 10.7717/peerj-cs.2625/supp-5

PCA.

A comparative algorithm applying the PCA (Principal Component Analysis) method for traffic state identification.

DOI: 10.7717/peerj-cs.2625/supp-6

FCM.

A comparative algorithm applying the FCM (Fuzzy C-means clustering) method for traffic state identification.

DOI: 10.7717/peerj-cs.2625/supp-7

Additional Information and Declarations

Competing Interests

The authors declare that they have no competing interests.

Author Contributions

Jun Zhang conceived and designed the experiments, authored or reviewed drafts of the article, and approved the final draft.

Guangtong Hu conceived and designed the experiments, performed the experiments, analyzed the data, performed the computation work, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft.

Data Availability

The following information was supplied regarding data availability:

The raw measurements are available in the Supplemental Files.

Funding

This study is supported by grants from the National Social Science Foundation of China (grant number 20BGL001). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

263 Visitors 288 Views 6 Downloads

MIT

Your institution may have Open Access funds available for qualifying authors. See if you qualify

Publish for free

Comment on Articles or Preprints and we'll waive your author fee
Learn more

Five new journals in Chemistry

Free to publish • Peer-reviewed • From PeerJ
Find out more