IRJET- Software Bug Prediction using Machine Learning Approach

IRJET Journal
IRJET JournalFast Track Publications

https://www.irjet.net/archives/V6/i4/IRJET-V6I41068.pdf

International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 4968
Software Bug Prediction using Machine Learning Approach
Meenakshi, Dr. Satwinder Singh
M. Tech (Computer Science and Technology), Central University of Punjab, Bathinda.
Assistant Professor, Dept. of Computer Science and Technology, Central University of Punjab, Bathinda.
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract -Software bug prediction plays an important role in development and maintenance of good qualitysoftware. Bugsare
some kind of code in any software which can cause failure. Major cost of any software project is used in maintenance of that
software because of bugs. It is very important to predict bugs in earlier stage of a software development. So that the development
team can identify them and resolve them which can improve software, quality, reliability, efficiencyandreducesthecostof project.
In this paper, ML is used to predict the bugs on the bases of historical data. At last we compare the results of two ML classifiers i.e.
Naive Bayes and J48.
Key Words: Bug Prediction, quality, Machine learning, Naive Bayes, J48.
1. INTRODUCTION
Software bug prediction is defined as a process where we try to predict bug based on historical data. Software bugs can affect
the software quality, reliability and maintenance cost. While developing software there are so many hidden bugs which can
cause software failure in future. Around 40-60% of cost is used in maintenance of software so it is very to predict the bugs in
earlier stages of software development. By predicting the bugs we can easily reduce the software failure rate. There are some
techniques are available to predict the bugs. In this paper, Machine learningapproachisusedtopredictthebugsinsoftwareon
historical data. Naive Bayes and J48 Classifiers are used to predict the bugs.
2. LITERATURE REVIEW
There are many studies about software bug prediction using machine learning techniques. For example,Instudy[3]proposed
machine learning approach. In which supervised learning is used to predict the bugs on the bases of historical data. There are
three classifiers are used i.e. Naive Bayes, Decision Tree, Artificial Neural Networks. Resultsgotfromthesethreeclassifiersare
compared with each other to find out the best model of machine learning to predict the bugs.
The study in [1] analysed that the software quality depends upon many factors like resources, executiveteametc.Threetypes
of machine learning approaches are used to predict the bugs i.e. based on classification method, based on clustering method
and based on ensemble approaches.
The study in [4] a comprehensive study is done on different existing predictive models. A deterministicstrategyshouldfollow
for predicting the bugs. A comparison is done between the models onthe basesofrecall andF-measure.Byusinggoodmodel in
software development environment, will give a reasonably accurate prediction.
The study in [2] defines that the maintenance of software is challenging task becauseofunpredictablebugsandfailureswhich
tends to increase in software cost. Machine learning approach is used to identifying the best way of predicting those bugs on
the bases of historical data. The different datasets are being compared with each other on the bases of f-measure, recall,
precision. Decision tree classification provides better prediction rather than other models.
This paper gives a comparative study of Naive Bayes and J48. The supervised learning in machine learningapproachisusedto
predict the bugs on the bases of f-measure, recall and precision. Bug prediction can improve the software success rate if
prediction is used in earlier stages.
3. RESEARCH METHODOLOGY
In Research Methodology, the machine learning algorithm and the used tools are discussed. Also, the various performance
measures are discussed which are used to analyse the experiment.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 4969
3.1 Data Collection
The datasets from promise data repository were used in the experiments. The datasets were collected from real software
projects by NASA and have many software modules. Some of the product metrics that are includedinthedata setare, Halstead
Content, Halstead Difficulty, Halstead Effort, Halstead Error Estimate, Halstead Length,HalsteadLevel,HalsteadProgramming
Time and Halstead Volume, Cyclomatic Complexity and Design Complexity, Lines of Total Code, LOC Blank,BranchCount,LOC
Comments, Number of Operands, Number of Unique Operands and Number of Unique Operators, and lastly Defect Metrics;
Error Count, Error Density, Number of Defects (with severity and priority information).
Table 1: Dataset Information
3.2 Observation recorded
Accuracy of a classifier on a given test set is the percentage of test set tuples that are correctly classified by the classifier.
Accuracy= (TP + TN)
(TP + TN + FP +FN)
Precision is a measure of correctness and it is a ratio between correctly classifiedsoftwarebugsandactual numberofsoftware
bugs assigned to their category. It is calculated by the equation below:
Precision= TP
TP + FP
Recall is a ratio between correctly classified software bugs and software bugs belonging to their category. It represents the
machine learning method’s ability of searching extension and is calculated by the following equation.
Recall = TP
TP + FN
4. RESULTS AND DISCUSSIONS
The experiments performed were analysed for different parameters.Theseparametershelptoinfervariousaspectsofmodels.
4.1 Design Metrics Prediction Model
To predict the bugs based on metrics should be accurate as possible. The resultant metrics prediction model has following
measures:
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 4970
Table 2: Performance based on Accuracy
Table 3: Performance based on F-measure
Table 4: Performance based on Recall
Table 5: Performance based on Precision.
5. CONCLUSIONS
Various approaches have been proposed using different datasets, different metrics and different performance measures.
Results reveal that the ML techniques are efficient approaches to predict the future software bugs. The comparison results
showed that the Decision Tree classifier has the best results over theothers.Moreover, experimental resultsshowed thatusing
ML approach provides a better performance for the prediction model than other approaches, such as linear AR model.
As a future work, we may involve other ML techniquesandprovideanextensivecomparisonamongthem.Furthermore,adding
more software metrics in the learning process is one possible approach to increase the accuracy of the prediction model.
Poisson regression model could be used and Neural network model to predict the open bugs count and its performance with
other existing models could be used.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 4971
REFERENCES
[1] Akmel, F., Birihanu, E., & Siraj, B. (2017). A literature review study of software defect pre-diction using machine learning
techniques. Int. J. Emerg. Res. Manag. Technol, 6(6), 300-306.
[2] Aleem, S., Capretz, L. F., & Ahmed, F. (2015). Comparative performance analysis of machine learning techniques for
software bug detection. ITCS, CST, JSE, SIP, ARIA, DMS, 71-79.
[3] Awni Hammouri, M. H. (2018). Software Bug Prediction using Machine Learning Approach. International Journal of
Advanced Computer Science and Applications (IJACSA) , vol. 9 (no.2), 78-83.
[4] N.Kalaivani, D. (2018). OverviewofSoftwareDefectPredictionusingMachineLearningAlgorithms.International Journal of
Pure and Applied Mathematics , 118 (20), 3863-3873
[5] Shruthi Puranika, P. D. (2016). A Novel Machine Learning Approach For Bug Prediction. 6th International Conference On
Advances In Computing & Communications, ICACC , 6 (8), 923-930.

