The integration of artificial intelligence (AI) in electric vehicles (EVs) is now a key driver to promote safer, more reliable and better performance of the EV. This integration includes navigation and autonomous driving (Miller et al., 2024; Tan et al., 2024), power strategies and energy management (Arévalo et al., 2024; Huang et al., 2025), regenerative braking and risk assessment (Cavus et al., 2025; Prakash, 2025). Inter-turn short circuit (ITSC) is one of the key risk factors in the motor drive safety of the EV (Hang et al., 2024). This electrical fault affects electrical machines such as the permanent magnet synchronous motor (PMSM), which are one of the first candidates in the EV industry for their accounting in terms of power productivity, financial constraints and operating conditions (Zhang et al., 2025).
To address these challenges, computational advanced techniques, specifically artificial neural networks (ANNs), fuzzy logic (FL) methodologies and hybrid computational intelligent control algorithms with machine learning and deep learning, offer new means for advanced condition monitoring and early fault detection (Lang et al., 2022). Building upon classic FL, type-2 fuzzy logic (T2-FL) offers several advantages, notably a better ability to handle high uncertainties in estimating highly variable parameters. In an interval type-2 fuzzy set, the footprint of uncertainty (FOU) is the region that visually represents the ambiguity or imprecision of the fuzzy membership function. It is a shaded region with a top edge called the upper function and a bottom edge defined as the lower function. This structure allows for the simultaneous modelling of uncertainty related to the input data and uncertainty affecting membership degree, which enables it to more accurately represent a non-linear, noisy or poorly modelled system (De et al., 2022). In this context, Dilimi et al. (2021) propose an advanced control method for active fault tolerance of a BLDC motor by combining the T2-FL command and a higher order sliding mode control, which improves both steady-state performance and the system’s dynamic response, besides phase current monitoring and fault diagnosis (Nguyen et al., 2025). Ladjal et al. (2022) introduce a new approach for implementing fault-tolerant strategy control in a dual three-phase induction machine that implements T2-FL and integrates an adaptive control law to manage malfunctions due to rotor bar breakage in a squirrel cage machine (Nesri et al., 2024).
Recently, Zeng et al. (2025) used T2-FL technology for managing the hydropower system by integrating it with Digital Twin Technology-Neural networks. This system consists of wind turbines and a doubly fed induction generator. The exploitation of T2-FL mitigates inherent uncertainties and inaccuracies, and enables real-time monitoring and predictive analysis. The neural networks then refine these predictions using historical and real-time data. This approach resulted in an 11.48% improvement in the overall system performance.
Within the same concept of uncertainty and perturbation in real systems, Jahanshahi et al. (2022) present an overview of the modelling and implementation of T2-FL that can be applied in the control of different systems of integer and fractional order. The authors here show some studies that have compared T2-FL with T1-FL (Sanchez et al., 2015; Castillo et al., 2016) and that have proven that T2-FL systems are the best choice for problems exhibiting a high degree of uncertainty.
Furthermore, in hybrid AI methods in fault detection, an architecture for multilayer ANNs trained via back propagation has been detailed in Lazar et al. (2021) for detecting and isolating ITSC fault in induction motor base, where the approach uses monitoring of the instantaneous average power, measured from stator currents and voltages, to identify the ITSC fault. In Shao et al. (2020), a deep learning methodology is utilised by the authors for induction motor fault diagnosis, leveraging a convolutional neural network (CNN) architecture capable of automatically learning discriminating representations from time frequency images obtained by transforming sensor signals into wavelets. Nyanteh et al. (2013) combined the extended Kalman filter (EKF) with ANNs and Particle Swarm Optimization (PSO) to detect fault characteristics. In Ertargin et al. (2024), a hybrid CNN-LSTM (long short-term memory) developed with deep learning model is proposed to detect the mechanical and electrical faults in electric motors from three different accelerometer sensor configurations. The EKF has proven particularly effective for estimating system states and identifying parameter variations associated with faults (Isermann, 2004); besides, Namdar et al. (2022) and Ouamara et al. (2023) confirmed EKF’s reliability in identifying ITSC fault in induction motors.
Considering that the ITSC fault contributes to a progressive degradation of torque and overheating of the windings, which provides uncertainty and noise on the stator resistance measurement and in extreme cases, a complete failure of the propulsion system, we proposed in our previous method (Romdhane et al., 2023), an approach that unites the EKF’s analytical precision with the conventional FL to approximate the stator resistance and detect ITSC fault. Nevertheless, these approaches show uncertainties in estimation under demanding operating conditions. In particular, the detection of initial ITSC faults is characterised by a weak signature or low visibility, which exhibits insufficient reliability when the defect is subtle, leading to critical non-detections. Based on this model and the theoretical background study, we are motivated in this work to upgrade the previous fuzzy logic–extended Kalman filter (FL–EKF) model to a hybrid type-2 fuzzy logic and extended Kalman filter (T2-FL–EKF).
The main objective of the proposed approach is the development of a robust detection algorithm for ITSC fault in PMSM with high sensitivity even in low-visibility conditions, which is one of the limits of the mentioned existence methods. This approach demonstrates an effective stabilisation in the stator resistance estimation under high uncertainties, as quantitatively proven.
This work is presented as follows: a description of the healthy and defective PMSM mathematical models is presented in Section 2. Section 3 details the hybrid T2-FL–EKF proposed approach. The results obtained from the simulated model are presented in Section 4, carried out by a quantitative analysis. Section 5 highlights the improvement attained by the proposed method and the upcoming experimental projections.
The mathematical representation of PMSM in the dq reference frame is a required phase for the implementation of the vector control for model simulation through MATLAB/SIMULINK. The projection of the stator variables onto the orthogonal axis leads to separating the flux control d-axis from the electromagnetic torque q-axis. In this frame, the motor equations are expressed as follows:
Vd and Vq: Stator voltages;
id and iq: Stator currents;
Rs: Stator resistance (0.44 Ω);
Ld and Lq: d-q axis inductances (0.0031 H);
ωe: Electrical angular speed;
ψf : Flux linkage produced by the permanent magnets (0.124 Wb).
The PMSM’s generated electromagnetic torque is determined by the following expression:
In which ρ denotes the four pole pairs of the PMSM.
The mechanical dynamics of the rotor are governed by:
Where, J, B, ωm and Tl are, respectively, J: Rotor’s moment of inertia (0.0002 kg/m2), B: Viscous friction coefficient, ωm: Mechanical angular speed, Tl: Load torque
The machine analysed in this study is characterised by the following:
Surface permanent magnet (SPM) motor;
Integral-slot concentrated winding;
Three-wire Y configuration.
The conventional way to model an ITSC fault is by introducing a resistance Rf that represents the fault as it is illustrated in Figure 1 (Romdhane et al., 2023).

