DOI QR코드

DOI QR Code

The Prediction of Cryptocurrency Prices Using eXplainable Artificial Intelligence based on Deep Learning

설명 가능한 인공지능과 CNN을 활용한 암호화폐 가격 등락 예측모형

  • Taeho Hong (College of Business Administration, Pusan National University) ;
  • Jonggwan Won (Product Development Department, Korea Credit Bureau) ;
  • Eunmi Kim (Institute of Management Research, Pusan National University) ;
  • Minsu Kim (College of Business Administration, Pusan National University)
  • Received : 2023.03.24
  • Accepted : 2023.05.29
  • Published : 2023.06.30

Abstract

Bitcoin is a blockchain technology-based digital currency that has been recognized as a representative cryptocurrency and a financial investment asset. Due to its highly volatile nature, Bitcoin has gained a lot of attention from investors and the public. Based on this popularity, numerous studies have been conducted on price and trend prediction using machine learning and deep learning. This study employed LSTM (Long Short Term Memory) and CNN (Convolutional Neural Networks), which have shown potential for predictive performance in the finance domain, to enhance the classification accuracy in Bitcoin price trend prediction. XAI(eXplainable Artificial Intelligence) techniques were applied to the predictive model to enhance its explainability and interpretability by providing a comprehensive explanation of the model. In the empirical experiment, CNN was applied to technical indicators and Google trend data to build a Bitcoin price trend prediction model, and the CNN model using both technical indicators and Google trend data clearly outperformed the other models using neural networks, SVM, and LSTM. Then SHAP(Shapley Additive exPlanations) was applied to the predictive model to obtain explanations about the output values. Important prediction drivers in input variables were extracted through global interpretation, and the interpretation of the predictive model's decision process for each instance was suggested through local interpretation. The results show that our proposed research framework demonstrates both improved classification accuracy and explainability by using CNN, Google trend data, and SHAP.

블록체인 기술이 적용되어 있는 암호화폐는 높은 가격 변동성을 가지며 투자자 및 일반 대중으로부터 큰 관심을 받아왔다. 이러한 관심을 바탕으로 암호화폐를 비롯한 투자상품의 미래가치를 예측하기 위한 연구가 이루어지고 있으나 예측모형에 대한 설명력 및 해석 가능성이 낮아 실무에서 활용하기 어렵다는 비판을 받아왔다. 본 연구에서는 암호화폐 가격 예측모형의 성과를 향상시키기 위해 금융투자상품의 가치평가에 활용되는 기술적 지표들과 함께 투자자의 사회적 관심도를 반영할 수 있는 구글 키워드 검색량 데이터를 사용하고 설명 가능한 인공지능을 적용하여 모형에 대한 해석을 제공하고자 한다. 최근 금융 시계열 분야에서 예측성과의 우수성을 인정받고 있는 LSTM(Long Short Term Memory)과 CNN(Convolutional Neural Networks)을 활용하고, 'bitcoin'을 검색어로 하는 구글 검색량 데이터를 적용해 일주일 후의 가격 등락 예측모형을 구축하였다. LSTM과 CNN을 활용해 구축한 모형들이 높은 예측성능을 보였으며 구글 검색량을 반영한 모형에서 더 높은 예측성과를 확인할 수 있었다. 딥러닝 모형의 해석 가능성 및 설명력을 위해 XAI의 SHAP 기법을 적용한 결과, 구글 검색량과 함께 과매수, 과매도 정도를 파악할 수 있는 지표들이 모형의 의사결정에 가장 큰 영향들을 미치고 있음을 파악할 수 있었다. 본 연구는 암호화폐 가격 등락 예측에 있어 전통적으로 시계열 예측에 우수한 성과를 인정받고 있는 LSTM뿐만 아니라 이미지 분류에서 높은 예측성과를 보이는 딥러닝 기법인 CNN 또한 우수한 예측성능을 보일 수 있음을 확인하였으며, XAI를 통해 예측모형에 대한 해석을 제공하고, 대중의 심리를 반영하는 정보 중 하나인 구글 검색량을 활용해 예측성과를 향상시킬 수 있다는 것을 확인했다는 점에서 의의가 있다.