Recomendados

SOFTWARE TESTING: ISSUES AND CHALLENGES OF ARTIFICIAL INTELLIGENCE & MACHINE ... von
SOFTWARE TESTING: ISSUES AND CHALLENGES OF ARTIFICIAL INTELLIGENCE & MACHINE ...SOFTWARE TESTING: ISSUES AND CHALLENGES OF ARTIFICIAL INTELLIGENCE & MACHINE ...
SOFTWARE TESTING: ISSUES AND CHALLENGES OF ARTIFICIAL INTELLIGENCE & MACHINE ...ijaia
41 views12 Folien
A Defect Prediction Model for Software Product based on ANFIS von
A Defect Prediction Model for Software Product based on ANFISA Defect Prediction Model for Software Product based on ANFIS
A Defect Prediction Model for Software Product based on ANFISIJSRD
209 views5 Folien
Comparative Performance Analysis of Machine Learning Techniques for Software ... von
Comparative Performance Analysis of Machine Learning Techniques for Software ...Comparative Performance Analysis of Machine Learning Techniques for Software ...
Comparative Performance Analysis of Machine Learning Techniques for Software ...csandit
422 views9 Folien
IRJET - Neural Network based Leaf Disease Detection and Remedy Recommenda... von
IRJET -  	  Neural Network based Leaf Disease Detection and Remedy Recommenda...IRJET -  	  Neural Network based Leaf Disease Detection and Remedy Recommenda...
IRJET - Neural Network based Leaf Disease Detection and Remedy Recommenda...IRJET Journal
17 views5 Folien
Review on Algorithmic and Non Algorithmic Software Cost Estimation Techniques von
Review on Algorithmic and Non Algorithmic Software Cost Estimation TechniquesReview on Algorithmic and Non Algorithmic Software Cost Estimation Techniques
Review on Algorithmic and Non Algorithmic Software Cost Estimation Techniquesijtsrd
595 views6 Folien
Automated exam question set generator using utility based agent and learning ... von
Automated exam question set generator using utility based agent and learning ...Automated exam question set generator using utility based agent and learning ...
Automated exam question set generator using utility based agent and learning ...Journal Papers
103 views6 Folien

Más contenido relacionado

Was ist angesagt?

Towards formulating dynamic model for predicting defects in system testing us... von
Towards formulating dynamic model for predicting defects in system testing us...Towards formulating dynamic model for predicting defects in system testing us...
Towards formulating dynamic model for predicting defects in system testing us...Journal Papers
64 views9 Folien
Benchmarking machine learning techniques von
Benchmarking machine learning techniquesBenchmarking machine learning techniques
Benchmarking machine learning techniquesijseajournal
234 views13 Folien
Generation of Search Based Test Data on Acceptability Testing Principle von
Generation of Search Based Test Data on Acceptability Testing PrincipleGeneration of Search Based Test Data on Acceptability Testing Principle
Generation of Search Based Test Data on Acceptability Testing Principleiosrjce
157 views7 Folien
Test case prioritization using firefly algorithm for software testing von
Test case prioritization using firefly algorithm for software testingTest case prioritization using firefly algorithm for software testing
Test case prioritization using firefly algorithm for software testingJournal Papers
422 views14 Folien
A Review on Parameter Estimation Techniques of Software Reliability Growth Mo... von
A Review on Parameter Estimation Techniques of Software Reliability Growth Mo...A Review on Parameter Estimation Techniques of Software Reliability Growth Mo...
A Review on Parameter Estimation Techniques of Software Reliability Growth Mo...Editor IJCATR
537 views6 Folien
Performance analysis of binary and multiclass models using azure machine lear... von
Performance analysis of binary and multiclass models using azure machine lear...Performance analysis of binary and multiclass models using azure machine lear...
Performance analysis of binary and multiclass models using azure machine lear...IJECEIAES
11 views9 Folien

Was ist angesagt?(17)