Faulty phase equivalent circuit.
The stator phase is divided into a healthy portion a1 and a faulty portion a2, while the fault resistance Rf is connected in parallel with a2 (Liu et al., 2023; Yu et al., 2025).
The electrical representation of the faulty PMSM is described by the following equation (Amiri Ahouee and Mola, 2020):
The following parameters are expressed in the (a, b, c) three-phase reference frame, where:
Va_ITSC, Vb_ITSC, Vc_ITSC : Stator voltages, Ia_ITSC, Ib_ITSC, Ic_ITSC : Stator currents; If_ITSC : Fault current, LITSC: Mutual inductance and ea_ITSC, eb_ITSC, ec_ITSC: back electromotive EMF.
Where:
With:
The resistance of the healthy portion of the phase is presented by Ra1 while the resistance of the inter-turn circuited portion is represented by Ra2 and Tfault and Ttotal are, respectively, the number of shorted turns in the sub-winding and the total number of turns per phase.
Using the ratio of these parameters, we can define the ITSC coefficient as follows:
The formulation of the torque and its associated mechanical dynamics in the dq-axis frame is as follows:
Here, ωr: Rotor angular velocity, fr: Friction coefficient (0.0812 N.m.s./rad).
The following equation is the voltage representation
In addition to the voltage representation, the PMSM mechanical dynamics are defined as:
Building on the proven architecture of our previous work (Romdhane et al, 2023), the current method benefits from a technological upgrade through the integration of a T2-FL estimator. This estimator is dedicated to the adaptive estimation of stator resistance Rs, while the electrical and mechanical states of the motor are monitored by an EKF. This hybrid synergy leverages the uncertainty handling capabilities inherent to type 2 to optimise the overall accuracy of the diagnostic system.
The general conceptual model of the upgraded approach is presented in Figure 2. Precisely, the normalised values of the current error and its derivative are applied to the T2-FL inference system, and the resulting. ΔRs is supplied to the EKF observer.

