Skip to Content
AlgorithmsAlgorithms
  • Article
  • Open Access

21 September 2026

32 Pages

Search-Process Benchmarking of GA, PSO, DE, ABC, GWO and WOA for PMSM Inverter Fault Diagnosis in Electric Vehicle Drives

and
1
Department of Electrical and Electronic Engineering Technology, University of Johannesburg, Johannesburg 2092, South Africa
2
Centre for Augmented Intelligence and Data Science (CAIDS), College of Science Engineering and Technology, University of South Africa, Florida Science Campus, Pretoria 1710, South Africa
*
Author to whom correspondence should be addressed.

Abstract

Metaheuristic-assisted permanent magnet synchronous motor (PMSM) inverter fault diagnosis is often compared using endpoint accuracy alone, while search dynamics, computational demand, and validation dependence remain under-reported. This study presents a systematic search-process benchmark—not a hybrid optimizer—for the Genetic Algorithm (GA), Particle Swarm Optimization (PSO), Differential Evolution (DE), Artificial Bee Colony (ABC), Grey Wolf Optimizer (GWO), and the Whale Optimization Algorithm (WOA). The analysis uses 10,892 observations, 28 electrical–thermal candidate features, and nine operating classes. Each optimizer independently searches the same feature-gating and Gaussian Naive Bayes variance-smoothing space under five class-wise contiguous outer folds, three blocked inner folds, a population of 20, 100 iterations, and 30 runs per fold, yielding 900 searches and 90,000 trajectory records. A 10-sample exclusion gap is used to reduce short-range dependence; post hoc sensitivity checks over 0–100 samples show negligible change in a deterministic all-feature baseline. Relative to the non-optimized 28-feature GaussianNB baseline (macro-F1 of 0.9241), GWO produced the numerically highest mean macro-F1 of 0.9452, balanced accuracy of 0.9475, and MCC of 0.9435 while selecting 5.89 features on average. GWO reached 95% of its achieved fitness improvement earliest, at a median of 14 iterations, whereas ABC retained the greatest terminal population diversity, at 0.973. The fold-clustered Friedman test detected an overall difference (p = 0.0162), but none of the five Holm-adjusted pairwise comparisons against GWO was significant. The contribution is therefore a reproducible evaluation framework that links diagnostic performance to search dynamics, stability, calibration, and actual evaluation demand rather than a claim of pairwise optimizer superiority.

1. Introduction

Permanent magnet synchronous motor (PMSM) drives are widely studied in condition monitoring and fault diagnosis, particularly because of their increasing importance in electric vehicle (EV) propulsion, where drive reliability is directly related to vehicle safety, availability, and operational continuity [1,2]. Under electrical and thermal stress, faults such as inverter open circuits, short circuits, current-path abnormalities, and semiconductor degradation can distort phase currents, disturb electromagnetic torque production, increase device temperatures, and ultimately compromise the traction-drive system [3,4]. Compared with diagnostic approaches requiring dedicated external instrumentation, stator-current signals are readily available from existing drive sensors and can support non-invasive fault monitoring without modifying the machine structure [1]. However, fault-related current signatures can be affected by operating-point variations, harmonic components, electromagnetic interactions, thermal effects, and measurement interference, which can weaken the separability of healthy and faulty operating conditions [5,6]. In addition, inverter and machine faults may produce similar current disturbances under variable conditions, making reliable multiclass diagnosis of the affected fault type and location a challenging problem [7]. Traditional PMSM and inverter fault-diagnosis methods mainly rely on model-based observers, current-signature analysis, signal decomposition, threshold rules, and manually constructed diagnostic indicators [1,7]. These approaches can provide relatively clear physical interpretation because diagnostic decisions are related to current trajectories, harmonic components, voltage residuals, or known fault characteristics. However, their performance commonly depends on the selection of diagnostic thresholds, signal-processing procedures, operating conditions, and expert-defined features. When fault signatures overlap, noise increases, or the drive-operating state changes, handcrafted diagnostic indicators may become less discriminative, and diagnostic stability can deteriorate [7]. Recent studies have therefore combined optimized deep-learning architectures with electrical-signal feature extraction for PMSM fault diagnosis [8], while continuous wavelet transform-based fault-aware deep-learning frameworks have been developed for diagnosis and signal recovery in EV driving modules [9]. These studies demonstrate the value of learning discriminative representations directly from machine and inverter signals, although their emphasis is primarily on developing increasingly sophisticated predictive architectures rather than examining how the optimization process itself influences the resulting diagnostic solution.
Deep-learning methods can automatically learn fault representations from raw current signals, spectral sequences, transformed signals, or engineered feature sets, and they are increasingly applied to synchronous-machine and inverter fault diagnosis [10]. Fourier-domain processing, feature engineering, convolutional networks, recurrent structures, and deep neural networks have been combined to improve diagnostic discrimination and robustness [10,11]. Transformer-based hierarchical architectures have also been introduced for switch-fault detection and localization in inverter systems [12]; however, increasing diagnostic-model complexity does not, in itself, guarantee reliable generalization. In particular, when neighboring observations originate from contiguous acquisition sequences, inappropriate random partitioning can place strongly related records in both training and testing sets, producing optimistic diagnostic estimates. Recent EV fault-diagnosis studies have consequently emphasized sequential partitioning to reduce this risk [13]. Optimization-assisted and metaheuristic techniques are also increasingly used for feature selection, classifier configuration, and system-level search in electrical-machine applications [14,15]. Hybrid particle swarm optimization and gravitational search have been used to optimize multiclass support vector machine diagnosis, while genetic-algorithm-based attribute reduction has been applied to inverter open-circuit fault modeling [16,17]. More broadly, artificial-intelligence and soft-computing studies of modern motor drives identify optimization as an important component of intelligent fault detection, adaptive control, and performance enhancement [18,19,20,21,22]. Recent work on electric propulsion, AI-driven EV powertrain health management, and PMSM inverter diagnosis further shows that validation design, operating context, and model-selection choices materially affect the interpretation of reported diagnostic performance [23,24,25]. Comparable optimization studies outside motor diagnosis reinforce the importance of application-aware benchmarking: comparative MPPT evaluation in grid-connected photovoltaic systems shows that optimizer or controller performance depends on a common operating context [26,27]; Harmony Search research illustrates the practical exploration–exploitation trade-off in combinatorial search [28]; and smart-grid/EV studies emphasize monitoring, communication, reliability, and distributed-energy constraints that accompany intelligent vehicle integration [29]. These studies motivate a benchmark that reports not only the final diagnostic score but also how the search reaches that score and how much computational work is required.
Despite these advances, several issues remain unresolved for optimization-assisted PMSM inverter fault diagnosis. First, the literature contains many application-specific diagnostic architectures but fewer controlled comparisons that hold the feature space, classifier, validation partitions, population size, stopping rule, and stochastic repetitions constant while contrasting established evolutionary and swarm optimizers. Second, endpoint accuracy alone cannot reveal whether an optimizer reaches its solution rapidly, collapses its population prematurely, remains stagnant, recovers after inactive search periods, or consumes substantially more unique objective evaluations than another method. Third, sequential acquisition requires evaluation procedures that preserve acquisition order and separate model selection from final assessment. The primary contribution of this study is therefore a systematic evaluation framework, not a new fault classifier, feature-selection algorithm, or hybrid optimizer. GA, PSO, DE, ABC, GWO, and WOA are evaluated independently on the same 28-feature PMSM inverter problem, and their held-out diagnostic results are interpreted jointly with convergence timing, diversity retention, stagnation, recovery, boundary pressure, proposed and unique objective evaluations, feature stability, discrimination, calibration, and fold-clustered statistical inference.
(1) A controlled comparative benchmark of six established optimizers for PMSM inverter fault diagnosis is established. The methods are evaluated independently—not combined as a hybrid algorithm—using the same 10,892 observations, 28 candidate features, nine operating classes, population size, iteration count, blocked folds, and stochastic repetitions, yielding 900 complete searches and 90,000 recorded iterations.
(2) A search-process evidence framework is introduced for electrical-drive fault diagnosis. In addition to endpoint macro-F1, the benchmark reports convergence timing, diversity retention, phase-wise improvement, longest stagnation, recovery events, boundary pressure, cache reuse, runtime, and unique objective-evaluation demand so that optimizer behavior can be compared mechanistically rather than by accuracy alone.
(3) An acquisition-aware, blocked nested-validation protocol is used to reduce short-range dependence while keeping every feature-selection and classifier-configuration decision inside the training data. The 10-sample exclusion gap is supported by an autocorrelation analysis and an explicit 0–100-sample gap-sensitivity experiment, while the manuscript clearly limits the resulting claims to blocked within-session generalization.
(4) The engineering contribution is strengthened by mapping all 28 electrical–thermal features to plausible inverter fault mechanisms and by comparing the optimized pipeline against a non-optimized 28-feature Gaussian Naive Bayes baseline. This quantifies the practical value of optimization while avoiding causal claims from feature-selection frequency alone.
The remainder of this paper is organized as follows. Section 2 formalizes the diagnostic optimization problem and benchmarking scope. Section 3 describes the dataset, physical feature interpretation, acquisition-aware blocked validation, embedded classifier, optimizer mechanisms, search descriptors, and statistical procedures. Section 4 reports gap sensitivity, the non-optimized baseline, diagnostic performance, search dynamics, computational efficiency, statistical reliability, feature stability, calibration, and classifier sensitivity. Section 5 discusses the engineering and methodological implications, and Section 6 concludes the study and identifies the validation required for deployment-level claims.