Towards formulating dynamic model for predicting defects in system testing us... von Journal Papers
Towards formulating dynamic model for predicting defects in system testing us...Towards formulating dynamic model for predicting defects in system testing us...
Towards formulating dynamic model for predicting defects in system testing us...
Journal Papers64 views
Benchmarking machine learning techniques von ijseajournal
Benchmarking machine learning techniquesBenchmarking machine learning techniques
Benchmarking machine learning techniques
ijseajournal234 views
Generation of Search Based Test Data on Acceptability Testing Principle von iosrjce
Generation of Search Based Test Data on Acceptability Testing PrincipleGeneration of Search Based Test Data on Acceptability Testing Principle
Generation of Search Based Test Data on Acceptability Testing Principle
iosrjce157 views
Test case prioritization using firefly algorithm for software testing von Journal Papers
Test case prioritization using firefly algorithm for software testingTest case prioritization using firefly algorithm for software testing
Test case prioritization using firefly algorithm for software testing
Journal Papers422 views
A Review on Parameter Estimation Techniques of Software Reliability Growth Mo... von Editor IJCATR
A Review on Parameter Estimation Techniques of Software Reliability Growth Mo...A Review on Parameter Estimation Techniques of Software Reliability Growth Mo...
A Review on Parameter Estimation Techniques of Software Reliability Growth Mo...
Editor IJCATR537 views
Performance analysis of binary and multiclass models using azure machine lear... von IJECEIAES
Performance analysis of binary and multiclass models using azure machine lear...Performance analysis of binary and multiclass models using azure machine lear...
Performance analysis of binary and multiclass models using azure machine lear...
IJECEIAES11 views
IRJET- Data Reduction in Bug Triage using Supervised Machine Learning von IRJET Journal
IRJET- Data Reduction in Bug Triage using Supervised Machine LearningIRJET- Data Reduction in Bug Triage using Supervised Machine Learning
IRJET- Data Reduction in Bug Triage using Supervised Machine Learning
IRJET Journal4 views
AUTOMATED BUG TRIAGE USING ADVANCED DATA REDUCTION TECHNIQUES von Journal For Research
AUTOMATED BUG TRIAGE USING ADVANCED DATA REDUCTION TECHNIQUESAUTOMATED BUG TRIAGE USING ADVANCED DATA REDUCTION TECHNIQUES
AUTOMATED BUG TRIAGE USING ADVANCED DATA REDUCTION TECHNIQUES
IRJET - A Novel Approach for Software Defect Prediction based on Dimensio... von IRJET Journal
IRJET -  	  A Novel Approach for Software Defect Prediction based on Dimensio...IRJET -  	  A Novel Approach for Software Defect Prediction based on Dimensio...
IRJET - A Novel Approach for Software Defect Prediction based on Dimensio...
IRJET Journal2 views
A Software Measurement Using Artificial Neural Network and Support Vector Mac... von ijseajournal
A Software Measurement Using Artificial Neural Network and Support Vector Mac...A Software Measurement Using Artificial Neural Network and Support Vector Mac...
A Software Measurement Using Artificial Neural Network and Support Vector Mac...
ijseajournal553 views
Function Point Software Cost Estimates using Neuro-Fuzzy technique von ijceronline
Function Point Software Cost Estimates using Neuro-Fuzzy techniqueFunction Point Software Cost Estimates using Neuro-Fuzzy technique
Function Point Software Cost Estimates using Neuro-Fuzzy technique
ijceronline158 views
Parameter Estimation of GOEL-OKUMOTO Model by Comparing ACO with MLE Method von IRJET Journal
Parameter Estimation of GOEL-OKUMOTO Model by Comparing ACO with MLE MethodParameter Estimation of GOEL-OKUMOTO Model by Comparing ACO with MLE Method
Parameter Estimation of GOEL-OKUMOTO Model by Comparing ACO with MLE Method
IRJET Journal65 views
EMPIRICAL APPLICATION OF SIMULATED ANNEALING USING OBJECT-ORIENTED METRICS TO... von ijcsa
EMPIRICAL APPLICATION OF SIMULATED ANNEALING USING OBJECT-ORIENTED METRICS TO...EMPIRICAL APPLICATION OF SIMULATED ANNEALING USING OBJECT-ORIENTED METRICS TO...
EMPIRICAL APPLICATION OF SIMULATED ANNEALING USING OBJECT-ORIENTED METRICS TO...
ijcsa232 views
IRJET-A Hybrid Intrusion Detection Technique based on IRF & AODE for KDD-CUP ... von IRJET Journal
IRJET-A Hybrid Intrusion Detection Technique based on IRF & AODE for KDD-CUP ...IRJET-A Hybrid Intrusion Detection Technique based on IRF & AODE for KDD-CUP ...
IRJET-A Hybrid Intrusion Detection Technique based on IRF & AODE for KDD-CUP ...
IRJET Journal43 views
ENSEMBLE REGRESSION MODELS FOR SOFTWARE DEVELOPMENT EFFORT ESTIMATION: A COMP... von ijseajournal
ENSEMBLE REGRESSION MODELS FOR SOFTWARE DEVELOPMENT EFFORT ESTIMATION: A COMP...ENSEMBLE REGRESSION MODELS FOR SOFTWARE DEVELOPMENT EFFORT ESTIMATION: A COMP...
ENSEMBLE REGRESSION MODELS FOR SOFTWARE DEVELOPMENT EFFORT ESTIMATION: A COMP...
ijseajournal11 views
AI TESTING: ENSURING A GOOD DATA SPLIT BETWEEN DATA SETS (TRAINING AND TEST) ... von ijsc
AI TESTING: ENSURING A GOOD DATA SPLIT BETWEEN DATA SETS (TRAINING AND TEST) ...AI TESTING: ENSURING A GOOD DATA SPLIT BETWEEN DATA SETS (TRAINING AND TEST) ...
AI TESTING: ENSURING A GOOD DATA SPLIT BETWEEN DATA SETS (TRAINING AND TEST) ...
ijsc33 views