T2-FL–EKF conceptual model. PMSM, permanent magnet synchronous motor; T2-FL–EKF, type-2 fuzzy logic–extended Kalman filter.
The EKF then utilises the actual measures of the currents, voltages and the T2-FL estimator stator resistance to estimate the motor’s internal states, namely the rotational speed, rotor angle and the stator currents (Baba and Cherkaoui, 2023). Contrasting the result values with the reference thresholds enables the detection of deviations that signal the emergence of winding ITSC.
The EKF adapts the conventional Kalman filter for use with non-linear systems. It provides recursive, real-time estimates of system states in the presence of measurement and process noise. The application of the first-order Taylor expansion in the approximation of the linearity function at the current state estimation helps the EKF to transform non-linear models into locally linearised forms described by their Jacobian matrices (Khodarahmi and Maihami, 2023).
Each update cycle consists of two fundamental stages: prediction, where the next state is forecasted using the system model, and correction, where this prediction is refined using newly acquired measurements (Kaniewski, 2020). The process iterates every sampling period Ts. The notion k signifies the moment after measurement updates, while k-1 indicates the moment before these updates occurred (Naoui et al., 2023).
The prediction process and update of the EKF are illustrated in Figure 3.

EKF flow diagram. EKF, extended Kalman filter.
The initialisation stage is a crucial step where the state-space formulation of the EKF is expressed as follows:
x(k): State matrix;
g(·): Non-linear state-transition model;
z(k): Measurement matrix;
h(·): Measurement function;
w(k), v(k): The process and measurement zero-mean Gaussian noise vectors.
The second step is the prediction of the state, and the covariance of the predicted estimate is computed as follows:
Where:
Q is the covariance matrix of the process noise, while G(k) is the Jacobian matrix represented by the following equation:
When the measurement becomes available, the correction phase includes the updates beginning from the gain parameter K(k + 1) followed by the updated error covariance matrix update P(k + 1 | k + 1), which are calculated as follows:
Where h (k + 1) is the Jacobian of h(·), and R represents the measurement noise covariance.
Finally, the estimated state vector is corrected according to:
A PMSM model formulation in the stationary α–β reference frame is preferred to ensure independence from position sensors. This choice helps to guard against rotor position initialisation errors, the impact of which could be detrimental to the accuracy of the EKF.
The state equation of the PMSM is given by the following equation:
For transposition into the discrete frame time, Eq. (19) can be linearised as follows:
As we mentioned previously, this proposed method is an enhancement of EKF’s sensitivity for ITSC faults, by upgrading the stator resistance of the studied PMSM from FL to T2-FL, consistently with the same objectives of maintaining the best performance of the detection algorithm, in addition to conservation of the simplified implementation.
Figure 4 depicts the configuration of the type-2 fuzzy-based stator-resistance estimator (Dilmi et al., 2021).

T2-FL estimator configuration. T2-FL, type-2 fuzzy logic.
The inputs of the T2-FL estimator are E and E′, processed by a Mamdani inference pattern composed of 25 rules. The Karnik–Mendel algorithm, which is the crucial component, ensures the reduction used to estimate uncertainties before proceeding to the defuzzification phase using the centroid method. This principle is illustrated in Figure 5.

