{"title":"一种用于预测商品价格的注意力增强TimesNet时间序列模型","authors":"Xuesen Cai","doi":"10.1016/j.aej.2025.09.018","DOIUrl":null,"url":null,"abstract":"<div><div>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.</div></div>","PeriodicalId":7484,"journal":{"name":"alexandria engineering journal","volume":"130 ","pages":"Pages 447-458"},"PeriodicalIF":6.8000,"publicationDate":"2025-09-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"An attention-enhanced TimesNet time series model for predicting the commodity price\",\"authors\":\"Xuesen Cai\",\"doi\":\"10.1016/j.aej.2025.09.018\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>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.</div></div>\",\"PeriodicalId\":7484,\"journal\":{\"name\":\"alexandria engineering journal\",\"volume\":\"130 \",\"pages\":\"Pages 447-458\"},\"PeriodicalIF\":6.8000,\"publicationDate\":\"2025-09-21\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"alexandria engineering journal\",\"FirstCategoryId\":\"5\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S1110016825009822\",\"RegionNum\":2,\"RegionCategory\":\"工程技术\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"ENGINEERING, MULTIDISCIPLINARY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"alexandria engineering journal","FirstCategoryId":"5","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1110016825009822","RegionNum":2,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ENGINEERING, MULTIDISCIPLINARY","Score":null,"Total":0}
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.
期刊介绍:
Alexandria Engineering Journal is an international journal devoted to publishing high quality papers in the field of engineering and applied science. Alexandria Engineering Journal is cited in the Engineering Information Services (EIS) and the Chemical Abstracts (CA). The papers published in Alexandria Engineering Journal are grouped into five sections, according to the following classification:
• Mechanical, Production, Marine and Textile Engineering
• Electrical Engineering, Computer Science and Nuclear Engineering
• Civil and Architecture Engineering
• Chemical Engineering and Applied Sciences
• Environmental Engineering