Similar a IRJET- Software Bug Prediction using Machine Learning Approach

Comparative performance analysis von
Comparative performance analysisComparative performance analysis
Comparative performance analysiscsandit
411 views9 Folien
Software Testing: Issues and Challenges of Artificial Intelligence & Machine ... von
Software Testing: Issues and Challenges of Artificial Intelligence & Machine ...Software Testing: Issues and Challenges of Artificial Intelligence & Machine ...
Software Testing: Issues and Challenges of Artificial Intelligence & Machine ...gerogepatton
41 views12 Folien
Software Testing: Issues and Challenges of Artificial Intelligence & Machine ... von
Software Testing: Issues and Challenges of Artificial Intelligence & Machine ...Software Testing: Issues and Challenges of Artificial Intelligence & Machine ...
Software Testing: Issues and Challenges of Artificial Intelligence & Machine ...gerogepatton
71 views12 Folien
Machine Learning Based Approach for Predicting Fault in Software Engineering ... von
Machine Learning Based Approach for Predicting Fault in Software Engineering ...Machine Learning Based Approach for Predicting Fault in Software Engineering ...
Machine Learning Based Approach for Predicting Fault in Software Engineering ...ijcnes
7 views6 Folien
IRJET- Comparison of Classification Algorithms using Machine Learning von
IRJET- Comparison of Classification Algorithms using Machine LearningIRJET- Comparison of Classification Algorithms using Machine Learning
IRJET- Comparison of Classification Algorithms using Machine LearningIRJET Journal
106 views6 Folien
Parkinson Disease Detection Using XGBoost and SVM von
Parkinson Disease Detection Using XGBoost and SVMParkinson Disease Detection Using XGBoost and SVM
Parkinson Disease Detection Using XGBoost and SVMIRJET Journal
129 views3 Folien

Similar a IRJET- Software Bug Prediction using Machine Learning Approach(20)

Comparative performance analysis von csandit
Comparative performance analysisComparative performance analysis
Comparative performance analysis
csandit411 views
Software Testing: Issues and Challenges of Artificial Intelligence & Machine ... von gerogepatton
Software Testing: Issues and Challenges of Artificial Intelligence & Machine ...Software Testing: Issues and Challenges of Artificial Intelligence & Machine ...
Software Testing: Issues and Challenges of Artificial Intelligence & Machine ...
gerogepatton41 views
Software Testing: Issues and Challenges of Artificial Intelligence & Machine ... von gerogepatton
Software Testing: Issues and Challenges of Artificial Intelligence & Machine ...Software Testing: Issues and Challenges of Artificial Intelligence & Machine ...
Software Testing: Issues and Challenges of Artificial Intelligence & Machine ...
gerogepatton71 views
Machine Learning Based Approach for Predicting Fault in Software Engineering ... von ijcnes
Machine Learning Based Approach for Predicting Fault in Software Engineering ...Machine Learning Based Approach for Predicting Fault in Software Engineering ...
Machine Learning Based Approach for Predicting Fault in Software Engineering ...
ijcnes7 views
IRJET- Comparison of Classification Algorithms using Machine Learning von IRJET Journal
IRJET- Comparison of Classification Algorithms using Machine LearningIRJET- Comparison of Classification Algorithms using Machine Learning
IRJET- Comparison of Classification Algorithms using Machine Learning
IRJET Journal106 views
Parkinson Disease Detection Using XGBoost and SVM von IRJET Journal
Parkinson Disease Detection Using XGBoost and SVMParkinson Disease Detection Using XGBoost and SVM
Parkinson Disease Detection Using XGBoost and SVM
IRJET Journal129 views
Survey on Software Data Reduction Techniques Accomplishing Bug Triage von IRJET Journal
Survey on Software Data Reduction Techniques Accomplishing Bug TriageSurvey on Software Data Reduction Techniques Accomplishing Bug Triage
Survey on Software Data Reduction Techniques Accomplishing Bug Triage
IRJET Journal43 views
IRJET- A Novel Approach on Computation Intelligence Technique for Softwar... von IRJET Journal
IRJET-  	  A Novel Approach on Computation Intelligence Technique for Softwar...IRJET-  	  A Novel Approach on Computation Intelligence Technique for Softwar...
IRJET- A Novel Approach on Computation Intelligence Technique for Softwar...
IRJET Journal10 views
A Literature Review Study Of Software Defect Prediction Using Machine Learnin... von Sean Flores
A Literature Review Study Of Software Defect Prediction Using Machine Learnin...A Literature Review Study Of Software Defect Prediction Using Machine Learnin...
A Literature Review Study Of Software Defect Prediction Using Machine Learnin...
Sean Flores8 views
Insights on Research Techniques towards Cost Estimation in Software Design von IJECEIAES
Insights on Research Techniques towards Cost Estimation in Software Design Insights on Research Techniques towards Cost Estimation in Software Design
Insights on Research Techniques towards Cost Estimation in Software Design
IJECEIAES24 views
A Review on Software Fault Detection and Prevention Mechanism in Software Dev... von iosrjce
A Review on Software Fault Detection and Prevention Mechanism in Software Dev...A Review on Software Fault Detection and Prevention Mechanism in Software Dev...
A Review on Software Fault Detection and Prevention Mechanism in Software Dev...
iosrjce197 views
Email Spam Detection Using Machine Learning von IRJET Journal
Email Spam Detection Using Machine LearningEmail Spam Detection Using Machine Learning
Email Spam Detection Using Machine Learning
IRJET Journal43 views
A survey on Machine Learning and Artificial Neural Networks von IRJET Journal
A survey on Machine Learning and Artificial Neural NetworksA survey on Machine Learning and Artificial Neural Networks
A survey on Machine Learning and Artificial Neural Networks
IRJET Journal7 views
Using Fuzzy Clustering and Software Metrics to Predict Faults in large Indust... von IOSR Journals
Using Fuzzy Clustering and Software Metrics to Predict Faults in large Indust...Using Fuzzy Clustering and Software Metrics to Predict Faults in large Indust...
Using Fuzzy Clustering and Software Metrics to Predict Faults in large Indust...
IOSR Journals478 views
Software Cost Estimation Using Clustering and Ranking Scheme von Editor IJMTER
Software Cost Estimation Using Clustering and Ranking SchemeSoftware Cost Estimation Using Clustering and Ranking Scheme
Software Cost Estimation Using Clustering and Ranking Scheme
Editor IJMTER475 views
Genetic algorithm based approach for von IJCSES Journal
Genetic algorithm based approach forGenetic algorithm based approach for
Genetic algorithm based approach for
IJCSES Journal301 views
A Comprehensive review of Conversational Agent and its prediction algorithm von vivatechijri
A Comprehensive review of Conversational Agent and its prediction algorithmA Comprehensive review of Conversational Agent and its prediction algorithm
A Comprehensive review of Conversational Agent and its prediction algorithm
vivatechijri61 views

