A Weighted Similarity Metric for Community Detection in Sparse Data
Yong Zhang, Eric Herrison Gyamfi
TL;DR
The paper tackles the challenge of analyzing highly sparse short-text data by introducing a weighted similarity that avoids imputation. It combines three components—$S_{Num}$ for overlapping numerical values, $S_{Nan}$ for shared missingness, and $S_{Non}$ for non-matching missingness—into $\text{similarity} = S_{Num} + S_{Nan} + S_{Non}$, ensuring $S \in [-1,1]$. Through a shampoo-brand sentiment case study using a Girvan-Newman clustering setup, the method consistently outperforms imputation-based similarities across multiple structural and quality metrics, especially as network complexity grows. The approach is adaptable to different data types and domains, offering a robust framework for downstream analytics in sparse-data settings, with explicit emphasis on leveraging informative missingness without imputing values.
Abstract
Many Natural Language Processing (NLP) related applications involves topics and sentiments derived from short documents such as consumer reviews and social media posts. Topics and sentiments of short documents are highly sparse because a short document generally covers a few topics among hundreds of candidates. Imputation of missing data is sometimes hard to justify and also often unpractical in highly sparse data. We developed a method for calculating a weighted similarity for highly sparse data without imputation. This weighted similarity is consist of three components to capture similarities based on both existence and lack of common properties and pattern of missing values. As a case study, we used a community detection algorithm and this weighted similarity to group different shampoo brands based on sparse topic sentiments derived from short consumer reviews. Compared with traditional imputation and similarity measures, the weighted similarity shows better performance in both general community structures and average community qualities. The performance is consistent and robust across metrics and community complexities.