2. Problem Formulation and Benchmarking Scope

This study focuses on multiclass PMSM inverter fault diagnosis based on synchronized electrical and thermal measurements. In the considered scenario, feature selection and classifier configuration are performed only using samples available within the training partition, whereas the held-out outer block remains inaccessible during optimization and model selection. The diagnostic framework is expected to identify normal operation and eight inverter-fault states while preserving the temporal structure of each class recording. This task is constrained by contiguous within-class acquisition, unequal class sizes, potentially redundant diagnostic variables, stochastic search behavior, and the risk of optimistic performance estimation when temporally adjacent observations are allowed to cross training and testing boundaries.

2.1. Sample and Label Spaces

In this study, an observation denotes one synchronized measurement instance obtained from the PMSM inverter system. Each raw observation contains eight measured channels comprising phase currents, DC-bus quantities, bridge temperatures, and driver voltage. Feature engineering transforms these measurements into the 28-dimensional candidate diagnostic representation used by all six optimizers. The feature vector corresponding to the ith observation is denoted as
x i ∈ R 28 ,
where the 28 coordinates contain the raw and engineered electrical and thermal diagnostic variables. The corresponding operating-state label is defined as
y i ∈ Y = { 0,1 , … , C − 1 } ,
where C denotes the number of diagnostic classes. The dataset considered in this study contains one normal operating state and eight inverter-fault states. Therefore, C = 9. The fault classes include open circuit, short-circuit, and overtemperature conditions associated with different inverter bridge locations.

2.2. Acquisition-Aware Blocked Training and Test Partitions

The observations within every class are retained in their original acquisition order. Instead of randomly distributing individual observations across training and testing subsets, each class sequence is divided into five contiguous outer blocks. For outer fold k, the held-out diagnostic set is formed by combining the kth contiguous block from every class:
D t e s t k = ⋃ C − 1 c = 0 B c , k ,     k ∈ { 1 , … , 5 }
where B c , k denotes the k-th contiguous block of class c. To reduce temporal leakage from observations immediately adjacent to the held-out block, a symmetric 10-sample exclusion region is removed from the corresponding training data. The outer-training partition is therefore defined as
D t r a i n k = D − D t e s t k ∪ G 10 D t e s t k ,
where G_10(.) represents the observations excluded within ten samples of each held-out boundary. Consequently, the training, exclusion-gap, and test observations are mutually separated:
D t r a i n k ∩ D t e s t k = ∅ ,     G 10 D t e s t k ∩ D t r a i n k ∪ D t e s t k = ∅
The resulting task is treated as a blocked within-session diagnostic generalization rather than a conventional random-split classification. The exclusion gap reduces direct short-range dependence across the block boundary but does not guarantee statistical independence. Because the available data contain one contiguous acquisition sequence for each operating condition, this protocol does not establish independent-session or independent-hardware generalization.

2.3. Diagnostic Optimization Objective

Each search agent represents a candidate feature subset, together with one classifier-configuration coordinate. The first 28 coordinates act as continuous feature gates. Features with gate values of at least 0.5 are retained, subject to a minimum of four selected variables. The remaining coordinate controls the variance-smoothing setting used by the embedded classifier. For a selected feature set (S) and classifier configuration (η), the diagnostic model is denoted as
f S , η : R S → Y .
During optimization, candidate solutions are evaluated exclusively through the blocked inner folds formed from the corresponding outer-training partition. The objective simultaneously rewards diagnostic discrimination and penalizes unnecessarily large feature subsets:
m i n z J z = 1 − F 1 m a c r o + 0.15 1 − B A c c + 0.02 S 28
where F1macro denotes macro-F1, BAcc denotes balanced accuracy, and |S| is the number of selected features. Lower objective values therefore correspond to stronger class-balanced diagnostic performance with a comparatively compact feature representation. All six optimizers solve exactly the same search problem. Differences in final diagnostic performance consequently arise from their search operators, population dynamics, stochastic trajectories, and evaluation behavior rather than from different feature spaces or objective definitions.

2.4. Outer-Test Blind Evaluation Constraint

Using a held-out outer block during feature selection, classifier configuration, stopping decisions, or optimizer comparison would introduce information from the final evaluation data into model development. The outer-test partition is therefore isolated throughout every optimization run. Within outer fold k, three blocked inner folds are created exclusively from the outer-training partition. For every inner split r, the corresponding inner-training and inner-validation sets remain subsets of the outer-training data, while the complete outer-test set remains disjoint:
D i n n e r , t r k , r ∪ D i n n e r , v a l k , r ⊂ D t r a i n k ,     D t r a i n k ∩ D t e s t k = ∅
Feature selection, classifier configuration, objective evaluation, and optimizer search are therefore completed without access to the held-out outer-test observations. After an optimization run terminates, its training-selected feature subset and classifier configuration are fitted using the permitted outer-training information and evaluated once on the corresponding held-out block. Thirty independent stochastic runs are completed for every algorithm and outer fold. The resulting protocol produces 150 outer evaluations per optimizer and 900 complete optimization runs across the six methods. This design separates training-time optimization from final blocked diagnostic assessment and provides the basis for the subsequent comparison of diagnostic performance, search dynamics, feature stability, calibration, and computational efficiency.

3. Materials and Methods

3.1. Overall Comparative Benchmark

The benchmark links three functions in a common PMSM inverter diagnostic pathway, as illustrated in Figure 1. First, synchronized electrical and thermal measurements are converted into a physically interpretable 28-feature representation while preserving within-class acquisition order. Second, GA, PSO, DE, ABC, GWO, and WOA independently search exactly the same encoded feature-selection and classifier-configuration space under a locked protocol. Third, all optimizer decisions are isolated from the held-out outer block, and the completed searches are compared using both diagnostic outcomes and trajectory-level evidence. The six methods therefore differ only in their search operators, population updates, replacement rules, and resulting evaluation demand; they do not form a hybrid optimizer.
Figure 1. Comparative benchmarking workflow for GA, PSO, DE, ABC, GWO and WOA in PMSM inverter fault diagnosis.

3.2. PMSM Inverter Dataset and Diagnostic Feature Representation