T2-FL estimator structure. T2-FL, type-2 fuzzy logic.
The estimator measures the stator current matrix error, characterised as the deviation of I*, the estimated current and I relative to the reference I. It is expressed as follows:
The inputs to the T2-FL system are the current error E and its derivative E′, both normalised to lie within the interval [−1, 1]. The type-2 fuzzy output is the incremental adjustment amount in stator resistance (ΔRs). The final stator resistance is then obtained through the recursive addition:
As illustrated in Figure 6, the application of triangular membership functions enabled fuzzification of the exact input and output data into their respective T2-FL variables. In this investigation, the variables of the T2-FL estimator are resolved into three constituent levels.

T2-FL membership functions configuration. T2-FL, type-2 fuzzy logic. (a) Input variables and (b) Output variable.
The Mamdani-type inference mechanism is adopted due to its simplicity and interpretability. The type-2 fuzzy rule takes the following form: negative medium (NM), negative small (NS), zero (Z), positive small (PS) and positive medium (PM).
Where A, B and C denote the linguistic variables.
A total of 25 rules (5 × 5) are defined, summarised in Table 1. The functional dependency of the current error on the stator resistance variation is recorded by this rule base.
T2-FL rule set for Rs determination.
| E/E′ | NM | NS | Z | PS | PM |
|---|---|---|---|---|---|
| NM | NM | NM | NS | Z | PS |
| NS | NM | NS | Z | PS | PM |
| Z | NS | Z | Z | Z | PS |
| PS | Z | PS | PS | PM | PM |
| PM | PS | PM | PM | PM | PM |
NM, negative medium, NS, negative small, PM, positive medium, PS, positive small; T2-FL, type-2 fuzzy logic; Z, zero.
As a type reducer, the Karnik–Mendel algorithm is the essential tool for transforming uncertainties into intervals of net values. It is an iterative algorithm known for its fast and guaranteed convergence. Subsequently, the defuzzification step is performed using Centroid to finally obtain the net value of the static resistance compensation.
By leveraging MATLAB/SIMULINK tools for PMSM modelling and ITC fault detection with the upgraded version of FL–EKF to T2-FL–EKF, we were able to analyse the performance and test the robustness of our model. This section highlights the observations from this simulation.
During the simulation evaluation, the faulty condition is represented by Rf = 1 Ω beside a variation of Tfault. The number of shorted turns in the sub-winding indicates the severity of the ITSC fault.
An application of a load torque of 1 N.m takes place in both the healthy and faulty states of the PMSM.
The two main objectives to be achieved in this simulation are the performance of the PMSM in terms of speed and control, and the sensitivity of ITSC detection under various conditions. Hence, the evaluation includes two tasks to examine:
Robustness evaluation
Sensitivity evaluation
In order to evaluate the proposed approach, we opt to implement a reduced driving cycle starting with acceleration at t = 0.1 s to a speed of 160 rpm. Then, starting at 0.4 s, braking occurs, resulting in a deceleration until reaching 80 rpm. At 0.5 s, the engine rotation stops due to a second braking action, followed by acceleration to 120 rpm at t = 0.8 s. Finally, the rotational speed stabilises at 80 rpm until the end of the simulation.
This scenario represents a real-world driving experience with its various braking, acceleration and stopping states, which are typical in an urban area.
Figure 7 illustrates the temporal evolution of the PMSM speed obtained using the T2-FL–EKF method, compared with the actual measured speed. The results show excellent agreement between the two signals, demonstrating the high accuracy of the proposed speed observer. The small temporary differences observed during rapidly changing acceleration and deceleration conditions can be explained by the estimation model’s response time and the effects of mechanical inertia. Under steady-state conditions, it was found to coincide with the measured speed, demonstrating the high accuracy and robustness of the T2-FL–EKF control strategy applied to the PMSM system.

