Automatic classification of document resources based on Naive Bayesian classification algorithm

Rong WangInformatica 2022

TL;DR

This paper presents a modular, end-to-end system designed to crawl, process, and classify massive collections of academic documents from the web. By combining a distributed Hadoop-based processing pipeline with semantic ontology integration and a discretized Naive Bayesian algorithm, the author achieves an 82% efficiency rate, significantly outperforming traditional classification methods while solving the "semantic gap" inherent in simple word-vector models.

What Problem Does This Paper Address?

The explosion of academic resources on the World Wide Web has created a "stumbling block" for researchers: there is simply too much information to categorize manually. Traditional automatic classification often relies on word vector spaces (bag-of-words models). While common, these models have two major flaws:

  1. High Dimensionality: They create massive, sparse matrices that exhaust computer memory.
  2. Semantic Blindness: They ignore relationships between words, failing to recognize that "synonyms" might belong to the same category or that "polysemy" (one word with multiple meanings) requires context.

The author seeks to build a system that can handle the sheer scale of the web while incorporating enough semantic "intelligence" to classify documents accurately and quickly.

Methods

The researchers implemented a four-stage modular pipeline:

  • Automatic Capture: Using Heritrix, an open-source, extensible crawler, the system targets specific academic domains and filters for PDF files. It uses a rule-based judgment method (looking for keywords like "abstract," "introduction," and "conclusion") to ensure the files are actually academic papers.
  • Distributed Matrix Processing: To handle the computational load, the system uses Hadoop. A MapReduce process converts documents into a word-frequency matrix. By using a distributed approach, the system avoids the memory bottlenecks of single-machine processing.
  • Ontology Integration: This is the "semantic" secret sauce. The system uses the PROMPT tool to merge four major ontologies: DBpedia, WordNet, HowNet, and Cye. This integrated ontology allows the system to understand relationships between concepts rather than just treating words as isolated strings.
  • Optimized Naive Bayes: The core classifier is a Naive Bayesian algorithm. Crucially, the author applies data discretization to continuous attributes. This maps continuous data into discrete categories, which prevents the "zero-probability" problem (where a single missing attribute can zero out the entire posterior probability of a class).

Datasets

The study utilized a mix of standard benchmarks and real-world web data:

  • Standard ML Datasets: isolet, covtype, and census_ were used for initial algorithmic validation.
  • Web Crawl Data: The system captured documents from four diverse target sites:
  • Stanford University (University website)
    1. Omicsonline.org (Open Access warehousing)
    2. ACM.org (Subject portal)
    3. Webis.de (Conference website)
  • Training Labels: The model was trained using 12 categories defined by the professional classification directory of the Chinese Ministry of Education (e.g., Philosophy, Economics, Law, Engineering, etc.).

Key Insights and Ideas

  • Discretization is Key: The most significant "aha moment" is that Naive Bayes performs better on text when continuous attributes are discretized. This makes the system more robust against outliers and prevents the algorithm from failing when it encounters a word it hasn't seen in a specific category before.
  • Ontology Merging: By integrating WordNet (lexical) with DBpedia (structured knowledge), the system bridges the gap between raw text and human-like conceptual understanding, reducing the dimensionality of the vector space without losing meaning.
  • Scalability via Redundancy: The Hadoop implementation saves document indices on a "Namenode" while storing actual document data across at least two "Datanodes." This ensures that the classification process is fault-tolerant and can scale to hundreds of thousands of documents.

Key Results

  • Efficiency: The Naive Bayes approach achieved 82% efficiency, compared to 70% for "ordinary" (non-semantic/non-discretized) algorithms.
  • Speed at Scale: In the largest experiment, the system processed 108,026 documents (generating a matrix with over 900,000 columns) in approximately 7 hours and 34 minutes.
  • Accuracy Improvement: The author notes that discretization slightly but consistently improved classification accuracy by resolving the "extreme case" where posterior probabilities would otherwise drop to zero.

Limitations and Future Work

While the system is robust, the author acknowledges a few areas for improvement:

  • Metadata Reliance: Currently, the system extracts "year" data from PDF metadata (creation date) rather than mining the text itself, which can sometimes be inaccurate if a file was re-saved.
  • Hybrid Approaches: The author suggests that future work should focus on combining two or more classification techniques (ensemble learning) to further push the boundaries of accuracy.
  • Real-time Classification: While 7 hours for 100k documents is fast, the goal is to move toward "zero-second" classification for individual web documents as they are crawled.

Summary updated

Abstract

World Wide Web has become big as the amount of documents collection is increasing rapidly. The automatic classification of document resources based on Naive Bayesian classification algorithm is detailed in this paper. Firstly, this paper introduces the relevant theories of naive Bayes classification and the automatic document classification system. Then, a massive network academic document automatic classification system is designed and implemented. The system uses modular design, including academic document automatic capture module, academic document word document matrix processing module, ontology integration module and semantic driven classification module. Finally, based on the Naive Bayesian classification algorithm, the training set of 12 categories preset is utilized in the professional classification directory of the Ministry of education.. Experiments show that the naive Bayesian classification algorithm can effectively complete the automatic capture, processing and classification of massive academic documents, which can not only improve the classification accuracy, but also reduce the running time of automatic classification. It solves the problems of the integration of two heterogeneous ontology libraries and also the problem that the traditional word vector space cannot meet people's needs for semantic classification.
BibTeX
@inproceedings{wang2022automatic,
  author = {Rong Wang},
  title = {{Automatic classification of document resources based on Naive Bayesian classification algorithm}},
  booktitle = {Informatica},
  year = {2022},
  doi = {10.31449/inf.v46i3.3970},
}
Figure