Keywords

Acknowledgement

2022년 대한민국 교육부와 한국연구재단의 지원을 받아 수행된 연구임(NRF-2022S1A5A2A01049880)

References

  1. 양영식, 맹수석. (2017). 로보어드바이저 거래와 금융소비자 보호 방안. 금융소비자연구, 7(1), 39-71.
  2. 양준열. (2021). Attention based GRU 극점 예측 알고리즘을 통한 주가 방향성 예측 (Doctoral dissertation, 서울대학교 대학원).
  3. 원종관, 홍태호, 배경일. (2021). 신용 데이터의 이미지 변환을 활용한 합성곱 신경망과 설명 가능한 인공지능(XAI)을 이용한 개인신용 평가. 정보시스템연구, 30(4), 203-226.
  4. 이근영. (2016). 국내외 로보어드바이저 (RoboAdvisor) 동향 및 현황 분석. 전자금융과 금융보안, 6.
  5. 이모세, 안현철. (2018). 효과적인 입력변수 패턴 학습을 위한 시계열 그래프 기반 합성곱 신경망 모형: 주식시장 예측에의 응용. 지능정보연구, 24(1), 167-181. https://doi.org/10.13088/JIIS.2018.24.1.167
  6. 이재응, 한지형. (2021). 설명 가능한 KOSPI 증감 예측 딥러닝 모델을 위한 Layer-wise Relevance Propagation (LRP) 기반 기술적 지표 및 거시 경제 지표 영향 분석. 정보과학회논문지, 48(12), 1289-1297.
  7. 이재준, 이유린, 임도현, 안현철. (2021). XGBoost 와 SHAP 기법을 활용한 근로자 이직 예측에 관한 연구. 정보시스템연구, 30(4), 21-42.
  8. 이준식, 김건우, 박도형. (2018). 비트코인 가격 변화에 관한 실증분석: 소비자, 산업, 그리고 거시변수를 중심으로. 지능정보연구, 24(2), 195-220. https://doi.org/10.13088/JIIS.2018.24.2.195
  9. 장성일, 김정연. (2017). 비트코인의 자산성격에 관한 연구. 한국전자거래학회지, 22(4), 117-128. https://doi.org/10.7838/JSEBS.2017.22.4.117
  10. 정기호, 하성호. (2020). 인터넷 검색을 통한 암호화폐 수익률 및 변동성에 대한 인과검정: 적률인과 접근. 정보시스템연구, 29(1), 289-301.
  11. 조유정, 손권상, 권오병. (2021). 인공지능의 사회적 수용도에 따른 키워드 검색량 기반 주가예측 모형 비교연구. 지능정보연구, 27(1), 103-128. https://doi.org/10.13088/JIIS.2021.27.1.103
  12. 천예은, 김세빈, 이자윤, 우지환. (2021). 설명 가능한 AI 기술을 활용한 신용평가 모형에 대한 연구. 한국데이터정보과학회지, 32(2), 283-295.
  13. 하현수, 하경모. (2019). 인공 신경망과 웨이블릿 변환을 이용한 주가 지수 예측. 정보과학회 논문지, 46(12), 1249-1261.
  14. Abraham, J., Higdon, D., Nelson, J., & Ibarra, J. (2018). Cryptocurrency price prediction using tweet volumes and sentiment analysis. SMU Data Science Review, 1(3), 1.
  15. Adadi, A., & Berrada, M. (2018). Peeking inside the black-box: a survey on explainable artificial intelligence (XAI). IEEE access, 6, 52138-52160. https://doi.org/10.1109/ACCESS.2018.2870052
  16. Alonso-Monsalve, S., Suarez-Cetrulo, A. L., Cervantes, A., & Quintana, D. (2020). Convolution on neural networks for high-frequency trend prediction of cryptocurrency exchange rates using technical indicators. Expert Systems with Applications, 149, 113250.
  17. Antwarg, L., Miller, R. M., Shapira, B., & Rokach, L. (2021). Explaining anomalies detected by autoencoders using Shapley Additive Explanations. Expert Systems with Applications, 186, 115736.
  18. Aras, S. (2021). Stacking hybrid GARCH models for forecasting Bitcoin volatility. Expert Systems with Applications, 174, 114747.
  19. Ayoub, J., Yang, X. J., & Zhou, F. (2021). Combat COVID-19 infodemic using explainable natural language processing models. Information Processing & Management, 58(4), 102569.
  20. Azzone, M., Barucci, E., Moncayo, G. G., & Marazzina, D. (2022). A machine learning model for lapse prediction in life insurance contracts. Expert Systems with Applications, 191, 116261.
  21. Bach, S., Binder, A., Montavon, G., Klauschen, F., Muller, K. R., & Samek, W. (2015). On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation. PloS one, 10(7), e0130140.
  22. Chen, Z., Li, C., & Sun, W. (2020). Bitcoin price prediction using machine learning: An approach to sample dimension engineering. Journal of Computational and Applied Mathematics, 365, 112395.
  23. Coussement, K., & Benoit, D. F. (2021). Interpretable data science for decision making. Decision Support Systems, 150, 113664.
  24. Coutts, J. A., & Cheung, K. C. (2000). Trading rules and stock returns: some preliminary short run evidence from the Hang Seng 1985-1997. Applied Financial Economics, 10(6), 579-586. https://doi.org/10.1080/096031000437935
  25. Craja, P., Kim, A., & Lessmann, S. (2020). Deep learning for detecting financial statement fraud. Decision Support Systems, 139, 113421.
  26. Dowling, M. (2022). Is non-fungible token pricing driven by cryptocurrencies?. Finance Research Letters, 44, 102097.
  27. Ghobadi, M. (2014). Profitability of technical analysis indicators to earn abnormal returns in international exchange markets. Journal of Economics Finance and Accounting, 1(4).
  28. Ghosh, P., Neufeld, A., & Sahoo, J. K. (2021). Forecasting directional movements of stock prices for intraday trading using LSTM and random forests. Finance Research Letters, 46, 102280.
  29. Giudici, P., & Raffinetti, E. (2021). Shapley-Lorenz eXplainable artificial intelligence. Expert Systems with Applications, 167, 114104.
  30. Guo, H., Zhang, D., Liu, S., Wang, L., & Ding, Y. (2021). Bitcoin price forecasting: A perspective of underlying blockchain transactions. Decision Support Systems, 151, 113650.
  31. Hon, M. T., & Tonks, I. (2003). Momentum in the UK stock market. Journal of Multinational Financial Management, 13(1), 43-70.
  32. Hosaka, T. (2019). Bankruptcy prediction using imaged financial ratios and convolutional neural networks. Expert systems with applications, 117, 287-299. https://doi.org/10.1016/j.eswa.2018.09.039
  33. Jang, S. I., & Kim, J. Y. (2017). A Study on The Asset Characterization of Bitcoin. The Journal of Society for e-Business Studies, 22(4), 117-128.
  34. Karalevicius, V., Degrande, N., & De Weerdt, J. (2018). Using sentiment analysis to predict interday Bitcoin price movements. The Journal of Risk Finance, 19(1), 56-75. https://doi.org/10.1108/JRF-06-2017-0092
  35. Kim, A. R., & Yang, H. K. (2021). A Study on the Perceived Value and the Intention to Use of the Robo-advisor: Moderating Effects of Innovativeness and Resistance to Innovation. Financial Planning Review, 14(2), 55-88. https://doi.org/10.36029/FPR.2021.05.14.2.55
  36. Kim, Y., & Enke, D. (2016). Developing a rule change trading system for the futures market using rough set analysis. Expert Systems with Applications, 59, 165-173. https://doi.org/10.1016/j.eswa.2016.04.031
  37. Kristoufek, L. (2013). BitCoin meets Google Trends and Wikipedia: Quantifying the relationship between phenomena of the Internet era. Scientific reports, 3(1), 1-7. https://doi.org/10.1038/srep03415
  38. Li, X., & Wang, C. A. (2017). The technology and economic determinants of cryptocurrency exchange rates: The case of Bitcoin. Decision support systems, 95, 49-60. https://doi.org/10.1016/j.dss.2016.12.001
  39. Lin, M., Chen, Q., & Yan, S. (2013). Network in network. arXiv preprint arXiv:1312.4400.
  40. Lundberg, S. M., Erion, G. G., & Lee, S. I. (2018). Consistent individualized feature attribution for tree ensembles. arXiv preprint arXiv:1802.03888.
  41. Mittal, A., Dhiman, V., Singh, A., & Prakash, C. (2019, August). Short-term bitcoin price fluctuation prediction using social media and web search data. In 2019 Twelfth International Conference on Contemporary Computing (IC3) (pp. 1-6). IEEE.
  42. Moghar, A., & Hamiche, M. (2020). Stock market prediction using LSTM recurrent neural network. Procedia Computer Science, 170, 1168-1173. https://doi.org/10.1016/j.procs.2020.03.049
  43. Nakamoto, S. (2008). Bitcoin: A peer-to-peer electronic cash system. Decentralized business review, 21260.
  44. Nakano, M., & Takahashi, A. (2020). A new investment method with AutoEncoder: Applications to crypto currencies. Expert Systems with Applications, 162, 113730.
  45. Ortu, M., Uras, N., Conversano, C., Bartolucci, S., & Destefanis, G. (2022). On technical trading and social media indicators for cryptocurrency price classification through deep learning. Expert Systems with Applications, 198, 116804.
  46. Pal, D., & Mitra, S. K. (2019). Hedging bitcoin with other financial assets. Finance Research Letters, 30, 30-36.
  47. Sarkodie, S. A., Ahmed, M. Y., & Owusu, P. A. (2022). COVID-19 pandemic improves market signals of cryptocurrencies-evidence from Bitcoin, Bitcoin Cash, Ethereum, and Litecoin. Finance Research Letters, 44, 102049.
  48. Schlatt, V., Guggenberger, T., Schmid, J., & Urbach, N. (2022). Attacking the trust machine: Developing an information systems research agenda for blockchain cybersecurity. International Journal of Information Management, 102470.
  49. Shahzad, S. J. H., Bouri, E., Rehman, M. U., & Roubaud, D. (2022). The hedge asset for BRICS stock markets: Bitcoin, gold or VIX. The World Economy, 45(1), 292-316.
  50. Su, C. W., Qin, M., Tao, R., & Umar, M. (2020). Financial implications of fourth industrial revolution: Can bitcoin improve prospects of energy investment?. Technological Forecasting and Social Change, 158, 120178.
  51. Urquhart, A. (2018). What causes the attention of Bitcoin?. Economics Letters, 166, 40-44 https://doi.org/10.1016/j.econlet.2018.02.017
  52. Wang, Z., Jiang, C., & Zhao, H. (2021). Know Where to Invest: Platform Risk Evaluation in Online Lending. Information Systems Research, 33(3), 765-783. https://doi.org/10.1287/isre.2021.1083
  53. White, R., Marinakis, Y., Islam, N., & Walsh, S. (2020). Is Bitcoin a currency, a technology-based product, or something else?. Technological Forecasting and Social Change, 151, 119877.
  54. Yang, R., Yu, L., Zhao, Y., Yu, H., Xu, G., Wu, Y., & Liu, Z. (2020). Big data analytics for financial Market volatility forecast based on support vector machine. International Journal of Information Management, 50, 452-462. https://doi.org/10.1016/j.ijinfomgt.2019.05.027
  55. Zhang, Z., Dai, H. N., Zhou, J., Mondal, S. K., Garcia, M. M., & Wang, H. (2021). Forecasting cryptocurrency price using convolutional neural networks with weighted and attentive memory channels. Expert Systems with Applications, 183, 115378.
  56. Zinovyeva, E., Hardle, W. K., & Lessmann, S. (2020). Antisocial online behavior detection using deep learning. Decision Support Systems, 138, 113362.