scholarly journals Finding Bad Code Smells with Neural Network Models

Author(s):  
Dong Kwan Kim

Code smell refers to any symptom introduced in design or implementation phases in the source code of a program. Such a code smell can potentially cause deeper and serious problems during software maintenance. The existing approaches to detect bad smells use detection rules or standards using a combination of different object-oriented metrics. Although a variety of software detection tools have been developed, they still have limitations and constraints in their capabilities. In this paper, a code smell detection system is presented with the neural network model that delivers the relationship between bad smells and object-oriented metrics by taking a corpus of Java projects as experimental dataset. The most well-known object-oriented metrics are considered to identify the presence of bad smells. The code smell detection system uses the twenty Java projects which are shared by many users in the GitHub repositories. The dataset of these Java projects is partitioned into mutually exclusive training and test sets. The training dataset is used to learn the network model which will predict smelly classes in this study. The optimized network model will be chosen to be evaluated on the test dataset. The experimental results show when the modelis highly trained with more dataset, the prediction outcomes are improved more and more. In addition, the accuracy of the model increases when it performs with higher epochs and many hidden layers.

2021 ◽  
Vol 13 (23) ◽  
pp. 4801
Author(s):  
Hanlin Chen ◽  
Fei Niu ◽  
Xing Su ◽  
Tao Geng ◽  
Zhimin Liu ◽  
...  

With the rapid development and gradual perfection of GNSS in recent years, improving the real-time service performance of GNSS has become a research hotspot. In GNSS single-point positioning, broadcast ephemeris is used to provide a space–time reference. However, the orbit parameters of broadcast ephemeris have meter-level errors, and no mathematical model can simulate the variation of this, which restricts the real-time positioning accuracy of GNSS. Based on this research background, this paper uses a BP (Back Propagation) neural network and a PSO (Particle Swarm Optimization)–BP neural network to model the variation in the orbit error of GPS and BDS broadcast ephemeris to improve the accuracy of broadcast ephemeris. The experimental results showed that the two neural network models in GPS can model the broadcast ephemeris orbit errors, and the results of the two models were roughly the same. The one-day and three-day improvement rates of RMS(3D) were 30–50%, but the PSO–BP neural network model was better able to model the trend of errors and effectively improve the broadcast ephemeris orbit accuracy. In BDS, both of the neural network models were able to model the broadcast ephemeris orbit errors; however, the PSO–BP neural network model results were better than those of the BP neural network. In the GEO satellite outcome of the PSO–BP neural network, the STD and RMS of the orbit error in three directions were reduced by 20–70%, with a 20–30% improvement over the BP neural network results. The IGSO satellite results showed that the PSO–BP neural network model output accuracy of the along- and radial-track directions experienced a 70–80% improvement in one and three days. The one- and three-day RMS(3D) of the MEO satellites showed that the PSO–BP neural network has a greater ability to resist gross errors than that of the BP neural network for modeling the changing trend of the broadcast ephemeris orbit errors. These results demonstrate that using neural networks to model the orbit error of broadcast ephemeris is of great significance to improving the orbit accuracy of broadcast ephemeris.


Author(s):  
Tshilidzi Marwala

In this chapter, a classifier technique that is based on a missing data estimation framework that uses autoassociative multi-layer perceptron neural networks and genetic algorithms is proposed. The proposed method is tested on a set of demographic properties of individuals obtained from the South African antenatal survey and compared to conventional feed-forward neural networks. The missing data approach based on the autoassociative network model proposed gives an accuracy of 92%, when compared to the accuracy of 84% obtained from the conventional feed-forward neural network models. The area under the receiver operating characteristics curve for the proposed autoassociative network model is 0.86 compared to 0.80 for the conventional feed-forward neural network model. The autoassociative network model proposed in this chapter, therefore, outperforms the conventional feed-forward neural network models and is an improved classifier. The reasons for this are: (1) the propagation of errors in the autoassociative network model is more distributed while for a conventional feed-forward network is more concentrated; and (2) there is no causality between the demographic properties and the HIV and, therefore, the HIV status does change the demographic properties and vice versa. Therefore, it is better to treat the problem as a missing data problem rather than a feed-forward problem.


