1. Introduction
In recent years, permanent magnet synchronous motors (PMSMs) have become increasingly popular in industrial applications [
1]. This fact is associated with their high efficiency, high power density and excellent dynamic performance. These properties make the use of PMSMs in drive systems perfectly in line with the current trend of sustainable development in the industry, as it allows to meet the requirements of using highly efficient, energy-saving and environmentally friendly solutions. Moreover, significant progress in the field of microprocessor technology, power electronics and materials engineering for permanent magnets contributed to the notable popularization of PMSM drives in the robotics, automotive, transport, home appliances and aviation industries [
2]. Nonetheless, even when operated in a normal environment and under rated conditions, PMSMs are exposed to various types of damage.
Taking into account the growing popularity of PMSMs, fault diagnosis and monitoring of the condition of these machines have also become an important issue. The complex and demanding operating environment, such as high temperature, vibration and humidity, makes the PMSMs even more vulnerable to failures [
3]. All of the faults can lead to the interruption of the PMSM drive system operation and unexpected maintenance breaks in processes if not detected in time. Therefore, in recent years, PMSMs fault diagnosis and condition monitoring have attracted many studies [
4,
5].
PMSMs failures can be divided according to their type into mechanical, magnetic and electrical damages [
6]. Electrical damages are mainly stator winding faults. According to the IEEE and EPRI statistics [
7,
8], stator winding faults represent between 36% and 66% of all electric motor failures, depending on the type and size of the machine. It makes them one of the most common faults of AC motors [
9].
Stator winding faults have a very destructive character. They begin mainly as an imperceptible short circuit of single turns—interturn short circuit (ITSC) and then spread very quickly to the entire winding, leading to the phase-to-phase or phase-to-ground short circuit. ITSCs are often caused by damage of the stator winding insulation. Insulation damage results from abrasion caused by mechanical stress or overheating of the winding as a result of too high loads on the motor [
10]. If these faults are not detected and diagnosed in time, they can cause emergency stops of the technological process, safety accidents and significant financial losses [
11]. Moreover, ITSCs may cause irreversible demagnetization of permanent rotor magnets [
12].
Due to their destructive nature, ITSCs are considered one of the most difficult to detect failures in AC motors. Standard safety circuits used nowadays in industrial drive systems do not react to the short circuiting of several turns in a phase, because it causes too many small changes in the amplitudes of the phase currents. Therefore, new methods are still being sought, based on the measurement and processing of diagnostic signals, allowing for real-time monitoring of motors condition and alerting the user in the initial stage of failure [
5].
The requirements resulting from the idea of Industry 4.0, and also the growing number of drive systems in which more and more operating parameters are registered, lead to an increasing emphasis on the diagnosis applications for electric drive systems, especially drives that utilize high-efficient PMSMs [
13]. Modern fault diagnosis systems should provide automatic inference about the condition of the motor. To meet this requirement, these systems should consist of at least two main modules: the first one, responsible for the acquisition and processing of the diagnostic signals in order to extract the fault symptoms, and the second one, which, on the basis of raw diagnostic signals or the extracted symptoms, provides automatic inference about the state of the motor.
Over the years, several methods have been developed for the extraction of PMSM stator winding fault symptoms. These methods are based on signal analysis using various signal processing approaches. They are currently of fundamental importance in the diagnosis of electric motors [
14,
15,
16]. The most frequently used signal in the diagnosis of stator winding faults is the stator phase current, its measurement of which is noninvasive and easy to implement in any drive system [
17,
18]. Moreover, stator winding faults are also well reflected in voltage [
19] and axial flux [
20] signals as well as the internal signals of the control structure of the PMSM drive system [
21].
The characteristic symptoms (features) extraction methods can be classified into three main groups: time domain methods, frequency domain methods and time-frequency methods. Time domain methods are mainly based on statistical analysis of the signal. They use signal parameters, such as mean, peak, kurtosis and mean square for the condition monitoring of the motor [
22]. However, due to the limitations of the methods belonging to this group, they are not very common in PMSM fault diagnosis.
The most popular ITSC fault diagnosis methods are methods that perform frequency domain analyses, especially spectral analysis of the diagnostic signal using a Fast Fourier Transform (FFT) [
23]. The analysis of the amplitudes of components in the FFT current spectrum is well known in the literature as Motor Current Signature Analysis (MCSA). It is based on the monitoring of changes in the amplitude values of individual frequency components in the FFT spectrum as a result of a fault [
23]. The effectiveness of this method for the detection of PMSM stator winding faults has been confirmed, among others, in [
24]. The improvement of MCSA with the stator phase current Extended Park’s Vector Analysis (EPVA) is presented in [
25]. Nevertheless, in recent years, due to the increasing computing power of the microcontroller-based embedded systems, the use of more advanced frequency domain signal processing methods that are based on high order statistics has gained popularity. These methods are called High Order Transforms (HOTs). HOTs, such as MUltiple SIgnal Classification (MUSIC) and bispectrum, have also been applied to the PMSM stator winding fault diagnosis in [
26] and [
27], respectively. However, these methods also have some limitations. The main limitation is the lack of information about the time of occurrence of a given frequency component and, in most cases, the need for a long measurement time to achieve high symptoms extraction effectiveness. Methods that perform a time–frequency analysis do not have such limitations.
The time-frequency domain methods provide the location in time while simultaneously capturing the frequency information. This group of methods includes, among others, the Continuous Wavelet Transform (CWT) [
28], the Hilbert–Huang transform [
29] and Short-Time Fourier Transforms (STFT). The STFT is one of the most popular time-frequency analyses that have been used in the diagnostics of electric motor failures. However, its application in the past has been mainly studied for induction motors [
30,
31].
All of the above-mentioned methods can be used in the module of the fault diagnosis system that is responsible for the symptoms extraction. However, this is not enough for modern condition monitoring and fault diagnosis systems. There is a significant need to automate the process of inferring the state of the motor. To meet these requirements, Machine Learning (ML) algorithms are increasingly used. The main task of ML algorithms in the fault diagnosis domain is to fully automate the fault detection and classification process based on the input data obtained from the diagnostic signal analysis.
Over the years, much research has been devoted to fault detectors and classifiers that are based on ML algorithms. They can be divided into classical ML algorithms and those inspired by the human brain operation principle—artificial neural networks (ANNs). Classical ML algorithms include K-Nearest Neighbors (KNN) [
32], Support Vector Machine (SVM) [
33], Naïve Bayes (NB) and Decision Tree (DT). Among ANNs, the neural networks with a classical (shallow) structure and those based on deep learning (DL) can be distinguished. The MultiLayer Perceptron (MLP) is one of the most commonly used ANN types in an electric motor fault diagnosis [
34,
35,
36]. The Radial Basis Function (RBF) ANN and Self Organizing Maps (SOMs) are also verified in this field of research [
37,
38,
39]. In recent years, usage of DL-based neural networks—Deep Neural Networks (DNNs)—is very popular. Among the different types of DNNs, Convolutional Neural Networks (CNNs) are especially effective. Nevertheless, DNN structures require higher computing power than classical ML algorithms. On the other hand, CNNs allow for very effective fault detection based on a raw diagnostic signal without the signal processing stage, which significantly shortens the detection time, but requires a longer training time of the CNN model and a complex network structure [
40].
Nowadays, it is also popular to combine advanced signal processing algorithms, the result of which is presented as an image, with CNN. This allows for the reduction of training time and the use of a simpler network structure while achieving high efficiency [
41,
42,
43]. Nonetheless, as opposed to detecting faults of induction motors and mechanical damages of PMSMs, there are still few scientific papers in which the usage of simple ML algorithms, such as SVM and NB, to detect PMSM stator winding faults is verified, especially taking into account the analysis of the impact of the key parameters of fault classifiers on their effectiveness.
The main goal of this article is to verify the possibility of using the STFT analysis of stator phase current symmetrical components to extract the symptoms of ITSCs in the PMSM stator winding and selected ML algorithms (SVM, NB and MLP) for the automatic detection and classification of this type of failure. The contributions and original elements of this paper can be summarized as follows:
- (1)
Application of the STFT analysis of the positive and negative stator phase currents symmetrical component to extract symptoms of the ITSC in the PMSM stator winding, verified in a wide range of load torques and power supply frequencies (rotation speed).
- (2)
Development and verification of the effectiveness of the hybrid diagnostic methods that combines the STFT analysis of the stator phase currents symmetrical components and selected ML algorithms (SVM, NB and MLP) for ITSC detection at the early stage of the fault.
- (3)
Detailed analysis of the influence of key parameters (hyperparameters) of selected ML algorithms on the accuracy of fault classification. The improvement of the classifiers effectiveness by properly tuning the model and training parameters is shown.
- (4)
The proposal and online verification of the intelligent PMSM stator winding fault diagnosis system developed in the LabVIEW and MATLAB programming environment. The developed data-driven intelligent system has significant potential for real deployment in the industry.
The rest of the paper is organized as follows. After the introduction,
Section 2 presents the impact of the stator winding fault on the waveforms of stator phase currents symmetrical components.
Section 3 gives the theoretical basis of the STFT. The experimental setup is presented in
Section 4. In
Section 5, the stator winding fault symptoms extraction part with the use of STFT analysis is presented. The theoretical basis and training process of the selected ML based stator winding fault classifier models is presented in
Section 6. In
Section 7, the concept and online verification of the intelligent diagnosis system of the PMSM stator winding faults are shown. Finally,
Section 8 contains conclusions resulting from the results obtained.
2. Impact of the PMSM Stator Winding Fault on the Waveforms of Symmetrical Components of the Stator Phase Currents
The asymmetry of the stator phase currents caused by the ITSCs in the PMSM stator winding has an impact on the values of the stator currents symmetrical components. Since there is no zero sequence component in three-phase PMSMs, only positive and negative sequence components are calculated using the following equation [
44]:
where:
I1, I2—positive and negative stator phase current component in steady state,
IsA, IsB, IsC—stator phase currents in steady state,
Equation (1) applies to the sinusoidal signals of the stator phase currents in a steady state. Nonetheless, PMSMs are supplied by Voltage Source Inverters (VSIs), which introducs a number of additional harmonics, causing the distortion of voltages and currents. In such cases, in order to use the classical method of symmetrical components calculation, it is necessary to filter out the disturbing harmonics or extract only the fundamental component of the supply voltage (
fs). In this paper, the second approach is used. It is based on the calculation of instantaneous values of the stator current symmetrical components using the 90° shift operator in the time domain, according to [
44]:
where:
i1, i2—instantaneous value of the positive and negative sequence stator phase current component,
isA, isB, isC—instantaneous value of the stator current in phase A, B and C,
S90—operator of a phase shift by an angle of 90° in the time domain.
The influence of the ITSCs on the PMSM stator winding on the positive stator phase current sequence component waveform for the nominal power supply frequency
fs (rotation speed), different load torque
TL levels and number of shorted turns
Nsh is presented in
Figure 1. As shown, for each of the
TL set—in the range (0–1)
TN with 0.2
TN step—momentary short circuits of 1 to 5 successive turns in phase A of the PMSM stator winding are performed. Analysis of this waveform shows that the amplitude changes of the stator current positive sequence component as a result of ITSC is noticeable, but the influence of the
TL level is much more significant.
The unbalance of the PMSM stator phase currents caused by the ITSC are also visible in the negative sequence component [
32]. The waveform of this component for the nominal
fs, different
TL and
Nsh is presented in
Figure 2. The level of
TL has a much smaller impact on the value of the negative sequence amplitude compared to the positive sequence component, and more importantly, a significant increase resulting from the ITSCs is visible. It can also be observed that the higher the
Nsh, the greater the increase in amplitude.
However, based only on the raw waveforms of the stator phase current positive and negative sequence components, an effective diagnosis and classification of the stator winding fault would be difficult, because for the higher TL levels (TL = 0.8TN, TL = TN), the increase caused by the ITSC of a lower number of turns (Nsh = 1, Nsh = 2) is insufficient. Due to the destructive nature and high dynamics of the PMSM stator winding fault, it is necessary to detect this type of damage at the earliest possible stage. Therefore, in this study, the signal processing method (STFT) is used to extract the more sensitive symptoms (features) of the ITSC fault, also in the initial stage of the damage.
3. Short-Time Fourier Transform
The frequency domain representation of the signal provided by the classical FFT-based spectral analysis does not contain information about the occurrence of a particular frequency over time. In the field of motor fault diagnosis, information about the fault time can be very useful. Based on this information, the source of the failure can be found.
The STFT overcomes the limitations of the FFT analysis. It is an extension of FFT for time-frequency domain analysis. To achieve this, the analyzed signal is divided in the time domain through temporary windows of the same width, and subsequently frequency content of each of these windows is obtained using the FFT. The size of the time window defines the resolution of time and frequency [
30]. An additional advantage of STFT is its suitability for the analysis of nonstationary signals [
45].
In the implementation of the STFT, a design trade-off must be made between the time and frequency resolution. A short window provides good time resolution at the expense of poor frequency resolution and vice versa. The STFT calculates the Fourier Transform (FT) of a function
f(
t) over a symmetrical and real window function
w(
t), which is translated by time
t and modulated at frequency
ω. The continuous domain expression of the STFT is illustrated by [
46]:
The magnitude of the STFT yields the spectrogram. In this investigation, the amplitudes of the spectrogram are analyzed. The spectrogram is the result of calculating the frequency spectrum of windowed signal frames. It is a three-dimensional plot of the energy of the signal frequency content as it changes over time and is expressed as follows:
In the real world, signals are sampled with a fixed sampling frequency (
fp), and the FFT is computed to analyze the frequency spectrum of the signal. Therefore, Equation (4) in the discrete domain is expressed by the following equation [
46]:
where:
N—number of FFT points,
n—time domain input sample index,
x[n]—input sample,
w[n]—window function,
H—window size (width),
k—frequency index.
The key parameters of the STFT analysis that influence its result are as follows [
46]:
Sampling frequency (fp): It affects the time and frequency resolution of the STFT output. Higher fp results in better time and frequency resolution and vice versa. In this research, fp of the STFT-based ITSC symptoms extraction algorithm is set to 8192 Hz, which is typically used in modern drive systems for current measurements.
Number of input samples (Nt): It is the total number of samples of the input signal on which the windowing function is applied. For the 10 s measurement time and fp = 8192 Hz, the number of input samples is equal to 81920.
Window size (H): The window size is responsible for the STFT output resolution in the time domain. The lower the size of the window, the better the resolution in the time domain. In this article, H is chosen to be 2048 samples, which is equivalent to the time resolution of 0.25 s. For some applications, the windows are also often overlapped.
Type of window function (w[n]) Rectangular, Triangular, Hanning, Hamming and Barlett are the most popular window functions available to perform STFT. In this research, the Hamming window function is used.
Figure 3 shows in an illustrative way how the spectrogram of the time domain signal is obtained with the use of the STFT analysis.
5. Stator Winding Fault Features Extraction
In this research, the ITSCs symptom extraction process is realized using STFT analysis. The analyzed signals are positive and negative sequence components of the stator phase currents. In the diagnosis of electric motor faults, the application of the STFT is associated with the search for the frequency components that are sensitive to the specific fault.
As previously mentioned, proper selection of the STFT window width H is essential to provide efficient fault symptoms extraction. Nevertheless, there is no single rule for selecting this value. The appropriate H value depends on the nature of the analyzed signal, measurement parameters and the specific application. In this research, the window width is set to 2048. The sampling frequency of the signal is 8196 Hz. The selection of H = 2048 allows for obtaining a sufficient resolution (0.25 s) in the time domain. The appropriate time domain resolution is extremely important in the diagnosis of the stator winding faults, because they have to be detected as fast as possible. Due to this, too wide a window (the number of samples to be collected for one cycle of STFT analysis) would delay the detection of the fault.
The STFT spectrograms of the positive sequence component of the stator phase currents for an undamaged motor and with ITSC of three turns in phase A of the stator winding are shown in
Figure 7a and
Figure 7b, respectively. The spectrograms show a significant increase in the amplitude value of the frequency component corresponding to the first harmonic (
fs = 100 Hz) with the increasing load torque level. There is also a noticeable increase of the 3rd harmonic (3
fs = 300 Hz) amplitude value as a result of the stator winding fault.
Figure 8a,b show the STFT spectrograms of the negative sequence component of the stator phase currents for the undamaged winding and for three shorted turns in phase A, respectively. By comparing the spectrograms, a significant increase in the amplitude value of the
fs frequency component can be observed as a result of a short circuit.
To emphasize the main advantage of the STFT analysis—the possibility of the harmonic tracking of the faulty components during the on-line operation of the drive system, and also to compare the sensitivity to the ITSC of the amplitudes of 3fs component in the i1 spectrogram and fs component in the i2 spectrogram, the experimental tests for momentary short circuits (lasting 1÷2s) and increasing TL are conducted.
In
Figure 9, the stator phase currents positive sequence component STFT spectrogram (
Figure 9a) and amplitude changes of the 3
fs component during the online operation of the drive system and cyclic momentary short-circuiting of 1 to 5 turns at variable load torques (
Figure 9b) are shown. In this scenario, the
TL value is increased from 0 to
TN with 0.2
TN step and for each value, the ITSCs are performed. Based on the analysis of the results presented in this figure, it can be concluded that the value of the 3
fs component amplitude increases with the increasing degree of stator winding fault (
Nsh). However, as the
TL increases, the amplitude increase is lessened. For the rated load (
TL =
TN), the increase for one shorted turn is no longer visible. This is a significant limitation.
In
Figure 10, the stator phase currents negative sequence component STFT spectrogram and the
fs component amplitude changes during the online operation of the drive system and the same operating conditions and stator winding states as presented for positive sequence component analysis are shown. In this case, the
fs component amplitude increases as a result of the stator winding fault in the entire range of the analyzed working drive system operating conditions. The increase is visible also for the incipient stage of the fault—for one shorted turn (
Nsh = 1). Therefore, an increase in the amplitude of this frequency component is a good indicator of the ITSC fault.
In order to assess the exact impact of the ITSC on the amplitude of a given frequency component and the subsequent comparison of the increases between the fault indicators extracted from positive and negative stator phase current symmetrical components, the increase in the amplitude for a given
Nsh in relation to the value for an undamaged motor is analyzed:
where
fc is the characteristic failure frequency component and
ADamaged and
AUndamaged are the amplitudes of the
fc component for an damaged and undamaged motor, respectively.
The influence of the stator winding fault degree (
Nsh) and
TL on the increase of the amplitude of the 3
fs frequency component in the positive sequence component spectrogram is shown in
Figure 11a. The dependence on the
fs value is illustrated in
Figure 11b. On the basis of the presented results, it can be concluded that the increase in amplitude of 3
fs caused by the stator winding fault is significant, especially in the case of the motor operating at a rotation speed close to the rated value. Nevertheless, as the value of the
fs decreases, the fault sensitivity (
ADIFF) is much lower. The same trend is visible for the increasing level of
TL, which was also mentioned in the analysis of the results presented in
Figure 9. In the case of the
fs component amplitude increases in the negative sequence spectrogram (
Figure 12), this limitation does not occur. The increase caused by the ITSC is visible in the entire range of the analyzed
TL levels and the frequencies of the supply voltage
fs, as is also the case in the early stage of damage for one shorted turn.
The results presented above and also thorough analysis of changes in harmonic amplitudes visible in the STFT spectrograms, caused by the stator winding faults, allowed for concluding that the component most sensitive to the ITSC is the fs amplitude in the spectrogram of the negative sequence stator phase currents component.