Dynamic speed regression.
In parallel with the development of speed, Figure 8 illustrates the reference driving cycle and the estimated angular velocity of the rotor (rad/s), giving a clearer view of how the estimator performs dynamically as expected. The comparison shows differences during sudden changes in the system due to the low delays of the observer in detecting rapid speed variations.

Rotor angular velocity.
As shown in Figure 9, the estimated and measured angular positions are in acceptable agreement between the two signals. The curves follow the same model, showing that the estimation model is well synchronised with the actual motor.

Angular position.
These results demonstrate that the FL–EKF type II control provides an accurate estimate of the rotor position, which is required for effective vector control and sufficient synchronisation of stator and rotor.
This part concerns evaluation of the sensitivity of our upgraded approach to the detection of ITSC defects even in severe cases.
In fact, for this task Rf the fault resistance is set to 1 Ω, while we applied a variation in Tfault which implicates a variation in the ITSC fault severity. For the simulation, the ITSC fault appears at 0.8 s and its parameter variations are as indicated in Table 2.
Indication of ITSC severity.
| µ (%) | Tfault | Severity | Indication | |
|---|---|---|---|---|
| Rf = 1 Ω | µ = 25 | 40 turns | High | Poor visibility |
| µ = 50 | 80 turns | Extremely high | Higher visibility |
ITSC, inter-turn short circuit.
The impact of a 50% ITSC fault, triggered at 0.8 s, is immediately identifiable by the asymmetry and instability of the current signals in Figure 10. Beyond transient fluctuations, ITSC faults can lead to mechanical vibrations and speed instabilities that are detrimental to ride quality. The persistence of such anomalies exacerbates thermal stresses on the windings, thus accelerating the motor’s ageing process and compromising its operational reliability.

Iabc stator currents.
In Figure 11, the vector control currents evolution is carried out. At 0.8 s, increased ripples, rapid peaks and decaying oscillations can be observed in Id and Iq currents. This reflects the perturbation of the electromagnetic torque. These anomalies in Iq directly translate into torque excursion and velocity variations, while alterations in Id affect magnetic saturation and flux control accuracy.

Vector control currents.
Figure 12 illustrates the estimated and measured stator resistance, respectively, for µ = 25% and µ = 50%.

Stator resistance measurements. (a) μ = 25% and (b) μ = 50%.
By calculating the root mean square error (RMSE), the T2-FL–EKF method shows a significant reduction in RMSE value as the fault coefficient µ decreases: the RMSE drops from 0.0076 when µ = 50% to 0.0052 when µ = 25%. This result reflects an increased ability of the proposed method to converge towards the real value despite the level of the disturbances induced by the ITSC fault.
Figure 13 shows the evolution of the estimated and measured fault current. Here, we proceeded to quantitatively evaluate the precision and accuracy of the T2-FL–EKF method.

