Features extraction based on Naive Bayes algorithm and TF-IDF for news classification
Author:
Open Access
- 30 July 2025
- journal article
- research article
- Published by Public Library of Science (PLoS) in PLOS ONE
- Vol. 20 (7) , e0327347
Abstract
The rapid proliferation of online news demands robust automated classification systems to enhance information organization and personalized recommendation. Although traditional methods like TF-IDF with Naive Bayes provide foundational solutions, their limitations in capturing semantic nuances and handling real-time demands hinder practical applications. This study proposes a hybrid news classification framework that integrates classical machine learning with modern advances in NLP to address these challenges. Our methodology introduces three key innovations: (1) Domain-Specific Feature Engineering, combining tailored n-grams and entity-aware TF-IDF weighting to amplify discriminative terms; (2) BERT-Guided Feature Selection, leveraging distilled BERT to identify contextually important words and resolve rare-term ambiguities; and (3) Computationally Efficient Deployment, achieving 95.2% of the accuracy of BERT at 1/52.4th of the inference cost. Evaluated on a balanced corpus of Sina News articles in 11 categories, the system demonstrates a test precision of 95.12% (vs. 84.43% for SVM+TF-IDF baseline), with statistically significant improvements confirmed by 5-fold cross-validation(p < 0.01). The critical findings reveal strong performance in distinguishing semantically distinct categories, while exposing challenges in fine-grained differentiation. The efficiency of the framework (2.1 inference latency) and scalability (linear utilization of CPU resources) validate its practicality for real-world deployment. This work bridges the gap between traditional feature engineering and transformer-based models, offering a cost-effective solution for news platforms. Future research will explore hierarchical classification and the adaptation of dynamic topics to further refine semantic boundaries.Keywords
Funding Information
- Tsinghua Visiting Scholar Program 2023 (243049)
- Zhejiang Social Sciences Project 2026 (26NDJC123YB)
This publication has 13 references indexed in Scilit:
- Tweet recommendation using Clustered Bert and Word2vec Models2023
- Comparative Analysis Of Machine Learning Models For Fake News Classification2023
- Fake News Detection using Naive Bayes Classifier and Passive Aggressive Classifier2023
- Chinese Text Sentiment Classification Based on LSTM Word-Tag Relational Network Model2023
- An Intelligent Data-Centric Web Crawler Service for API Corpus Construction at Scale2022
- Integrating Collocation as TF-IDF Enhancement to Improve Classification Accuracy2019
- Bidirectional LSTM with attention mechanism and convolutional layer for text classificationNeurocomputing, 2019
- Bangla news classification using naive Bayes classifier2014
- Study on SVM Compared with the other Text Classification Methods2010
- Evolution by Gene Duplication1970