IDEAS home Printed from https://ideas.repec.org/a/spr/aodasc/v12y2025i4d10.1007_s40745-025-00616-w.html
   My bibliography  Save this article

Stock Prices Forecasting by Using a Novel Hybrid Method Based on the MFO-Optimized GRU Network

Author

Listed:
  • Xinjian Zhang

    (Harbin University
    Jilin University)

  • Guanlin Liu

    (Guangxi Logistics Vocational and Technical College
    Graduate University of Mongolia)

Abstract

With the social economy growing at a quick pace and the stock market seeing constant developments, more and more people are voicing concerns about investing in stocks. The importance of forecasting stock values has increased in the domain of engineering's use of cognitive computing. Utilizing data-driven tactics for forecasting stock prices, investors can effectively mitigate risks and enhance profits. Investors can use projections based on historical values and textual data to make well-informed judgments about future patterns in stock prices. Stock price anticipation is a pivotal undertaking in the financial sector that has substantial consequences for traders and investors. This article presents an in-depth comparison analysis of machine learning tactics for forecasting price fluctuations in stocks. The research deploys historical stock data and diverse technical indicators. This paper presents the Gated Recurrent Unit (GRU) model for Nasdaq stock index anticipation, which is optimized by Particle swarm optimization (PSO), Biogeography-based optimization (BBO), and Moth flame optimization (MFO). Among these optimizers, MFO has the best outcomes. Compared to the GRU scheme the optimized PSO-GRU, BBO-GRU, and MFO-optimized GRU for stock forecasting has the outcomes of 0.9807, 0.9824, and 0.9904 in coefficient of determination ( $${R}^{2}$$ R 2 ) which shows the improvement of the presented scheme as a result of its development. The criteria used to evaluate this model are mean absolute error, root mean absolute error, and $${R}^{2}$$ R 2 .

Suggested Citation

  • Xinjian Zhang & Guanlin Liu, 2025. "Stock Prices Forecasting by Using a Novel Hybrid Method Based on the MFO-Optimized GRU Network," Annals of Data Science, Springer, vol. 12(4), pages 1369-1387, August.
  • Handle: RePEc:spr:aodasc:v:12:y:2025:i:4:d:10.1007_s40745-025-00616-w
    DOI: 10.1007/s40745-025-00616-w
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s40745-025-00616-w
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s40745-025-00616-w?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
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    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:spr:aodasc:v:12:y:2025:i:4:d:10.1007_s40745-025-00616-w. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    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.