{"id":{"repo_id":"pretoria","oai_identifier":"oai:repository.up.ac.za:2263/98196"},"canonical_url":"https://search.dev.ndltd.org/etd/pretoria/oai:repository.up.ac.za:2263/98196","repository":{"repo_id":"pretoria","name":"University of Pretoria","base_url":"https://repository.up.ac.za/server/oai/request"},"display":{"title":"Sentiment analysis using unsupervised learning for local government elections in South Africa","abstract":"Understanding public sentiment is vital for political parties in order for them to be able to structure their election campaigns around voter expectations. The study focuses on unsupervised learning to assess the variation of polarity sentiment in tweets during the 2021 South African local government election campaign. The study uses a pre-trained twitter-roberta-base-sentiment-latest model from Hugging Face and unsupervised lexicon based pre-trained approaches, namely: VADER and TextBlob to determine the polarity sentiment in order to gain insight that could be applied towards informing political campaigns and to see if there are any distinct sentiment patterns or shifts during different phases of the 2021 local government elections campaigns. Furthermore, the study applies the use of suspicious patterns and K-Means methods to classify the users as either bots and human using to be able to identify the user behind the keyboard. The study also make use of OpenAI GPT model to label the dataset for fine-tuning and addresses the issue of class imbalance. VADER and TextBlob results show a significant difference from that of the twitter-roberta-base-sentiment-latest models when comparing the statistical distribution based on the sentiment results and the user classification results. Based on the results, there is a significant variation across all sentiment classes and they vary over time. Furthermore, the results revealed TRBSL and TRBSL** outperforms VADER and TextBlob based on the scores for weighted accuracy and F1-scores. It was discovered that most of the tweets were generated by humans, with only few being identified as bot-generated and having a negative sentiments.","abstract_html":"Understanding public sentiment is vital for political parties in order for them to be able to structure their election campaigns around voter expectations. The study focuses on unsupervised learning to assess the variation of polarity sentiment in tweets during the 2021 South African local government election campaign. The study uses a pre-trained twitter-roberta-base-sentiment-latest model from Hugging Face and unsupervised lexicon based pre-trained approaches, namely: VADER and TextBlob to determine the polarity sentiment in order to gain insight that could be applied towards informing political campaigns and to see if there are any distinct sentiment patterns or shifts during different phases of the 2021 local government elections campaigns. Furthermore, the study applies the use of suspicious patterns and K-Means methods to classify the users as either bots and human using to be able to identify the user behind the keyboard. The study also make use of OpenAI GPT model to label the dataset for fine-tuning and addresses the issue of class imbalance. VADER and TextBlob results show a significant difference from that of the twitter-roberta-base-sentiment-latest models when comparing the statistical distribution based on the sentiment results and the user classification results. Based on the results, there is a significant variation across all sentiment classes and they vary over time. Furthermore, the results revealed TRBSL and TRBSL** outperforms VADER and TextBlob based on the scores for weighted accuracy and F1-scores. It was discovered that most of the tweets were generated by humans, with only few being identified as bot-generated and having a negative sentiments.","abstract_has_math":false,"creators":[],"institution":"University of Pretoria","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":"Computer Science","school":null,"contributors":[],"advisors":["Marivate, Vukosi","Olaleye, Kayode"],"committee_chairs":[],"committee_members":[],"year":2023,"date_issued":"2023-11","date_published":"2023-11","updated_at":"2026-11-18T22:58:33Z","subjects":["UCTD","Sentiment analysis","OpenAI","Fine-tuning","Suspicious patterns","User classification","Local government election"],"languages":["en"],"rights":["Unrestricted","© 2021 University of Pretoria. All rights reserved. The copyright in this work vests in the University of Pretoria. No part of this work may be reproduced or transmitted in any form or by any means, without the prior written permission of the University of Pretoria."],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["*"],"render_values":[{"text":"*","href":null,"code":true}]},{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["A2024"],"render_values":[{"text":"A2024","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/2263/98196","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/2263/98196","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.dev.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.dev.ndltd.org%3Arepo%3Apretoria%3Aoai%3Arepository.up.ac.za%3A2263%2F98196","prefix":"oai_dc"},"source_record":{"url":"https://repository.up.ac.za/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Arepository.up.ac.za%3A2263%2F98196","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Marivate, Vukosi","Olaleye, Kayode"]},{"key":"dc:contributor.department","label":"Department","values":["Computer Science"]},{"key":"dc:contributor.other","label":"Dc Contributor Other","values":["Matloga, Mokgadi Penelope"]},{"key":"person:email","label":"Person Email","values":["u22826476@tuks.co.za"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2024-09-13T11:57:27Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2024-09-13T11:57:27Z"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2024-04"]},{"key":"dc:date.issued","label":"Date","values":["2023-11"]},{"key":"dc:publisher","label":"Institution","values":["University of Pretoria"]},{"key":"dc:type","label":"Dc Type","values":["Mini Dissertation"]},{"key":"thesis:degree_college","label":"Thesis Degree College","values":["Faculty of Engineering, Built Environment and Information Technology"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["UCTD","Sentiment analysis","OpenAI","Fine-tuning","Suspicious patterns","User classification","Local government election"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["© 2021 University of Pretoria. All rights reserved. The copyright in this work vests in the University of Pretoria. No part of this work may be reproduced or transmitted in any form or by any means, without the prior written permission of the University of Pretoria."]},{"key":"dc:rights.accessrights","label":"Access Rights","values":["Unrestricted"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["*"]},{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["A2024"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["http://hdl.handle.net/2263/98196"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description","label":"Description","values":["Mini Dissertation (MIT (Big Data Science))--University of Pretoria, 2023."]},{"key":"dc:description.abstract","label":"Abstract","values":["Understanding public sentiment is vital for political parties in order for them to be able to structure their election campaigns around voter expectations. The study focuses on unsupervised learning to assess the variation of polarity sentiment in tweets during the 2021 South African local government election campaign. The study uses a pre-trained twitter-roberta-base-sentiment-latest model from Hugging Face and unsupervised lexicon based pre-trained approaches, namely: VADER and TextBlob to determine the polarity sentiment in order to gain insight that could be applied towards informing political campaigns and to see if there are any distinct sentiment patterns or shifts during different phases of the 2021 local government elections campaigns. Furthermore, the study applies the use of suspicious patterns and K-Means methods to classify the users as either bots and human using to be able to identify the user behind the keyboard. The study also make use of OpenAI GPT model to label the dataset for fine-tuning and addresses the issue of class imbalance. VADER and TextBlob results show a significant difference from that of the twitter-roberta-base-sentiment-latest models when comparing the statistical distribution based on the sentiment results and the user classification results. Based on the results, there is a significant variation across all sentiment classes and they vary over time. Furthermore, the results revealed TRBSL and TRBSL** outperforms VADER and TextBlob based on the scores for weighted accuracy and F1-scores. It was discovered that most of the tweets were generated by humans, with only few being identified as bot-generated and having a negative sentiments."]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["MIT (Big Data Science)"]},{"key":"dc:title","label":"Title","values":["Sentiment analysis using unsupervised learning for local government elections in South Africa"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Marivate, Vukosi","Olaleye, Kayode"],"dc:contributor.department":["Computer Science"],"dc:contributor.other":["Matloga, Mokgadi Penelope"],"dc:date.accessioned":["2024-09-13T11:57:27Z"],"dc:date.available":["2024-09-13T11:57:27Z"],"dc:date.created":["2024-04"],"dc:date.issued":["2023-11"],"dc:description":["Mini Dissertation (MIT (Big Data Science))--University of Pretoria, 2023."],"dc:description.abstract":["Understanding public sentiment is vital for political parties in order for them to be able to structure their election campaigns around voter expectations. The study focuses on unsupervised learning to assess the variation of polarity sentiment in tweets during the 2021 South African local government election campaign. The study uses a pre-trained twitter-roberta-base-sentiment-latest model from Hugging Face and unsupervised lexicon based pre-trained approaches, namely: VADER and TextBlob to determine the polarity sentiment in order to gain insight that could be applied towards informing political campaigns and to see if there are any distinct sentiment patterns or shifts during different phases of the 2021 local government elections campaigns. Furthermore, the study applies the use of suspicious patterns and K-Means methods to classify the users as either bots and human using to be able to identify the user behind the keyboard. The study also make use of OpenAI GPT model to label the dataset for fine-tuning and addresses the issue of class imbalance. VADER and TextBlob results show a significant difference from that of the twitter-roberta-base-sentiment-latest models when comparing the statistical distribution based on the sentiment results and the user classification results. Based on the results, there is a significant variation across all sentiment classes and they vary over time. Furthermore, the results revealed TRBSL and TRBSL** outperforms VADER and TextBlob based on the scores for weighted accuracy and F1-scores. It was discovered that most of the tweets were generated by humans, with only few being identified as bot-generated and having a negative sentiments."],"dc:description.degree":["MIT (Big Data Science)"],"dc:identifier.citation":["*"],"dc:identifier.other":["A2024"],"dc:identifier.uri":["http://hdl.handle.net/2263/98196"],"dc:language.iso":["en"],"dc:publisher":["University of Pretoria"],"dc:rights":["© 2021 University of Pretoria. All rights reserved. The copyright in this work vests in the University of Pretoria. No part of this work may be reproduced or transmitted in any form or by any means, without the prior written permission of the University of Pretoria."],"dc:rights.accessrights":["Unrestricted"],"dc:subject":["UCTD","Sentiment analysis","OpenAI","Fine-tuning","Suspicious patterns","User classification","Local government election"],"dc:title":["Sentiment analysis using unsupervised learning for local government elections in South Africa"],"dc:type":["Mini Dissertation"],"others:access_status":["open.access"],"person:email":["u22826476@tuks.co.za"],"thesis:degree_college":["Faculty of Engineering, Built Environment and Information Technology"]},"updated_at":"2026-11-18T22:58:33Z"}