The source data were acquired from a three-phase MOSFET voltage-source inverter driving a converted DENSO automotive alternator operated as a PMSM at nominally 10 rad/s and 10 Hz sampling. The eight measured channels are phase currents Ia and Ib, DC-bus voltage VDC, DC-bus current IDC, half-bridge temperatures T1–T3, and driver voltage VD [26]. The dataset contains 10,892 synchronized observations distributed across one normal condition and eight inverter-fault conditions. The verified class distribution is reported in Table 1 and summarized graphically in Figure 2.
Table 1. Verified class distribution in the public PMSM inverter dataset.
Figure 2. Verified PMSM inverter dataset characteristics: (a) sample counts for the normal state and eight inverter-fault classes; (b) automated data-audit results; (c) the multiclass fault taxonomy retained throughout blocked validation.
Figure 2 separates three dataset properties that are important for the subsequent optimization study. The class-count panel shows the strong predominance of normal operation and the unequal support of the eight fault conditions. The audit panel records the row count, raw and engineered dimensionality, missingness, duplicate-row count and observed ADC range. The taxonomy panel preserves the distinction between open-circuit, short-circuit and overtemperature faults instead of collapsing them into a binary healthy/faulty task.
Raw ADC values were retained because the supplied metadata do not establish all physical-unit conversions. The electrical channels were therefore centered at the nominal 10-bit ADC midpoint before constructing the derived diagnostic relations. For each centered electrical variable,
x ~ j = x j − 512 ,     j ∈ { I a , I b , V D C , I D C , V D } ,
where the index set contains the measured electrical channels subjected to midpoint centering. Current imbalance was represented by
I i m b = I ~ a − I ~ b I ~ a + I ~ b + 1
and a DC interaction proxy was constructed as
P D C , p r o x y = V ~ D C   I ~ D C .
Thermal non-uniformity across the three monitored half-bridges was summarized by
T s p r e a d = m a x T 1 , T 2 , T 3 − m i n T 1 , T 2 , T 3 .
The resulting 28-feature set contains raw channels, centered electrical signals, current-magnitude and asymmetry descriptors, voltage and DC-side interactions, and bridge-specific thermal descriptors. The engineering rationale is fault-mechanism-oriented rather than purely statistical: open-switch conditions are expected to disturb phase-current symmetry and conduction balance; short-circuit conditions can change current magnitude and DC-side electrical interaction; and bridge overtemperature conditions are expected to appear in local temperatures, thermal spread, and pairwise bridge-temperature differences [3,4,6]. These relations are hypotheses used to motivate interpretable candidate features, not claims of causal dominance. Figure 3 summarizes the deterministic feature front end, and Table 2 lists every candidate feature and its expected diagnostic relevance. Standardization is not estimated globally; it is learned separately inside every permitted training partition so that the held-out data cannot influence feature scaling.
Figure 3. Deterministic diagnostic feature-engineering front end. The eight synchronized raw channels are transformed into the 28-feature representation used by every optimizer. Centering, interaction terms and thermal descriptors are computed without access to outer-test information.
Table 2. Candidate electrical–thermal features and expected relation to inverter fault mechanisms.
The feature dictionary in Table 2 makes the complete optimization search space explicit. Raw ADC channels are retained because the available metadata do not establish calibrated physical-unit conversion for every sensor. Centered and interaction variables are therefore treated as diagnostic proxies whose value is determined empirically under blocked validation. The accompanying data-integrity checks are reported in Table 3 and confirm the absence of missing raw cells and infinite engineered values before partitioning.
Table 3. Automated checks performed on the raw and engineered data.

3.3. Acquisition-Aware Blocked Nested Validation and Gap Rationale

Observations were retained in their within-class acquisition order. Each class sequence was divided into five contiguous outer blocks. For outer fold k, block k from every class was held out for the final diagnostic evaluation, while a symmetric exclusion gap of 10 samples was removed from neighboring training observations. At the 10 Hz sampling rate, this corresponds to 1 s on each side of an internal held-out boundary. The corresponding outer-training partition is therefore
T r a i n k = D ∖ T e s t k ∪ G a p 10 T e s t k .
Three class-wise blocked inner folds were then formed only from the remaining outer-training observations. Feature selection, variance-smoothing configuration, standardization, and objective evaluation were restricted to these training partitions. The outer-test block did not participate in candidate scoring, model selection, or optimizer comparison. Figure 4 illustrates the separation between the blocked outer split, the training-only search, trajectory logging, and the blind outer evaluation.
Figure 4. Acquisition-aware blocked nested validation and search-evidence collection.
The protocol estimates blocked within-session generalization; the 10-sample gap is a dependence-reduction device rather than a claim of independence. To evaluate whether this width was defensible, a post hoc autocorrelation analysis was performed within each raw channel and class for lags up to 100 samples. Among non-constant channel-class sequences, the 90th percentile of the first lag below |rho| < e−1 was 9 samples, and the 90th percentile below |rho| < 0.2 was 10 samples, although a small number of sequences decayed more slowly (maximum of 22 samples at the 0.2 criterion). A complementary deterministic gap-width sensitivity analysis over 0, 5, 10, 20, 50, and 100 samples is reported in Section 4.1. Because the public source data do not contain replicated acquisition sessions or hardware, neither the gap nor blocked validation can establish session-independent or hardware-independent performance.

3.4. Embedded Diagnostic Objective and Search Encoding

Gaussian Naive Bayes was used as the embedded objective classifier for benchmarking because it was assumed to be the strongest final classifier. It is deterministic for fixed training data and variance smoothing, requires no stochastic iterative training, supports thousands of repeated candidate evaluations at low cost, and produces class probabilities needed for calibration analysis. These properties reduce confounding between optimizer stochasticity and classifier-training stochasticity and make the six search mechanisms easier to compare under a large repeated-run design. For class c and selected feature vector x, the conditional density is
p x ∣ c = ∏ j 1 2 π σ c j 2 e x p − x j − μ c j 2 2 σ c j 2 .  
Each search agent encoded 28 continuous feature gates and one variance-smoothing coordinate. Feature gates of at least 0.5 were retained, subject to a four-feature minimum. The final coordinate selected one of 24 variance-smoothing values between 10−12 and 10−3. Candidate solutions were evaluated on the same three blocked inner folds, and repeated feature-mask/configuration combinations were served from an objective cache. The minimized objective was
J z = 1 − F 1 m a c r o + 0.15 1 − B A c c + 0.02 S 28 ,
where S is the selected feature set, BAcc is balanced accuracy, and the final term penalizes unnecessarily large feature subsets. Macro-F1 was computed as
F 1 m a c r o = 1 C ∑ c 2   P r e c i s i o n c   R e c a l l c P r e c i s i o n c + R e c a l l c .
The objective therefore emphasizes class-balanced diagnostic performance while applying a comparatively small sparsity penalty. The same objective function and decoding rules were supplied to all six optimizers. Because the objective landscape is generated by Gaussian Naive Bayes, the optimizer ranking is conditional on this embedded classifier. The later classifier-sensitivity experiment tests whether the selected representation transfers to other classifiers; it does not establish that the six optimizers would preserve the same ranking if every search were rerun with a different embedded learner.

3.5. Independent Optimizer Mechanisms and Locked Protocol

