[Paper Review] Bug Classification: Feature Extraction and Comparison of Event Model using Naïve Bayes Approach
This paper proposes a Naïve Bayes-based approach for automated bug classification using feature extraction and event model comparison (Bernoulli and Multinomial) on crash logs. It evaluates accuracy and recall across models, demonstrating that the Multinomial Naïve Bayes model outperforms Bernoulli in classifying network bugs from mined bug databases.
In software industries, individuals at different levels from customer to an engineer apply diverse mechanisms to detect to which class a particular bug should be allocated. Sometimes while a simple search in Internet might help, in many other cases a lot of effort is spent in analyzing the bug report to classify the bug. So there is a great need of a structured mining algorithm - where given a crash log, the existing bug database could be mined to find out the class to which the bug should be allocated. This would involve Mining patterns and applying different classification algorithms. This paper focuses on the feature extraction, noise reduction in data and classification of network bugs using probabilistic Naïve Bayes approach. Different event models like Bernoulli and Multinomial are applied on the extracted features. When new, unseen bugs are given as input to the algorithms, the performance comparison of different algorithms is done on the basis of accuracy and recall parameters.
Motivation & Objective
- To address the challenge of manual and time-consuming bug classification in software development.
- To reduce effort in analyzing bug reports by automating classification using data mining and machine learning.
- To compare the effectiveness of different event models (Bernoulli and Multinomial) in classifying network-related bugs.
- To improve classification accuracy and recall through feature extraction and noise reduction in crash logs.
- To provide a structured, scalable algorithm for mapping new bugs to existing classes in a bug database.
Proposed method
- Extract features from crash logs and bug reports using text mining techniques.
- Apply noise reduction techniques to improve data quality before classification.
- Model the bug classification task using two probabilistic event models: Bernoulli and Multinomial Naïve Bayes.
- Train the classifiers on a historical bug database to learn class distributions.
- Use conditional probability estimation to assign new, unseen bugs to the most likely class.
- Evaluate performance using standard metrics: accuracy and recall on test instances.
Experimental results
Research questions
- RQ1How effective is the Naïve Bayes approach in classifying network bugs using extracted features?
- RQ2Which event model—Bernoulli or Multinomial—yields higher accuracy and recall in bug classification?
- RQ3To what extent does feature extraction and noise reduction improve classification performance?
- RQ4Can the proposed method reduce manual effort in bug triage and classification?
- RQ5How do the classifiers generalize to new, unseen bug reports?
Key findings
- The Multinomial Naïve Bayes model achieved higher accuracy and recall compared to the Bernoulli model in classifying network bugs.
- Feature extraction and noise reduction significantly improved the quality of input data for classification.
- The proposed approach effectively mapped new bug reports to existing classes in the bug database with measurable performance gains.
- The study demonstrates that probabilistic models like Naïve Bayes are viable for automated bug classification in software engineering.
- The results suggest that Multinomial Naïve Bayes is better suited for text-based bug classification tasks involving frequency of terms in crash logs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.