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

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. Yan Guo & Dezhao Tang & Wei Tang & Senqi Yang & Qichao Tang & Yang Feng & Fang Zhang, 2022. "Agricultural Price Prediction Based on Combined Forecasting Model under Spatial-Temporal Influencing Factors," Sustainability, MDPI, vol. 14(17), pages 1-18, August.
    2. Feihu Sun & Xianyong Meng & Yan Zhang & Yan Wang & Hongtao Jiang & Pingzeng Liu, 2023. "Agricultural Product Price Forecasting Methods: A Review," Agriculture, MDPI, vol. 13(9), pages 1-20, August.
    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. Arthanus Mutuku & Peter Murage & Stanley Sewe, 2024. "Application of SARIMAX model to forecast weekly Irish potato retail prices: a case study of Kitui County, Kenya," SN Business & Economics, Springer, vol. 4(11), pages 1-28, November.
    2. Karina Braga Marsola & Andréa Leda Ramos de Oliveira & Matheus Yasuo Ribeiro Utino & Paulo Mann & Thayane Caroline Oliveira da Conceição, 2025. "The Impact of Exogenous Variables on Soybean Freight: A Machine Learning Analysis," Sustainability, MDPI, vol. 17(3), pages 1-24, January.
    3. Hamid Ahaggach & Lylia Abrouk & Eric Lebon, 2024. "Systematic Mapping Study of Sales Forecasting: Methods, Trends, and Future Directions," Forecasting, MDPI, vol. 6(3), pages 1-31, July.
    4. Kmytiuk, Tetiana & Majore, Ginta & Bilyk, Tetiana, 2024. "Time series forecasting of price of the agricultural products using data science," Agricultural and Resource Economics: International Scientific E-Journal, Agricultural and Resource Economics: International Scientific E-Journal, vol. 10(3), September.
    5. Emmanuel Ekene Okere & Vipin Balyan, 2025. "A Deep Learning-Based Prediction and Forecasting of Tomato Prices for the Cape Town Fresh Produce Market: A Model Comparative Analysis," Forecasting, MDPI, vol. 7(2), pages 1-18, May.
    6. Asterios Theofilou & Stefanos A. Nastis & Anastasios Michailidis & Thomas Bournaris & Konstadinos Mattas, 2025. "Predicting Prices of Staple Crops Using Machine Learning: A Systematic Review of Studies on Wheat, Corn, and Rice," Sustainability, MDPI, vol. 17(12), pages 1-34, June.
    7. Feihu Sun & Xianyong Meng & Yan Zhang & Yan Wang & Hongtao Jiang & Pingzeng Liu, 2023. "Agricultural Product Price Forecasting Methods: A Review," Agriculture, MDPI, vol. 13(9), pages 1-20, August.
    8. Rui-Feng Wang & Wen-Hao Su, 2024. "The Application of Deep Learning in the Whole Potato Production Chain: A Comprehensive Review," Agriculture, MDPI, vol. 14(8), pages 1-30, July.
    9. Fengyu Li & Xianyong Meng & Ke Zhu & Jun Yan & Lining Liu & Pingzeng Liu, 2025. "Research on Ginger Price Prediction Model Based on Deep Learning," Agriculture, MDPI, vol. 15(6), pages 1-23, March.
    10. Senqi Yang & Xuliang Duan & Zeyan Xiao & Zhiyao Li & Yuhai Liu & Zhihao Jie & Dezhao Tang & Hui Du, 2022. "Sentiment Classification of Chinese Tourism Reviews Based on ERNIE-Gram+GCN," IJERPH, MDPI, vol. 19(20), pages 1-20, October.
    11. Chengxin Yin & Dezhao Tang & Fang Zhang & Qichao Tang & Yang Feng & Zhen He, 2023. "Students learning performance prediction based on feature extraction algorithm and attention-based bidirectional gated recurrent unit network," PLOS ONE, Public Library of Science, vol. 18(10), pages 1-19, October.
    12. Yang Feng & Xiaonan Hu & Songsong Hou & Yan Guo, 2025. "A Novel BiGRU-Attention Model for Predicting Corn Market Prices Based on Multi-Feature Fusion and Grey Wolf Optimization," Agriculture, MDPI, vol. 15(5), pages 1-25, February.
    13. Chenyun Zhao & Xiaodong Wang & Anping Zhao & Yunpeng Cui & Ting Wang & Juan Liu & Ying Hou & Mo Wang & Li Chen & Huan Li & Jinming Wu & Tan Sun, 2025. "A Vegetable-Price Forecasting Method Based on Mixture of Experts," Agriculture, MDPI, vol. 15(2), pages 1-19, January.
    14. Xiaohong Yu & Bin Liu & Yongzeng Lai, 2024. "Monthly Pork Price Prediction Applying Projection Pursuit Regression: Modeling, Empirical Research, Comparison, and Sustainability Implications," Sustainability, MDPI, vol. 16(4), pages 1-26, February.

    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.