The six optimizers were implemented and evaluated independently; no hybrid GA-PSO-DE-ABC-GWO-WOA algorithm is proposed. Table 4 summarizes the operator families used in the publication computation, while Table 5 records the locked validation and stochastic-run protocol. Figure 5 shows the common candidate encoding, six independent search branches, shared training-only objective, and locked protocol used to make their trajectories directly comparable.
Table 4. Six optimizers and their implemented search mechanisms.
Table 5. Locked publication computation design.
Figure 5. Common search architecture for GA, PSO, DE, ABC, GWO and WOA. Every branch receives the same 29-dimensional candidate encoding, bound handling, training-only objective and publication protocol; only the search operators differ.
The optimization stage is an offline model-development procedure. The runtimes and objective-evaluation counts reported later measure offline search cost, not online fault-diagnosis latency. Once a feature mask, scaler, variance-smoothing value, and classifier have been fixed, online diagnosis requires only measurement preprocessing, evaluation of the selected features, and one trained-classifier prediction; GA, PSO, DE, ABC, GWO, and WOA are not executed on-board for each new sample.
The following equations expose the principal operator families used in the implementation. All candidate vectors were clipped to [0, 1], all stochastic generators were deterministically seeded, and the global best was preserved. All methods retained 20 agents throughout 100 iterations. The complete executable definitions remain in the optimizer implementation, while the equations below identify the dominant movement and replacement mechanisms. For GA, offspring are generated through arithmetic recombination followed by masked Gaussian mutation, with elitist survival:
x c h i l d = α ⊙ x p 1 + 1 − α ⊙ x p 2 + m ⊙ N 0 , σ t 2 ;     e l i t e x b e s t   s u r v i v e s
PSO updates particle velocity using inertia, together with personal-best and global-best attraction:
v i , t + 1 = w t v i , t + c 1 r 1 ⊙ p i − x i , t + c 2 r 2 ⊙ g − x i , t
DE uses the DE/rand/1 mutation rule followed by binomial crossover and greedy replacement:
v i = x a + 0.5 x b − x c ;     u i , j = v i , j , r j ≤ 0.9   o r   j = j r a n d , x i , j , o t h e r w i s e .  
ABC generates a neighboring food-source candidate through the employed/onlooker perturbation operator:
v i , j = x i , j + ϕ i , j x i , j − x k , j ,     ϕ i , j ∈ − 1 , 1
GWO updates each candidate from the alpha, beta and delta leaders under a linearly contracting control schedule:
x i , t + 1 = x α − A 1 C 1 x α − x i + x β − A 2 C 2 x β − x i + x δ − A 3 C 3 x δ − x i 3  
WOA alternates between encircling/random-target movement and logarithmic spiral motion:
x ′ i ∈ x t a r g e t − A ⊙ C ⊙ x t a r g e t − x i ,   x b e s t − x i e l c o s 2 π l + x b e s t
Although every method uses the same population and iteration count, canonical operators can propose different numbers of candidates. This is particularly important for the two bee phases in ABC. Proposed and unique objective evaluations are therefore reported separately rather than treating equal iteration count as proof of identical computational work.

3.6. Search-Dynamics Descriptors

Every iteration recorded the global-best fitness, current-population best and mean fitness, population diversity, best improvement, fractions of improved and replaced agents, boundary-hit fraction, and proposed objective evaluations. Population diversity at iteration t was defined as the mean coordinate-wise standard deviation across the 20 agents, with terminal diversity retention computed relative to the first recorded iteration:
D t = 1 d ∑ j S D i x i j , t ,     D r e t = D 100 D 1
A global-best improvement and its indicator were defined as
Δ t = m a x 0 , f t − 1 b e s t − f t b e s t ,     I t = 1 Δ t > 10 − 12 .
Time to 95% was the first iteration at which the best fitness reached 95% of the total improvement ultimately achieved by that run:
t 95 = m i n t : f t b e s t ≤ f T b e s t + 0.05 ∑ τ Δ τ  
The normalized convergence area summarized how early low objective values were reached over the complete search horizon:
A U C f = ∫ 1 T f t b e s t   d t T − 1
Lower convergence-area values indicate better fitness earlier in the search. Stagnation was measured as the longest consecutive sequence without a global-best improvement. A recovery was an improvement following at least five stagnant iterations, and late improvement share used the final 25 iterations. Premature convergence was flagged when terminal diversity was below 5% of initial diversity and no global-best improvement occurred during the final 25 iterations. For phase-wise analysis, the trajectory was partitioned into exploration (iterations 1–25), transition (26–50), intensification (51–75) and terminal (76–100) quarters.

3.7. Performance, Calibration and Statistical Analysis

The primary diagnostic endpoint was outer-block macro-F1. Supporting endpoints included balanced accuracy, accuracy, weighted F1, macro precision and recall, geometric-mean recall, MCC, Cohen’s kappa, one-versus-rest AUC, negative log loss, multiclass Brier score, ten-bin expected calibration error, runtime and selected-feature count. Cluster-bootstrap confidence intervals resampled complete outer folds using 2000 fold-resampling replicates. For descriptive algorithmic-repeat analysis, methods were ranked within each outer-fold/run unit. Generalization-aware inference first averaged the 30 stochastic repeats inside each outer fold, then applied a Friedman test to the five fold clusters and exact one-sided fold sign-flip comparisons with Holm adjustment. Kendall’s coefficient of concordance was computed as
W = χ F 2 N k − 1 .
Feature-set stability was measured with the pairwise Jaccard coefficient:
J S a , S b = S a ∩ S b S a ∪ S b
The post hoc classifier-sensitivity models use fixed, pre-specified hyperparameters rather than additional test-set tuning. Extra Trees uses 250 trees with class_weight = ‘balanced’; Random Forest uses 250 trees with class_weight = ‘balanced_subsample’; RBF-SVM uses C = 10, gamma = ‘scale’, class_weight = ‘balanced’, and probability = True; k-nearest neighbors uses k = 7 with distance weighting; and logistic regression uses class_weight = ‘balanced’ with max_iter = 2000. A fixed random seed is used where the estimator supports it. The optimized GaussianNB retains the variance-smoothing value selected inside the corresponding training data. These settings reproduce the supplied computational code and ensure that the sensitivity analysis remains a representation-transfer check rather than a second hyperparameter-search experiment.
Spearman correlations related seven trajectory descriptors to outer-block macro-F1 within each optimizer. These associations are exploratory; their p-values are reported without multiplicity correction, and interpretation therefore emphasizes direction and magnitude rather than isolated statistical significance. Together, the diagnostic, calibration, feature-stability and trajectory analyses provide the evidence required to compare final solutions and the search processes that generated them.

4. Results

This section evaluates the six optimizers under the acquisition-aware blocked nested-validation and locked computational protocol described in Section 3. The analysis begins with exclusion-gap sensitivity and a non-optimized baseline, followed by diagnostic performance, convergence behavior, search dynamics, phase-wise improvement, objective-evaluation efficiency, statistical reliability, feature sparsity and stability, class-wise discrimination, calibration, and classifier sensitivity. All diagnostic summaries are based on held-out outer-block predictions; the outer-test observations do not participate in feature selection, classifier configuration, or optimizer search.

4.1. Gap-Width Sensitivity and Conventional Baseline

Because the exclusion gap directly affects the training set near each outer-test boundary, its influence was examined independently of optimizer stochasticity using the deterministic all-28-feature GaussianNB pipeline. The same five contiguous outer blocks and training-only standardization were retained, while the exclusion width was varied from 0 to 100 samples. Table 6 shows that mean macro-F1 remained within 0.9241–0.9254 across the complete range. The maximum difference was approximately 0.0013, indicating that the reported diagnosis is not materially driven by the exact choice of a 10-sample gap. This sensitivity result supports the use of 10 samples as a pragmatic short-range separation width, while the slower autocorrelation decay observed in a small number of channel-class series confirms that the gap should not be interpreted as proof of temporal independence.
Table 6. Sensitivity of the deterministic all-feature GaussianNB baseline to exclusion-gap width.
A non-optimized reference pipeline was also evaluated to determine whether metaheuristic feature selection provides a measurable benefit over a straightforward conventional configuration. The baseline uses all 28 candidate features, training-only StandardScaler parameters, and the scikit-learn default GaussianNB variance-smoothing value of 10−9. It is fitted once per outer fold and does not perform feature selection or metaheuristic search. Table 7 compares this baseline with the mean GWO result from the repeated benchmark.
Table 7. Conventional non-optimized baseline and numerically leading metaheuristic result.
The baseline comparison quantifies the practical contribution of optimization under the present embedded classifier: GWO improves mean macro-F1 by 0.0211 while reducing the average representation from 28 to 5.89 features. This result demonstrates a benefit over an unoptimized all-feature pipeline, but it does not imply that GWO is pairwise statistically superior to the other five optimizers.

4.2. Main Diagnostic Performance and Convergence Behaviour

