Design and Implementation of a multilingual social media sentiment analysis web application using Distil Bert and Django

dc.contributor.author Nabukenya, Faith
dc.date.accessioned 2026-10-15T14:02:49Z
dc.date.available 2026-10-15T14:02:49Z
dc.date.issued 2026
dc.description A research dissertation submitted to the School of Statistics and Planning in partial fulfillment of the requirements for the award of a degree of Bachelor of Statistics, Makerere University
dc.description.abstract This dissertation details the design, development, and implementation of Sentiment Analysis Web Application, a multilingual social media sentiment analysis web application engineered to analyse public Twitter/X content. The rapid proliferation of social media usage across East Africa, combined with the linguistic diversity of online discourse in the region, presents a significant challenge for existing sentiment analysis tools that are predominantly Englishfocused and inaccessible to non-technical users. Leveraging the Django web framework and Python, Sentiment Analysis Web Application integrates DistilBERT, a distilled variant of the BERT transformer model, to classify tweetlevel text into three sentiment categories: Positive, Neutral, and Negative. The system implements a language detection pipeline using the langdetect library, routing English tweets to the distilbert-base-uncased-finetuned-sst-2-english model and non-English content to the nlptown/bert-base-multilingual-uncased-sentiment model. This multilingual architecture ensures reasonable coverage of major languages present in East African social media, including English, French, Swahili, German, Spanish, Italian, and Dutch. The application supports three tweet input modalities: automated scraping via a public Twitter handle using ntscraper, manual text pasting, and CSV file upload. Aggregated results are transformed into a Reputation Score (0-100) providing an intuitive single-metric summary of overall account sentiment. Validation was conducted on five real Twitter accounts (n=5, total 445 tweets) spanning English-dominant, French-dominant, and multilingual linguistic profiles. The DistilBERT SST-2 model achieved 89.2% accuracy on English content, while the nlptown multilingual model achieved 76.5% on French and 58.3% on Swahili content. All results are persisted in an SQLite3 relational database and rendered through a responsive Django template frontend accessible at http://127.0.0.1:8000/.
dc.identifier.citation Nabukenya, F. (2026). Design and Implementation of a multilingual social media sentiment analysis web application using Distil Bert and Django. Unpublished undergraduate dissertation. Makerere University, Kampala, Uganda.
dc.identifier.uri https://dissertations.mak.ac.ug/handle/20.500.12281/22570
dc.language.iso en
dc.publisher Makerere University
dc.relation.ispartofseries N/A
dc.title Design and Implementation of a multilingual social media sentiment analysis web application using Distil Bert and Django
dc.title.alternative N/A
dc.type Other
Files
Original bundle
Now showing 1 - 2 of 2
No Thumbnail Available
Name:
Nabukenya-CoBAMS-Bachelors.pdf
Size:
609.09 KB
Format:
Adobe Portable Document Format
Description:
Undergraduate dissertation
No Thumbnail Available
Name:
Nabukenya-CoBAMS-Bachelors-consent form-2026.pdf
Size:
127.27 KB
Format:
Adobe Portable Document Format
Description:
Consent form
License bundle
Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
462 B
Format:
Item-specific license agreed upon to submission
Description: