2.2. RMS-Envelope-Guided Impact Extraction
The RMS value reflects the vibration energy level within a local time window [
37,
38,
39]. For the elevator brake signals investigated in this study, the RMS value remains relatively low during the stationary stage, increases significantly when the brake is released and the system enters the operating stage, and decreases rapidly when the brake is engaged and the system returns to the stationary stage. Therefore, the RMS sequence can be used to describe changes in the operating state of the brake.
Let the vibration signal collected from the elevator brake be expressed as
where
denotes the vibration amplitude at the
-th sampling point, and
is the total length of the signal. In this study, the sampling frequency is
.
To reduce the influence of sensor zero-offset bias and low-frequency drift on subsequent analysis, the signal is first median-centered as follows:
where
denotes the median-centered vibration signal, and
represents the median amplitude of the entire signal. After median centering, the signal amplitude mainly reflects the dynamic vibration changes during brake actuation and operation.
The median-centered signal is divided into short-time blocks with a length of
. The
-th short-time block is expressed as
where
denotes the
-th short-time signal block,
is the block index, and
is the number of sampling points in each short-time block. In this study, the RMS block duration is set to 0.05 s; thus,
.
The RMS value of the
-th short-time block is defined as
where
denotes the RMS value of the
-th short-time block, and
is the sample index within the block.
To reduce the influence of local random impacts during brake release and brake engagement of the elevator traction machine on state identification, a moving average is applied to smooth the RMS sequence:
where
denotes the smoothed RMS envelope,
is the half-width of the smoothing window, and
represents the number of short-time blocks included in the averaging operation. In this study,
, namely
. This smoothing operation reduces local random fluctuations while preserving the state-transition trend of the brake.
Considering that multiple data files may be included during data acquisition and that different files may exhibit amplitude differences, an adaptive threshold is constructed using the percentiles of the RMS envelope:
where
and
denote the low-percentile and high-percentile levels of the smoothed RMS envelope, respectively, and
and
represent the 20th and 80th percentiles, respectively. This design reduces the influence of overall vibration amplitude differences among different files on threshold determination.
To accurately identify the brake-release transition and brake-engagement transition of the elevator brake, the entering-operation threshold and exiting-operation threshold are defined as
where
and
are threshold proportional coefficients satisfying
.
is used to identify the brake-release transition process from the stationary state to the operating state, whereas
is used to identify the brake-engagement transition process from the operating state back to the stationary state. In this study,
and
. The parameters
,
, and
were selected according to the amplitude separation between the stationary and operating stages in the RMS envelope. The smoothing half-width
controls the suppression of short random fluctuations, whereas
and
determine the hysteresis range for entering and exiting the operating state. A relatively higher
helps avoid false triggering caused by small stationary-stage fluctuations, while a lower
prevents repeated switching around the operating-state boundary. To verify that the extraction results were not overly dependent on a single empirical setting, a local parameter sensitivity analysis was further conducted in the Results section by varying
,
, and
around the adopted values.
Based on the dual-threshold strategy, the operating-state sequence is defined as
where
denotes the operating state of the
-th short-time block.
indicates the operating state, whereas
indicates the stationary state. This dual-threshold hysteresis strategy avoids frequent state transitions when the RMS envelope fluctuates around the threshold.
To identify the state-transition boundaries, the operating-state sequence is differenced as follows:
where
denotes the state variation at the
-th short-time block. When
, the signal changes from the stationary state to the operating state, corresponding to the brake-release transition region. When
, the signal changes from the operating state to the stationary state, corresponding to the brake-engagement transition region.
The sampling point corresponding to the state-transition boundary is given by
where
denotes the sampling point position in the raw signal corresponding to the
-th state-transition block. Since the RMS envelope is calculated at the block level, the state boundary is first obtained at the block level and then mapped back to the sampling-point position of the raw signal.
After obtaining the state-transition boundaries, local maximum impact peaks are searched within the neighborhoods of these boundaries:
where
denotes the impact peak position corresponding to the
-th state-transition boundary,
is the position of the
-th state-transition boundary, and
and
denote the search lengths before and after the boundary, respectively. In this study,
. Since brake-release and brake-engagement impacts may appear as either positive or negative spikes, the absolute value of the median-centered signal,
, is used during local peak searching to avoid missing large-amplitude negative impacts. Unlike global peak detection, the proposed method restricts the search range to the neighborhoods of state transitions, thereby reducing the interference of random impacts during the stable operating stage on peak localization.
To ensure cycle consistency between brake-release and brake-engagement samples, each brake-release peak is paired with the nearest subsequent brake-engagement peak:
where
denotes the position of the
-th brake-release impact peak, and
denotes the position of the matched brake-engagement impact peak. If a brake-release event exists at the end of a file but lacks a corresponding brake-engagement event, the incomplete cycle is discarded.
Taking the impact peak
as the center, a fixed-length local impact sample is segmented as follows:
where
denotes the
-th local impact-sample vector,
is the number of sampling points retained before the peak, and
is the number of sampling points retained after the peak. In this study,
and
. Therefore, the length of each impact sample is
The extracted impact sample represents the local transient response of brake release or brake engagement, rather than a complete long-cycle signal covering the entire “stationary–brake release–operation–brake engagement–stationary” process.
2.3. Multi-Domain Impact Feature Construction and RBF-Kernel SVM-Based Air-Gap Identification
The
-th local impact sample obtained from Equation (13) is denoted as
where
denotes the vibration amplitude of the
-th sampling point in the
-th impact sample, and
is the length of the impact sample. In this study, features are constructed from three perspectives, namely time domain, frequency-domain statistics, and band energy, to characterize the influence of brake air-gap variation on impact intensity, spectral structure, and energy distribution.
The impact peak is used to describe the maximum transient amplitude during the local impact process:
where
denotes the peak amplitude of the
-th impact sample, and
represents the absolute value of the vibration amplitude at the
-th sampling point. This index reflects the maximum local impact intensity during brake release or brake engagement.
The RMS value of the impact sample is used to describe the average vibration intensity within the entire local impact window:
where
denotes the RMS value of the
-th impact sample, and
is the amplitude of the
-th sampling point in the impact sample. Compared with a single-point peak value, the RMS value better reflects the overall vibration level of the local impact process. Variation in the brake air gap may alter the armature actuation stroke and brake shoe release process, thereby causing changes in the RMS value of the brake-release impact.
The impact energy is defined as
where
denotes the total energy of the
-th impact sample. This index describes the accumulated vibration energy in the local transient response during brake release or brake engagement. When the impact sample length is fixed, both energy and RMS can reflect impact intensity, whereas the energy feature places greater emphasis on the cumulative effect of the local response.
To reduce the influence of the excessively large numerical range of the energy feature on model training, logarithmic energy is further constructed as
where
denotes the logarithmic energy of the impact sample, and
is a small constant introduced to avoid numerical instability when
. The logarithmic transformation compresses the dynamic range of the energy feature, making it more suitable for joint input into the classification model together with other features.
Kurtosis is defined as
where
denotes the kurtosis of the
-th impact sample,
and
denote the mean and standard deviation of the impact sample, respectively, and
is a small constant introduced to avoid division by zero. A larger kurtosis value indicates more prominent impulsive components in the signal. During brake release or brake engagement, local collision or release impacts may lead to an increase in kurtosis.
The crest factor is defined as
where
denotes the crest factor,
is the impact peak value, and
is the RMS value of the impact sample. A larger crest factor indicates that the local peak is more prominent relative to the overall vibration level.
To analyze the spectral distribution of the impact signal, the local impact sample is first mean-removed and multiplied by a Hann window before frequency-domain analysis to reduce spectral leakage. Then, a real-valued fast Fourier transform is performed on the processed impact sample to obtain the amplitude spectrum and power spectrum. The discrete Fourier transform can be expressed as
where
is the Hann window function,
denotes the complex spectrum of the
-th impact sample at the
-th frequency point,
is the frequency index, and
is the imaginary unit. The Fourier transform converts the time-domain impact sample into a frequency-domain representation, which is used to analyze whether air-gap variation changes the frequency components of the impact signal.
The power spectrum of the impact sample at the
-th frequency point is defined as
where
denotes the spectral energy of the
-th impact sample at frequency point
. The power spectrum is used for subsequent calculation of frequency-band energy ratios and spectral entropy.
The energy ratio of the
-th frequency band is defined as
where
denotes the energy proportion of the
-th frequency band;
denotes the set of frequency indices corresponding to the
-th predefined frequency band. In this study, multiple frequency-band energy ratios are used to describe the distribution of impact energy in different frequency ranges. If air-gap variation causes changes in the frequency components of the impact signal, the energy proportions in different frequency bands will also change accordingly.
To describe the complexity of the spectral energy distribution, the power spectrum is first normalized as
where
denotes the normalized power spectrum, which reflects the proportion of the energy at the
-th frequency point in the total spectral energy.
Based on the normalized power spectrum, the spectral entropy is defined as
where
denotes the normalized spectral entropy,
is the number of frequency points involved in the calculation, and
is a small constant introduced to avoid taking the logarithm of zero. In this study, normalized spectral entropy is adopted, so that the value of
is approximately within the range of 0–1. A larger spectral entropy indicates a more dispersed spectral energy distribution, whereas a smaller spectral entropy indicates that energy is more concentrated in a few frequency components. This feature can be used to describe the influence of brake air-gap variation on the spectral complexity of the impact signal.
Finally, the feature vector of the
-th impact sample is expressed as
where
denotes the feature vector of the
-th impact sample, and
,
, and
denote the sets of time-domain features, frequency-domain features, and band-energy features, respectively. The multi-domain features jointly describe changes in impact intensity, spectral structure, and band energy redistribution caused by brake air-gap variation.
For each brake-release or brake-engagement impact sample, 33 diagnostic features are finally constructed in this study, including 22 time-domain features, 5 frequency-domain statistical features, and 6 band-energy features. Among them, the time-domain features mainly describe the impact amplitude, energy, distribution pattern, and impulsiveness; the frequency-domain statistical features describe spectral structure information, such as spectral centroid, frequency dispersion, and spectral entropy; and the band-energy features describe the energy proportions in different frequency ranges. It should be noted that open_peak_idx and open_abs_peak_amp are retained only as metadata during the impact extraction process and are not used as diagnostic features for model training or feature-group ablation analysis. For the combined brake-release and brake-engagement input , difference and ratio features between the brake-release features and the brake-engagement features are further constructed, resulting in a 94-dimensional combined feature vector.
To eliminate dimensional differences among different features, feature standardization is performed as follows:
where
denotes the
-th original feature value of the
-th sample,
denotes the standardized feature value, and
and
denote the mean and standard deviation of the
-th feature calculated from the training set, respectively. The standardization parameters are calculated only from the training set and then applied to the test set to avoid data leakage.
In this study, an RBF-kernel SVM is adopted for air-gap state identification. The RBF kernel function is defined as
where
denotes the similarity between samples
and
in the RBF kernel space,
is the kernel parameter, and
denotes the squared Euclidean distance between the two feature vectors. The RBF kernel can construct nonlinear classification boundaries [
40,
41], making it suitable for handling nonlinear distributions and local overlap of impact features under different air-gap states.
During model training, possible missing values are first imputed using the median values of the training-set features. The features are then standardized using the means and standard deviations calculated from the training set, and the same imputation and standardization parameters are applied to the test set. For file-grouped cross-validation, the median imputer and Z-score scaler were refitted independently within each training fold. The fitted imputation values, feature means, and feature standard deviations were then applied to the corresponding validation fold only. Therefore, no information from the validation or test files was used during feature imputation, standardization, or model training. In this study, the parameters of the RBF-kernel SVM classifier are set as and , and class_weight = balanced is adopted to reduce the influence of slight class imbalance on the classification results. For each evaluation setting, all compared models used the same data partitioning strategy to ensure a fair comparison.
The final predicted class is determined by the maximum discriminant function:
where
denotes the predicted brake air-gap class,
denotes the candidate class index, and
denotes the discriminant function indicating that sample
belongs to class
. The brake air-gap states considered in this study include six classes: 0.30 mm, 0.40 mm, 0.50 mm, 0.60 mm, 0.70 mm, and 0.80 mm.