IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0321858.html
   My bibliography  Save this article

Traffic flow prediction based on spatiotemporal encoder-decoder model

Author

Listed:
  • Yuanming Ding
  • Wei Zhao
  • Lin Song
  • Chen Jiang
  • Yunrui Tao

Abstract

To more effectively capture the periodic and dynamic changes in urban traffic flow and the spatiotemporal correlation of complex road networks, a new traffic flow prediction method, the Enhanced Spatiotemporal Graph Convolutional Network Encoder-Decoder Model (ESGCN-EDM), is proposed. The model achieves a significant enhancement in prediction accuracy through the introduction of the attention-based Personalized-enhanced Fusion Graph Convolutional Network (aPFGCN) and the Temporal Convolutional Bidirectional Long Short-Term Memory (TCBiL) module. The aPFGCN module effectively reduces the dimensionality of features and decreases model complexity to obtain the final node feature representation by personalizing the adjustment of node influence coefficients and applying Fourier transform and inverse transform techniques. Additionally, by incorporating an attention mechanism, it enhances the model’s ability to focus on important information and effectively captures the spatial topological relationships within the traffic network. The TCBiL module integrates 1D convolution with BiLSTM to form a unified temporal feature extraction module. The 1D convolution is utilized to extract local features from the time series, while the BiLSTM captures long-term dependencies within the time series. This allows for simultaneous feature extraction and temporal modeling, thereby enhancing the model’s efficiency and performance, and strengthening its ability to model time series. In the encoder part of the ESGCN-EDM, the aPFGCN is combined with the TCBiL to handle the spatiotemporal coupling interactions of the road network. The decoder part then performs multi-step predictions based on spatiotemporal sequences using the TCBiL and CNN, generating high-dimensional representations. Extensive experiments conducted on two real-world road traffic datasets demonstrate that the ESGCN-EDM model consistently outperforms other benchmark models in 1-hour, 30-minute, and 15-minute traffic flow predictions. Specifically, on the PeMSD8 dataset, the model achieves reductions in MAE, RMSE, and SMAPE by 7.9%, 2.1%, and 16.9%, respectively, compared to the AMRGCN model for 1-hour predictions. Similarly, on the PeMSD4 dataset, the model reduces MAE, RMSE, and MAPE by 1.8%, 1.1%, and 3.0%, respectively. These results validate the efficacy of the proposed model and its ability to significantly enhance the accuracy of traffic flow forecasting.

Suggested Citation

  • Yuanming Ding & Wei Zhao & Lin Song & Chen Jiang & Yunrui Tao, 2025. "Traffic flow prediction based on spatiotemporal encoder-decoder model," PLOS ONE, Public Library of Science, vol. 20(5), pages 1-28, May.
  • Handle: RePEc:plo:pone00:0321858
    DOI: 10.1371/journal.pone.0321858
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0321858
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0321858&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0321858?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0321858. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.