The sustainable development of the hog industry has significant implications for agricultural development, farmers’ income, and the daily lives of residents. Precise hog supply forecasts are essential for both government to ensure food security and industry stakeholders to make informed decisions. This study proposes an integrated framework for hog supply forecast. Granger causality analysis is utilized to simultaneously investigate the causal relationships among piglet, breeding sow, and hog supply, as well as to ascertain the uncertain time lags associated with these variables, facilitating the extraction of valuable time lag features. The Seasonal and Trend decomposition using Loess (STL) is leveraged to decompose hog supply into three components, and Autoregressive Integrated Moving Average (ARIMA) and Xtreme Gradient Boosting (XGBoost) are utilized to forecast the trends, i.e., seasonality and residuals, respectively. Extensive experiments are conducted using monthly data from all the large-scale pig farms in Chongqing, China, covering the period from July 2019 to November 2023. The results demonstrate that the proposed model outperforms the other five baseline models with more than 90% reduction in Mean Squared Logarithm (MSL) loss. The inclusion of the piglet feature can enhance the accuracy of hog supply forecasts by 42.1% MSL loss reduction. Additionally, the findings reveal statistical time lag periods of 4–6 months for piglet and 11–13 months for breeding sow, with significance levels of 99%. Finally, policy recommendations are proposed to promote the sustainability of the pig industry, thereby driving the sustainable development of both upstream and downstream sectors of the swine industry and ensuring food security.
The swine industry is vital to economic stability and household welfare in China and worldwide but remains highly vulnerable to price volatility driven by multiple factors. Capturing the underlying mechanisms of hog price formation is particularly challenging, as conventional models often fail to represent its nonlinear structures and complex multivariate causal dependencies. This study proposes a Deep Granger Causality Inference (DGCI) model that integrates deep learning with causal inference to identify the key driving factors of hog price dynamics. The DGCI model contains a Feature Reconstruction Module (FRM) and a Granger Causality Module (GCM). The FRM integrates a Variational Autoencoder (VAE) with a Transformer to capture latent temporal representations of multivariate variables. Meanwhile, the GCM quantifies nonlinear Granger causality strength by systematically excluding features to measure their causal impact on hog price. Furthermore, this study proposes the Causal Feature Importance (CFI) metric, which jointly evaluates reconstruction fidelity and causal strength to identify key determinants. To evaluate the model performance, this study utilizes a real-world hog dataset from China. The results demonstrate considerable gains, with DGCI decreasing MSE by 17.59% to 39.22% and MSPE by 32.35% to 54.90% relative to baseline models. The DGCI model highlights pork price, piglet cost, and slaughter volume as the primary determinants of hog price, with CFI values of 1.5216, 1.4451, and 1.4266, respectively. By advancing understanding of the causal drivers of price volatility, this study contributes to informed decision-making, enhanced food security, and the sustainable development of the swine industry. Moreover, as a generalizable methodology, the proposed framework can be broadly applied to analyze the influencing factors of other agricultural and livestock products.