IDEAS home Printed from https://ideas.repec.org/a/eee/apmaco/v270y2015icp756-767.html

A polarity analysis framework for Twitter messages

Author

Listed:
  • Lima, Ana Carolina E.S.
  • de Castro, Leandro Nunes
  • Corchado, Juan M.

Abstract

Social media, such as Twitter and Facebook, allow the creation, sharing and exchange of information among people, companies and brands. This information can be used for several purposes, such as to understand consumers and their preferences. In this direction, the sentiment analysis can be used as a feedback mechanism. This analysis corresponds to classifying a text according to the sentiment that the writer intended to transmit. A basic sentiment classifier determines the sentiment polarity (negative, neutral or positive) of a given text at the document, sentence, or feature/aspect level. Advanced types may consider other elements like the emotional state (e.g. angry, sad, happy), affective states (e.g. pleasure and pain), motivational states (e.g. hunger and curiosity), temperaments, among others. In general, there are two main approaches to attribute sentiment to tweets: based on knowledge; or based on machine learning algorithms. In the latter case, the learning algorithm requires a pre-classified data sample to determine the class of new data. Typically, the sample is pre-classified manually, making the process time consuming and reducing its real time applicability for big data. This paper proposes a polarity analysis framework for Twitter messages, which combines both approaches and an automatic contextual module. To assess the performance of the proposed framework, four text datasets from the literature are used. Five different types of classifiers were considered: Naïve Bayes (NB); Support Vector Machines (SVM); Decision Trees (J48); and Nearest Neighbors (KNN). The results show that the proposal is a suitable framework to automate the whole polarity analysis process, providing high accuracy levels and low false positive rates.

