IDEAS home Printed from https://ideas.repec.org/a/wly/jforec/v45y2026i3p1020-1035.html

DKformer: A Novel Transformer‐Based Model for Interval‐Valued Crude Oil Price Forecasting

Author

Listed:
  • Chuanmiao Yan
  • Xinyu Zhang
  • Ruhong Cui
  • Yuying Sun
  • Shouyang Wang

Abstract

Most deep learning techniques are designed for point‐valued data, while interval‐valued data contain richer information over the same time period, especially during extreme events. To leverage this, we propose DKformer, a novel transformer architecture that models interval data as an inseparable set using the DK loss function. By combining transformers and DK loss, DKformer learns complex nonstationary and nonlinear patterns in interval data while accounting for uncertainties and dependencies. Compared to existing interval and point‐based benchmark models, DKformer significantly enhances crude oil price forecast accuracy. Remarkably, it demonstrates robust out‐of‐sample prediction performance across various forecast horizons. Furthermore, the effectiveness of DKformer is preserved even under extreme conditions, including Black Swan events. Our work highlights the potential for DKformer to enhance decision‐making in energy and finance, where robustness to uncertainty and the ability to handle extreme events hold paramount importance.

Suggested Citation

  • Chuanmiao Yan & Xinyu Zhang & Ruhong Cui & Yuying Sun & Shouyang Wang, 2026. "DKformer: A Novel Transformer‐Based Model for Interval‐Valued Crude Oil Price Forecasting," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 45(3), pages 1020-1035, April.
  • Handle: RePEc:wly:jforec:v:45:y:2026:i:3:p:1020-1035
    DOI: 10.1002/for.70070
    as

    Download full text from publisher

    File URL: https://doi.org/10.1002/for.70070
    Download Restriction: no

    File URL: https://libkey.io/10.1002/for.70070?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. Haowen Bao & Yongmiao Hong & Yuying Sun & Shouyang Wang, 2025. "A Novel Hybrid Nonlinear Forecasting Model for Interval‐Valued Gas Prices," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 44(5), pages 1826-1848, August.
    2. Wei Yang & Ai Han & Yongmiao Hong & Shouyang Wang, 2016. "Analysis of crisis impact on crude oil prices: a new approach with interval time series modelling," Quantitative Finance, Taylor & Francis Journals, vol. 16(12), pages 1917-1928, December.
    3. Shang, Yuping & Ma, Xiaowei & Bhatia, Meena & Alofaysan, Hind & Walsh, Steven T., 2024. "Unveiling the enigma: Exploring how uncertain crude oil prices shape investment expenditure and efficiency in Chinese enterprises," Energy Economics, Elsevier, vol. 132(C).
    4. Jichang Dong & Wei Dai & Ling Tang & Lean Yu, 2019. "Why do EMD‐based methods improve prediction? A multiscale complexity perspective," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 38(7), pages 714-731, November.
    5. Nicholas Apergis, 2023. "Forecasting energy prices: Quantile‐based risk models," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(1), pages 17-33, January.
    6. Kenneth J. Singleton, 2014. "Investor Flows and the 2008 Boom/Bust in Oil Prices," Management Science, INFORMS, vol. 60(2), pages 300-318, February.
    7. Sun, Yuying & Han, Ai & Hong, Yongmiao & Wang, Shouyang, 2018. "Threshold autoregressive models for interval-valued time series data," Journal of Econometrics, Elsevier, vol. 206(2), pages 414-446.
    8. Sanders, Dwight R. & Boris, Keith & Manfredo, Mark, 2004. "Hedgers, funds, and small speculators in the energy futures markets: an analysis of the CFTC's Commitments of Traders reports," Energy Economics, Elsevier, vol. 26(3), pages 425-445, May.
    9. Zheng, Li & Sun, Yuying & Wang, Shouyang, 2024. "A novel interval-based hybrid framework for crude oil price forecasting and trading," Energy Economics, Elsevier, vol. 130(C).
    10. Degiannakis, Stavros & Filis, George & Floros, Christos, 2013. "Oil and stock returns: Evidence from European industrial sector indices in a time-varying environment," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 26(C), pages 175-191.
    11. Frans A. De Roon & Theo E. Nijman & Chris Veld, 2000. "Hedging Pressure Effects in Futures Markets," Journal of Finance, American Finance Association, vol. 55(3), pages 1437-1456, June.
    12. Duc Khuong Nguyen & Thomas Walther, 2020. "Modeling and forecasting commodity market volatility with long‐term economic and financial variables," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 39(2), pages 126-142, March.
    13. Chai, Jian & Xing, Li-Min & Zhou, Xiao-Yang & Zhang, Zhe George & Li, Jie-Xun, 2018. "Forecasting the WTI crude oil price by a hybrid-refined method," Energy Economics, Elsevier, vol. 71(C), pages 114-127.
    14. Naser, Hanan, 2016. "Estimating and forecasting the real prices of crude oil: A data rich model using a dynamic model averaging (DMA) approach," Energy Economics, Elsevier, vol. 56(C), pages 75-87.
    15. repec:aen:journl:2009v30-02-a09 is not listed on IDEAS
    16. Liu, Fangying & Su, Chi Wei & Tao, Ran & Lobonţ, Oana-Ramona, 2024. "Does economic and climate policy uncertainty matter the oil market?," Resources Policy, Elsevier, vol. 95(C).
    17. Chen, Wang & Hamori, Shigeyuki & Kinkyo, Takuji, 2014. "Macroeconomic impacts of oil prices and underlying financial shocks," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 29(C), pages 1-12.
    18. Dabin Zhang & Qian Li & Amin W. Mugera & Liwen Ling, 2020. "A hybrid model considering cointegration for interval‐valued pork price forecasting in China," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 39(8), pages 1324-1341, December.
    19. Changyun Wang, 2003. "The behavior and performance of major types of futures traders," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 23(1), pages 1-31, January.
    20. Jiafu Xu & Xinyu Wu & Haibin Xie, 2025. "Crossproduct Effect and Volatility Forecasting," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 44(4), pages 1211-1234, July.
    21. Lutz Kilian, 2008. "Exogenous Oil Supply Shocks: How Big Are They and How Much Do They Matter for the U.S. Economy?," The Review of Economics and Statistics, MIT Press, vol. 90(2), pages 216-240, May.
    22. Gloria González-Rivera & Wei Lin, 2013. "Constrained Regression for Interval-Valued Data," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 31(4), pages 473-490, October.
    23. James D. Hamilton, 2009. "Understanding Crude Oil Prices," The Energy Journal, , vol. 30(2), pages 179-206, April.
    24. Zhang, Yaojie & Ma, Feng & Shi, Benshan & Huang, Dengshi, 2018. "Forecasting the prices of crude oil: An iterated combination approach," Energy Economics, Elsevier, vol. 70(C), pages 472-483.
    25. Lutz Kilian, 2009. "Not All Oil Price Shocks Are Alike: Disentangling Demand and Supply Shocks in the Crude Oil Market," American Economic Review, American Economic Association, vol. 99(3), pages 1053-1069, June.
    26. Luciana Juvenal & Ivan Petrella, 2015. "Speculation in the Oil Market," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 30(4), pages 621-649, June.
    27. Lanza, Alessandro & Manera, Matteo & Giovannini, Massimo, 2005. "Modeling and forecasting cointegrated relationships among heavy oil and product prices," Energy Economics, Elsevier, vol. 27(6), pages 831-848, November.
    28. Sardar, Naafey & Qureshi, Irfan, 2024. "Revisiting the relationship between oil supply news shocks and U.S. economic activity: Role of the zero lower bound," Energy Economics, Elsevier, vol. 132(C).
    29. Quanying Lu & Yuying Sun & Yongmiao Hong & Shouyang Wang, 2022. "Forecasting interval-valued crude oil prices using asymmetric interval models," Quantitative Finance, Taylor & Francis Journals, vol. 22(11), pages 2047-2061, November.
    30. Wang, Yudong & Liu, Li & Ma, Feng & Wu, Chongfeng, 2016. "What the investors need to know about forecasting oil futures return volatility," Energy Economics, Elsevier, vol. 57(C), pages 128-139.
    31. Lin, Sharon Xiaowen & Tamvakis, Michael, 2010. "OPEC announcements and their effects on crude oil prices," Energy Policy, Elsevier, vol. 38(2), pages 1010-1016, February.
    32. Sun, Shaolong & Sun, Yuying & Wang, Shouyang & Wei, Yunjie, 2018. "Interval decomposition ensemble approach for crude oil price forecasting," Energy Economics, Elsevier, vol. 76(C), pages 274-287.
    33. Degiannakis, Stavros & Filis, George & Floros, Christos, 2013. "Oil and stock price returns: Evidence from European industrial sector indices in a time-varying environment," MPRA Paper 80495, University Library of Munich, Germany.
    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. Lang, Korbinian & Auer, Benjamin R., 2020. "The economic and financial properties of crude oil: A review," The North American Journal of Economics and Finance, Elsevier, vol. 52(C).
    2. Haowen Bao & Yongmiao Hong & Yuying Sun & Shouyang Wang, 2025. "A Novel Hybrid Nonlinear Forecasting Model for Interval‐Valued Gas Prices," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 44(5), pages 1826-1848, August.
    3. Cheng, Zishu & Li, Mingchen & Sun, Yuying & Hong, Yongmiao & Wang, Shouyang, 2024. "Climate change and crude oil prices: An interval forecast model with interval-valued textual data," Energy Economics, Elsevier, vol. 134(C).
    4. Piao Wang & Shahid Hussain Gurmani & Zhifu Tao & Jinpei Liu & Huayou Chen, 2024. "Interval time series forecasting: A systematic literature review," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(2), pages 249-285, March.
    5. Haowen Bao & Yongmiao Hong & Yuying Sun & Shouyang Wang, 2024. "Sparse Interval-valued Time Series Modeling with Machine Learning," Papers 2411.09452, arXiv.org.
    6. Yang, Kun & Sun, Yuying & Hong, Yongmiao & Wang, Shouyang, 2024. "Forecasting interval carbon price through a multi-scale interval-valued decomposition ensemble approach," Energy Economics, Elsevier, vol. 139(C).
    7. Yan, Zichun & Tian, Fangzhu & Sun, Yuying & Wang, Shouyang, 2024. "A time-frequency-based interval decomposition ensemble method for forecasting gasoil prices under the trend of low-carbon development," Energy Economics, Elsevier, vol. 134(C).
    8. Sun Mingran & Sun Yuying, 2026. "Forecasting the Conditional Distribution of Interval‐Valued Crude Oil Prices Using a Diffusion‐Based Approach," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 45(2), pages 470-495, March.
    9. Angelidis, Timotheos & Degiannakis, Stavros & Filis, George, 2015. "US stock market regimes and oil price shocks," Global Finance Journal, Elsevier, vol. 28(C), pages 132-146.
    10. Boldanov, Rustam & Degiannakis, Stavros & Filis, George, 2016. "Time-varying correlation between oil and stock market volatilities: Evidence from oil-importing and oil-exporting countries," International Review of Financial Analysis, Elsevier, vol. 48(C), pages 209-220.
    11. Wei, Yanfeng & Guo, Xiaoying, 2017. "Oil price shocks and China's stock market," Energy, Elsevier, vol. 140(P1), pages 185-197.
    12. Smimou, K. & Abrokwah, M. & Drougas, A., 2025. "Corporate investment decisions and related commodities: International evidence from energy and mining industries," Energy Economics, Elsevier, vol. 149(C).
    13. Broadstock, David C. & Filis, George, 2014. "Oil price shocks and stock market returns: New evidence from the United States and China," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 33(C), pages 417-433.
    14. Gong, Xu & Chen, Liqiang & Lin, Boqiang, 2020. "Analyzing dynamic impacts of different oil shocks on oil price," Energy, Elsevier, vol. 198(C).
    15. Mishra, Shekhar & Mishra, Sibanjan, 2021. "Are Indian sectoral indices oil shock prone? An empirical evaluation," Resources Policy, Elsevier, vol. 70(C).
    16. Bosch, David & Smimou, K., 2022. "Traders’ motivation and hedging pressure in commodity futures markets," Research in International Business and Finance, Elsevier, vol. 59(C).
    17. repec:aen:journl:ej39-5-filis is not listed on IDEAS
    18. Ganepola, Chanaka N. & Zarei, Alireza & Tony-Okeke, Uchenna, 2025. "The other side of the coin: Speculation in bearish natural gas markets," Journal of Commodity Markets, Elsevier, vol. 40(C).
    19. Sakaki, Hamid, 2019. "Oil price shocks and the equity market: Evidence for the S&P 500 sectoral indices," Research in International Business and Finance, Elsevier, vol. 49(C), pages 137-155.
    20. Silvapulle, Param & Smyth, Russell & Zhang, Xibin & Fenech, Jean-Pierre, 2017. "Nonparametric panel data model for crude oil and stock market prices in net oil importing countries," Energy Economics, Elsevier, vol. 67(C), pages 255-267.
    21. Zheng, Li & Sun, Yuying & Wang, Shouyang, 2024. "A novel interval-based hybrid framework for crude oil price forecasting and trading," Energy Economics, Elsevier, vol. 130(C).

    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:wly:jforec:v:45:y:2026:i:3:p:1020-1035. 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: Wiley Content Delivery (email available below). General contact details of provider: http://www3.interscience.wiley.com/cgi-bin/jhome/2966 .

    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.