Complexity ◽  
2018 ◽  
Vol 2018 ◽  
pp. 1-13
Author(s):  
Liwen Zhang ◽  
Chao Zhang ◽  
Zhuo Sun ◽  
You Dong ◽  
Pu Wei

The random traffic flow model which considers parameters of all the vehicles passing through the bridge, including arrival time, vehicle speed, vehicle type, vehicle weight, and horizontal position as well as the bridge deck roughness, is input into the vehicle-bridge coupling vibration program. In this way, vehicle-bridge coupling vibration responses with considering the random traffic flow can be numerically simulated. Experimental test is used to validate the numerical simulation, and they had the consistent changing trends. This result proves the reliability of the vehicle-bridge coupling model in this paper. However, the computational process of this method is complicated and proposes high requirements for computer performance and resources. Therefore, this paper considers using a more advanced intelligent method to predict vibration responses of the long-span bridge. The PSO-BP (particle swarm optimization-back propagation) neural network model is proposed to predict vibration responses of the long-span bridge. Predicted values and real values at each point basically have the consistent changing trends, and the maximum error is less than 10%. Hence, it is feasible to predict vibration responses of the long-span bridge using the PSO-BP neural network model. In order to verify advantages of the predicting model, it is compared with the BP neural network model and GA-BP neural network model. The PSO-BP neural network model converges to the set critical error after it is iterated to the 226th generation, while the other two neural network models are not converged. In addition, the relative error of predicted values using PSO-BP neural network is only 2.71%, which is obviously less than the predicted results of other two neural network models. We can find that the PSO-BP neural network model proposed by the paper in predicting vibration responses is highly efficient and accurate.


Author(s):  
A. Saravanan ◽  
J. Jerald ◽  
A. Delphin Carolina Rani

AbstractThe objective of the paper is to develop a new method to model the manufacturing cost–tolerance and to optimize the tolerance values along with its manufacturing cost. A cost–tolerance relation has a complex nonlinear correlation among them. The property of a neural network makes it possible to model the complex correlation, and the genetic algorithm (GA) is integrated with the best neural network model to optimize the tolerance values. The proposed method used three types of neural network models (multilayer perceptron, backpropagation network, and radial basis function). These network models were developed separately for prismatic and rotational parts. For the construction of network models, part size and tolerance values were used as input neurons. The reference manufacturing cost was assigned as the output neuron. The qualitative production data set was gathered in a workshop and partitioned into three files for training, testing, and validation, respectively. The architecture of the network model was identified based on the best regression coefficient and the root-mean-square-error value. The best network model was integrated into the GA, and the role of genetic operators was also studied. Finally, two case studies from the literature were demonstrated in order to validate the proposed method. A new methodology based on the neural network model enables the design and process planning engineers to propose an intelligent decision irrespective of their experience.


2013 ◽  
Vol 423-426 ◽  
pp. 2675-2678 ◽  
Author(s):  
Bao Long Hu ◽  
Ji Ren Xu ◽  
Huai Hui Gao ◽  
Ji Hai Liu ◽  
Ke Ren Wang

This paper introduced the BP neural network model and the BP algorithm in detail, and pointed out the BP neural network existed the defects of local optimal tendency of local optimal, slowed convergence speed etc. Through the modified BP algorithm, we could solve the problems existing in the traditional BP algorithm successfully, simulation results for odd-even discrimination of integer number based on MATLAB BP algorithm show that modified BP model compared with BP model has faster training speed and high study accuracy. Modified BP neural network models is used in practice, as long as it is complementary with effective measures, and we can get satisfactory result completely.


2020 ◽  
Author(s):  
Wen-Hsien Chang ◽  
Han-Kuei Wu ◽  
Lun-chien Lo ◽  
William W. L. Hsiao ◽  
Hsueh-Ting Chu ◽  
...  