Suggested Citation

  • Lima, Ana Carolina E.S. & de Castro, Leandro Nunes & Corchado, Juan M., 2015. "A polarity analysis framework for Twitter messages," Applied Mathematics and Computation, Elsevier, vol. 270(C), pages 756-767.
  • Handle: RePEc:eee:apmaco:v:270:y:2015:i:c:p:756-767
    DOI: 10.1016/j.amc.2015.08.059
    as

    Download full text from publisher

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

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

    References listed on IDEAS

    as
    1. Mike Thelwall & Kevan Buckley & Georgios Paltoglou & Di Cai & Arvid Kappas, 2010. "Sentiment strength detection in short informal text," Journal of the Association for Information Science & Technology, Association for Information Science & Technology, vol. 61(12), pages 2544-2558, December.
    2. Mike Thelwall & Kevan Buckley & Georgios Paltoglou & Di Cai & Arvid Kappas, 2010. "Sentiment strength detection in short informal text," Journal of the American Society for Information Science and Technology, Association for Information Science & Technology, vol. 61(12), pages 2544-2558, December.
    3. Prabowo, Rudy & Thelwall, Mike, 2009. "Sentiment analysis: A combined approach," Journal of Informetrics, Elsevier, vol. 3(2), pages 143-157.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Dilşad Erdoğan & Mehmet Kayakuş & Pinar Çelik Çaylak & Nisa Ekşili & Georgiana Moiceanu & Onder Kabas & Mirona Ana Maria Ichimov, 2025. "Developing a Deep Learning-Based Sentiment Analysis System of Hotel Customer Reviews for Sustainable Tourism," Sustainability, MDPI, vol. 17(13), pages 1-30, June.
    2. Abderahman Rejeb & John G. Keogh & Horst Treiblmaier, 2019. "Leveraging the Internet of Things and Blockchain Technology in Supply Chain Management," Future Internet, MDPI, vol. 11(7), pages 1-22, July.
    3. Geetha, M. & Singha, Pratap & Sinha, Sumedha, 2017. "Relationship between customer sentiment and online customer ratings for hotels - An empirical analysis," Tourism Management, Elsevier, vol. 61(C), pages 43-54.
    4. Yu, Jing-Rung & Chiou, W. Paul & Hung, Cing-Hung & Dong, Wen-Kuei & Chang, Yi-Hsuan, 2022. "Dynamic rebalancing portfolio models with analyses of investor sentiment," International Review of Economics & Finance, Elsevier, vol. 77(C), pages 1-13.

    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. Youngseok Choi & Habin Lee, 2017. "Data properties and the performance of sentiment classification for electronic commerce applications," Information Systems Frontiers, Springer, vol. 19(5), pages 993-1012, October.
    2. Youngseok Choi & Habin Lee, 0. "Data properties and the performance of sentiment classification for electronic commerce applications," Information Systems Frontiers, Springer, vol. 0, pages 1-20.
    3. Jun Lee & Adam Jatowt & Kyoung‐Sook Kim, 2021. "Discovering underlying sensations of human emotions based on social media," Journal of the Association for Information Science & Technology, Association for Information Science & Technology, vol. 72(4), pages 417-432, April.
    4. Ma, Jie & Tse, Ying Kei & Wang, Xiaojun & Zhang, Minhao, 2019. "Examining customer perception and behaviour through social media research – An empirical study of the United Airlines overbooking crisis," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 127(C), pages 192-205.
    5. Sergey Smetanin, 2022. "Pulse of the Nation: Observable Subjective Well-Being in Russia Inferred from Social Network Odnoklassniki," Mathematics, MDPI, vol. 10(16), pages 1-38, August.
    6. Kübler, Raoul V. & Manke, Kai & Pauwels, Koen, 2025. "I like, I share, I vote: Mapping the dynamic system of political marketing," Journal of Business Research, Elsevier, vol. 186(C).
    7. Widerstedt, Barbro & Månsson, Jonas & Rosdahl, Jonatan, 2018. "A warm welcome? Access to advisory services for men and women," Economic Analysis and Policy, Elsevier, vol. 58(C), pages 100-110.
    8. Charemza, Wojciech & Makarova, Svetlana & Rybiński, Krzysztof, 2022. "Economic uncertainty and natural language processing; The case of Russia," Economic Analysis and Policy, Elsevier, vol. 73(C), pages 546-562.
    9. Mitrović, Marija & Tadić, Bosiljka, 2012. "Dynamics of bloggers’ communities: Bipartite networks from empirical data and agent-based modeling," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 391(21), pages 5264-5278.
    10. Heleen Brans & Bert Scholtens, 2020. "Under his thumb the effect of president Donald Trump’s Twitter messages on the US stock market," PLOS ONE, Public Library of Science, vol. 15(3), pages 1-11, March.
    11. Nohel Zaman & David M. Goldberg & Richard J. Gruss & Alan S. Abrahams & Siriporn Srisawas & Peter Ractham & Michelle M.H. Şeref, 2022. "Cross-Category Defect Discovery from Online Reviews: Supplementing Sentiment with Category-Specific Semantics," Information Systems Frontiers, Springer, vol. 24(4), pages 1265-1285, August.
    12. Müller-Hansen, Finn & Lee, Yuan Ting & Callaghan, Max & Jankin, Slava & Minx, Jan C., 2022. "The German coal debate on Twitter: Reactions to a corporate policy process," Energy Policy, Elsevier, vol. 169(C).
    13. Lipizzi, Carlo & Iandoli, Luca & Ramirez Marquez, José Emmanuel, 2015. "Extracting and evaluating conversational patterns in social media: A socio-semantic analysis of customers’ reactions to the launch of new products using Twitter streams," International Journal of Information Management, Elsevier, vol. 35(4), pages 490-503.
    14. Oleg S. Nagornyy & Olessia Y. Koltsova, 2017. "Mining Media Topics Perceived as Social Problems by Online Audiences: Use of a Data Mining Approach in Sociology," HSE Working papers WP BRP 74/SOC/2017, National Research University Higher School of Economics.
    15. Martin Haselmayer & Marcelo Jenny, 2017. "Sentiment analysis of political communication: combining a dictionary approach with crowdcoding," Quality & Quantity: International Journal of Methodology, Springer, vol. 51(6), pages 2623-2646, November.
    16. Daesik Kim & Chung Joo Chung & Kihong Eom, 2022. "Measuring Online Public Opinion for Decision Making: Application of Deep Learning on Political Context," Sustainability, MDPI, vol. 14(7), pages 1-16, March.
    17. Xue, Zhebin & Li, Qing & Zeng, Xianyi, 2023. "Social media user behavior analysis applied to the fashion and apparel industry in the big data era," Journal of Retailing and Consumer Services, Elsevier, vol. 72(C).
    18. Antonio Moreno-Ortiz & Soluna Salles-Bernal & Aroa Orrequia-Barea, 2019. "Design and validation of annotation schemas for aspect-based sentiment analysis in the tourism sector," Information Technology & Tourism, Springer, vol. 21(4), pages 535-557, December.
    19. David M. Goldberg & Nohel Zaman & Arin Brahma & Mariano Aloiso, 2022. "Are mortgage loan closing delay risks predictable? A predictive analysis using text mining on discussion threads," Journal of the Association for Information Science & Technology, Association for Information Science & Technology, vol. 73(3), pages 419-437, March.
    20. Gabriele Ranco & Ilaria Bordino & Giacomo Bormetti & Guido Caldarelli & Fabrizio Lillo & Michele Treccani, 2014. "Coupling news sentiment with web browsing data improves prediction of intra-day price dynamics," Papers 1412.3948, arXiv.org, revised Dec 2015.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    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:apmaco:v:270:y:2015:i:c:p:756-767. 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: https://www.journals.elsevier.com/applied-mathematics-and-computation .

    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.