IDEAS home Printed from https://ideas.repec.org/a/eee/finana/v97y2025ics1057521924007014.html
   My bibliography  Save this article

EmTract: Extracting emotions from social media

Author

Listed:
  • Vamossy, Domonkos F.
  • Skog, Rolf P.

Abstract

We developed EmTract, an open-source tool designed to extract investor emotions from financial social media data. We contribute a novel dataset of 10,000 financial social media messages annotated with emotion labels and improve the DistilBERT model by incorporating 4861 tokens, including emojis and emoticons. This augmentation improved the model’s accuracy by over 3 percentage points compared to the standard BERT model, while providing faster inference and reduced computational requirements. Our models and datasets are publicly available to promote broader adoption and further research in financial sentiment analysis. We validated EmTract during the 2021 “meme stock” rally, where it accurately captured spikes in emotions such as anger and disgust following trading restrictions, demonstrating the model’s practical applicability in real-world events. Additionally, heterogeneity tests show that emotions have a stronger impact on smaller, more volatile, and heavily shorted stocks, aligning with established behavioral finance theories. These findings underscore the importance of integrating emotional dynamics into market analysis, particularly for speculative assets. Our contributions represent a significant step forward in understanding the psychological drivers of financial markets and offer practical tools for future research and industry applications.

Suggested Citation

  • Vamossy, Domonkos F. & Skog, Rolf P., 2025. "EmTract: Extracting emotions from social media," International Review of Financial Analysis, Elsevier, vol. 97(C).
  • Handle: RePEc:eee:finana:v:97:y:2025:i:c:s1057521924007014
    DOI: 10.1016/j.irfa.2024.103769
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S1057521924007014
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.irfa.2024.103769?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
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Malcolm Baker & Jeffrey Wurgler, 2007. "Investor Sentiment in the Stock Market," Journal of Economic Perspectives, American Economic Association, vol. 21(2), pages 129-152, Spring.
    2. Eduardo B. Andrade & Terrance Odean & Shengle Lin, 2016. "Bubbling with Excitement: An Experiment," Review of Finance, European Finance Association, vol. 20(2), pages 447-466.
    3. Stefania Albanesi & Domonkos F. Vamossy, 2019. "Predicting Consumer Default: A Deep Learning Approach," NBER Working Papers 26165, National Bureau of Economic Research, Inc.
    4. Adriana Breaban & Charles N Noussair, 2018. "Emotional State and Market Behavior [Bubbling with excitement: en experiment]," Review of Finance, European Finance Association, vol. 22(1), pages 279-309.
    5. Mark J. Kamstra & Lisa A. Kramer & Maurice D. Levi, 2003. "Winter Blues: A SAD Stock Market Cycle," American Economic Review, American Economic Association, vol. 93(1), pages 324-343, March.
    6. Vamossy, Domonkos F., 2021. "Investor emotions and earnings announcements," Journal of Behavioral and Experimental Finance, Elsevier, vol. 30(C).
    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. Domonkos F. Vamossy, 2023. "Social Media Emotions and IPO Returns," Papers 2306.12602, arXiv.org, revised Apr 2024.
    2. Domonkos F. Vamossy & Rolf Skog, 2021. "EmTract: Extracting Emotions from Social Media," Papers 2112.03868, arXiv.org, revised Jun 2023.
    3. Domonkos F. Vamossy, 2024. "Social Media Emotions and Market Behavior," Papers 2404.03792, arXiv.org.
    4. Vamossy, Domonkos F., 2021. "Investor emotions and earnings announcements," Journal of Behavioral and Experimental Finance, Elsevier, vol. 30(C).
    5. Warkulat, Sonja & Pelster, Matthias, 2024. "Social media attention and retail investor behavior: Evidence from r/wallstreetbets," International Review of Financial Analysis, Elsevier, vol. 96(PB).
    6. Domonkos F. Vamossy, 2025. "Social Media Emotions and IPO Returns," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 57(1), pages 31-67, February.
    7. Hoang, Daniel & Wiegratz, Kevin, 2022. "Machine learning methods in finance: Recent applications and prospects," Working Paper Series in Economics 158, Karlsruhe Institute of Technology (KIT), Department of Economics and Management.
    8. Hirshleifer, David & Jiang, Danling & DiGiovanni, Yuting Meng, 2020. "Mood beta and seasonalities in stock returns," Journal of Financial Economics, Elsevier, vol. 137(1), pages 272-295.
    9. Draganac, Dragana & Lu, Kelin, 2025. "Pricing asset beyond financial fundamentals: The impact of prosocial preference and image concerns," Journal of Economic Dynamics and Control, Elsevier, vol. 170(C).
    10. Berardi, Michele, 2022. "Uncertainty and sentiments in asset prices," Journal of Economic Behavior & Organization, Elsevier, vol. 202(C), pages 498-516.
    11. Yochi Cohen-Charash & Charles A Scherbaum & John D Kammeyer-Mueller & Barry M Staw, 2013. "Mood and the Market: Can Press Reports of Investors' Mood Predict Stock Prices?," PLOS ONE, Public Library of Science, vol. 8(8), pages 1-15, August.
    12. Abudy, Menachem (Meni) & Mugerman, Yevgeny & Shust, Efrat, 2022. "The Winner Takes It All: Investor Sentiment and the Eurovision Song Contest," Journal of Banking & Finance, Elsevier, vol. 137(C).
    13. Guiso, Luigi & Sapienza, Paola & Zingales, Luigi, 2018. "Time varying risk aversion," Journal of Financial Economics, Elsevier, vol. 128(3), pages 403-421.
    14. Cortés, Kristle & Duchin, Ran & Sosyura, Denis, 2016. "Clouded judgment: The role of sentiment in credit origination," Journal of Financial Economics, Elsevier, vol. 121(2), pages 392-413.
    15. Farjam, Mike & Kirchkamp, Oliver, 2018. "Bubbles in hybrid markets: How expectations about algorithmic trading affect human trading," Journal of Economic Behavior & Organization, Elsevier, vol. 146(C), pages 248-269.
    16. Palomino, Frederic & Renneboog, Luc & Zhang, Chendi, 2009. "Information salience, investor sentiment, and stock returns: The case of British soccer betting," Journal of Corporate Finance, Elsevier, vol. 15(3), pages 368-387, June.
    17. Qadan, Mahmoud & Nama, Hazar, 2018. "Investor sentiment and the price of oil," Energy Economics, Elsevier, vol. 69(C), pages 42-58.
    18. Michael Ehrmann & David-Jan Jansen, 2016. "It Hurts (Stock Prices) When Your Team is about to Lose a Soccer Match," Review of Finance, European Finance Association, vol. 20(3), pages 1215-1233.
    19. Brice Corgnet & Camille Cornand & Nobuyuki Hanaki, 2021. "Emotional Markets: Competitive Arousal, Overbidding and Bubbles," Working Papers 2117, Groupe d'Analyse et de Théorie Economique Lyon St-Étienne (GATE Lyon St-Étienne), Université de Lyon.
    20. Makridis, Christos A. & Schloetzer, Jason D., 2023. "Extreme local temperatures lower expressed sentiment about U.S. economic conditions with implications for the stock returns of local firms," Journal of Behavioral and Experimental Finance, Elsevier, vol. 37(C).

    More about this item

    Keywords

    Deep learning; Investor emotions; Text analysis; Social media; Return predictability;
    All these keywords.

    JEL classification:

    • G41 - Financial Economics - - Behavioral Finance - - - Role and Effects of Psychological, Emotional, Social, and Cognitive Factors on Decision Making in Financial Markets
    • L82 - Industrial Organization - - Industry Studies: Services - - - Entertainment; Media

    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:eee:finana:v:97:y:2025:i:c:s1057521924007014. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/inca/620166 .

    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.