Unsupervised Topic Shift Detection in Chats
In modern digital communication, chat platforms generate vast amounts of unstructured conversational data. However, the fluid, informal, and cross-timeframe nature of these chats challenges traditional supervised topic detection approaches. Addressing this gap, we propose an entirely unsupervised framework for detecting topic shifts in chat logs. Our method first converts individual messages into contextual embeddings using DistilBERT, thereby capturing nuanced semantic features. Next, rather than simply segmenting messages based on fixed temporal windows, we analyze the temporal evolution of these embeddings using a novel smoothing algorithm that highlights significant changes in the semantic trajectory of the conversation. Candidate topic shift points are then identified through an unsupervised peak detection process applied to the smoothed signal. Finally, an adaptive clustering algorithm groups the segmented data to refine topic boundaries without any manual labeling, ensuring the approach remains completely unsupervised. This method not only better accommodates the dynamic characteristics of chat logs but also robustly distinguishes fine-grained topic transitions. Experimental results demonstrate that our unsupervised framework outperforms traditional lexical and statistical techniques in detecting nuanced topic changes, making it highly effective for applications in social media analysis and real-time chat monitoring.
Authors
- Benjamin C. M. Fung (ORCID: https://orcid.org/0000-0001-8423-2906)
- Yuze Kevin Liu
- Noman Mohammed (ORCID: https://orcid.org/0000-0001-8547-9951)
- Djedjiga Mouheb (ORCID: https://orcid.org/0000-0003-0531-2196)
Institutions
- Université Laval (CA)
- University of Manitoba (CA)
- McGill University (CA)
Publication Details
- Published
- 2025-07-19
- DOI
- https://doi.org/10.1109/amlds63918.2025.11159466
- Primary Topic
- Complex Network Analysis Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00