Abstract
With the proliferation of software programs, predicting defects has become a big concern. Therefore, to overcome this challenge, this research introduces a new Optimized Deep Learning model. The software defect is predicted using the new Adaptive Recurrent Neural network (ARNN), wherein the hyper-parameters (weight) function is fine-tuned using the new Levy-Flight Integrated Cuckoo Search Optimization (LICSO) model to accurately predict the defects. First, the data is pre-processed via box-cox transformation. The outcomes of the pre-processed data are then subjected to a Feature Selection technique, wherein the relevant features are selected using the new Quantum Theory-Particle Swarm Optimization (QPSO-FS). Finally, ARNN is utilized to predict the software defects. To validate the performance of the proposed approach evaluation metrics are considered such as detection Accuracy, Precision, Recognition error, Sensitivity, Specificity, F1-Score, and Processing time are evaluated and tested. As per the acquired results, the projected model outperforms the existing models. The projected model has recorded the highest accuracy level as 96.48%.
Similar content being viewed by others
Data availability
Data sharing not applicable to this article as no datasets were generated or analysed during the current study.
Abbreviations
- ARNN:
-
Adaptive Recurrent Neural Network
- COA:
-
Cuckoo Optimization Algorithm
- QPSO-FS:
-
Quantum Theory-Particle Swarm Optimization
- SDP:
-
Software Defect Prediction
- CPDP:
-
Cross-Project Defect Prediction
- WPDP:
-
Within-Project Defect Prediction
- FDNB:
-
Feature Dependent Naive Bayes
- DBNN:
-
Deep Belief Neural Network
- MLACO:
-
Multi-Label based Ant Colony Optimization
- KPCA:
-
Kernel Principal Component Analysis
- CNN:
-
Convolutional Neural Network
- LICSO:
-
Levy-Flight Integrated Cuckoo Search Optimization
- AST:
-
Abstract Syntax Tree
- SDNN:
-
Siamese Dense Neural Networks
- HMOCS:
-
Hybrid Multi-Objective Cuckoo Search with Dynamical Local Search
- FNR:
-
False Negative Rate
- DNN:
-
Deep Neural Network
- FPR:
-
False Positive Rate
- TSE:
-
Two-Stage Ensemble
- ANN:
-
Artificial Neural Network
- FeSCH:
-
Feature Selection Using Clusters of Hybrid-Data
- SVM:
-
Support Vector Machine
- RF :
-
Random Forest
- L :
-
Database
- I :
-
Number of the defect and non-defect data
- m :
-
Number of data
- C n :
-
Pre-processed data
- I n :
-
Input data
- \({V}_j^u\) :
-
The velocity of the particles
- \({Y}_j^u\) :
-
Position of the particles
- N :
-
Number of particles
- w :
-
Inertia weight
- r j :
-
Local attracter of the particle
- pd:
-
Probability of detection
- E (t, a) :
-
Classifier’s output
- γ :
-
Uniform distribution
- R(t, τ):
-
Characteristic scale
- P b :
-
Generation of new solution
- n :
-
Arbitrary units
- ϑ and f :
-
Arbitrary values
- λ:
-
Weight set
- δ (t) :
-
Activation function
- nbest :
-
Average optimal position
- gbest :
-
Global search space
- pf:
-
False-positive rate
References
Ali A, Zhu Y, Zakarya M (2021) A data aggregation based approach to exploit dynamic spatio-temporal correlations for citywide crowd flows prediction in fog computing. Multimed Tools Appl 80:31401–31433
Ali A, Zhu Y, Zakarya M (2021) Exploiting dynamic spatio-temporal correlations for citywide traffic flow prediction using attention based neural networks. Inf Sci 577:852–870
Ali A, Zhu Y, Zakarya M (2021) Exploiting dynamic spatio-temporal graph convolutional neural networks for citywide traffic flows prediction. Neural Netw 145:233–247
Arar ÖF, Ayan K (2015) Software defect prediction using cost-sensitive neural network. Appl Soft Comput 33:263–277
Arar ÖF, Ayan K (2017) A feature dependent Naive Bayes approach and its application to the software defect prediction problem. Appl Soft Comput 59:197–209
Awan N et al (2021) Modeling dynamic spatio-temporal correlations for urban traffic flows prediction. IEEE Access 9:26502–26511. https://doi.org/10.1109/ACCESS.2021.3056926
Balogun AO, Basri S, Mahamad S, Abdulkadir SJ, Almomani MA, Adeyemo VE, Al-Tashi Q, Mojeed HA, Imam AA, Bajeh AO (2020) Impact of feature selection methods on the predictive performance of software defect prediction models: an extensive empirical study. Symmetry 12(7):1147
Bennin KE, Keung J, Phannachitta P, Monden A, Mensah S (2017) Mahakil: diversity based oversampling approach to alleviate the class imbalance issue in software defect prediction. IEEE Trans Software Eng 44(6):534–550
Cai Z, Lu L, Qiu S (2019) An abstract syntax tree encoding method for cross-project defect prediction. IEEE Access 7:170844–170853
Cai X, Niu Y, Geng S, Zhang J, Cui Z, Li J, Chen J (2020) An under-sampled software defect prediction method based on hybrid multi‐objective cuckoo search. Concurr Comput: Pract Exp 32(5):e5478
Chakraborty T, Chakraborty AK (2021) Hellinger net: a hybrid imbalance learning model to improve software defect prediction. IEEE Trans Reliab 70(2):481–494. https://doi.org/10.1109/TR.2020.3020238
Chen L, Fang B, Shang Z, Tang Y (2018) Tackling class overlap and imbalance problems in software defect prediction. Software Qual J 26(1):97–125
Deng J, Lu L, Qiu S, Ou YY (2020) A suitable AST node granularity and multi-kernel transfer convolutional neural network for cross-project defect prediction. IEEE Access 8:66647–66661
Deng J, Lu L, Qiu S (2020) Software defect prediction via LSTM. IET Software 14(4):443–450
Ding Z, Xing L (2020) Improved software defect prediction using Pruned Histogram-based isolation forest. Reliabil Eng Syst Safety 204:107170
Dong F, Wang J, Li Q, Xu G, Zhang S (2018) Defect prediction in android binary executables using deep neural network. Wireless Pers Commun 102(3):2261–2285
Hasanpour A, Farzi P, Tehrani A, Akbari R (2020) Software defect prediction based on deep learning models: performance study. arXiv preprint arXiv:2004.02589
He P, Li B, Liu X, Chen J, Ma Y (2015) An empirical study on software defect prediction with a simplified metric set. Inf Softw Technol 59:170–190
Jayanthi R, Florence L (2019) Software defect prediction techniques using metrics based on neural network classifier. Cluster Comput 22(1):77–88
Jin C (2021) Software defect prediction model based on distance metric learning. Soft Comput 25(1):447–461
Jin C (2021) Cross-project software defect prediction based on domain adaptation learning and optimization. Expert Syst Appl 171:114637
Li Z, Jing X-Y, Wu F, Zhu X, Xu B, Ying S (2018) Cost-sensitive transfer kernel canonical correlation analysis for heterogeneous defect prediction. Automated Softw Eng 25(2):201–245
Li N, Shepperd M, Guo Y (2020) A systematic review of unsupervised learning techniques for software defect prediction. Inf Softw Technol 122:106287
Liang H, Yu Y, Jiang L, Xie Z (2019) Seml: a semantic lstm model for software defect prediction. IEEE Access 7:83812–83824
Lin J, Lu L (2021) Semantic feature learning via dual sequences for defect prediction. IEEE Access 9:13112–13124
Majd A, Vahidi-Asl M, Khalilian A, Poorsarvi-Tehrani P, Haghighi H (2020) SLDeep: statement-level software defect prediction using deep-learning model on static code features. Expert Syst Appl 147:113156
Manjula C, Florence L (2019) Deep neural network-based hybrid approach for software defect prediction using software metrics. Cluster Comput 22(4):9847–9863
Miholca D-L (2018) Gabriela Czibula, and Istvan Gergely Czibula. A novel approach for software defect prediction through hybridizing gradual relational association rules with artificial neural networks. Inf Sci 441:152–170
Morasca S, Lavazza L (2020) On the assessment of software defect prediction models via ROC curves. Empir Softw Eng 25(5):3977–4019
Ni C, Liu W-S, Chen X, Gu Q, Chen D-X, Huang Q-G (2017) A cluster-based feature selection method for cross-project software defect prediction. J Comput Sci Technol 32(6):1090–1107
Paniri M, Dowlatshahi MB, Nezamabadi-pour H (2020) MLACO: a multi-label feature selection algorithm based on ant colony optimization. Knowl Based Syst 192:105285
Qasem A, Osama MA, Alenezi M (2020) The influence of deep learning algorithms factors in software fault prediction. IEEE Access 8:63945–63960
Rhmann W, Pandey B, Ansari G, Pandey DK (2020) Software fault prediction based on change metrics using hybrid algorithms: an empirical study. J King Saud University-Computer Inform Sci 32(4):419–424
Rostami M, Berahmand K, Forouzandeh S (2020) A novel method of constrained feature selection by the measurement of pairwise constraints uncertainty. J Big Data 7(1):1–21
Rostami M, Forouzandeh S, Berahmand K, Soltani M (2020) Integration of multi-objective PSO based feature selection and node centrality for medical datasets. Genomics 112(6):4370–4384
Rostami M, Berahmand K, Nasiri E, Forouzande S (2021) Review of swarm intelligence-based feature selection methods. Eng Appl Artif Intell 100:104210
Shi K, Lu Y, Liu G, Wei Z, Chang J (2021) MPT-embedding: an unsupervised representation learning of code for software defect prediction. J Software: Evol Process 33(4):e2330
Thota MK, Shajin FH, Rajesh P (2020) Survey on software defect prediction techniques. Int J Appl Sci Eng 17(4):331–344
Tong H, Liu B, Wang S (2018) Software defect prediction using stacked denoising autoencoders and two-stage ensemble learning. Inf Softw Technol 96:94–111
Phan AV, ML Nguyen, LT Bui (2017) Convolutional neural networks over control flow graphs for software defect prediction. In: 2017 IEEE 29th International Conference on Tools with Artificial Intelligence (ICTAI). IEEE, pp 45–52
Wang S, Liu T, Nam J, Tan L (2018) Deep semantic feature learning for software defect prediction. IEEE Trans Software Eng 46(12):1267–1293
Wang S, Xiang J, Zhong Y, Tang H (2018) A data indicator-based deep belief networks to detect multiple faults in axial piston pumps. Mech Syst Signal Process 112:154–170
Wang H, Zhuang W, Zhang X (2021) Software defect prediction based on gated hierarchical LSTMs. IEEE Trans Reliab 70(2):711–727. https://doi.org/10.1109/TR.2020.3047396
Xiaolong X, Wen C, Xinheng W (2021) RFC: a feature selection algorithm for software defect prediction. J Syst Eng Electron 32(2):389–398. https://doi.org/10.23919/JSEE.2021.000032
Xu Z, Liu J, Luo X, Yang Z, Zhang Y, Yuan P, Tang Y, Zhang T (2019) Software defect prediction based on kernel PCA and weighted extreme learning machine. Inf Softw Technol 106:182–200
Xu J, Wang F, Ai J (2021) Defect prediction with semantics and context features of codes based on graph representation learning. IEEE Trans Reliab 70(2):613–625. https://doi.org/10.1109/TR.2020.3040191
Yang X-S, Deb S (2017) Cuckoo search: state-of-the-art and opportunities. In: 2017 IEEE 4th international conference on soft computing & machine intelligence (ISCMI). IEEE, pp 55–59
Zhao L, Shang Z, Zhao L, Qin A, Tang YY (2018) Siamese dense neural network for software defect prediction with small data. IEEE Access 7:7663–7677
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Ethical approval
Institutional Review Board approval was not required.
Informed consent
Only if the study is on human subjects
Written informed consent was not required for this study.
Only if the study is on animals
Approval from the institutional animal care committee was not required.
Conflict of interest
The authors of this manuscript declare no relationships with any companies, whose products or services may be related to the subject matter of the article.
Statistics and biometry
No complex statistical methods were necessary for this paper.
Research involving human participants and/or animals
Not applicable.
Guarantor
There is no scientific guarantor of this publication.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Anju, A.J., Judith, J.E. Adaptive recurrent neural network for software defect prediction with the aid of quantum theory- particle swarm optimization. Multimed Tools Appl 82, 16257–16278 (2023). https://doi.org/10.1007/s11042-022-14065-7
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11042-022-14065-7