IDEAS home Printed from https://ideas.repec.org/a/abq/ijist1/v7y2025i7p329-337.html

Harnessing LSTM Networks for Traffic Flow Forecasting: A Deep Learning Approach

Author

Listed:
  • Ahmad Mustafa, Khurram Shehzad Khattak, Zawar Hussain Khan

    (Dept. of Computer Systems Engineering UET Peshawar Peshawar, Pakistan. College of Computer Science and Engineering University of Ha’il Ha’il, KSA)

Abstract

Accurate traffic flow forecasting in areas with different types of vehicles and varied driving behaviors is crucial for improving urban transportation systems and reducing congestion. In this paper, we introduce a Long Short-Term Memory (LSTM) approach to predict short-term traffic flow in such diverse conditions. Our model uses time-series data from real-world traffic sensors, capturing the patterns and dependencies that occur over time in mixed traffic environments. We tested the model using a dataset from seven days, with six days for training and one day for testing. The LSTM model achieved an R2 value of 0.96, a Mean Squared Error (MSE) of 2.82, and a Mean Absolute Error (MAE) of 1.13. These results demonstrate the effectiveness of LSTM networks in predicting traffic flow in complex traffic conditions, surpassing traditional machine learning models. This study provides valuable insights into using deep learning techniques for intelligent transportation systems (ITS)

Suggested Citation

  • Ahmad Mustafa, Khurram Shehzad Khattak, Zawar Hussain Khan, 2025. "Harnessing LSTM Networks for Traffic Flow Forecasting: A Deep Learning Approach," International Journal of Innovations in Science & Technology, 50sea, vol. 7(7), pages 329-337, May.
  • Handle: RePEc:abq:ijist1:v:7:y:2025:i:7:p:329-337
    as

    Download full text from publisher

    File URL: https://journal.50sea.com/index.php/IJIST/article/view/1354/1872
    Download Restriction: no

    File URL: https://journal.50sea.com/index.php/IJIST/article/view/1354
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    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:abq:ijist1:v:7:y:2025:i:7:p:329-337. 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: Iqra Nazeer (email available below). General contact details of provider: .

    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.