An attention-enhanced TimesNet time series model for predicting the commodity price

Commodity price prediction is a critical task in economic management, financial investment, and market regulation. Traditional prediction models, such as ARIMA and GARCH, often encounter limitations in capturing the complex nonlinear dynamics and time-dependent nature of price fluctuations. In this study, we present an enhanced TimesNet model that integrates self-attention mechanisms with two-dimensional time–frequency transformations. This combination improves the model’s ability to effectively capture both long-term trends and short-term cyclical fluctuations in commodity prices. The model was evaluated using data from a wide range of agricultural commodities, including potatoes, cucumbers, soybeans, corn, wheat, rapeseed, eggs, bananas, apples, oil, and watermelons. Experimental results demonstrate that the improved model significantly outperforms existing models. Specifically, with a sequence length of 512, the model achieves an average absolute error (MAE) of 0.129, compared to 0.134 for the original TimesNet model. These results confirm the enhanced model’s superior capacity for capturing long-term dependencies and cyclical fluctuations. The proposed TimesNet model, by combining self-attention and 2D time–frequency transformations, offers a robust, accurate, and computationally efficient solution for commodity price prediction, making it highly applicable to real-world agricultural markets.

Authors

Institutions

Publication Details

Journal
Alexandria Engineering Journal
Published
2025-09-23
DOI
https://doi.org/10.1016/j.aej.2025.09.018
Primary Topic
Time Series Analysis and Forecasting
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An attention-enhanced TimesNet time series model for predicting the commodity price

Xiaorong Cai
Alexandria Engineering Journal
Time Series Analysis and Forecasting
article

An attention-enhanced TimesNet time series model for predicting the commodity price

Xiaorong Cai
article en

Abstract

Commodity price prediction is a critical task in economic management, financial investment, and market regulation. Traditional prediction models, such as ARIMA and GARCH, often encounter limitations in capturing the complex nonlinear dynamics and time-dependent nature of price fluctuations. In this study, we present an enhanced TimesNet model that integrates self-attention mechanisms with two-dimensional time–frequency transformations. This combination improves the model’s ability to effectively capture both long-term trends and short-term cyclical fluctuations in commodity prices. The model was evaluated using data from a wide range of agricultural commodities, including potatoes, cucumbers, soybeans, corn, wheat, rapeseed, eggs, bananas, apples, oil, and watermelons. Experimental results demonstrate that the improved model significantly outperforms existing models. Specifically, with a sequence length of 512, the model achieves an average absolute error (MAE) of 0.129, compared to 0.134 for the original TimesNet model. These results confirm the enhanced model’s superior capacity for capturing long-term dependencies and cyclical fluctuations. The proposed TimesNet model, by combining self-attention and 2D time–frequency transformations, offers a robust, accurate, and computationally efficient solution for commodity price prediction, making it highly applicable to real-world agricultural markets.

Alexandria Engineering JournalVol. 130
Shandong Institute of Business and Technology (CN)
Openalex Percentile: Top 68%
Time Series Analysis and Forecasting
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.