Sentiment Analysis on Inflation after COVID-19

Xinyu Li, Zihan Tang


We implement traditional machine learning and deep learning methods for global tweets from 2017-2022 to build a high-frequency measure of the public’s sentiment index on inflation and analyze its correlation with other online data sources such as google trend and market-oriented inflation index. We use manually labeled trigrams to test the prediction performance of several machine learning models (logistic regression, random forest etc.) and choose Bert model for final demonstration. Then, we sum daily tweets’ sentiment scores gained from Bert model to obtain the predicted inflation sentiment index, and we further analyze the regional and pre/post covid patterns of these inflation indexes. Lastly, we take other empirical inflation-related data as references and prove that twitter-based inflation sentiment analysis method has an outstanding capability to predict inflation. The results suggest that Twitter combined with deep learning methods can be a novel and timely method to utilize existing abundant data sources on inflation expectations and provide daily indicators of consumers’ perception on inflation.

Full Text:




  • There are currently no refbacks.

Paper Submission E-mail:

Applied Economics and Finance    ISSN 2332-7294 (Print)   ISSN 2332-7308 (Online)

Copyright © Redfame Publishing Inc.

To make sure that you can receive messages from us, please add the '' domain to your e-mail 'safe list'. If you do not receive e-mail in your 'inbox', check your 'bulk mail' or 'junk mail' folders. If you have any questions, please contact: