IDEAS home Printed from https://ideas.repec.org/p/bis/biswps/1291.html
   My bibliography  Save this paper

Harnessing artificial intelligence for monitoring financial markets

Author

Listed:
  • Matteo Aquilina
  • Douglas Kiarelly Godoy de Araujo
  • Gaston Gelos
  • Taejin Park
  • Fernando Perez-Cruz

Abstract

Predicting financial market stress has long proven to be a largely elusive goal. Advances in artificial intelligence and machine learning offer new possibilities to tackle this problem, given their ability to handle large datasets and unearth hidden nonlinear patterns. In this paper, we develop a new approach based on a combination of a recurrent neural network (RNN) and a large language model. Focusing on deviations from triangular arbitrage parity (TAP) in the Euro-Yen currency pair, our RNN produces interpretable daily forecasts of market dysfunction 60 business days ahead. To address the "black box" limitations of RNNs, our model assigns data-driven, time-varying weights to the input variables, making its decision process transparent. These weights serve a dual purpose. First, their evolution in and of itself provides early signals of latent changes in market dynamics. Second, when the network forecasts a higher probability of market dysfunction, these variable-specific weights help identify relevant market variables that we use to prompt an LLM to search for relevant information about potential market stress drivers.

Suggested Citation

  • Matteo Aquilina & Douglas Kiarelly Godoy de Araujo & Gaston Gelos & Taejin Park & Fernando Perez-Cruz, 2025. "Harnessing artificial intelligence for monitoring financial markets," BIS Working Papers 1291, Bank for International Settlements.
  • Handle: RePEc:bis:biswps:1291
    as

    Download full text from publisher

    File URL: https://www.bis.org/publ/work1291.pdf
    File Function: Full PDF document
    Download Restriction: no

    File URL: https://www.bis.org/publ/work1291.htm
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Domenico Giannone & Michele Lenza & Giorgio E. Primiceri, 2021. "Economic Predictions With Big Data: The Illusion of Sparsity," Econometrica, Econometric Society, vol. 89(5), pages 2409-2437, September.
    2. Ryan Zalla, 2017. "Economic Policy Uncertainty in Ireland," Atlantic Economic Journal, Springer;International Atlantic Economic Society, vol. 45(2), pages 269-271, June.
    3. Paolo Pasquariello, 2014. "Financial Market Dislocations," The Review of Financial Studies, Society for Financial Studies, vol. 27(6), pages 1868-1914.
    4. Smyl, Slawek, 2020. "A hybrid method of exponential smoothing and recurrent neural networks for time series forecasting," International Journal of Forecasting, Elsevier, vol. 36(1), pages 75-85.
    5. Barbara Rossi, 2013. "Exchange Rate Predictability," Journal of Economic Literature, American Economic Association, vol. 51(4), pages 1063-1119, December.
    6. Inaki Aldasoro & Peter Hördahl & Andreas Schrimpf & Sonya Zhu, 2025. "Predicting financial market stress with machine learning," BIS Working Papers 1250, Bank for International Settlements.
    7. Acharya, Viral V. & Pedersen, Lasse Heje, 2005. "Asset pricing with liquidity risk," Journal of Financial Economics, Elsevier, vol. 77(2), pages 375-410, August.
    8. Anna Almosova & Niek Andresen, 2023. "Nonlinear inflation forecasting with recurrent neural networks," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(2), pages 240-259, March.
    9. Zhiguo He & Arvind Krishnamurthy, 2013. "Intermediary Asset Pricing," American Economic Review, American Economic Association, vol. 103(2), pages 732-770, April.
    10. Nihad Aliyev & Matteo Aquilina & Khaladdin Rzayev & Sonya Zhu, 2024. "Through stormy seas: how fragile is liquidity across asset classes and time?," BIS Working Papers 1229, Bank for International Settlements.
    11. Mathias Drehmann & Vladyslav Sushko, 2022. "The global foreign exchange market in a higher-volatility environment," BIS Quarterly Review, Bank for International Settlements, December.
    12. Alessi, Lucia & Detken, Carsten, 2011. "Quasi real time early warning indicators for costly asset price boom/bust cycles: A role for global liquidity," European Journal of Political Economy, Elsevier, vol. 27(3), pages 520-533, September.
    13. Markus K. Brunnermeier & Lasse Heje Pedersen, 2009. "Market Liquidity and Funding Liquidity," The Review of Financial Studies, Society for Financial Studies, vol. 22(6), pages 2201-2238, June.
    14. Hamilton, James D, 1989. "A New Approach to the Economic Analysis of Nonstationary Time Series and the Business Cycle," Econometrica, Econometric Society, vol. 57(2), pages 357-384, March.
    15. Bryan Kelly & Dacheng Xiu, 2023. "Financial Machine Learning," Foundations and Trends(R) in Finance, now publishers, vol. 13(3-4), pages 205-363, November.
    16. Jean Tirole, 2011. "Illiquidity and All Its Friends," Journal of Economic Literature, American Economic Association, vol. 49(2), pages 287-325, June.
    17. Turan G Bali & Heiner Beckmeyer & Mathis Mörke & Florian Weigert & Stefano Giglio, 2023. "Option Return Predictability with Machine Learning and Big Data," The Review of Financial Studies, Society for Financial Studies, vol. 36(9), pages 3548-3602.
    18. Johannes Hauptmann & Anja Hoppenkamps & Aleksey Min & Franz Ramsauer & Rudi Zagst, 2014. "Forecasting market turbulence using regime-switching models," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 28(2), pages 139-164, May.
    19. Shihao Gu & Bryan Kelly & Dacheng Xiu, 2020. "Empirical Asset Pricing via Machine Learning," The Review of Financial Studies, Society for Financial Studies, vol. 33(5), pages 2223-2273.
    20. Han Ding & Yinheng Li & Junhao Wang & Hang Chen, 2024. "Large Language Model Agent in Financial Trading: A Survey," Papers 2408.06361, arXiv.org.
    21. Bryan T. Kelly & Dacheng Xiu, 2023. "Financial Machine Learning," NBER Working Papers 31502, National Bureau of Economic Research, Inc.
    22. Thibaut Duprey & Benjamin Klaus, 2017. "How to Predict Financial Stress? An Assessment of Markov Switching Models," Staff Working Papers 17-32, Bank of Canada.
    23. Douglas Kiarelly Godoy de Araujo, 2023. "gingado: a machine learning library focused on economics and finance," IFC Bulletins chapters, in: Bank for International Settlements (ed.), Data science in central banking: applications and tools, volume 59, Bank for International Settlements.
    24. Moritz Schularick & Alan M. Taylor, 2012. "Credit Booms Gone Bust: Monetary Policy, Leverage Cycles, and Financial Crises, 1870-2008," American Economic Review, American Economic Association, vol. 102(2), pages 1029-1061, April.
    25. Bryan Kelly & Semyon Malamud & Kangying Zhou, 2024. "The Virtue of Complexity in Return Prediction," Journal of Finance, American Finance Association, vol. 79(1), pages 459-503, February.
    26. Ranaldo, Angelo & de Magistris, Paolo Santucci, 2022. "Liquidity in the global currency market," Journal of Financial Economics, Elsevier, vol. 146(3), pages 859-883.
    27. Nelson, Charles R. & Plosser, Charles I., 1982. "Trends and random walks in macroeconmic time series : Some evidence and implications," Journal of Monetary Economics, Elsevier, vol. 10(2), pages 139-162.
    28. Shihao Gu & Bryan Kelly & Dacheng Xiu, 2020. "Empirical Asset Pricing via Machine Learning," Review of Finance, European Finance Association, vol. 33(5), pages 2223-2273.
    29. Milena Vuletić & Felix Prenzel & Mihai Cucuringu, 2024. "Fin-GAN: forecasting and classifying financial time series via generative adversarial networks," Quantitative Finance, Taylor & Francis Journals, vol. 24(2), pages 175-199, January.
    30. Diebold, Francis X & Mariano, Roberto S, 2002. "Comparing Predictive Accuracy," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 134-144, January.
    31. Luis Garcia & Ulf Lewrick & Taja Sečnik, 2021. "Is window dressing by banks systemically important?," BIS Working Papers 960, Bank for International Settlements.
    32. Justin Sirignano & Rama Cont, 2019. "Universal features of price formation in financial markets: perspectives from deep learning," Quantitative Finance, Taylor & Francis Journals, vol. 19(9), pages 1449-1459, September.
    33. Chuliá, Helena & Koser, Christoph & Uribe, Jorge M., 2021. "Analyzing the Nonlinear Pricing of Liquidity Risk according to the Market State," Finance Research Letters, Elsevier, vol. 38(C).
    34. Gradojevic, Nikola & Erdemlioglu, Deniz & Gençay, Ramazan, 2020. "A new wavelet-based ultra-high-frequency analysis of triangular currency arbitrage," Economic Modelling, Elsevier, vol. 85(C), pages 57-73.
    35. Felix Ward, 2017. "Spotting the Danger Zone: Forecasting Financial Crises With Classification Tree Ensembles and Many Predictors," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 32(2), pages 359-378, March.
    36. Giglio, Stefano & Kelly, Bryan & Pruitt, Seth, 2016. "Systemic risk and the macroeconomy: An empirical evaluation," Journal of Financial Economics, Elsevier, vol. 119(3), pages 457-471.
    37. Hui Zou & Trevor Hastie, 2005. "Addendum: Regularization and variable selection via the elastic net," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 67(5), pages 768-768, November.
    38. Taejin Park, 2024. "Enhancing Anomaly Detection in Financial Markets with an LLM-based Multi-Agent Framework," Papers 2403.19735, arXiv.org.
    39. Beutel, Johannes & List, Sophia & von Schweinitz, Gregor, 2019. "Does machine learning help us predict banking crises?," Journal of Financial Stability, Elsevier, vol. 45(C).
    40. Hui Zou & Trevor Hastie, 2005. "Regularization and variable selection via the elastic net," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 67(2), pages 301-320, April.
    41. Dev Asnani & Anthony M. Diercks, 2024. "The Treasury Tantrum of 2023," FEDS Notes 2024-09-03-2, Board of Governors of the Federal Reserve System (U.S.).
    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. Petropoulos, Fotios & Apiletti, Daniele & Assimakopoulos, Vassilios & Babai, Mohamed Zied & Barrow, Devon K. & Ben Taieb, Souhaib & Bergmeir, Christoph & Bessa, Ricardo J. & Bijak, Jakub & Boylan, Joh, 2022. "Forecasting: theory and practice," International Journal of Forecasting, Elsevier, vol. 38(3), pages 705-871.
      • Fotios Petropoulos & Daniele Apiletti & Vassilios Assimakopoulos & Mohamed Zied Babai & Devon K. Barrow & Souhaib Ben Taieb & Christoph Bergmeir & Ricardo J. Bessa & Jakub Bijak & John E. Boylan & Jet, 2020. "Forecasting: theory and practice," Papers 2012.03854, arXiv.org, revised Jan 2022.
    2. Borup, Daniel & Christensen, Bent Jesper & Mühlbach, Nicolaj Søndergaard & Nielsen, Mikkel Slot, 2023. "Targeting predictors in random forest regression," International Journal of Forecasting, Elsevier, vol. 39(2), pages 841-868.
    3. Mekelburg, Erik & Strauss, Jack, 2024. "Pooling and winsorizing machine learning forecasts to predict stock returns with high-dimensional data," Journal of Empirical Finance, Elsevier, vol. 79(C).
    4. Wen, Conghua & Zhai, Jia & Wang, Yinuo & Cao, Yi, 2024. "Implied volatility is (almost) past-dependent: Linear vs non-linear models," International Review of Financial Analysis, Elsevier, vol. 95(PB).
    5. Xue Gong & Weiguo Zhang & Yuan Zhao & Xin Ye, 2023. "Forecasting stock volatility with a large set of predictors: A new forecast combination method," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(7), pages 1622-1647, November.
    6. Hauzenberger, Niko & Huber, Florian & Klieber, Karin & Marcellino, Massimiliano, 2025. "Bayesian neural networks for macroeconomic analysis," Journal of Econometrics, Elsevier, vol. 249(PC).
    7. Joseph, Andreas & Potjagailo, Galina & Chakraborty, Chiranjit & Kapetanios, George, 2024. "Forecasting UK inflation bottom up," International Journal of Forecasting, Elsevier, vol. 40(4), pages 1521-1538.
    8. Lee, Ji Hyung & Shi, Zhentao & Gao, Zhan, 2022. "On LASSO for predictive regression," Journal of Econometrics, Elsevier, vol. 229(2), pages 322-349.
    9. Zhang, Hongwei & Zhao, Xinyi & Gao, Wang & Niu, Zibo, 2023. "The role of higher moments in predicting China's oil futures volatility: Evidence from machine learning models," Journal of Commodity Markets, Elsevier, vol. 32(C).
    10. Ricardo P. Masini & Marcelo C. Medeiros & Eduardo F. Mendes, 2023. "Machine learning advances for time series forecasting," Journal of Economic Surveys, Wiley Blackwell, vol. 37(1), pages 76-111, February.
    11. Sun, Chuanping, 2024. "Factor correlation and the cross section of asset returns: A correlation-robust machine learning approach," Journal of Empirical Finance, Elsevier, vol. 77(C).
    12. Ilias Chronopoulos & Aristeidis Raftapostolos & George Kapetanios, 2024. "Forecasting Value-at-Risk Using Deep Neural Network Quantile Regression," Journal of Financial Econometrics, Oxford University Press, vol. 22(3), pages 636-669.
    13. Zhang, Yaojie & Wahab, M.I.M. & Wang, Yudong, 2023. "Forecasting crude oil market volatility using variable selection and common factor," International Journal of Forecasting, Elsevier, vol. 39(1), pages 486-502.
    14. Bo Yu & Dayong Zhang & Qiang Ji, 2025. "Forecasting portfolio variance: a new decomposition approach," Annals of Operations Research, Springer, vol. 348(1), pages 543-578, May.
    15. Li, Zhao-Chen & Xie, Chi & Wang, Gang-Jin & Zhu, You & Zeng, Zhi-Jian & Gong, Jue, 2024. "Forecasting global stock market volatilities: A shrinkage heterogeneous autoregressive (HAR) model with a large cross-market predictor set," International Review of Economics & Finance, Elsevier, vol. 93(PB), pages 673-711.
    16. Constant Aka & Marie‐Hélène Gagnon & Gabriel J. Power, 2025. "Commodity Option Return Predictability," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 45(10), pages 1544-1578, October.
    17. Ahn, Jungkyu & Ahn, Yongkil, 2023. "What drives the TIPS–Treasury bond mispricing?," Journal of Empirical Finance, Elsevier, vol. 74(C).
    18. Zhang, Hongwei & Wang, Wentao & Niu, Zibo, 2024. "Geopolitical risks and crude oil futures volatility: Evidence from machine learning," Resources Policy, Elsevier, vol. 98(C).
    19. Bluwstein, Kristina & Buckmann, Marcus & Joseph, Andreas & Kapadia, Sujit & Şimşek, Özgür, 2023. "Credit growth, the yield curve and financial crisis prediction: Evidence from a machine learning approach," Journal of International Economics, Elsevier, vol. 145(C).
    20. Georg Keilbar & Weining Wang, 2022. "Modelling systemic risk using neural network quantile regression," Empirical Economics, Springer, vol. 62(1), pages 93-118, January.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    JEL classification:

    • G14 - Financial Economics - - General Financial Markets - - - Information and Market Efficiency; Event Studies; Insider Trading
    • G15 - Financial Economics - - General Financial Markets - - - International Financial Markets
    • G17 - Financial Economics - - General Financial Markets - - - Financial Forecasting and Simulation

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:bis:biswps:1291. 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: Martin Fessler (email available below). General contact details of provider: https://edirc.repec.org/data/bisssch.html .

    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.