Table 8 and Figure 6 and Figure 7 present the principal diagnostic and convergence results. Each optimizer contributes 150 held-out evaluations obtained from five outer folds and 30 independent runs per fold. Because all methods use the same 28-feature search space, embedded diagnostic objective, blocked partitions, population size, and iteration count, the endpoint differences reflect the behavior of the six search mechanisms under a common experimental protocol rather than differences in data access or model-selection rules.
Table 8. Outer-block diagnostic performance across 150 runs per method.
Figure 6. Outer-block macro-F1 distributions across folds and stochastic runs.
Figure 7. Mean global-best fitness trajectories across the complete 100 iterations.
GWO yields the numerically highest mean macro-F1 at 0.9452, together with balanced accuracy of 0.9475 and MCC of 0.9435. WOA ranks second in macro-F1, at 0.9442, followed closely by DE, at 0.9441; GA, at 0.9428; PSO, at 0.9422; and ABC, at 0.9398. The absolute macro-F1 separation between GWO and WOA is only 0.0011. Accordingly, this ordering is treated as a numerical ranking under the present benchmark rather than evidence of pairwise superiority; the fold-clustered analysis in Section 4.5.2 shows that none of the five GWO-versus-comparator contrasts remains significant after Holm adjustment. GWO selects 5.8867 of the 28 candidate features, on average, compared with 4.7067 for WOA, 8.0333 for DE, 8.6267 for GA, 8.5267 for PSO, and 9.1333 for ABC. The calibration ordering is also different from the diagnostic ranking: GA records the lowest mean ECE, at 0.0322, followed by PSO, at 0.0325, and DE, at 0.0332, whereas GWO records 0.0358. The distributions in Figure 6 therefore provide a more informative view of endpoint uncertainty than the mean ranking alone.
Figure 7 compares the mean global-best fitness trajectories over the full 100 iterations. The curves show that the optimizers allocate their useful search effort differently: some methods obtain most of their improvement early, then enter long terminal plateaus, whereas others continue to generate improvements later in the run. The timing, diversity, and stagnation consequences of these trajectories are quantified in Section 4.3.

4.3. Search-Dynamics and Phase-Wise Behaviour

4.3.1. Search-Dynamics Signatures

Endpoint performance alone does not reveal how a diagnostic solution was obtained. Table 9 therefore summarizes the normalized convergence area, time-to-95% improvement, the number of global-best improvements, longest stagnation streak, recovery events, terminal diversity retention, and premature-convergence rate across 150 complete runs per method. Figure 8, Figure 9 and Figure 10 provide the corresponding diversity, exploration–exploitation, and stagnation views.
Table 9. Trajectory descriptors across 150 complete runs per method.
Figure 8. Mean population diversity normalized to the first recorded iteration.
Figure 9. Exploration–exploitation signatures: time to 95%, terminal diversity retention and mean fraction of improved agents.
Figure 10. Distribution of the longest global-best stagnation streak across 150 runs per method.
GWO reaches 95% of its ultimately achieved improvement earliest, at a median iteration of 14, followed by WOA, at 15; PSO, at 19; GA, at 25; DE, at 29; and ABC, at 67.5. This fast target attainment is accompanied by very different terminal population states. ABC retains 0.973 of its initial diversity, whereas PSO and DE retain 0.235 and 0.228, GA retains 0.027, WOA retains 0.003, and GWO reaches 0.000. The longest mean stagnation streaks are 80.487 iterations for WOA and 79.400 for GWO, compared with 70.247 for PSO, 65.680 for GA, 61.113 for DE, and 45.093 for ABC. Conversely, ABC records the most recoveries after at least five stagnant iterations, at 3.700 per run, followed by DE, at 1.853, and GA, at 1.573. Thus, rapid early convergence, terminal diversity, and recovery capability do not produce the same algorithm ordering as macro-F1. Figure 8 makes the diversity contrast explicit. GWO and WOA contract their populations sharply toward the end of the search, while ABC maintains a broad population throughout the run. The premature-convergence criterion consequently flags all GWO and WOA runs and 97.3% of GA runs, whereas DE, PSO, and ABC are not flagged by this particular terminal criterion. In this study, that flag denotes search concentration and late inactivity; it should not be interpreted as diagnostic failure because GWO still produces the strongest mean held-out macro-F1.
The combined exploration–exploitation signatures in Figure 9 show that early target attainment and retained diversity are distinct properties. GWO and WOA occupy the fast-convergence, low-terminal-diversity regime, whereas ABC occupies the slow-convergence, high-diversity regime. PSO and DE retain intermediate diversity while requiring more iterations to reach 95% of their achieved improvement.
Figure 10 compares the complete distributions of the longest global-best stagnation streak. The separation reinforces the recovery statistics in Table 9: ABC experiences shorter longest stalls and more post-stagnation recoveries, whereas the leadership-based GWO and WOA searches obtain most useful improvement earlier, then remain inactive for longer terminal intervals.

4.3.2. Phase-Wise Search Behavior

To determine where useful search activity occurs, each 100-iteration trajectory is partitioned into four equal quarters: exploration, transition, intensification, and terminal search. Table 10 reports the probability of a global-best gain, together with population diversity, the fraction of improved agents, and boundary pressure in each quarter. Figure 11 visualizes the phase-wise probability of global-best improvement.
Table 10. Phase-wise dynamics over the four 25-iteration search quarters.
Figure 11. Probability of a global-best improvement in each search quarter.
Figure 11 emphasizes the front-loaded nature of GWO, WOA, DE, GA, and PSO relative to ABC. The result is important for interpreting the endpoint ranking: GWO leads diagnostically despite concentrating most global-best improvements in the first quarter, while ABC preserves search activity longer without translating that persistence into the strongest outer-block score.
The phase analysis confirms that the algorithms allocate improvement differently across the run. During Q1, the probability of a global-best gain is 0.3403 for DE, 0.3352 for GWO, 0.3093 for PSO, 0.2965 for GA, 0.2405 for WOA, and 0.1512 for ABC. By Q4, the corresponding probabilities fall to 0.0045, 0.0000, 0.0024, 0.0016, 0.0000, and 0.0323, respectively. ABC therefore retains the largest late-stage improvement probability and terminal diversity (0.2707), whereas GWO and WOA reach zero Q4 global-best-gain probability, with terminal-quarter diversities of 0.0146 and 0.0104. Boundary pressure also differs substantially: PSO reaches 0.1554 in Q2, while ABC remains near 0.005 throughout. These measurements separate productive improvement from simple movement or clipping at the search bounds.

4.4. Evaluation Efficiency and Computational Cost

A common population and iteration count provides protocol parity but does not guarantee equal computational work. Table 11 therefore separates proposed objective evaluations from unique training-only evaluations, reports cache reuse and runtime, and relates macro-F1 to the number of unique evaluations. Figure 12 and Figure 13 show the corresponding performance-evaluation and performance-runtime trade-offs.
Table 11. Measured objective-evaluation and runtime efficiency.
Figure 12. Diagnostic performance versus unique training-only objective evaluations.
Figure 13. Measured performance–runtime trade-off.
GA provides the largest macro-F1 per 1000 unique objective evaluations, at 4.0653, requiring only 231.9133 unique evaluations, on average, from 2020 proposed evaluations and completing a run in 1.0024 s. WOA is the next most evaluation-efficient, at a 2.4249 macro-F1 per 1000 unique evaluations, with 389.3667 unique evaluations and a runtime of 1.4316 s. GWO requires 586.3400 unique evaluations and 2.0442 s, producing an efficiency value of 1.6121. PSO and DE require 627.9733 and 734.0800 unique evaluations, respectively, while ABC proposes 4062.8867 candidates; records 741.2067 unique evaluations; and has the longest mean runtime, at 3.1356 s. The high cache-hit fractions, particularly 0.8852 for GA and 0.8176 for ABC, show that continuous population movement can repeatedly map to previously evaluated discrete feature masks and calibration settings. Figure 12 places diagnostic performance against the number of unique training-only objective evaluations. The plot shows that the optimizer with the highest final macro-F1 is not the optimizer with the highest diagnostic return per unique evaluation; GA occupies the strongest evaluation-efficiency position, while GWO occupies the strongest endpoint-performance position.
The measured runtime comparison in Figure 13 produces a similar multi-objective picture. GA and WOA are faster than GWO, whereas DE and ABC incur greater runtime. Therefore, no method dominates simultaneously in macro-F1, unique-evaluation demand, cache behavior, and execution time, supporting the need to report computational demand alongside endpoint accuracy.

4.5. Statistical Reliability and Dynamics–Performance Associations

4.5.1. Dynamics–Performance Associations