Más de IRJET Journal

SOIL STABILIZATION USING WASTE FIBER MATERIAL von
SOIL STABILIZATION USING WASTE FIBER MATERIALSOIL STABILIZATION USING WASTE FIBER MATERIAL
SOIL STABILIZATION USING WASTE FIBER MATERIALIRJET Journal
19 views7 Folien
Sol-gel auto-combustion produced gamma irradiated Ni1-xCdxFe2O4 nanoparticles... von
Sol-gel auto-combustion produced gamma irradiated Ni1-xCdxFe2O4 nanoparticles...Sol-gel auto-combustion produced gamma irradiated Ni1-xCdxFe2O4 nanoparticles...
Sol-gel auto-combustion produced gamma irradiated Ni1-xCdxFe2O4 nanoparticles...IRJET Journal
8 views7 Folien
Identification, Discrimination and Classification of Cotton Crop by Using Mul... von
Identification, Discrimination and Classification of Cotton Crop by Using Mul...Identification, Discrimination and Classification of Cotton Crop by Using Mul...
Identification, Discrimination and Classification of Cotton Crop by Using Mul...IRJET Journal
7 views5 Folien
“Analysis of GDP, Unemployment and Inflation rates using mathematical formula... von
“Analysis of GDP, Unemployment and Inflation rates using mathematical formula...“Analysis of GDP, Unemployment and Inflation rates using mathematical formula...
“Analysis of GDP, Unemployment and Inflation rates using mathematical formula...IRJET Journal
13 views11 Folien
MAXIMUM POWER POINT TRACKING BASED PHOTO VOLTAIC SYSTEM FOR SMART GRID INTEGR... von
MAXIMUM POWER POINT TRACKING BASED PHOTO VOLTAIC SYSTEM FOR SMART GRID INTEGR...MAXIMUM POWER POINT TRACKING BASED PHOTO VOLTAIC SYSTEM FOR SMART GRID INTEGR...
MAXIMUM POWER POINT TRACKING BASED PHOTO VOLTAIC SYSTEM FOR SMART GRID INTEGR...IRJET Journal
14 views6 Folien
Performance Analysis of Aerodynamic Design for Wind Turbine Blade von
Performance Analysis of Aerodynamic Design for Wind Turbine BladePerformance Analysis of Aerodynamic Design for Wind Turbine Blade
Performance Analysis of Aerodynamic Design for Wind Turbine BladeIRJET Journal
7 views5 Folien

Más de IRJET Journal(20)

