Skip to main navigation Skip to search Skip to main content

Transformer-Enhanced Sentiment Analysis of Indian Farmers on Social Media Using Hybrid Deep Learning Models

  • Mohd Danish
  • , Haipeng Liu
    • Greater Noida Institute of Technology
    • National Medical Research Association
    • Cardiovascular Analytics Group
    • Powerhealth Research Institute

    Research output: Contribution to journal › Article › peer-review

    Abstract

    The COVID-19 pandemic had a profound impact on Indian farmers, disrupting agricultural supply chains and exacerbating existing economic challenges. With a significant increase in social media usage among the farming community, educated farmers have increasingly turned to platforms like Twitter to voice their concerns. This user-generated content offers researchers a valuable lens for understanding evolving farmer sentiments in real-time and supporting responsive policy formulation. In this study, farmer sentiments were analyzed using a curated dataset of 40,000 tweets posted during recent periods of economic uncertainty and post-pandemic recovery. Advanced machine learning and deep learning models, including CNN, LSTM, and hybrid transformers, were employed alongside diverse word embedding techniques such as Bag-of-Words (BoW), Term Frequency-Inverse Document Frequency (TF-IDF), Word2Vec, GloVe, BERT, and RoBERTa. All deep and hybrid models achieved strong classification performance, typically exceeding 85%. Notably, BERT–LSTM reached ∼93.0% accuracy (macro-F1 ≈ 0.92) and RoBERTa–LSTM ∼93.5% (macro-F1 ≈ 0.92), effectively capturing the nuanced emotional tone of the tweets. This study highlights the utility of modern NLP frameworks in analyzing real-time sentiment data, offering researchers and policymakers a robust mechanism to monitor agricultural concerns and design timely, data-driven interventions.

    Original languageEnglish
    Article numbere70599
    Number of pages14
    JournalConcurrency and Computation: Practice and Experience
    Volume38
    Issue number7
    DOIs
    Publication statusPublished - 7 Apr 2026

    Bibliographical note

    Publisher Copyright:
    © 2026 John Wiley & Sons Ltd.

    Keywords

    • agricultural crisis
    • Indian farmers
    • NLP
    • sentiment analysis
    • word embeddings

    ASJC Scopus subject areas

    • Software
    • Theoretical Computer Science
    • Computer Science Applications
    • Computer Networks and Communications
    • Computational Theory and Mathematics

    Fingerprint

    Dive into the research topics of 'Transformer-Enhanced Sentiment Analysis of Indian Farmers on Social Media Using Hybrid Deep Learning Models'. Together they form a unique fingerprint.

    Cite this