Open Access


Diabetes Prediction Algorithm Using Recursive Ridge Regression L2

Milos Mravik1, T. Vetriselvi2, K. Venkatachalam3,*, Marko Sarac1, Nebojsa Bacanin1, Sasa Adamovic1
1 Department of Computer Science, Singidunum University, Belgrade, 11000, Serbia
2 Department of Computer science and Engineering, K.Ramakrishnan College of Technology, Trichy, 621112, India
3 Department of Applied Cybernetics, Faculty of Science, University of Hradec Králové, 500 03, Hradec Králové, Czech Republic
* Corresponding Author: K. Venkatachalam. Email:

Computers, Materials & Continua 2022, 71(1), 457-471.

Received 03 June 2021; Accepted 07 August 2021; Issue published 03 November 2021


At present, the prevalence of diabetes is increasing because the human body cannot metabolize the glucose level. Accurate prediction of diabetes patients is an important research area. Many researchers have proposed techniques to predict this disease through data mining and machine learning methods. In prediction, feature selection is a key concept in preprocessing. Thus, the features that are relevant to the disease are used for prediction. This condition improves the prediction accuracy. Selecting the right features in the whole feature set is a complicated process, and many researchers are concentrating on it to produce a predictive model with high accuracy. In this work, a wrapper-based feature selection method called recursive feature elimination is combined with ridge regression (L2) to form a hybrid L2 regulated feature selection algorithm for overcoming the overfitting problem of data set. Overfitting is a major problem in feature selection, where the new data are unfit to the model because the training data are small. Ridge regression is mainly used to overcome the overfitting problem. The features are selected by using the proposed feature selection method, and random forest classifier is used to classify the data on the basis of the selected features. This work uses the Pima Indians Diabetes data set, and the evaluated results are compared with the existing algorithms to prove the accuracy of the proposed algorithm. The accuracy of the proposed algorithm in predicting diabetes is 100%, and its area under the curve is 97%. The proposed algorithm outperforms existing algorithms.


Ridge regression; recursive feature elimination; random forest; machine learning; feature selection

Cite This Article

M. Mravik, T. Vetriselvi, K. Venkatachalam, M. Sarac, N. Bacanin et al., "Diabetes prediction algorithm using recursive ridge regression l2," Computers, Materials & Continua, vol. 71, no.1, pp. 457–471, 2022.

This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 917


  • 579


  • 0


Share Link

WeChat scan