SOIL STABILIZATION USING WASTE FIBER MATERIAL von IRJET Journal
SOIL STABILIZATION USING WASTE FIBER MATERIALSOIL STABILIZATION USING WASTE FIBER MATERIAL
SOIL STABILIZATION USING WASTE FIBER MATERIAL
IRJET Journal19 views
Sol-gel auto-combustion produced gamma irradiated Ni1-xCdxFe2O4 nanoparticles... von IRJET Journal
Sol-gel auto-combustion produced gamma irradiated Ni1-xCdxFe2O4 nanoparticles...Sol-gel auto-combustion produced gamma irradiated Ni1-xCdxFe2O4 nanoparticles...
Sol-gel auto-combustion produced gamma irradiated Ni1-xCdxFe2O4 nanoparticles...
IRJET Journal8 views
Identification, Discrimination and Classification of Cotton Crop by Using Mul... von IRJET Journal
Identification, Discrimination and Classification of Cotton Crop by Using Mul...Identification, Discrimination and Classification of Cotton Crop by Using Mul...
Identification, Discrimination and Classification of Cotton Crop by Using Mul...
IRJET Journal7 views
“Analysis of GDP, Unemployment and Inflation rates using mathematical formula... von IRJET Journal
“Analysis of GDP, Unemployment and Inflation rates using mathematical formula...“Analysis of GDP, Unemployment and Inflation rates using mathematical formula...
“Analysis of GDP, Unemployment and Inflation rates using mathematical formula...
IRJET Journal13 views
MAXIMUM POWER POINT TRACKING BASED PHOTO VOLTAIC SYSTEM FOR SMART GRID INTEGR... von IRJET Journal
MAXIMUM POWER POINT TRACKING BASED PHOTO VOLTAIC SYSTEM FOR SMART GRID INTEGR...MAXIMUM POWER POINT TRACKING BASED PHOTO VOLTAIC SYSTEM FOR SMART GRID INTEGR...
MAXIMUM POWER POINT TRACKING BASED PHOTO VOLTAIC SYSTEM FOR SMART GRID INTEGR...
IRJET Journal14 views
Performance Analysis of Aerodynamic Design for Wind Turbine Blade von IRJET Journal
Performance Analysis of Aerodynamic Design for Wind Turbine BladePerformance Analysis of Aerodynamic Design for Wind Turbine Blade
Performance Analysis of Aerodynamic Design for Wind Turbine Blade
IRJET Journal7 views
Heart Failure Prediction using Different Machine Learning Techniques von IRJET Journal
Heart Failure Prediction using Different Machine Learning TechniquesHeart Failure Prediction using Different Machine Learning Techniques
Heart Failure Prediction using Different Machine Learning Techniques
IRJET Journal7 views
Experimental Investigation of Solar Hot Case Based on Photovoltaic Panel von IRJET Journal
Experimental Investigation of Solar Hot Case Based on Photovoltaic PanelExperimental Investigation of Solar Hot Case Based on Photovoltaic Panel
Experimental Investigation of Solar Hot Case Based on Photovoltaic Panel
IRJET Journal3 views
Metro Development and Pedestrian Concerns von IRJET Journal
Metro Development and Pedestrian ConcernsMetro Development and Pedestrian Concerns
Metro Development and Pedestrian Concerns
IRJET Journal2 views
Mapping the Crashworthiness Domains: Investigations Based on Scientometric An... von IRJET Journal
Mapping the Crashworthiness Domains: Investigations Based on Scientometric An...Mapping the Crashworthiness Domains: Investigations Based on Scientometric An...
Mapping the Crashworthiness Domains: Investigations Based on Scientometric An...
IRJET Journal3 views
Data Analytics and Artificial Intelligence in Healthcare Industry von IRJET Journal
Data Analytics and Artificial Intelligence in Healthcare IndustryData Analytics and Artificial Intelligence in Healthcare Industry
Data Analytics and Artificial Intelligence in Healthcare Industry
IRJET Journal3 views
DESIGN AND SIMULATION OF SOLAR BASED FAST CHARGING STATION FOR ELECTRIC VEHIC... von IRJET Journal
DESIGN AND SIMULATION OF SOLAR BASED FAST CHARGING STATION FOR ELECTRIC VEHIC...DESIGN AND SIMULATION OF SOLAR BASED FAST CHARGING STATION FOR ELECTRIC VEHIC...
DESIGN AND SIMULATION OF SOLAR BASED FAST CHARGING STATION FOR ELECTRIC VEHIC...
IRJET Journal36 views
Efficient Design for Multi-story Building Using Pre-Fabricated Steel Structur... von IRJET Journal
Efficient Design for Multi-story Building Using Pre-Fabricated Steel Structur...Efficient Design for Multi-story Building Using Pre-Fabricated Steel Structur...
Efficient Design for Multi-story Building Using Pre-Fabricated Steel Structur...
IRJET Journal10 views
Development of Effective Tomato Package for Post-Harvest Preservation von IRJET Journal
Development of Effective Tomato Package for Post-Harvest PreservationDevelopment of Effective Tomato Package for Post-Harvest Preservation
Development of Effective Tomato Package for Post-Harvest Preservation
IRJET Journal4 views
“DYNAMIC ANALYSIS OF GRAVITY RETAINING WALL WITH SOIL STRUCTURE INTERACTION” von IRJET Journal
“DYNAMIC ANALYSIS OF GRAVITY RETAINING WALL WITH SOIL STRUCTURE INTERACTION”“DYNAMIC ANALYSIS OF GRAVITY RETAINING WALL WITH SOIL STRUCTURE INTERACTION”
“DYNAMIC ANALYSIS OF GRAVITY RETAINING WALL WITH SOIL STRUCTURE INTERACTION”
IRJET Journal5 views
Understanding the Nature of Consciousness with AI von IRJET Journal
Understanding the Nature of Consciousness with AIUnderstanding the Nature of Consciousness with AI
Understanding the Nature of Consciousness with AI
IRJET Journal12 views
Augmented Reality App for Location based Exploration at JNTUK Kakinada von IRJET Journal
Augmented Reality App for Location based Exploration at JNTUK KakinadaAugmented Reality App for Location based Exploration at JNTUK Kakinada
Augmented Reality App for Location based Exploration at JNTUK Kakinada
IRJET Journal6 views
Smart Traffic Congestion Control System: Leveraging Machine Learning for Urba... von IRJET Journal
Smart Traffic Congestion Control System: Leveraging Machine Learning for Urba...Smart Traffic Congestion Control System: Leveraging Machine Learning for Urba...
Smart Traffic Congestion Control System: Leveraging Machine Learning for Urba...
IRJET Journal18 views
Enhancing Real Time Communication and Efficiency With Websocket von IRJET Journal
Enhancing Real Time Communication and Efficiency With WebsocketEnhancing Real Time Communication and Efficiency With Websocket
Enhancing Real Time Communication and Efficiency With Websocket
IRJET Journal4 views
Textile Industrial Wastewater Treatability Studies by Soil Aquifer Treatment ... von IRJET Journal
Textile Industrial Wastewater Treatability Studies by Soil Aquifer Treatment ...Textile Industrial Wastewater Treatability Studies by Soil Aquifer Treatment ...
Textile Industrial Wastewater Treatability Studies by Soil Aquifer Treatment ...
IRJET Journal4 views

