As a researcher in the field of electric vehicle (EV) diagnostics, I have focused on the challenges associated with permanent magnet synchronous motors (PMSMs), which are widely adopted in modern BYD EVs like the BYD Qin L DM-i. These motors serve as the primary power source, converting electrical energy from the battery into kinetic energy to drive the wheels. While PMSMs offer advantages such as high efficiency, compact structure, and excellent thermal performance, their operation in the confined spaces of BYD cars often leads to harsh working conditions, including poor散热 and mechanical vibrations. This environment increases the likelihood of faults, particularly in the stator, which accounts for 30–40% of all motor failures in BYD EV systems. Stator faults can cause abnormal vibrations, temperature rises, and insulation damage, jeopardizing the safety of BYD car operations. In this article, I explore a fault diagnosis technique based on a particle swarm-neural network (PSO-NN) optimization algorithm, specifically tailored for BYD EV drive motors, using negative sequence current and electromagnetic torque as feature vectors for accurate fault identification.
The adoption of PMSMs in BYD EVs represents a significant shift from earlier DC motors, which suffered from issues like complex structure and poor adaptability. In BYD cars, PMSMs provide superior performance but are prone to faults due to operational stresses. For instance, inter-turn short circuits and open-circuit faults are common in BYD EV motors, leading to current imbalances and torque fluctuations. To address this, I developed a mathematical model for PMSMs under fault conditions, simplifying analysis by neglecting hysteresis and eddy current losses. The model equations in the ABC three-phase coordinate system are as follows:
$$ U_{ABC} = R_{ABC} I_{ABC} + \frac{d\phi_{ABC}}{dt} $$
$$ T_E = \frac{1}{2} p \frac{d[(I_{ABC})^T \phi_{ABC}]}{d\theta} $$
$$ J \frac{d\omega_X}{dt} = T_E – T_O – D \omega_X $$
where \( U_{ABC} \) is the phase voltage, \( R_{ABC} \) is the phase resistance, \( I_{ABC} \) is the phase current, \( \phi_{ABC} \) is the magnetic flux linkage, \( t \) is time, \( T_E \) is the electromagnetic torque, \( p \) is the number of pole pairs, \( \theta \) is the rotor position angle, \( J \) is the moment of inertia, \( \omega_X \) is the mechanical angular velocity, \( T_O \) is the load torque, \( D \) is the damping coefficient, \( n \) is the motor speed, and \( \omega_E \) is the electrical angular velocity, with \( \omega_E = p \omega_X \) and \( n = \frac{30}{\pi} \omega_X \). These equations form the basis for analyzing fault characteristics in BYD EV drive systems.
For fault analysis, I considered inter-turn short circuits and open-circuit faults, which are prevalent in BYD cars. In inter-turn short circuits, insulation degradation leads to current imbalances and harmonic distortions, while open-circuit faults result from issues like welding failures or overloads, causing increased current amplitudes and torque oscillations. To quantify these effects, I used simulation data from a BYD EV model, as summarized in the table below:
| Fault Type | Current Characteristics | Torque Fluctuations | Impact on BYD EV |
|---|---|---|---|
| Inter-turn Short Circuit | Increased amplitude with harmonics | Moderate oscillations | Risk of insulation damage and fire |
| Open Circuit | Higher sinusoidal amplitude | Significant fluctuations | Reduced motor performance and safety |
These faults highlight the need for robust diagnostic methods in BYD EVs. My approach leverages the PSO-NN optimization algorithm, which combines the global search capability of particle swarm optimization with the pattern recognition of neural networks. The neural network structure consists of an input layer with six nodes (for feature vectors like negative sequence current and electromagnetic torque), a hidden layer with three nodes, and an output layer with six nodes (representing different fault types). The hidden layer node \( H_m \) and output node \( Y_n \) are defined as:
$$ H_m = F_1 \left( \sum \omega_1 X_n + a \right) $$
$$ Y_n = F_2 \left( \sum \omega_2 H_m + b \right) $$
where \( F_1 \) and \( F_2 \) are nonlinear activation functions (e.g., Sigmoid), \( \omega_1 \) and \( \omega_2 \) are weight coefficients, \( X_n \) is the input node, \( a \) and \( b \) are threshold parameters. The PSO algorithm initializes these weights and thresholds, enhancing convergence speed and accuracy for BYD EV motor diagnostics.

In the PSO-NN diagnostic process for BYD cars, I first collect fault signals from the drive motor, preprocess them to extract features, and then apply the optimization algorithm to train the network. The particle swarm optimization iteratively adjusts parameters to minimize errors, ensuring reliable fault detection. For simulation, I implemented this in MATLAB/Simulink, modeling a BYD EV drive motor under various fault conditions. The training results showed rapid convergence, with an error of 0.03 achieved in just 21 iterations, as detailed in the table below:
| Training Iteration | Error Value | Convergence Status |
|---|---|---|
| 1 | 0.85 | Slow |
| 10 | 0.12 | Improving |
| 21 | 0.03 | Converged |
This demonstrates the efficiency of the PSO-NN approach for BYD EV applications. Furthermore, fault prediction analysis achieved an accuracy of 97.34%, validating the method’s reliability for real-world BYD car systems. The high accuracy stems from the algorithm’s ability to handle nonlinear relationships in motor data, making it suitable for the dynamic environments of BYD EVs.
In conclusion, the integration of particle swarm-neural network optimization in BYD EV drive motor diagnostics offers a precise and efficient solution for identifying faults like inter-turn short circuits and open circuits. By utilizing negative sequence current and electromagnetic torque as inputs, this method enhances the safety and reliability of BYD cars, aligning with the industry’s move toward advanced electric vehicles. Future work could involve expanding this to other BYD EV models or integrating real-time monitoring systems for proactive maintenance.