The relationship between search behavior and held-out diagnosis is examined within each optimizer before formal rank testing. Table 12 reports, for each method, the trajectory descriptor with the largest absolute Spearman association with outer-block macro-F1. Seven descriptors are tested per optimizer, producing 42 exploratory correlations; the raw p-values are therefore descriptive and are not used as multiplicity-adjusted confirmatory evidence.
Table 12. Largest absolute within-method trajectory–macro-F1 association. p-values are exploratory and uncorrected.
The largest absolute association occurs for GWO, where mean boundary-hit fraction is negatively associated with macro-F1 (rho = −0.285, p = 0.0004). DE shows a negative association between longest stagnation streak and macro-F1 (rho = −0.257, p = 0.0015), while GA also shows a negative boundary-hit association (rho = −0.207, p = 0.0108). ABC shows a positive association with normalized convergence AUC (rho = 0.205, p = 0.0119). The corresponding associations for WOA (rho = 0.098) and PSO (rho = 0.064) are smaller and not statistically compelling at their raw p-values. These effect sizes are modest and algorithm-specific, so they are treated as hypothesis-generating rather than as evidence of universal causal search mechanisms.

4.5.2. Non-Parametric Comparison

Table 13 first presents the descriptive rank ordering across the 150 outer-fold/run units. This analysis summarizes repeated algorithmic behavior, but the 30 stochastic repetitions within each outer fold share the same five held-out data blocks and therefore cannot be interpreted as 150 independent acquisition experiments.
Table 13. Descriptive mean rank across 150 outer-fold/run units.
GWO obtains the lowest descriptive mean rank, at 2.910, followed by DE, at 3.13, and WOA, at 3.223. PSO, GA, and ABC follow, at 3.747, 3.763, and 4.223, respectively. The run-level Friedman test gives chi-square(5) = 52.033, p < 0.0001, with Kendall’s W = 0.069. The small W indicates that the overall rank separation is limited despite the low run-level p-value, which is why the primary inference is repeated at the level of the five independent outer-fold clusters. The generalization-aware analysis in Table 14 averages the 30 stochastic repetitions within each outer fold before testing algorithm differences. A Friedman test is then applied to the five-fold means, followed by exact one-sided fold sign-flip comparisons against GWO with Holm adjustment.
Table 14. Primary fold-clustered inference after averaging stochastic repeats inside each outer fold.
The fold-clustered Friedman test detects an overall difference among the six algorithms (p = 0.0162). However, none of the five GWO-versus-comparator contrasts remains significant after Holm adjustment. The mean macro-F1 differences relative to GWO are 0.0055 for ABC, 0.0030 for PSO, 0.0024 for GA, 0.0012 for DE, and 0.0011 for WOA; the corresponding Holm-adjusted p-values range from 0.1562 to 0.1875. Because the primary inferential unit comprises only five outer-fold clusters, statistical power for pairwise claims is necessarily limited. The appropriate interpretation is therefore that the methods are distinguishable at the overall fold level and that GWO is numerically first, while the available evidence does not establish pairwise GWO superiority after multiplicity correction. Figure 14 summarizes the mean-rank ordering visually.
Figure 14. Mean Friedman rank; lower values indicate stronger performance.

4.6. Feature Sparsity and Stability

Because multiple feature subsets can produce similar diagnostic scores, feature-selection frequency and stability are examined separately from endpoint performance. Table 15 lists the ten features most frequently selected by GWO, while Figure 15 and Figure 16 show the broader selection-frequency profile and the relationship between selected-feature count and held-out macro-F1.
Table 15. Ten features most frequently selected by GWO.
Figure 15. Selection frequencies for the twenty most frequently retained features.
Figure 16. Selected-feature count versus blocked-fold macro-F1.
The most frequently selected GWO variable is Temperature_T1_minus_T3, retained in 99.3% of runs, followed by Current_mean, at 71.3%, and Temperature_T1_minus_T2, at 59.3%. Temperature_mean is selected in 40.0% of runs, and the current-imbalance proxy is selected in 36.7%, while several individual and derived temperature variables also appear among the ten most frequent features. The mean pairwise Jaccard stability is 0.3309 across 11,175 run-pair comparisons. These frequencies identify variables repeatedly preferred by this optimization procedure under the present dataset and objective; they do not prove causal or physically dominant fault mechanisms. Their engineering value lies in consistency with plausible conduction-asymmetry and bridge-heating effects, which still requires independent experimental confirmation.
Figure 16 places selected-feature count against blocked-fold macro-F1 to examine whether stronger diagnostic performance is simply obtained by retaining more variables. The plot is reported as a sparsity-performance diagnostic rather than as evidence for a predetermined optimal feature count; it allows compact and larger masks with similar held-out performance to be identified directly.

4.7. Fault-Class Diagnostic Behavior and Calibration

4.7.1. Class-Wise Diagnostic Behavior

Aggregate accuracy can conceal class-specific weaknesses, particularly in the minority inverter-fault states. Table 16 therefore reports precision, recall, F1 score, and support for the training-selected GWO solutions after aggregating held-out outer-block predictions. Figure 17 and Figure 18 provide the corresponding confusion-matrix and algorithm-level recall views.
Table 16. Aggregate class-wise performance for training-selected GWO runs.
Figure 17. Aggregate blocked-fold confusion matrix for GWO.
Figure 18. Fault-class recall by algorithm.
The aggregate training-selected GWO model yields a macro-F1 of 0.9464. F8 has the highest class F1 score, at 0.9899, followed by F5, at 0.9890; F0, at 0.9796; F4, at 0.9792; and F7, at 0.9704. The most difficult classes are F2 and F1, with F1 scores of 0.8679 and 0.8689, respectively. F6 achieves perfect precision of 1.0000 but recall of 0.8770, indicating conservative recognition of that overtemperature condition, while F7 and F8 both achieve recall of 1.0000. These results show that the high aggregate score is not uniformly distributed across all nine classes and that the principal diagnostic limitations remain concentrated in a smaller subset of fault states. Figure 17 shows the aggregate blocked-fold confusion structure for GWO and complements the per-class metrics by locating the remaining off-diagonal errors. The matrix should therefore be read together with Table 16 rather than with the overall macro-F1 alone, particularly for F1, F2, and F6, where recall is lower than for the strongest classes.
Figure 18 compares class recall across all six optimizers. This view tests whether the classes that are difficult for the GWO-selected solution are also difficult under alternative search mechanisms and whether an optimizer gains its aggregate score through broad class-wise improvement or through gains concentrated in particular fault conditions.

4.7.2. Calibration and Discrimination

Diagnostic discrimination is complemented by probability calibration. Across GWO runs, the mean ECE is 0.0358, the multiclass Brier score is 0.0843, and the macro one-versus-rest AUC is 0.9944. These measures evaluate whether the high class-separation performance is accompanied by useful probabilistic confidence rather than only correct hard labels. As Table 8 shows, the calibration ranking is not identical to the macro-F1 ranking, with GA, PSO, and DE recording slightly lower mean ECE values than GWO.
The reliability diagram in Figure 19 visualizes agreement between predicted confidence and empirical correctness for the aggregate GWO predictions. Figure 20 then places discrimination and calibration in the same view, making explicit that an optimizer can lead on macro-F1 or AUC without necessarily minimizing calibration error. The two figures therefore support joint reporting of discrimination and confidence quality for fault-diagnostic deployment.
Figure 19. Reliability diagram for aggregate GWO predictions.
Figure 20. Discrimination–calibration trade-off.

4.8. Classifier Sensitivity Analysis

A final sensitivity experiment examines whether the GWO-selected feature masks remain informative beyond the embedded Gaussian Naive Bayes objective. Table 17 applies the selected representations to five alternative classifier families plus the optimized GaussianNB without rerunning the six-optimizer benchmark. The fixed hyperparameters are those specified in Section 3.7; no additional outer-test tuning is performed. This analysis therefore evaluates representation transfer, not optimizer-ranking invariance.
Table 17. Alternative classifiers using GWO-selected feature masks.
Extra Trees produces the highest sensitivity result, with a macro-F1 of 0.9718, balanced accuracy of 0.9701, and MCC of 0.9737. Random Forest follows, with a macro-F1 of 0.9688, followed by RBF-SVM, at 0.9647, and k-nearest neighbors, at 0.9556. The optimized Gaussian Naive Bayes configuration used in the search loop yields 0.9446, while logistic regression is lowest, at 0.9018. These results show that the GWO-selected representation is useful across several classifier families. They do not show that GA, PSO, DE, ABC, GWO, and WOA would preserve the same relative ranking if every optimizer were rerun with a different embedded classifier; that question remains a limitation and a priority for future work.