Último

_MAKRIADI-FOTEINI_diploma thesis.pptx von
_MAKRIADI-FOTEINI_diploma thesis.pptx_MAKRIADI-FOTEINI_diploma thesis.pptx
_MAKRIADI-FOTEINI_diploma thesis.pptxfotinimakriadi
6 views32 Folien
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L... von
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...Anowar Hossain
10 views34 Folien
2_DVD_ASIC_Design_FLow.pdf von
2_DVD_ASIC_Design_FLow.pdf2_DVD_ASIC_Design_FLow.pdf
2_DVD_ASIC_Design_FLow.pdfUsha Mehta
14 views24 Folien
CHEMICAL KINETICS.pdf von
CHEMICAL KINETICS.pdfCHEMICAL KINETICS.pdf
CHEMICAL KINETICS.pdfAguedaGutirrez
7 views337 Folien
13_DVD_Latch-up_prevention.pdf von
13_DVD_Latch-up_prevention.pdf13_DVD_Latch-up_prevention.pdf
13_DVD_Latch-up_prevention.pdfUsha Mehta
9 views16 Folien
Design and analysis of a new undergraduate Computer Engineering degree – a me... von
Design and analysis of a new undergraduate Computer Engineering degree – a me...Design and analysis of a new undergraduate Computer Engineering degree – a me...
Design and analysis of a new undergraduate Computer Engineering degree – a me...WaelBadawy6
52 views4 Folien

Último(20)

_MAKRIADI-FOTEINI_diploma thesis.pptx von fotinimakriadi
_MAKRIADI-FOTEINI_diploma thesis.pptx_MAKRIADI-FOTEINI_diploma thesis.pptx
_MAKRIADI-FOTEINI_diploma thesis.pptx
fotinimakriadi6 views
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L... von Anowar Hossain
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...
Anowar Hossain10 views
2_DVD_ASIC_Design_FLow.pdf von Usha Mehta
2_DVD_ASIC_Design_FLow.pdf2_DVD_ASIC_Design_FLow.pdf
2_DVD_ASIC_Design_FLow.pdf
Usha Mehta14 views
13_DVD_Latch-up_prevention.pdf von Usha Mehta
13_DVD_Latch-up_prevention.pdf13_DVD_Latch-up_prevention.pdf
13_DVD_Latch-up_prevention.pdf
Usha Mehta9 views
Design and analysis of a new undergraduate Computer Engineering degree – a me... von WaelBadawy6
Design and analysis of a new undergraduate Computer Engineering degree – a me...Design and analysis of a new undergraduate Computer Engineering degree – a me...
Design and analysis of a new undergraduate Computer Engineering degree – a me...
WaelBadawy652 views
STUDY OF SMART MATERIALS USED IN CONSTRUCTION-1.pptx von AnnieRachelJohn
STUDY OF SMART MATERIALS USED IN CONSTRUCTION-1.pptxSTUDY OF SMART MATERIALS USED IN CONSTRUCTION-1.pptx
STUDY OF SMART MATERIALS USED IN CONSTRUCTION-1.pptx
AnnieRachelJohn25 views
A multi-microcontroller-based hardware for deploying Tiny machine learning mo... von IJECEIAES
A multi-microcontroller-based hardware for deploying Tiny machine learning mo...A multi-microcontroller-based hardware for deploying Tiny machine learning mo...
A multi-microcontroller-based hardware for deploying Tiny machine learning mo...
IJECEIAES10 views
Literature review and Case study on Commercial Complex in Nepal, Durbar mall,... von AakashShakya12
Literature review and Case study on Commercial Complex in Nepal, Durbar mall,...Literature review and Case study on Commercial Complex in Nepal, Durbar mall,...
Literature review and Case study on Commercial Complex in Nepal, Durbar mall,...
AakashShakya1245 views