Fault current measurements. (a) μ = 25% and (b) μ = 50%.
Table 3 summarises the fault current value (If moy) determined at different fault levels, where the calculation of the RMSE.
ITSC fault current values.
| For Rf = 1 Ω | Estimated If moy | Measured If moy | RMSE |
|---|---|---|---|
| μ = 25% | 0.0182 | 0.0216 | 0.2303 |
| μ = 50% | 0.0321 | 0.0416 | 0.5513 |
ITSC, inter-turn short circuit; RMSE, root mean square error.
The comparison of the estimated and measured average values If moy, shows that the two signals generally follow the same evaluation with a limited difference presented by RMSE.
For μ = 50%, the RMSE value is 0.05513, while for μ = 25% it is 0.2303. This significant reduction confirms that the proposed method effectively extracts fault signatures, regardless of its severity level, and thus offers more precise and sensitive detection in situations where the fault remains weakly visible and thus hardest to detect.
To evaluate the proposed methodology (T2-FL–EKF) for ITSC fault detection, a comparative study was conducted with the classical EKF (Maanani and Menacer, 2019) and the hybrid EKF based on FL (Romdhane et al., 2023). In this study, and to ensure the validity of comparison, the three algorithms were evaluated within a unified framework. Each simulation, with a total time of 0.75 s, involved the application of an ITSC fault at time t = 0.2 s. The comparative evaluation of the algorithms was intentionally conducted under low fault visibility conditions (µ = 25%). After initial tests showed that ITSC fault detection was comparable for all algorithms at a 50% visibility level, it became necessary to focus on a more challenging scenario. The study at µ = 25% highlights the limitations of each algorithm and allows for a better assessment of its effectiveness under degraded conditions.
The comparison of the stator resistance Rs estimation precision of the three algorithms mentioned is presented in Figure 14. The EKF estimator observation in Figure 14a, shows large-amplitude fluctuations, although it is capable of tracking the stator resistance value. Without an intelligent compensation mechanism, the estimation remains subject to stochastic uncertainties. The integration of FL, as illustrated in Figure 14b, smooths the estimation. By acting as a smart filter, the fuzzy module absorbs some of the measurement noise. However, the fixed membership functions of Type 1 do not fully account for variable uncertainty. From Figure 14c, we conclude that the proposed approach T2-FL–EKF offers the most stable signal with a significant reduction in fluctuation amplitude. This performance is explained by the FOU, which allows the system to better tolerate inaccuracies in the EKF residuals, ensuring smooth convergence and increased accuracy in the stator resistance estimation.

Rs estimation precision: (a) EKF approach, (b) FL–EKF approach and (c) T2-FL–EKF approach. T2-FL–EKF, type-2 fuzzy logic and extended Kalman filter; FL–EKF, fuzzy logic–extended Kalman filter.
The comparative analysis of the three approaches in Table 4, based on the RMSE and mean absolute percentage error (MAPE) indices, highlights the superiority of the T2-FL–EKF method.
Summary of comparative techniques under the same simulation conditions.
| Control strategy | RMSE of Rs estimation | MAPE of Rs estimation (%) | Estimation of Rs | Precision |
|---|---|---|---|---|
| EKF | 0.010378 | 1.8435 | Medium | Medium |
| FL–EKF | 0.0066925 | 1.6348 | High | High |
| Proposed optimised method | 0.0066416 | 1.6101 | High | Very high |
EKF, extended Kalman filter; FL–EKF, fuzzy logic–extended Kalman filter; MAPE, mean absolute percentage error; RMSE, root mean square error.
The RMSE results reveal that the upgrade to the T2FL–EKF approach meets a minimum error of 0.0066416, representing a 36% improvement over the basic EKF method. This reduction demonstrates the system’s ability to effectively stabilise the stator resistance estimation under high uncertainties. The MAPE analysis confirms this efficiency with a relative error of only 1.6101%.
Although the difference between the FL–EKF estimator and the T2-FL–EKF estimator appears small at the high-visibility level, the upgraded T2-FL–EKF approach offers superior robustness to non-linear variations, ensuring reliable diagnosis, especially in weakly visible ITSC faults where conventional methods might diverge.
Nevertheless, the high sensitivity of the proposed approach in ITSC fault detection for PMSM, even under low visibility of the fault, T2-FL–EKF has some limits. Mainly, the algorithm complexity compared with FL–EKF, regardless, is manageable by the main Karnik–Mendel algorithm. We can also find that the sensibility can be affected through footprint of uncertainty (FOU), and an inappropriate calibration can lead to an increase in the response time.
The hybrid T2-FLC–EKF method upgraded in this study represents a significant advance for the intelligent detection of electrical faults within PMSM motors for EVs. The use of the T2-FL structure for adaptive adjustment of stator resistance ensures high detection even in critical situations. The susceptibility of this method makes it possible to identify low-amplitude faults, often poorly visible for conventional methods, making the T2-FL–EKF solution a cutting-edge predictive maintenance tool for PMSM motors. Yet, this approach suffers from a higher computational load compared with conventional methods. The experimental validation will be carried out using a digital signal processor (DSP) acquisition card, serving as an interface between the MATLAB/SIMULINK environment and the power converter without the need for major restructuring of the algorithm.