5. Discussion

The central contribution of this work is a systematic optimizer-evaluation framework rather than a new hybrid search algorithm or a claim that GWO universally dominates alternative methods. Under the same PMSM inverter diagnostic problem, GWO produced the numerically highest mean macro-F1 of 0.9452, but WOA and DE were close, at 0.9442 and 0.9441. The fold-clustered Friedman test detected an overall difference, whereas none of the five Holm-adjusted pairwise contrasts against GWO was significant. With only five outer-fold clusters, pairwise power is limited; therefore, GWO should be described as the first-ranked method in this experiment, not as statistically established as superior to every comparator.
The non-optimized baseline clarifies what the metaheuristic layer contributes. Using all 28 candidate features with default GaussianNB produced a mean macro-F1 of 0.9241, compared with 0.9452 for GWO, while GWO retained only 5.89 features, on average. The resulting gain of 0.0211 in macro-F1 and substantial reduction in input dimensionality show that the optimization stage adds practical value relative to a straightforward conventional pipeline. At the same time, the modest absolute differences among the six optimized methods show that most of the scientific value lies in how the search processes differ, not in a large separation of final classification scores.
Search trajectories reveal distinct regimes that endpoint metrics conceal. GWO reaches 95% of its achieved improvement at a median of 14 iterations, then collapses to essentially zero terminal diversity, while ABC retains 0.973 of its initial diversity and generates the most recovery events but has the lowest final macro-F1. DE and PSO occupy intermediate regimes. These differences demonstrate that fast target attainment, retained exploration, stagnation, and recovery are separate properties. A practitioner selecting an optimizer for offline model development may therefore value short search time, stable feature selection, or continued exploration differently depending on computational constraints and the expected need for retuning.
Computational effort must also be separated from online diagnosis. Equal population size and iteration count provide protocol parity, but ABC proposes more candidates, and all methods revisit cached discrete feature masks at different rates. GA consequently provides the highest macro-F1 per 1000 unique evaluations and the shortest mean offline search runtime, whereas GWO provides the strongest numerical diagnostic endpoint. These runtimes do not represent on-board inference latency: the metaheuristic search is performed offline, and deployment uses only the fixed feature mask, training-derived scaler, and fitted classifier for each new sample.
The feature-selection results are physically plausible but should not be over-interpreted. Temperature_T1_minus_T3 is selected in 99.3% of GWO runs, and current- and temperature-difference variables recur frequently, which is consistent with bridge-specific thermal stress and disturbed phase conduction. However, selection frequency measures preference under a particular dataset, classifier objective, and search process; it does not establish causal diagnostic importance. The new feature-mechanism table therefore presents the engineering rationale as an expected relation that requires confirmation with controlled fault injection, repeated hardware, and additional operating conditions.
The embedded classifier is another important boundary of the benchmark. Gaussian Naive Bayes was selected because it is deterministic, computationally inexpensive, and probabilistic, thereby supporting the large repeated-run experiment without adding classifier-training stochasticity. Extra Trees, Random Forest, and RBF-SVM achieve higher performance when applied to the GWO-selected masks, confirming that the selected representation transfers beyond GaussianNB. Nevertheless, this does not establish optimizer-ranking invariance: the objective landscape would change if every optimizer were embedded with another classifier. A future factorial study should therefore repeat the six-method comparison under at least one tree-based and one margin-based embedded classifier.
Finally, the acquisition-aware validation reduces local train–test dependence but does not create new independent sessions. The 10-sample gap is supported by raw-channel autocorrelation decay and by a 0–100-sample sensitivity analysis in which the deterministic baseline changes by only about 0.0013 in macro-F1, but some channel-class series retain longer correlation. The dataset also represents one contiguous recording per class at a nominally constant speed. Accordingly, the reported 0.94–0.95 macro-F1 range is blocked within-session evidence and should not be interpreted as deployment performance across vehicles, days, hardware, loads, speeds, or drive cycles. Independent multi-session and multi-device acquisition remains necessary before operational generalization can be claimed.

6. Conclusions

This study presents a systematic search-process benchmark of GA, PSO, DE, ABC, GWO, and WOA for feature-selective PMSM inverter fault diagnosis in electric vehicle drives. The six established optimizers are evaluated independently rather than combined into a hybrid algorithm. Across 900 searches and 90,000 recorded iterations, GWO produced the numerically highest mean macro-F1 of 0.9452, balanced accuracy of 0.9475, and MCC of 0.9435. Relative to the non-optimized 28-feature default-GaussianNB baseline (macro-F1 of 0.9241), the GWO pipeline improved mean macro-F1 by 0.0211 while reducing the average selected representation to 5.89 features. The fold-clustered Friedman test detected an overall difference (p = 0.0162), but none of the five Holm-adjusted pairwise contrasts against GWO was significant. GWO is therefore reported as numerically first under the present benchmark, not as pairwise statistically superior to all alternatives.
The stronger contribution is the evidence framework used to explain optimizer behavior. GWO converged rapidly but lost terminal diversity, ABC retained the greatest diversity and generated the most recoveries, and GA offered the highest performance per 1000 unique objective evaluations and the shortest mean offline runtime. Feature-selection frequencies identified a recurring electrical–thermal core, but these frequencies are interpreted as optimization preferences rather than causal fault mechanisms. The classifier-sensitivity results show that GWO-selected masks transfer to Extra Trees, Random Forest, and RBF-SVM while also emphasizing that the six-optimizer ranking remains conditioned on the GaussianNB search objective.
Future work should repeat the benchmark with alternative embedded classifiers, exactly matched unique-evaluation budgets, independent acquisition sessions, multiple PMSM-inverter hardware units, broader speed-load operating regions, representative EV drive cycles, and higher-frequency electrical measurements. The 10-sample gap reduces short-range dependence and is supported by sensitivity analysis, but only independent sessions and hardware can establish deployment-level generalization.

Author Contributions

Conceptualization, B.A.T.; methodology, B.A.T. and K.M.; software, B.A.T.; validation, B.A.T. and K.M.; formal analysis, B.A.T.; investigation, B.A.T.; resources, B.A.T.; data curation, B.A.T.; writing—original draft preparation, B.A.T.; writing—review and editing, B.A.T. and K.M.; visualization, B.A.T.; project administration, B.A.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The experimental dataset analyzed in this study is available at https://doi.org/10.5281/zenodo.13974503.

Acknowledgments