IRJET- Software Bug Prediction using Machine Learning Approach

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 4968 Software Bug Prediction using Machine Learning Approach Meenakshi, Dr. Satwinder Singh M. Tech (Computer Science and Technology), Central University of Punjab, Bathinda. Assistant Professor, Dept. of Computer Science and Technology, Central University of Punjab, Bathinda. ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract -Software bug prediction plays an important role in development and maintenance of good qualitysoftware. Bugsare some kind of code in any software which can cause failure. Major cost of any software project is used in maintenance of that software because of bugs. It is very important to predict bugs in earlier stage of a software development. So that the development team can identify them and resolve them which can improve software, quality, reliability, efficiencyandreducesthecostof project. In this paper, ML is used to predict the bugs on the bases of historical data. At last we compare the results of two ML classifiers i.e. Naive Bayes and J48. Key Words: Bug Prediction, quality, Machine learning, Naive Bayes, J48. 1. INTRODUCTION Software bug prediction is defined as a process where we try to predict bug based on historical data. Software bugs can affect the software quality, reliability and maintenance cost. While developing software there are so many hidden bugs which can cause software failure in future. Around 40-60% of cost is used in maintenance of software so it is very to predict the bugs in earlier stages of software development. By predicting the bugs we can easily reduce the software failure rate. There are some techniques are available to predict the bugs. In this paper, Machine learningapproachisusedtopredictthebugsinsoftwareon historical data. Naive Bayes and J48 Classifiers are used to predict the bugs. 2. LITERATURE REVIEW There are many studies about software bug prediction using machine learning techniques. For example,Instudy[3]proposed machine learning approach. In which supervised learning is used to predict the bugs on the bases of historical data. There are three classifiers are used i.e. Naive Bayes, Decision Tree, Artificial Neural Networks. Resultsgotfromthesethreeclassifiersare compared with each other to find out the best model of machine learning to predict the bugs. The study in [1] analysed that the software quality depends upon many factors like resources, executiveteametc.Threetypes of machine learning approaches are used to predict the bugs i.e. based on classification method, based on clustering method and based on ensemble approaches. The study in [4] a comprehensive study is done on different existing predictive models. A deterministicstrategyshouldfollow for predicting the bugs. A comparison is done between the models onthe basesofrecall andF-measure.Byusinggoodmodel in software development environment, will give a reasonably accurate prediction. The study in [2] defines that the maintenance of software is challenging task becauseofunpredictablebugsandfailureswhich tends to increase in software cost. Machine learning approach is used to identifying the best way of predicting those bugs on the bases of historical data. The different datasets are being compared with each other on the bases of f-measure, recall, precision. Decision tree classification provides better prediction rather than other models. This paper gives a comparative study of Naive Bayes and J48. The supervised learning in machine learningapproachisusedto predict the bugs on the bases of f-measure, recall and precision. Bug prediction can improve the software success rate if prediction is used in earlier stages. 3. RESEARCH METHODOLOGY In Research Methodology, the machine learning algorithm and the used tools are discussed. Also, the various performance measures are discussed which are used to analyse the experiment.
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 4969 3.1 Data Collection The datasets from promise data repository were used in the experiments. The datasets were collected from real software projects by NASA and have many software modules. Some of the product metrics that are includedinthedata setare, Halstead Content, Halstead Difficulty, Halstead Effort, Halstead Error Estimate, Halstead Length,HalsteadLevel,HalsteadProgramming Time and Halstead Volume, Cyclomatic Complexity and Design Complexity, Lines of Total Code, LOC Blank,BranchCount,LOC Comments, Number of Operands, Number of Unique Operands and Number of Unique Operators, and lastly Defect Metrics; Error Count, Error Density, Number of Defects (with severity and priority information). Table 1: Dataset Information 3.2 Observation recorded Accuracy of a classifier on a given test set is the percentage of test set tuples that are correctly classified by the classifier. Accuracy= (TP + TN) (TP + TN + FP +FN) Precision is a measure of correctness and it is a ratio between correctly classifiedsoftwarebugsandactual numberofsoftware bugs assigned to their category. It is calculated by the equation below: Precision= TP TP + FP Recall is a ratio between correctly classified software bugs and software bugs belonging to their category. It represents the machine learning method’s ability of searching extension and is calculated by the following equation. Recall = TP TP + FN 4. RESULTS AND DISCUSSIONS The experiments performed were analysed for different parameters.Theseparametershelptoinfervariousaspectsofmodels. 4.1 Design Metrics Prediction Model To predict the bugs based on metrics should be accurate as possible. The resultant metrics prediction model has following measures:
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 4970 Table 2: Performance based on Accuracy Table 3: Performance based on F-measure Table 4: Performance based on Recall Table 5: Performance based on Precision. 5. CONCLUSIONS Various approaches have been proposed using different datasets, different metrics and different performance measures. Results reveal that the ML techniques are efficient approaches to predict the future software bugs. The comparison results showed that the Decision Tree classifier has the best results over theothers.Moreover, experimental resultsshowed thatusing ML approach provides a better performance for the prediction model than other approaches, such as linear AR model. As a future work, we may involve other ML techniquesandprovideanextensivecomparisonamongthem.Furthermore,adding more software metrics in the learning process is one possible approach to increase the accuracy of the prediction model. Poisson regression model could be used and Neural network model to predict the open bugs count and its performance with other existing models could be used.
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 4971 REFERENCES [1] Akmel, F., Birihanu, E., & Siraj, B. (2017). A literature review study of software defect pre-diction using machine learning techniques. Int. J. Emerg. Res. Manag. Technol, 6(6), 300-306. [2] Aleem, S., Capretz, L. F., & Ahmed, F. (2015). Comparative performance analysis of machine learning techniques for software bug detection. ITCS, CST, JSE, SIP, ARIA, DMS, 71-79. [3] Awni Hammouri, M. H. (2018). Software Bug Prediction using Machine Learning Approach. International Journal of Advanced Computer Science and Applications (IJACSA) , vol. 9 (no.2), 78-83. [4] N.Kalaivani, D. (2018). OverviewofSoftwareDefectPredictionusingMachineLearningAlgorithms.International Journal of Pure and Applied Mathematics , 118 (20), 3863-3873 [5] Shruthi Puranika, P. D. (2016). A Novel Machine Learning Approach For Bug Prediction. 6th International Conference On Advances In Computing & Communications, ICACC , 6 (8), 923-930.