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

**Authors:** Xiangjuan Liu, Yunlong Li, Fengtong Wang, Yujie Qin, Zhongyu Lyu

PMC · DOI: 10.1371/journal.pone.0324646 · 2025-06-27

## TL;DR

This paper introduces a new framework combining decomposition, reconstruction, and optimization to improve hog price predictions using advanced machine learning techniques.

## Contribution

The novel contribution is the integration of STL decomposition, PCA, and BWO-optimized BiLSTM for agricultural price forecasting.

## Key findings

- STL decomposition reduced average MAE by 22.6% compared to raw data modeling.
- The BWO-optimized BiLSTM model achieved an 83.6% cumulative MAE reduction after STL-PCA feature engineering.
- The hybrid model outperformed unoptimized BiLSTM by 40.7% in accuracy.

## 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.

## Full-text entities

- **Diseases:** STL (MESH:D016574), PCA (MESH:C566443), swine fever (MESH:D006691), BiLSTM (MESH:D000088562)
- **Chemicals:** BWO (-)
- **Species:** Delphinapterus leucas (beluga, species) [taxon 9749], Glycine max (soybean, species) [taxon 3847], Solanum tuberosum (potatoes, species) [taxon 4113], Gammacoronavirus (genus) [taxon 694013], Allium sativum (garlic, species) [taxon 4682], Sus scrofa (pig, species) [taxon 9823], Meleagris gallopavo (common turkey, species) [taxon 9103], Cetacea (cetaceans, infraorder) [taxon 9721]

## Figures

50 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12204532/full.md

---
Source: https://tomesphere.com/paper/PMC12204532