Research Article

A Novel Method for Text Classification Dealing with Local Data Structures and High Data Dimensionality

Weijia Zhong
University of British Columbia

Abstract

Text categorization involves training models and making predictions over high-dimensional feature space. With the exponential growth on the amount of text resources on the Internet, the demand and difficulty of classifying digital text documents increases over the past decades. k nearest neighbors (kNN) has been proved to possess satisfying predictive power on text classification problems. However, kNN is sensitive to local data structures and its time cost is proportional to the product of the training set size and the feature space dimensionality. This paper proposes a novel text classification method called PCA pre-processed local correlation vector kNN (PCA-Local-CorVec-kNN) that applies PCA and kNN consecutively to the text datasets and introduces local correlation vectors to the sets of nearest neighbors produced by kNN. The proposed method has lower time cost than conventional kNN because of using PCA and is robust to local data structures since correlation vectors are introduced. Problems such as imbalanced datasets, choosing different k values for different samples, weighted voting are also tackled by the proposed method.

Keywords: local data structures; K nearest neighbors; principal component analysis; text categorization
Published: March 22, 2023
DOI: 10.54254/2755-2721/2/20220540
Volume: ACE Vol.2
pp. 752-764
Download PDF

References

  1. H. Balinsky, A. Balinsky, S. J. Simske, “DocEng ’11: Proceedings of the 11th ACM symposium on Document engineering,” 175-184 (2005).
  2. H. Haleem, C. Niyas, S. Verma, A. Kumar, and F. Ahmad, "Effective probabilistic model for webpage classification," in Emerging Trends in Computing and Communication, 277-290 (2014).
  3. F. Shen, X. Luo, and Y. Chen, "Text classification dimension reduction algorithm for Chinese web Page based on deep learning," in International Conference on Cyberspace Technology, 451-456 (2013).
  4. X. Jin, Y. Li, T. Mah, and J. Tong, "Sensitive webpage classification for content advertising," in ADKDD'07: Proceeding of the 1st international workshop on Data mining and audience intelligence for advertising, 28-33 (2007).
  5. V. S. Shirsat, R. S. Jagdale, and S. N. Deshmukh, "Sentence level sentiment identification and calculation from news articles using machine learning techniques," in Computing, Communication and Signal Processing, 371-376 (2018).
  6. A. K. Dash, J. K. Rout, and S. K. Jena, "Harnessing twitter for automatic sentiment identification using machine learning techniques," in Proceedings of 3rd International Conference on Advanced Computing, Networking and Informatics, 507-514 (2015).
  7. W. Liu and T. Wang, "Indexed-based online text classification for SMS spam filtering," in Journal of Computers, vol, 5, No. 6, 844-851 (2010).
  8. O. Amayri and N. Bouguila, "A study of spam filtering using support vector machines," in Artificial Intelligence Review, vol. 34, 73-108, (2010).
  9. JM. G. Hidalgo, G. C. Bringas, E. P. Sanz, and F. C. Garcia, "Content based SMS spam filtering," in DocEng'06: Proceedings of the 2006 ACM symposium on Document engineering, 107-114, (2006).
  10. Y. Netzer, D. Gabay, M. Adler, Y. Goldberg, and M. Elhadad, "Ontology evaluation through text classification," in APWeb2009, WAIM 2009: Advances in Web and Network Technologies, and Information Management, 210-221 (2009).
  11. S. Schmidt, S. Schnitzer, and C. Rensing, "Text classification based filters for a domain-specific search engine," in Computers in Industry, vol. 78, 70-79 (2016).
  12. A. K. Uysal, "On two-stage feature selection methods for text classification," in IEEE Access, vol. 6, 43233-43251 (2018).
  13. V. Bijalwan, V. Kumar, P. Kumari, and J. Pascual, "KNN based machine learning approach for text and document mining," in International Journal of Database Theory and Application, vol.7, no.1, 61-70 (2014).
  14. S. C. Zhang, X. L. Li, M. Zong, X. F. Zhu, and D. B. Cheng, "Learning k for kNN classification," in ACM Transactions on Intelligent Systems and Technologies, vol. 8, no. 3, 1-19 (2017).
  15. H. Liang, X. Sun, Y. Sun, and Y. Gao, "Text feature extraction based on deep learning: a review", in Journal on Wireless Communications and Networking (2017(1)): 211.
  16. H. Moisl, "Data normalization for variation in document length in exploratory multivariate analysis of text corpora" in The 6th International Conference on Informatics and Systems, (2008).
  17. A. K. Uysal and S. Gunal, "A novel probabilistic feature selection method for text classification," in Knowledge Based Systems, vol. 36, 226-235 (2012).
  18. E. Frank and R. R. Bouckaert, "Naive Bayes for text classification with unbalanced classes," in Knowledge Discovery in Databases: PKDD 2006, 503-510 (2006).
  19. P. Tang and T. W. Chow, "Recognition of word collection habits using frequency rank ratio and inter-term intimacy," in Expert Systems with Applications, vol. 40, iss. 11, 4301-4314 (2013).
  20. G. Forman, "Choose your words carefully: an empirical study of feature selection metrics for text classification," in PKDD2002: Principles of Data Mining and Knowledge Discovery, 150-162 (2002).
  21. D. D. Lewis and M. Ringuette, "Comparison of two learning algorithms for text categorization," in SDAIR'94: Proceedings of the Third Annual Symposium on Document Analysis and Information Retrieval, (1994)
  22. Y. Li, and C. Chen, "Research on the feature selection techniques used in text classification," in 2012 9th International Conference on Fuzzy Systems and Knowledge Discovery (FSKD), 725-729 (2012)
  23. L. Yu and H. Liu, "Efficient feature selection via analysis of relevance and redundancy," in Journal of Machine Learning Research, vol.5, 1205-1224 (2004)
  24. N. E. Aboudi and L. Benhlima, "Review on wrapper feature selection methods," in 2016 International Conference no Engineering & MIS (ICEMIS), 1-5 (2016).
  25. T. N. Lal, O. Chapelle, J. Weston, A. Elisseeff, "Embedded methods," in Feature Extraction, 137-165 (2006).
  26. A. K. Uysal, "An improved global feature selection scheme for text classification," in Expert Systems with Applications, vol. 42, 82-92 (2016).
  27. A. Rehman, K. Javed, H. A. Babri, and M. Saeed, "Relative discrimination criterion - a novel feature ranking method for text data," in Expert Systems with Applications, vol. 42, iss. 7, 3670-3681 (2015).
  28. I. K. Fodor, "A survey of dimension reduction techniques," No. UCRL-ID-148494, Lawrence Livermore National Lab., CA (US) (2002).
  29. S. Deerwester, S. T. Dumais, G. W. Furnas, T. K. Landauer, and R. Harshman, "Indexing by latent semantic analysis," in Journal of the American society for information science, vol. 41, iss. 6 (1990).
  30. Y. Yang and X. Liu, "A re-examination of text categorization methods," in SIGIR'99: Proceedings of the 22nd annual international ACM SIGIR conference on Research and development in information retrieval, 42-49 (1999).
  31. C. W. Hsu and C. J. Lin, "A comparison of methods for multiclass support vector machines," in IEEE Transactions on Neural Networks, vol. 13, iss. 2, 415-425 (2002).
  32. H. Liu and R. Setiono, "Chi2: feature selection and discretization of numeric attributes," in Proceedings of 7th IEEE International Conference on Tools with Artificial Intelligence, 388-391 (1995).
  33. S. C. Zhang, X. L. Li, M. Zong, X. F. Zhu, R. L. Wang, "Efficient kNN classification with different numbers of nearest neighbors," in IEEE Transactions on Neural Networks and Learning Systems, vol. 29, no. 5 (2018).