Abstract
As digital text data grows exponentially, automated organization through clustering becomes essential. This paper presents a comparative analysis of two prominent unsupervised learning algorithms: Self-Organizing Maps (SOM) and K-means. By evaluating their performance on a diverse document collection, we demonstrate that SOM provides significantly more stable results and preserves the underlying information topology, making it a robust alternative to the widely used but seed-sensitive K-means algorithm.
Introduction
The rapid expansion of digital content—ranging from news articles to emails—necessitates efficient automated categorization. Text clustering serves as a foundational tool for this task. While K-means is often favored for its simplicity and speed, its reliance on initial random seeds can lead to inconsistent results. This study investigates whether Self-Organizing Maps (SOM), a neural network-based approach, can address these stability issues while offering a more intuitive spatial representation of document relationships.
Methods
The research evaluates two distinct clustering paradigms:
- K-means: A partition-based algorithm that iteratively assigns documents to the nearest of $k$ cluster centers. Its "greedy" nature makes it susceptible to local optima based on initial starting conditions.
- Self-Organizing Maps (SOM): A competitive learning neural network that maps high-dimensional text vectors onto a two-dimensional grid. Unlike K-means, SOM updates both the winning neuron and its neighbors, preserving the topological structure of the data.
Performance is quantified using the F-measure, which harmonizes precision and recall to assess how accurately the algorithms replicate human-labeled categories.
Experimental Dataset
The study utilized a corpus of 645 documents categorized into 16 distinct groups. These categories span various domains, including science, technology, and general interest topics, providing a rigorous test for semantic feature extraction.
Results and Discussion
The Stability Gap
The most significant finding is the stark difference in algorithmic stability. As shown in the experimental results, K-means performance varies wildly across different runs due to its sensitivity to initial seeds. In contrast, SOM maintains a consistent performance level.
While K-means' F-measure fluctuated between 0.65 and 0.94, SOM consistently achieved a score of 0.93. This reliability is crucial for real-world applications where consistent categorization is required.
Topology and Navigation
Beyond raw accuracy, SOM offers a unique advantage: topology preservation. Because neighboring neurons on the SOM grid are updated together, the resulting map places semantically similar topics in physical proximity. This creates a "browsable" information space that K-means, which treats clusters as isolated partitions, cannot provide.
Handling Over-provisioning and Noise
The study also observed that SOM handles "over-provisioned" neurons (where the grid size exceeds the number of classes) gracefully. Instead of failing, the algorithm spreads a single class across adjacent neurons, allowing for finer sub-clustering. Furthermore, SOM demonstrated higher tolerance for "noisy" documents—outliers that often skew K-means centroids.
Conclusion
While K-means remains a viable option for simple, high-speed clustering, SOM emerges as a superior choice for complex document collections where stability and intuitive navigation are paramount. Despite requiring more hyperparameter tuning, SOM's ability to consistently deliver high-quality, topologically organized clusters makes it a powerful tool for modern text mining. Future work will focus on refining SOM's sensitivity to output layer topology and exploring its scalability for massive web-scale datasets.
Summary updated