IDEAS home Printed from https://ideas.repec.org/a/eee/ecanpo/v88y2025icp2012-2030.html

Exploring public discourse on green hydrogen via YouTube comments: A comparative sentiment analysis using VADER and ChatGPT

Author

Listed:
  • Giganti, Patrizio
  • Errichiello, Grazia
  • Falcone, Pasquale Marcello

Abstract

This study investigates public attitudes toward green hydrogen (GH) by analyzing YouTube comments through sentiment analysis and topic modelling. Unlike previous research that situates hydrogen within broader climate or energy debates and focuses on platforms such as Twitter or Bilibili, this work examines GH as a standalone topic and leverages YouTube’s longer, context-rich comments to capture richer public discourse. Comments were collected via the YouTube API (Application Programming Interface) from a curated set of videos and analyzed for sentiment using both the rule-based VADER (Valence Aware Dictionary and sEntiment Reasoner) and the generative model ChatGPT-3.5, enabling a qualitative comparison of their performance. Latent Dirichlet Allocation (LDA) was then applied to identify major discussion themes, which were subsequently linked to sentiment trends. The results indicate that ChatGPT-3.5 outperforms VADER in interpreting sarcasm, slang, emoticons, and mixed sentiments. Topic modelling revealed eight key themes, including skepticism about institutional barriers and costs, optimism regarding GH’s role in hard-to-decarbonize sectors, comparisons with nuclear energy and electric vehicles, and concerns about environmental and technical challenges. Overall, the study enhances understanding of online public discourse on GH by demonstrating how advanced sentiment analysis tools, combined with topic modelling, can generate deeper insights to inform strategies that better integrate public perceptions with the economic and policy conditions of GH deployment.

Suggested Citation

  • Giganti, Patrizio & Errichiello, Grazia & Falcone, Pasquale Marcello, 2025. "Exploring public discourse on green hydrogen via YouTube comments: A comparative sentiment analysis using VADER and ChatGPT," Economic Analysis and Policy, Elsevier, vol. 88(C), pages 2012-2030.
  • Handle: RePEc:eee:ecanpo:v:88:y:2025:i:c:p:2012-2030
    DOI: 10.1016/j.eap.2025.11.014
    as

    Download full text from publisher

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

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

    for a different version of it.

    More about this item

    Keywords

    ;
    ;
    ;

    JEL classification:

    • Q42 - Agricultural and Natural Resource Economics; Environmental and Ecological Economics - - Energy - - - Alternative Energy Sources
    • Q54 - Agricultural and Natural Resource Economics; Environmental and Ecological Economics - - Environmental Economics - - - Climate; Natural Disasters and their Management; Global Warming
    • C88 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Other Computer Software

    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:ecanpo:v:88:y:2025:i:c:p:2012-2030. 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.

    We have no bibliographic references for this item. You can help adding them by using 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.journals.elsevier.com/economic-analysis-and-policy .

    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.