The authors acknowledge the institutional support provided by the University of Johannesburg and the University of South Africa. In particular, the authors acknowledge the Department of Electrical and Electronic Engineering Technology at the University of Johannesburg and the Centre for Augmented Intelligence and Data Science (CAIDS) at the University of South Africa for providing the academic and research environment that supported this work.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. El-Dalahmeh, M.; Al-Greer, M.; Bashir, I.; El-Dalahmeh, M.; Demirel, A.; Keysan, O. Autonomous fault detection and diagnosis for permanent magnet synchronous motors using combined variational mode decomposition, the Hilbert-Huang transform, and a convolutional neural network. Comput. Electr. Eng. 2023, 110, 108894. [Google Scholar] [CrossRef] [Scilit]
  2. Kumar, M.P.; Velpula, S.; Saiprakash, C. Fault diagnosis and predictive maintenance of electric vehicle powertrain using artificial intelligence techniques: A review. Results Eng. 2026, 30, 110857. [Google Scholar] [CrossRef] [Scilit]
  3. Luo, D. EKF-based fault detection and isolation for PMSM inverter. Sustain. Energy Technol. Assess. 2022, 52, 101846. [Google Scholar] [CrossRef] [Scilit]
  4. Zhang, Y. Current behavior-based open-switch fault on-line diagnosis of inverters in PMSM drive systems. Measurement 2022, 202, 111810. [Google Scholar] [CrossRef] [Scilit]
  5. Ko, Y.; Lee, Y.; Oh, J.; Park, J.; Chang, H.; Kim, N. Current signature identification and analysis for demagnetization fault diagnosis of permanent magnet synchronous motors. Mech. Syst. Signal Process. 2024, 214, 111377. [Google Scholar] [CrossRef] [Scilit]
  6. Pan, L.; Du, X.; Lei, X.; Ye, T.; Xiang, D.; Li, H. Double-ring high-frequency common-mode switching oscillation current sensor for inverter-fed machine winding insulation monitoring. Glob. Energy Interconnect. 2024, 7, 106–116. [Google Scholar] [CrossRef] [Scilit]
  7. Wei, L.; Qian, L.; Wang, M.; Tong, M.; Jiang, Y.; Li, M. A novel multi-resolution network for the open-circuit faults diagnosis of automatic ramming drive system. Def. Technol. 2024, 34, 225–237. [Google Scholar] [CrossRef] [Scilit]
  8. Baharvand, A.H.; Beigi Fard, S.H.; Poursaeed, A.H.; Doostizadeh, M. An optimized classifier chains-based deep learning framework for inter-turn fault diagnosis in permanent magnet synchronous motors. Appl. Soft Comput. 2025, 180, 113482. [Google Scholar] [CrossRef] [Scilit]
  9. Jang, J.; Lee, H. Resilient fault diagnosis and recovery framework for driving modules of electric vehicles using continuous wavelet transform-based fault-aware deep learning. Appl. Soft Comput. 2026, 198, 115289. [Google Scholar] [CrossRef] [Scilit]
  10. Liu, W.; Wang, T. Synchronous motor fault diagnosis via a dual-branch deep network: Divergent input modalities with Swin Transformer and ECA-enhanced TCN. Measurement 2026, 283, 122090. [Google Scholar] [CrossRef] [Scilit]
  11. Yan, H.; Peng, Y.; Shang, W.; Kong, D. Open-circuit fault diagnosis in voltage source inverter for motor drive by using deep neural network. Eng. Appl. Artif. Intell. 2023, 120, 105866. [Google Scholar] [CrossRef] [Scilit]
  12. Heidari, J.; Peykarporsan, R.; Oshnoei, S.; Lie, T.T.; Vandevelde, L.; Crevecoeur, G. Hierarchical switch fault diagnosis based on transformer algorithm in four-leg inverters of stand-alone wind energy conversion systems. Int. J. Electr. Power Energy Syst. 2026, 175, 111607. [Google Scholar] [CrossRef] [Scilit]
  13. Sharawy, M.; El-Nahas, A.; Alahmar, M.A.; Banakhr, F.A.; Mosaad, M.I.; Selmy, M. Machine learning framework for multi-fault diagnosis within three-phase induction motor in electric vehicle applications. Results Eng. 2026, 30, 110933. [Google Scholar] [CrossRef] [Scilit]
  14. Samanta, P.; Mitikiri, S.B.; Sahay, P.K.; Srinivas, V.L. A comparative review of radial and axial flux PMSMs: Innovations in topology, design, and control. Frankl. Open 2025, 12, 100341. [Google Scholar] [CrossRef] [Scilit]
  15. Gao, Y.; Cheong, B.; Bozhko, S.; Wheeler, P.; Gerada, C.; Yang, T. Surrogate role of machine learning in motor-drive optimization for more-electric aircraft applications. Chin. J. Aeronaut. 2023, 36, 213–228. [Google Scholar] [CrossRef] [Scilit]
  16. Ding, S.; Hao, M.; Cui, Z.; Wang, Y.; Hang, J.; Li, X. Application of multi-SVM classifier and hybrid GSAPSO algorithm for fault diagnosis of electrical machine drive system. ISA Trans. 2023, 133, 529–538. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  17. Han, S.; He, Y.; Huang, P.; Zheng, S.; Zhou, M.; Wang, F. Modeling and optimization of OC fault diagnosis for inverters based on GR-PTA-BN. Microelectron. Reliab. 2022, 128, 114457. [Google Scholar] [CrossRef] [Scilit]
  18. Dileep, G.; Selden, P.; Wangmo, K.; Chhetri, D.; Zangmo, T. Novel AI-based soft computing applications in motor drives. In Handbook of Power Electronics in Smart Grids and Intelligent Energy; Rashid, M.H., Ed.; Academic Press: Cambridge, MA, USA, 2026; pp. 563–598. [Google Scholar] [CrossRef] [Scilit]
  19. Zuluaga-Ríos, C.D. Artificial neural networks applications in power electronics and electric drives. In Handbook of Power Electronics in Smart Grids and Intelligent Energy; Rashid, M.H., Ed.; Academic Press: Cambridge, MA, USA, 2026; pp. 545–561. [Google Scholar] [CrossRef] [Scilit]
  20. Sakthivel, K.; Alexander, S.A. An extensive critique on machine learning techniques for fault tolerance and power quality improvement in multilevel inverters. Energy Rep. 2024, 12, 5814–5833. [Google Scholar] [CrossRef] [Scilit]
  21. Huang, C.-W.; Hsu, S.-H.; Chou, T.-C.; Lee, P.-H. Data-driven estimation for electric machine emulator operation in AI-driven sensorless control of electric vehicle energy networks. Int. J. Electr. Power Energy Syst. 2026, 175, 111581. [Google Scholar] [CrossRef] [Scilit]
  22. Zhang, P.; Chen, R.; Xu, X.; Yang, L.; Ran, M. Recent progress and prospective evaluation of fault diagnosis strategies for electrified drive powertrains: A comprehensive review. Measurement 2023, 222, 113711. [Google Scholar] [CrossRef] [Scilit]
  23. Milfont, L.D.; Ferreira, G.T.C.; Giesbrecht, M. Fault diagnosis in electric machines and propellers for electrical propulsion aircraft: A review. Eng. Appl. Artif. Intell. 2025, 139, 109577. [Google Scholar] [CrossRef] [Scilit]
  24. El Hadraoui, H.; El Maghraoui, A.; Laayati, O.; Sabani, E.; Zegrari, M.; Chebak, A. AI-driven diagnosis and health management of autonomous electric vehicle powertrains: An empirical data-driven approach. Results Eng. 2025, 27, 106157. [Google Scholar] [CrossRef] [Scilit]
  25. El Idrissi, R.; Bacha, A.; Lmai, F.; Janati Idrissi, K.; Papa, A.S. A novel fault detection and diagnosis approach for three-phase full-bridge inverter in permanent magnet synchronous motor based on optimal information gain threshold determination and supervised machine learning algorithms. Results Eng. 2025, 28, 108062. [Google Scholar] [CrossRef] [Scilit]
  26. Bacha, A. Comprehensive Dataset for Fault Detection and Diagnosis in Inverter-Driven PMSM Systems, Version v1.0.0; Zenodo: Geneva, Switzerland, 2024. [Google Scholar] [CrossRef]
  27. Elsafi, A.; Almohammedi, A.A.; Balfaqih, M.; Balfagih, Z.; Sabri, S. Comparative analysis of maximum power point tracking methods for power optimization in grid tied photovoltaic solar systems. Discov. Appl. Sci. 2025, 7, 976. [Google Scholar] [CrossRef] [Scilit]
  28. Alsewari, A.A.; Poston, R.; Zamli, K.Z.; Balfaqih, M.; Aloufi, K.S. Combinatorial test list generation based on Harmony Search Algorithm. J. Ambient. Intell. Humaniz. Comput. 2022, 13, 3361–3377. [Google Scholar] [CrossRef] [Scilit]
  29. Hasan, M.K.; Habib, A.A.; Islam, S.; Balfaqih, M.; Alfawaz, K.M.; Singh, D. Smart Grid Communication Networks for Electric Vehicles Empowering Distributed Energy Generation: Constraints, Challenges, and Recommendations. Energies 2023, 16, 1140. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.