IDEAS home Printed from https://ideas.repec.org/a/das/njaigs/v8y2025i1p128-135id354.html
   My bibliography  Save this article

Optimizing LSTM Models for Tweet Sentiment Analysis: A Hyperparameter Study

Author

Listed:
  • Yuxuan Wu

Abstract

This research investigates the effectiveness of using LSTM models for sentiment analysis of tweet data. By preprocessing the data and systematically optimizing the hyperparameters (e.g., number of LSTM units, dropout rate, batch size, and epoch), an LSTM model was constructed for tweet sentiment classification. In the test set, the model achieves 75% accuracy, verifying its feasibility in short text. Additionally, the experiments show that choosing the appropriate batch size and epoch number can improve the efficiency and stability of the model, which provides a reference for future research on sentiment analysis.

Suggested Citation

  • Yuxuan Wu, 2025. "Optimizing LSTM Models for Tweet Sentiment Analysis: A Hyperparameter Study," Journal of Artificial Intelligence General science (JAIGS) ISSN:3006-4023, Open Knowledge, vol. 8(1), pages 128-135.
  • Handle: RePEc:das:njaigs:v:8:y:2025:i:1:p:128-135:id:354
    as

    Download full text from publisher

    File URL: https://newjaigs.com/index.php/JAIGS/article/view/354
    Download Restriction: no
    ---><---

    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:das:njaigs:v:8:y:2025:i:1:p:128-135:id:354. 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: Open Knowledge (email available below). General contact details of provider: https://newjaigs.com/index.php/JAIGS/ .

    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.