Identifying suicidal ideation through twitter sentiment analysis using Naïve Bayes / Annasuha Atie Atirah Alias

Alias, Annasuha Atie Atirah (2023) Identifying suicidal ideation through twitter sentiment analysis using Naïve Bayes / Annasuha Atie Atirah Alias. Degree thesis, Universiti Teknologi MARA, Melaka.


People are more comfortable sharing their thoughts on social media rather than someone in person. Twitter is increasingly investigated as a means of detecting mental health status, including depression and suicidality, in the population. Individuals who suffer from suicidal ideation frequently express their views and ideas on social media. It is essential to develop a machine learning system for early detection of suicidal ideation by analyzing his or her posts on social media. The prevailing methods of identifying and addressing suicidal content on social media exhibit limitations. Relying on human experts for identification is both costly and time-consuming. Additionally, the vast volume of data on platforms like Twitter makes manual outreach impractical. Existing machine learning models for sentiment analysis and suicide prediction lack a comprehensive user-friendliness system for the end users. Thus, this project aims to design, develop, and evaluate web-based application utilizing sentiment analysis, specifically employing the Naïve Bayes algorithm, to identify and analyze suicidal ideation within Twitter posts. By harnessing natural language processing techniques and data visualization tools, the project seeks to provide user-friendly solution for early detection and prevention of suicidal intentions expressed on social media. The goal is to empower suicide prevention organizations and concerned individuals with an efficient and accessible means of taking timely actions toward individuals at risk. The result of the data analysis is visualized into a web application system to enable the analysis results to be interpretable and readable by the user using Plotly visualization tool. Testing phases have shown that the classifier successfully classified tweets’ sentiments with 84.43% accuracy. Functionality testing is done to ensure that all the requirements are met. System usability testing is also done to ensure that the system flow is as intended and from the System Usability Scale (SUS), the system achieved an average final score of 87%. The future work that can be apply into this project is to include other languages other than English to identify people who are having suicidal ideation from different countries.


Item Type: Thesis (Degree)
Email / ID Num.
Alias, Annasuha Atie Atirah
Email / ID Num.
Roslan, Rosniza
Subjects: B Philosophy. Psychology. Religion > BF Psychology > Human behavior. Behaviorism. Neobehaviorism. Behavioral psychology
Divisions: Universiti Teknologi MARA, Melaka > Jasin Campus > Faculty of Computer and Mathematical Sciences
Programme: Bachelor of Computer Science (Hons.) (CS230)
Keywords: Suicidal ideation; Twitter sentiment analysis; Machine learning system
Date: 2023
Edit Item
Edit Item


[thumbnail of 88979.pdf] Text

Download (269kB)

Digital Copy

Digital (fulltext) is available at:

Physical Copy

Physical status and holdings:
Item Status:

ID Number




Statistic details