Research Article

US recession prediction using statistical and natural language processing methods

He Jiang1, Ruochen Wang2, Jiarui Zheng3,*, Yaohao Fan4, Qitong Liang5, Jiawei Tian6
1. University of Southern California
2. Queen’s University
3. University of Toronto
4. University of Melbourne
5. University of Washington Seattle
6. Simon Fraser University

* Corresponding author: [email protected]

Abstract

This study mainly predicts the recession in the United States. We build our model based on the data of more than ten recessions experienced by the United States since the mid-20th century. Our research can be divided into two parts, one part is a machine learning model constructed using econometrics theory, and the other part is a text analysis model based on natural language processing (NLP) techniques. We collected quarterly data from January 1, 1950, to September 1, 2020, to examine each historical recessionary period. We select key macroeconomic variables such as real GDP growth rate, unemployment rate, and interest rates as variables to build the machine learning model. Depending on the data type and model accuracy, we adopted three models, Support Vector Classification (SVC), Naive Bayes, and Logistic Regression, where the SVC model has the highest accuracy, above 80%. Regarding NLP models, we choose the reports based on Bank of International Settlements central bank speeches (BIS) to complete the relevant analysis. We evaluate bag-of-words and convolutional neural networks in conjunction with Epoch loss to determine how well the model's predictions match the actual data. Although we have debugged the NLP model many times, its accuracy still needs to be higher than that of the econometric model. How to effectively improve the prediction accuracy of the NLP model will be the main problem we hope to solve in the future.

Keywords: natural language processing; economic recession; future prediction.
Published: December 8, 2023
DOI: 10.54254/2753-8818/19/20230535
Volume: TNS Vol.19
pp. 184-192
Download PDF

