Fig. 6

Main steps of the workflow. a Retrieving analyzed data from EMRs data. b Calculation of four types of feature similarities and patient similarity. c Application of patient similarity into personalized predictive model for future diabetes status prediction. kNN k-nearest neighbor, LR logistic regression, RF random forest, EMRs electrical medical records