NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Structural analysis of chat messages for topic detection

Haichao Dong, Siu Cheung Hui, Yulan HeOnline Inf. Rev 2006

TL;DR

This paper tackles the challenge of automatically identifying topics within the informal and dynamic world of instant messaging (IM) conversations. The authors propose a novel "indicative term-based" approach that leverages specific keywords to categorize chat sessions, outperforming traditional methods and demonstrating high precision and accuracy, making it suitable for real-time monitoring.

What Problem Does This Paper Address?

Instant messaging has become a ubiquitous communication tool, but its informal nature, characterized by short messages, slang, acronyms, and dynamic topic shifts, makes traditional text analysis techniques for topic detection difficult. Existing methods often struggle with the inherent messiness of chat data. The authors aim to develop an effective and efficient method for automatically identifying the topics discussed in IM conversations, which is crucial for applications like content moderation, user behavior analysis, and even security monitoring.

Methods

The core of the paper is the proposed "indicative term-based categorization approach." This method involves several key steps:

  • Sessionalization: Instead of analyzing individual messages, chat messages are grouped into "sessions" based on temporal proximity and participant continuity. This treats a coherent conversation as a single unit.
  • Feature Extraction: The system extracts features not only from the textual content but also from icon texts and URLs embedded within the chat messages. This acknowledges the multimodal nature of IM.
  • Feature Selection (Indicative Terms): This is the novel part. The authors identify "indicative terms" (topic keywords) through an experimental study. These terms are highly representative of specific topics and are stored in an "Indicative Term Dictionary." This dictionary is used to select a concise set of features for classification, significantly reducing the input dimensionality.
  • Topic Categorization: Three common classification algorithms – Naïve Bayes, Associative Classification, and Support Vector Machines (SVM) – are employed to classify chat sessions into predefined topics. The system uses a multi-label approach, allowing sessions to be assigned multiple topics.

Datasets

The study utilized a dataset of 33,121 sample chat messages gathered from 1700 sessions of conversations between 72 pairs of MSN Messenger users over a four-month period in 2005. These users were graduate/undergraduate students from Nanyang Technological University and the National University of Singapore.

For experimental evaluation, chat messages were downloaded from various web chat sites, including UGroups.com, jolt.co.uk, and AdultFriendFinder.com. Five subsets of chat messages were collected, each corresponding to one of the five evaluated topic categories: Sports, Pornography, Games, Entertainment, and Travel. An additional "Others" subset was used for training. Each subset contained approximately 800 sessions.

Key Insights and Ideas

  • The "messiness" of chat is a feature, not just noise: The authors recognize that chat language (acronyms, short forms, misspellings) and its structure (short messages, dynamic topics) are inherent characteristics that need to be addressed, not just filtered out.
  • Indicative terms are powerful: The core idea of using a curated set of "indicative terms" as features for topic detection is a significant contribution. This approach is more effective and efficient than traditional methods that rely on general term frequencies.
  • Sessions are better units than individual messages: Grouping messages into conversational sessions provides a more meaningful context for topic detection, overcoming the brevity of individual messages.
  • Multimodal features matter: Incorporating information from icons and URLs alongside text enhances the understanding of chat content.
  • SVM excels in this domain: The experimental results consistently show SVM as the top-performing classifier, particularly in precision and accuracy.

Key Results

  • The proposed indicative term-based approach outperformed the traditional document frequency (DF)-based approach in most measures, especially in terms of stability and computational efficiency with a limited number of features.
  • SVM consistently achieved the best performance across all evaluated metrics (precision, recall, F-measure, accuracy) compared to Naïve Bayes and Associative Classification.
  • In training, SVM achieved high precision (90.02%) and accuracy (95.33%). In testing, SVM achieved high precision (87.25%) and accuracy (92.14%).
  • Recall was generally lower than precision for all classifiers, suggesting a trade-off between identifying all relevant topics and avoiding false positives.
  • The "Sports" category generally showed the best classification performance, while "Entertainment" and "Travel" were more challenging, likely due to the broader range of indicative terms required.
  • The indicative term-based approach is computationally efficient, making it suitable for online topic detection.

Limitations and Future Work

  • Recall is a challenge: While precision and accuracy were high, recall was consistently lower across all classifiers. This indicates that while the system is good at correctly identifying topics, it might miss some instances.
  • Difficulty in identifying indicative terms for certain topics: The authors note that identifying representative indicative terms for topics like "Entertainment" and "Travel" is more difficult than for topics like "Pornography," impacting performance.
  • Future work: The paper suggests that the proposed approach, with its high precision and accuracy, is promising for topic detection and can be easily incorporated into online monitoring systems. Further research could focus on improving recall and exploring more sophisticated methods for identifying indicative terms for challenging topics.

Summary updated

BibTeX
@article{dong2006structural,
  author = {Haichao Dong and Siu Cheung Hui and Yulan He},
  title = {{Structural analysis of chat messages for topic detection}},
  journal = {Online Inf. Rev.},
  year = {2006},
  doi = {10.1108/14684520610706398},
}

Loading related content...

Figure