References

  1. Bui, T. T., Button, P., & Picciotti, E. G. (2020). Early evidence on the impact of coronavirus disease 2019 (covid-19) and the recession on older workers. Public Policy & Aging Report, 30(4), 154-159. doi:10.1093/ppar/praa029
  2. Erdogan, O., Bennett, P., & Ozyildirim, C. (2014). Recession prediction using yield curve and stock market liquidity deviation measures. Review of Finance, 19(1), 407-422. doi:10.1093/rof/rft060
  3. Papadimitriou, T., Gogas, P., Matthaiou, M., & Chrysanthidou, E. (2014). Yield curve and recession forecasting in a machine learning framework. SSRN Electronic Journal. doi:10.2139/ssrn.2388719
  4. Gangopadhyaya, A., & Garrett, A. B. (2020). Unemployment, health insurance, and the COVID-19 recession. SSRN Electronic Journal. doi:10.2139/ssrn.3568489
  5. Gutiérrez, L. F., Tavakoli, N., Siami-Namini, S., & Siami Namin, A. (2022). Similarity analysis of Federal Reserve statements using document embeddings: The great recession vs. covid-19. SN Business & Economics, 2(7). doi:10.1007/s43546-022-00248-9
  6. Stock, J. H., & Watson, M. W. (2002). Has the business cycle changed and why?. NBER macroeconomics annual, 17, 159-218.
  7. Burns, A. F. (1946). The Basic Measures of Cyclical Behavior. In 2031393629 1409495906 W. C. Mitchell (Ed.), MEASURING BUSINESS CYCLES. NBER.
  8. Estrella, A., & Mishkin, F. S. (1998). Predicting US recessions: Financial variables as leading indicators. Review of Economics and Statistics, 80(1), 45-61.
  9. Chauvet, M., & Potter, S. (2002). Predicting a recession: evidence from the yield curve in the presence of structural breaks. Economics Letters, 77(2), 245-253.
  10. Moneta, F. (2005). Does the yield spread predict recessions in the Euro area?. International Finance, 8(2), 263-301.
  11. Gogas, P., Papadimitriou, T., Matthaiou, M., & Chrysanthidou, E. (2015). Yield curve and recession forecasting in a machine learning framework. Computational Economics, 45(4), 635-645.
  12. King, T. B., Levin, A. T., & Perli, R. (2007). Financial market perceptions of recession risk.
  13. Burzała, M. M. (2012). The probability of recession in Poland based on the Hamilton switching model and the logit model. Dynamic Econometric Models, 12(0). doi:10.12775/dem.2012.005
  14. Yüksel, S. (2017). Strategies out of global recession in emerging markets: An application for 2008 global crisis. In Global business strategies in crisis (pp. 57-75). Springer, Cham.
  15. James, A., Abu-Mostafa, Y. S., & Qiao, X. (2019). Machine Learning for Recession Prediction and Dynamic Asset Allocation. The Journal of Financial Data Science, 1(3), 41-56.
  16. Wang, C., Xiao, Z., Zhao, F. S., Ni, D., & Li, L. (2019). Research on economic recession prediction model from the multiple behavioral features perspective. IEEE Access, 7, 83363-83371.
  17. Davig, T., & Hall, A. S. (2019). Recession forecasting using Bayesian classification. International Journal of Forecasting, 35(3), 848-867.
  18. Pissarides, C. A. (2013). Unemployment in the Great Recession. Economica, 80(319), 385–403. http://www.jstor.org/stable/24029603
  19. Alon, T., Doepke, M., Olmstead-Rumsey, J., & Tertilt, M. (2020). This time it's different: The role of Women's employment in a pandemic recession. doi:10.3386/w27660
  20. Chauvet, M., & Hamilton, J. D. (2006). Dating business cycle turning points. Contributions to Economic Analysis, 276, 1-54.
  21. Nyman, R., & Ormerod, P. (2017). Predicting economic recessions using machine learning algorithms. arXiv preprint arXiv:1701.01428.
  22. Chowdhary, K. R. (2020). Natural language processing. Fundamentals of Artificial Intelligence, 603-649. doi:10.1007/978-81-322-3972-7_19
  23. Herrera-Soler, H., & White, M. (2012). Metaphor and mills: Figurative language in business and economics. introduction. Metaphor and Mills, 1-24. doi:10.1515/9783110274585.1
  24. Erjavec, N., Sorić, P., & Čižmešija, M. (2016). Predicting the probability of recession in Croatia: Is economic sentiment the missing link? Zbornik Radova Ekonomskog Fakulteta U Rijeci: časopis Za Ekonomsku Teoriju I Praksu/Proceedings of Rijeka Faculty of Economics: Journal of Economics and Business, 34(2), 555-579. doi:10.18045/zbefri.2016.2.555
  25. Kalamara, E., Turrell, A., Redl, C., Kapetanios, G., & Kapadia, S. (2022). Making text count: Economic forecasting using newspaper text. Journal of Applied Econometrics, 37(5), 896-919. doi:10.1002/jae.2907
  26. Karnizova, L., & Li, J. (. (2014). Economic policy uncertainty, financial markets and probability of US recessions. Economics Letters, 125(2), 261-265. doi:10.1016/j.econlet.2014.09.018
  27. Gutierrez, L. F., Siami-Namini, S., Tavakoli, N., & Namin, A. S. (2020). A concern analysis of Federal Reserve statements: The great recession vs. the COVID-19 pandemic. 2020 IEEE International Conference on Big Data (Big Data). doi:10.1109/bigdata50022.2020.9377828
  28. Goulet Coulombe, P., Marcellino, M., & Stevanovic, D. (2021). Can machine learning catch the covid-19 recession? SSRN Electronic Journal. doi:10.2139/ssrn.3796421
  29. Gross domestic product. (2022, August 25). Retrieved September 9, 2022, from https://fred.stlouisfed.org/series/GDP
  30. Interest rates, discount rate for United States. (2021, October 04). Retrieved September 9, 2022, from https://fred.stlouisfed.org/series/INTDSRUSM193N
  31. Unemployment rate. (2022, September 02). Retrieved September 9, 2022, from https://fred.stlouisfed.org/series/UNRATE/
  32. NBER-based recession indicators for the United States from the period following the peak through the trough. (2022, September 01). Retrieved September 9, 2022, from https://fred.stlouisfed.org/series/USREC