This study employed a novel approach to feature engineering, utilizing XGB feature selection combined with various supervised machine learning algorithms, including Random Forest, XGBoost, LogitBoost, AdaBoost, and Decision Tree, to develop predictive models for four complications of diabetes mellitus: retinopathy, chronic kidney disease, ischemic heart disease, and amputations. These models were built on synthetic electronic health records generated by dual-adversarial autoencoders, representing nearly 1 million synthetic patients for each of the two datasets used. These synthetic patients were derived from an authentic cohort of 979,308 and 984,414 individuals with diabetes, extracted from the Health Population Database (Base Poblacional de Salud, BPS) within the Andalusian Health System in Spain. The models considered variables such as age range and chronic diseases occurring during patient visits from the onset of diabetes. The final models, tailored to each complication, achieved an accuracy between 69% and 77% and an AUC between 77% and 84%. Notably, XGBoost and Random Forest demonstrated the best overall prediction performance, highlighting the effectiveness of our feature engineering and selection approach in enhancing model accuracy and robustness.