Introduction
Text categorization (TC) is a foundational task in natural language processing, traditionally relying on the Vector Space Model (VSM) where documents are represented as weighted term vectors. For decades, Term Frequency-Inverse Document Frequency (TFIDF) has served as the standard weighting scheme. However, TFIDF was originally developed for Information Retrieval (IR) and is inherently unsupervised. In TC tasks, where category labels are available, TFIDF fails to leverage class-specific information. This paper proposes ConfWeight, a supervised weighting method that utilizes statistical confidence intervals to determine term importance relative to specific categories.
Methodology: The ConfWeight Approach
ConfWeight replaces the unsupervised IDF component with a supervised "strength" measure. The core of the method involves:
- Wilson Proportion Estimate: To robustly estimate the proportion of documents containing a term within a category, the authors employ the Wilson interval. This provides a more reliable estimate than simple ratios, particularly for rare terms.
- Statistical Gap Analysis: The method calculates the gap between the lower bound of a term's frequency in the positive class ($MinPos$) and the upper bound in the negative class ($MaxNeg$).
- Term Strength ($str$): A term receives high strength if it appears significantly more frequently in the positive class than the negative class under a "worst-case" statistical scenario. If the distributions overlap significantly, the strength is zero.
- Global Policy and Final Weighting: To ensure consistency across multiple categories, the maximum strength ($maxstr$) across all categories is used. The final weight is calculated as $ConfWeight = \log(tf + 1) \times maxstr$.
Experimental Setup
The performance of ConfWeight was evaluated against TFIDF and GainRatio using three benchmark datasets:
- Reuters-21578: 90 categories of business news.
- Ohsumed: 49 categories of medical abstracts.
- Reuters Corpus Volume 1 (RCV1): A large-scale dataset with over 800,000 documents and 103 categories.
Classifiers used for evaluation included k-Nearest Neighbors (KNN) and Support Vector Machines (SVM).
Results and Discussion
ConfWeight consistently outperformed both TFIDF and GainRatio across all tested datasets. A key advantage of ConfWeight is its stability relative to the number of features. While TFIDF often requires aggressive manual feature selection to prevent performance degradation from "noise" words, ConfWeight provides implicit feature selection. Terms that are not statistically discriminative receive a strength of zero, effectively removing them from the vector space.
As illustrated in the RCV1 results (Figure 4), ConfWeight maintains high Micro-F1 scores even as the number of features increases, whereas TFIDF performance fluctuates and eventually declines. On the large-scale RCV1 dataset using KNN, ConfWeight achieved a Micro-F1 score of 0.833, compared to 0.785 for TFIDF.
Table 1 (Figure 6) summarizes the results across different Information Gain (IGain) thresholds. ConfWeight consistently yields the highest Micro-F1 scores, demonstrating its robustness and superior discriminative power across varying levels of initial feature filtering.
Conclusion
ConfWeight represents a significant advancement over traditional unsupervised weighting schemes for text categorization. By incorporating category information through statistical confidence intervals, it achieves higher accuracy and provides built-in robustness to noise. Future work may explore its application with a broader range of classifiers and its adaptation for multi-class, non-binary tasks.
Summary updated