This study investigates the influence of six metallic and non-metallic elements (Fe, Cr, Pb, Cu, Al, Si) on the quality of engine oil under normal, cautious, and critical conditions. To achieve this, the research employs the Design of Experiments (DoE) approach, specifically the Box–Behnken Design (BBD) method, for designing experiments. The electrical properties of 70 engine oil samples prepared under varying conditions were analyzed. Machine learning models, including RBF, ANFIS, MLP, GPR, and SVM, were utilized to predict the concentrations of the six pollutants in the lubricant oil samples based on their electrical characteristics. The models’ performance was assessed using RMSE and R 2 indicators during train, test, and All stages. The results revealed that the Radial Basis Function (RBF) model exhibited the best overall performance (RMSE = 0.01, R 2 = 0.99). The study proceeds with optimizing RBF model parameters, such as hidden size (best = 17), spread (best = 0.4 or higher), and training algorithm (best = trainlm), to estimate each pollutant individually. The generalizability of the model was assessed by reducing the training data percentage and increasing the testing data percentage. The results demonstrated the model’s proper performance for all pollutants in various training sizes (RMSE = 0.01, R 2 = 0.99). However, as the training data ratio reduced to 60:40 and 50:50, the model’s performance in estimating Cu deteriorated, resulting in increased RMSE values (10.76 or 11.85) and decreased R 2 values (0.89 or 0.87) across the All step. This academic research hopes to contribute to the field of applied studies, considering the inherent complexities of lubricants and the challenges in measuring small-scale electrical properties.