Skip to main content
. 2023 Feb 13;10(2):245. doi: 10.3390/bioengineering10020245
Algorithm 1: Proposed model for Dental Caries Prediction.
Input: Training dataset S := (x1, y1), (x2,  y2), …, (xn, yn); Fn Number of features to be selected, and θ threshold of feature importance.
Output: highest performing classification approach C.
  1. Begin algorithm:

  2. for (feature fi in S, i+1): Compute the weight importance of features.

relevance = mutualInformation (fi, y)
redundancy = initialize to 0
for (feature fj in S, j+1)
redundancy += mutualInformation (fi, fj)
end for
mrmrValues[fi]= relevance redundancy;
  • 3.

    end for

  • 4.

    H=sort(mrmrValues).take(θ) select a subset of the most important features from the total set S.

  • 5.
    for (feature fk in H, i+1): rank features by their predictive power and select the most important one.
    • Compute the Gini impurity of the target variable on fk as GI = GiniImpurity(fk).
    • Split the data samples x from fk into two subsets x1~k and xk~n then compute the Avg Gini impurity of the two subsets.
      G¯avg_1=AVGGiniImpur(x1~k)
      G¯avg_2=AVGGiniImpur(xk~n)
    • Store in the list of feature importance the Gini impurity caused by the splitting of the data on the current feature.
  • 6.

    Normalize the feature importances so that they sum to 1.

  • 7.

    Select a final subset of features based on feature importances obtained.

  • 8.

    Features = Select(List_feature_importance, Fn)

  • 9.

    PERFORM the Caries Prediction

  Hyper-parameter
  Machine Learning model include:
   List_Classifiers: GBDT, RF, SVM, LR, LSTM
  for Ci in List_Classifiers:
     Ci=RandomizedSearchAlgorithm(Hyper_parameters)
     C_metric=Evaluate(Features, C, Accuracy, F1score,Recall, Precision, ROC)
                   ListClassifier_evaluation_metrics.append (Ci,C_metric)
  end for
  • 10.

    Final classifier is obtained as: Clf=ArgMax{ListClassifier_evaluation_metrics}

     argmax operator returns the classifier that maximizes the evaluation metric.
11. END algorithm