IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0336342.html

STAC-Net: A hierarchical framework for modeling and predicting urban traffic flow with uncertainty quantification

Author

Listed:
  • Zekai Yan
  • Bowen Cai

Abstract

With the rapid urbanization and growing traffic complexity, predicting urban traffic flow with high accuracy has become an essential challenge. Traditional methods struggle to model the uncertainty in traffic flow due to intricate spatiotemporal dependencies and external influencing factors such as weather and events. In this paper, we propose a novel approach based on STAC-Net for urban traffic flow uncertainty modeling and prediction. The proposed method introduces a framework that combines spatiotemporal graph convolution, Convolutional Gated Recurrent Units (ConvGRU), and hierarchical self-attention mechanisms to effectively capture the spatiotemporal dependencies and dynamic uncertainty in traffic data. The spatiotemporal graph convolution module models the spatiotemporal features of traffic flow, ConvGRU enhances the ability to learn long-term temporal dependencies, and the hierarchical self-attention mechanism optimizes multi-scale feature extraction, improving prediction accuracy and robustness. To address uncertainty quantification, we incorporate the Neural Processes (NP) module, which generates multiple prediction outcomes to quantify uncertainty and provide more reliable decision support. This multi-output approach allows the model to provide precise and reliable traffic flow predictions for traffic management departments. Experimental results show that, on the METR-LA, PeMS04, and PeMS08 datasets, our model outperforms baseline methods across all time horizons, achieving a 10.5% reduction in Mean Absolute Error (MAE) and a 12.3% improvement in Root Mean Squared Error (RMSE). In conclusion, our method provides a reliable and efficient framework for urban traffic flow prediction, addressing uncertainty in real-world traffic scenarios.

Suggested Citation

  • Zekai Yan & Bowen Cai, 2025. "STAC-Net: A hierarchical framework for modeling and predicting urban traffic flow with uncertainty quantification," PLOS ONE, Public Library of Science, vol. 20(12), pages 1-26, December.
  • Handle: RePEc:plo:pone00:0336342
    DOI: 10.1371/journal.pone.0336342
    as

    Download full text from publisher

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

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

    File URL: https://libkey.io/10.1371/journal.pone.0336342?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:0336342. 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.