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

Decomposition-reconstruction-optimization framework for hog price forecasting: Integrating STL, PCA, and BWO-optimized BiLSTM

Author

Listed:
  • Xiangjuan Liu
  • Yunlong Li
  • Fengtong Wang
  • Yujie Qin
  • Zhongyu Lyu

Abstract

This study constructs a multi-stage hybrid forecasting model using hog price time series data and its influencing factors to improve prediction accuracy. First, seven benchmark models including Prophet, ARIMA, and LSTM were applied to raw price series, where results demonstrated that deep learning models significantly outperformed traditional methods. Subsequently, STL decomposition decoupled the series into trend, seasonal, and residual components for component-specific modeling, achieving a 22.6% reduction in average MAE compared to raw data modeling. Further integration of Spearman correlation analysis and PCA dimensionality reduction created multidimensional feature sets, revealing substantial accuracy improvements: The BiLSTM model achieved an 83.6% cumulative MAE reduction from 1.65 (raw data) to 0.27 (STL-PCA), while traditional models like Prophet showed an 82.2% MAE decrease after feature engineering optimization. Finally, the Beluga Whale Optimization (BWO)-tuned STL-PCA-BWO-BiLSTM hybrid model delivered optimal performance on test sets (RMSE = 0.22, MAE = 0.16, MAPE = 0.99%, R2=0.98), exhibiting 40.7% higher accuracy than unoptimized BiLSTM (MAE = 0.27). The research demonstrates that the synergy of temporal decomposition, feature dimensionality reduction, and intelligent optimization reduces hog price prediction errors by over 80%, with STL-PCA feature engineering contributing 67.4% of the improvement. This work establishes an innovative “decomposition-reconstruction-optimization” framework for agricultural economic time series forecasting.

Suggested Citation

  • Xiangjuan Liu & Yunlong Li & Fengtong Wang & Yujie Qin & Zhongyu Lyu, 2025. "Decomposition-reconstruction-optimization framework for hog price forecasting: Integrating STL, PCA, and BWO-optimized BiLSTM," PLOS ONE, Public Library of Science, vol. 20(6), pages 1-29, June.
  • Handle: RePEc:plo:pone00:0324646
    DOI: 10.1371/journal.pone.0324646
    as

    Download full text from publisher

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

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

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

    References listed on IDEAS

    as
    1. Barkan, Oren & Benchimol, Jonathan & Caspi, Itamar & Cohen, Eliya & Hammer, Allon & Koenigstein, Noam, 2023. "Forecasting CPI inflation components with Hierarchical Recurrent Neural Networks," International Journal of Forecasting, Elsevier, vol. 39(3), pages 1145-1162.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Nason, Guy P. & Palasciano, Henry Antonio, 2026. "Forecasting UK consumer price inflation with RaGNAR: Random generalised network autoregressive processes," International Journal of Forecasting, Elsevier, vol. 42(1), pages 181-202.
    2. Shovon Sengupta & Tanujit Chakraborty & Sunny Kumar Singh, 2024. "Forecasting CPI inflation under economic policy and geopolitical uncertainties," Post-Print hal-05056934, HAL.
    3. Richard Schnorrenberger & Aishameriane Schmidt & Guilherme Valle Moura, 2024. "Harnessing Machine Learning for Real-Time Inflation Nowcasting," Working Papers 806, DNB.
    4. Luca Bacco & Tiziana Laureti & Juri Marcucci & Luigi Palumbo & Daniele Sasso & Luca Vollero, 2026. "Nowcasting the Italian consumer price index using online prices and machine learning," Questioni di Economia e Finanza (Occasional Papers) 1026, Bank of Italy, Economic Research and International Relations Area.
    5. Sengupta, Shovon & Chakraborty, Tanujit & Singh, Sunny Kumar, 2025. "Forecasting CPI inflation under economic policy and geopolitical uncertainties," International Journal of Forecasting, Elsevier, vol. 41(3), pages 953-981.
    6. Christian Beer & Robert Ferstl & Bernhard Graf, 2025. "Improving disaggregated short-term food inflation forecasts with webscraped data (Christian Beer, Robert Ferstl, Bernhard Graf)," Working Papers 262, Oesterreichische Nationalbank (Austrian Central Bank).
    7. Castello, Oleksandr & Resta, Marina, 2025. "Univariate and multivariate forecasting of the electricity futures curve using Dynamic Recurrent Neural Networks," Applied Energy, Elsevier, vol. 394(C).
    8. Injae Seo & Minkyoung Kim & Jong Wook Kim & Beakcheol Jang, 2025. "Accurate total consumer price index forecasting with data augmentation, multivariate features, and sentiment analysis: A case study in Korea," PLOS ONE, Public Library of Science, vol. 20(5), pages 1-28, May.
    9. Oleg Semiturkin & Andrey Shevelev, 2023. "Correct Comparison of Predictive Features of Machine Learning Models: The Case of Forecasting Inflation Rates in Siberia," Russian Journal of Money and Finance, Bank of Russia, vol. 82(1), pages 87-103, March.
    10. Beck, Günter W. & Carstensen, Kai & Menz, Jan-Oliver & Schnorrenberger, Richard & Wieland, Elisabeth, 2023. "Nowcasting consumer price inflation using high-frequency scanner data: Evidence from Germany," Discussion Papers 34/2023, Deutsche Bundesbank.
    11. Patricia Toledo & Roberto Duncan, 2024. "Forecasting food price inflation during global crises," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(4), pages 1087-1113, July.
    12. Marcus Araujo & Francisco Rodrigues & Elaine Sousa, 2026. "EconoGNN: A graph neural network framework for temporal economic resilience insights," PLOS ONE, Public Library of Science, vol. 21(4), pages 1-24, April.
    13. Maya Vilenko, 2025. "BiHRNN -- Bi-Directional Hierarchical Recurrent Neural Network for Inflation Forecasting," Papers 2503.01893, arXiv.org.
    14. Urmat Dzhunkeev, 2024. "Forecasting Inflation in Russia Using Gradient Boosting and Neural Networks," Russian Journal of Money and Finance, Bank of Russia, vol. 83(1), pages 53-76, March.
    15. Phaik Nie Chin & Abdulsalam Abuhamra & Zheng Xian Lee, 2024. "The Determinants of Malaysian Real Estate Investment Trusts’ Systematic Risks," Capital Markets Review, Malaysian Finance Association, vol. 32(2), pages 1-26.
    16. Sona Benecka, 2025. "Forecasting Disaggregated Producer Prices: A Fusion of Machine Learning and Econometric Techniques," Working Papers 2025/2, Czech National Bank, Research and Statistics Department.
    17. Rehim Kılıç, 2025. "Linear and nonlinear econometric models against machine learning models: realized volatility prediction," Finance and Economics Discussion Series 2025-061, Board of Governors of the Federal Reserve System (U.S.).
    18. Kaiji Chen & Mr. Yunhui Zhao, 2024. "Chinese Housing Market Sentiment Index: A Generative AI Approach and An Application to Monetary Policy Transmission," IMF Working Papers 2024/264, International Monetary Fund.
    19. Soňa Benecká, 2026. "Forecasting Disaggregated Producer Prices: A Fusion of Machine Learning and Econometric Techniques," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 45(5), pages 2458-2501, August.
    20. Jonathan Leslie, 2023. "Seeing the Future: Improving Macroeconomic Forecasts with Spatial Data and Recurrent Convolutional Neural Networks," CAEPR Working Papers 2023-003 Classification-C, Center for Applied Economics and Policy Research, Department of Economics, Indiana University Bloomington.

    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:0324646. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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.