Detection of transformer faults avoids the transformer's undesirable loss from service and ensures utility service continuity. Diagnosis of transformer faults is determined using dissolved gas analysis (DGA). Several traditional DGA techniques, such as IEC code 60599, Rogers' ratio method, Dornenburg method, Key gas method, and Duval triangle method, but these DGA techniques suffer from poor diagnosis transformer faults. Therefore, more research was used to diagnose transformer fault and diagnostic accuracy by combining traditional DGA techniques with artificial intelligence and optimization techniques. In this paper, a proposed Adaptive Dynamic Polar Rose Guided Whale Optimization algorithm (AD-PRS-Guided WOA) improves the classification techniques' parameters that were used to enhance the transformer diagnostic accuracy. The results showed that the proposed AD-PRS-Guided WOA provides high diagnostic accuracy of transformer faults as 97.1%, which is higher than other DGA techniques in the literature. The statistical analysis based on different tests, including ANOVA and Wilcoxon's rank-sum, confirms the algorithm's accuracy.