Abstract Background: Traditional Chinese medicine (TCM) describes physiological and pathological changes inside and outside the human body by the application of four methods of diagnosis. One of the four methods, tongue diagnosis, is widely used by TCM physicians, since it allows direct observations that prevent discrepancies in the patient’s history and, as such, provides clinically important, objective evidence. The clinical significance of tongue features has been explored in both TCM and modern medicine. However, TCM physicians may have different interpretations of the features displayed by the same tongue, and therefore intra- and inter-observer agreements are relatively low. If an automated interpretation system could be developed, more consistent results could be obtained, and learning could also be more efficient. This study will apply a recently developed deep learning method to the classification of tongue features, and indicate the regions where the features are located.Methods: A large number of tongue photographs with labeled fissures were used. Transfer learning was conducted using the ImageNet-pretrained ResNet50 model to determine whether tongue fissures were identified on a tongue photograph. Often, the neural network model lacks interpretability, and users cannot understand how the model determines the presence of tongue fissures. Therefore, Gradient-weighted Class Activation Mapping (Grad-CAM) was also applied to directly mark the tongue features on the tongue image. Results: Only 6 epochs were trained in this study and no graphics processing units (GPUs) were used. It took less than 4 minutes for each epoch to be trained. The correct rate for the test set was approximately 70%. After the model training was completed, Grad-CAM was applied to localize tongue fissures in each image. The neural network model not only determined whether tongue fissures existed, but also allowed users to learn about the tongue fissure regions.Conclusions: This study demonstrated how to apply transfer learning using the ImageNet-pretrained ResNet50 model for the identification and localization of tongue fissures and regions. The neural network model built in this study provided interpretability and intuitiveness, (often lacking in general neural network models), and improved the feasibility for clinical application.


Author(s):  
M A Bolotov ◽  
V A Pechenin ◽  
N V Ruzanov ◽  
D M Balyakin

The quality of aircraft and rocket engines depends primarily on the geometric accuracy of assembly units and parts. Mathematical models implemented in the form of computer models are used to predict quality indicators (in particular, assembly parameters). Direct modeling of the conjugation process using numerical conjugation and finite-element models of assemblies requires significant computational resources and is often accompanied by problems convergence of solutions. In order to solve the above problems, it is possible to use neural network models describing the main regularities of the pairing process based on the accumulated results. The work presents a neural network model for predicting assembly parameters of the parts based on the use of actual surfaces of the parts obtained as a result of mathematical modeling. Assembly on conical surfaces is considered. A convolutional neural network was used to predict assembly parameters.


2011 ◽  
Vol 105-107 ◽  
pp. 185-188
Author(s):  
Feng Qin He ◽  
Ping Zhou ◽  
Jian Gang Wang

A 17-27-5 type BP neural network model was built, whose sampled data was got by hydrocyclone separation experiments; another 6-30-5 type BP neural network was also built, whose sampled data came from the simulation results of the LZVV of a hydrocyclone with CFD code FLUENT. The two neural network models also have good predictive validity aimed at hydrocyclone separation performance. It demonstrates LZVV structural parameters can embody hydrocyclone separation performance and reduce input parameter numbers of neural network model. It also indicates that the predictive model of hydrocyclone separation performance can be built by neural network.


Author(s):  
E. Stathakis ◽  
M. Hanias ◽  
P. Antoniades ◽  
L. Magafas ◽  
D. Bandekas

This study gives a new methodological framework regarding the measuring of the contribution of some key-factors on the regional growth rate and forecasting the future development rates, based on Neural Network Models (NN Models). It’s a serious attempt to study the contribution of twelve key-factors to the change of the Regional Gross Domestic Product of the Region of East Macedonia -Thrace during a long-term of growth process, by creating and using a suitable Neural Network Model. Specifically, twelve key-factors, time functioned in the period 1991-2008, are studied for the first time, in order to be investigated, scientifically, firstly their % contribution to growth of the regional economy and secondly, to be predicted how much the (Regional Growth Domestic Product) RGDP-under certain conditions-will be changed. It’s a NN Model with inputs the twelve key-factors in order to be evaluated and measured, at the best precise, their percentage contribution to the RGDP. The model and results can be found further into the article.


Sign in / Sign up

Export Citation Format

Share Document