Full Text Available

Note: Clicking the button above will open the full text document at the original institutional repository in a new window.

Machine learning for social event analysis : public perceptions during COVID-19 and collective violence in South Africa

Thesis (PhD (Information Technology)--University of Pretoria, 2025.

Saved in:
Bibliographic Details
Other Authors: Hattingh, Maria J. (Marie)
Format: Thesis
Language:English
Published: University of Pretoria 2026
Subjects:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1869483729280303104
access_status_str Open Access
author2 Hattingh, Maria J. (Marie)
author_browse Hattingh, Maria J. (Marie)
author_facet Hattingh, Maria J. (Marie)
collection Thesis
dc_rights_str_mv © 2024 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.
description Thesis (PhD (Information Technology)--University of Pretoria, 2025.
format Thesis
id oai:repository.up.ac.za:2263/108554
institution University of Pretoria (South Africa)
language English
last_indexed 2026-07-01T04:03:37.553Z
license_str Other — see source repository
provenance_str_mv Harvested via OAI-PMH from UPSpace — University of Pretoria Institutional Repository
publishDate 2026
publishDateRange 2026
publishDateSort 2026
publisher University of Pretoria
publisherStr University of Pretoria
record_format dspace
source_str UPSpace — University of Pretoria Institutional Repository
spelling oai:repository.up.ac.za:2263/108554 Machine learning for social event analysis : public perceptions during COVID-19 and collective violence in South Africa Hattingh, Maria J. (Marie) temitope.kekere@tuks.co.za Marivate, Vukosi Kekere, Temitope UCTD Sustainable Development Goals (SDGs) Diffusion of protest movement Collective violence Sentiment analysis Topic modelling Machine learning Natural language processing Thesis (PhD (Information Technology)--University of Pretoria, 2025. Social media data is a rich source for understanding social phenomena. The computational analysis of the dataset provides a different perspective on the observed phenomena. The data provided on social media platforms allows users to communicate and engage in discourse without the restrictions that traditional surveys and polls sometimes impose. Although surveys and polls are not always restrictive, social media data provides an opportunity for freer public discourse on any social event. The advancement in natural language processing, computing power, and pretrained language models has given rise to advanced text analysis. Computational analysis of social media complements the sociology framework that theorises human behaviour during a public health crisis or societal instability. Using a mixed-methods research design, the study aimed to explore how machine learning grounded in social theories can enhance the understanding of human compliance, adjustment and collective violence. The study analysed Twitter conversations (currently known as X), combining natural language processing from computer science with social theories from sociology to explore, explain, and interpret human behaviour during the COVID-19 pandemic and the July 2021 unrest in South Africa. To be specific, sentiment analysis served as a proxy for understanding public perception and compliance with non-pharmaceutical interventions by the South African government during the pandemic in the first study. In the second longitudinal study, sentiment analysis provided an empirical evaluation of adjustment phases during the pandemic. The third study showed the utility of sentiment analysis in measuring the diffusion of collective behaviour during the jailing of former President Zuma, which sparked the unrest. In addition, topic modelling enabled the in-depth exploration of discourse that occurred during compliance with government policy during the COVID-19 pandemic, the adjustment phases, and the spread of unrest in South Africa. The study produced two gold-standard datasets to support the findings. Humans created one dataset, while a pre-trained language model generated the other. The production process is outlined to demonstrate reproducibility in other scenarios. The datasets are a valuable resource for computational scientists and sociologists advancing the study of human behaviour in similar or different social events and contexts. The study's introduction of sentiment analysis as a social marker of compliance, adjustment and collective behaviour highlights empirical evaluation of sociological theories and how computational analysis contributes to the growing field of sociology. The findings of the first study showed widespread negative sentiment, indicating a lack of public confidence in the South African government’s response to the pandemic. The second study showed that the adjustment phases to non-pharmaceutical interventions during COVID-19 were complete and followed the W-curve adjustment model, although the curve was inverted. By tracking sentiment over time, the study introduced sentiment as a measure of human adjustment and suggested that the interval between the four adjustment phases seems to be within 3 months. The third study showed that the spread of violence during the July unrest followed an S-curve diffusion pattern in sentiment. These findings underscore that social media serves as an early indicator of public health and urban safety crises, and computational analysis complements sociological frameworks. The machine learning models provided in the study, when interpreted within sociological frameworks, can provide monitoring of compliance, adjustment, and diffusion. This integral approach provides feedback on government policies and policing, serving as an evidence-based strategy for maintaining safer cities and healthier societies. University of Pretoria Doctoral Bursary International Development Research Centre Informatics PhD (Information Technology) Unrestricted Faculty of Engineering, Built Environment and Information Technology SDG-03: Good health and well-being SDG-11: Sustainable cities and communities SDG-16: Peace, justice and strong institutions 2026-02-20T12:39:44Z 2026-02-20T12:39:44Z 2026-03-18 2025-09-30 Thesis * A2026 http://hdl.handle.net/2263/108554 https://doi.org/10.25403/UPresearchdata.31348177 en © 2024 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. application/pdf University of Pretoria
spellingShingle UCTD
Sustainable Development Goals (SDGs)
Diffusion of protest movement
Collective violence
Sentiment analysis
Topic modelling
Machine learning
Natural language processing
Machine learning for social event analysis : public perceptions during COVID-19 and collective violence in South Africa
title Machine learning for social event analysis : public perceptions during COVID-19 and collective violence in South Africa
title_full Machine learning for social event analysis : public perceptions during COVID-19 and collective violence in South Africa
title_fullStr Machine learning for social event analysis : public perceptions during COVID-19 and collective violence in South Africa
title_full_unstemmed Machine learning for social event analysis : public perceptions during COVID-19 and collective violence in South Africa
title_short Machine learning for social event analysis : public perceptions during COVID-19 and collective violence in South Africa
title_sort machine learning for social event analysis public perceptions during covid 19 and collective violence in south africa
topic UCTD
Sustainable Development Goals (SDGs)
Diffusion of protest movement
Collective violence
Sentiment analysis
Topic modelling
Machine learning
Natural language processing
url http://hdl.handle.net/2263/108554
https://doi.org/10.25403/UPresearchdata.31348177