A dynamic early warning method for ship diesel engine vibration signals based on PSO-VMD and extreme random tree
By combining PSO-VMD with extreme random trees, the vibration signal processing of marine diesel engines is optimized, solving the problems of insufficient feature extraction and low prediction accuracy in traditional methods. This enables accurate early warning and condition monitoring of diesel engine faults, and is applicable to intelligent engine room systems.
Patent Information
- Application Number
- CN202611432224.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-15
- Publication Date
- 2026-11-24
AI Technical Summary
Traditional fault early warning methods have insufficient feature extraction capabilities, limited prediction accuracy, and a high false alarm rate in marine diesel engine vibration signal processing, making them difficult to adapt to the development needs of intelligent engine rooms.
A dynamic early warning method for vibration signals of marine diesel engines based on PSO-VMD and extreme random trees is adopted. The VMD parameters are optimized by particle swarm optimization algorithm, effective IMF components are screened, and the signal reconstruction and feature extraction are realized by combining sliding window and dynamic threshold early warning. An extreme random tree regression model is constructed for prediction.
It improves the effective feature extraction capability of complex vibration signals, reduces false alarm and false alarm rates, and realizes accurate prediction and reliable early warning of the operating status of marine diesel engines. It is suitable for mechanical condition monitoring and health assessment systems in intelligent engine rooms.
Smart Images

Figure CN123158463A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of Internet of Things and artificial intelligence, and more particularly to a dynamic early warning method for vibration signals of marine diesel engines based on PSO-VMD and extreme random trees. Background Technology
[0002] With the continuous development of emerging technologies such as the Internet of Things and artificial intelligence, intelligent ships have gradually become a focus of industry attention. In November 2017, the China Classification Society (CCS) issued the "Guidelines for the Inspection of Intelligent Engine Rooms," which clearly states that a complete Mechanical Condition Monitoring and Health Assessment System (MCM&HAS) should be established in an intelligent engine room environment. This system needs to have core functions such as data acquisition and sensing, information processing, fault identification and early warning, and health status trend prediction. In addition, in 2020, the International Maritime Organization (IMO) issued the "Guidance on Intelligent Ships," which further promoted the application of intelligent technologies in ship design and operation, emphasizing the key role of digital and intelligent technologies in improving ship safety and operational efficiency. However, current conventional maintenance models and traditional monitoring and alarm methods are no longer sufficient to meet the development needs of intelligent engine rooms. To achieve refined management of engine room systems and improve the level of ship operation safety, the maintenance model of marine equipment urgently needs to be transformed from traditional periodic inspections or reactive maintenance to condition-based maintenance (CBM). Since the 1990s, Prognostics and Health Management (PHM) technology has gradually developed and been widely applied in high-reliability fields such as military, aviation, and aerospace, attracting significant attention from major Western military powers. With the development and improvement of various fault prediction and early warning methods, the PHM technology system has matured and has gradually been introduced into the field of marine engineering, driving the evolution of ship equipment maintenance strategies towards a state-driven model. This transformation not only helps ensure the stable operation of ship equipment but also provides crucial support for improving overall navigation safety.
[0003] As a core component of ship operation, the diesel engine's operating status directly affects the safety and reliability of the power system. Reliable diesel engine operation relies on effective fault early warning, and vibration signals, with their rich information content, fast response speed, and sensitivity to mechanical faults, have become an important source of information for early warning of marine diesel engine faults. However, the non-stationary and nonlinear characteristics of marine diesel engine vibration signals lead to problems such as insufficient feature extraction capabilities, limited prediction accuracy, and a high false alarm rate in traditional fault early warning methods. Summary of the Invention
[0004] To address the technical problems of insufficient feature extraction capability, limited prediction accuracy, and high false alarm rate in traditional fault early warning methods, this invention provides a dynamic early warning method for marine diesel engine vibration signals based on PSO-VMD and Extreme Random Tree. This invention proposes a fault early warning method for marine diesel engines based on PSO-VMD (a signal decomposition method for noise removal to facilitate subsequent feature extraction), Extreme Random Tree (a machine learning algorithm for predicting the RMS value of a sliding window), and dynamic threshold warning. This method achieves accurate prediction and reliable early warning of the operating status of marine diesel engines under complex operating conditions.
[0005] The technical means employed in this invention are as follows: A dynamic early warning method for vibration signals of marine diesel engines based on PSO-VMD and extreme random trees includes the following steps: Step 1: Collect vibration signals during the operation of the ship's diesel engine, preprocess the raw data, and obtain continuous and stable input signals; Step 2: Adaptively optimize the number of modes K and penalty factor alpha of variational mode decomposition using particle swarm optimization algorithm, and use at least one of envelope entropy, kurtosis and reconstruction error as the adaptive evaluation index to obtain the optimized VMD parameter combination. Step 3: Decompose the input signal by combining the optimized VMD parameters to obtain multiple intrinsic mode functions (IMF) components. Then, select the effective components based on the energy ratio, correlation coefficient, spectral distribution, and fault characteristic frequency of each IMF component and reconstruct the signal to obtain the reconstructed signal. Step 4: Divide the reconstructed signal into sliding windows, and extract time-domain features, frequency-domain features, trend-domain features, and complexity features within each window to construct a multi-dimensional feature vector; Step 5: Using the multi-dimensional feature vectors of the current window and historical windows as model inputs, and the root mean square (RMS) value of the next window as the prediction target, train the extreme random tree regression model to obtain short-term prediction results of vibration state. Step 6: Calculate the residual sequence between the predicted RMS value and the actual RMS value, and construct a dynamic threshold interval based on the mean and standard deviation of the residuals within the sliding window; when the residuals continuously exceed the warning boundary or reach the set number of durations, it is determined that there is an abnormal trend in the vibration state of the diesel engine and the warning result is output.
[0006] Furthermore, in step 1, the preprocessing includes: missing value interpolation, outlier removal, DC bias elimination, and amplitude anomaly correction.
[0007] Furthermore, in step 2, the optimization process of the particle swarm optimization algorithm includes the following steps: Step 21: Initialize the particle swarm, where each particle represents a set of VMD parameter combinations. ; Step 22: Using the minimum envelope entropy, maximum kurtosis, minimum error between the reconstructed signal and the original signal or maximum correlation coefficient of the decomposed IMF components as fitness evaluation indicators, iteratively update the particle position and velocity until the convergence condition is met or the maximum number of iterations is reached, and output the optimal parameter combination.
[0008] Furthermore, in step 3, the screening of effective components includes the following steps: Step 31: Calculate the energy percentage of each IMF component and remove noise components whose energy percentage is lower than the first set threshold. Step 32: Calculate the correlation coefficient between each IMF component and the original signal, and retain the effective components whose correlation coefficient is greater than the second set threshold. Step 33: Analyze the spectral distribution of each IMF component and screen out the effective modes containing fault characteristic frequencies; then reconstruct the screened effective components by linear superposition.
[0009] Further, in step 4, the time-domain features include: root mean square (RMS), standard deviation, peak-to-peak value, peak factor, and impulse factor; the frequency-domain features include: center frequency of the spectrum, root mean square frequency, and frequency band energy percentage; the trend-domain features include: RMS difference, rolling mean, and exponentially weighted mean; and the complexity features include: sample entropy.
[0010] Furthermore, in step 5, training the extreme random tree regression model includes the following steps: Step 51: Use the multidimensional feature vector of the historical sliding window as the input feature matrix, and use the RMS value of the corresponding next window as the target vector. Step 52: Construct multiple decision trees using the extreme random tree algorithm. When splitting a node, randomly select a subset of features and randomly determine the splitting threshold. The final predicted value is obtained by averaging the prediction results of multiple decision trees.
[0011] Furthermore, in step 6, let the actual RMS value of the t-th window be... The model predicts the value. Then the residual ; In length Calculate the mean within the residual sliding window and standard deviation Construct upper and lower dynamic thresholds: ; ; in, Represents the threshold coefficient; when the residual is continuous When a window exceeds the upper or lower threshold, or when the absolute value of the residual continues to increase and exceeds the set boundary, an abnormal warning will be output. Represents the root mean square value; Indicates the first A real sliding window Output value; The output of the extreme random tree model represents the first... A sliding window Predict the output value; Indicates the first The residual between the windowed predicted value and the actual value; This indicates the window length of the residual sliding window; Indicates the first The arithmetic mean of the residual sequence within the sliding window at any given time; Indicates the first The standard deviation of the residual sequence within the sliding window at any given time; express Real-time dynamic warnings of threshold values; express Real-time dynamic warning threshold; This represents the threshold coefficient, used to adjust the sensitivity of the early warning system. This indicates the number of consecutive over-limit judgment windows.
[0012] Furthermore, in step 6, when the cumulative number of times the residual exceeds the upper limit of the dynamic threshold or falls below the lower limit of the dynamic threshold reaches a preset first threshold, an abnormal trend is determined and a first-level warning is output; when the residual continuously exceeds the dynamic threshold range and the number of consecutive exceedances reaches a preset second threshold, a fault risk is determined and a second-level warning is output, wherein the preset second threshold is greater than the preset first threshold.
[0013] Compared with the prior art, the present invention has the following advantages: (1) Improve the ability to effectively extract features from complex vibration signals.
[0014] This invention utilizes PSO adaptive optimization of VMD parameters to avoid mode aliasing, over-decomposition, or under-decomposition problems caused by relying solely on empirically set mode numbers and penalty factors. By screening effective IMF components and reconstructing the signal, random noise and high-frequency interference can be suppressed, highlighting fault-related state information such as periodic impulses and frequency band energy changes.
[0015] (2) Reduce false alarms and missed alarms of fixed threshold alarms.
[0016] This invention employs a dynamic threshold based on sliding window statistics, which adjusts the warning boundary in real time using the residual mean and standard deviation. This allows the threshold to be adaptively updated as the operating conditions and vibration levels change, reducing false alarms caused by normal load fluctuations and improving the ability to detect early anomalies.
[0017] (3) It has good engineering applicability.
[0018] The process of this invention consists of data acquisition, signal decomposition, feature extraction, model prediction, and dynamic early warning. It can be embedded into the ship's intelligent engine room mechanical condition monitoring and health assessment system and is suitable for online or offline health condition assessment of multi-point vibration data of diesel engines. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a schematic diagram of the overall process of the present invention.
[0021] Figure 2 This is a time-domain diagram of the noisy composite analog signal of the present invention.
[0022] Figure 3 This is a diagram showing the components of the analog signal of this invention.
[0023] Figure 4 This is the spectrum diagram of the composite analog signal of the present invention.
[0024] Figure 5 This is a diagram showing the number of iterations for PSO optimization of the composite analog signal in this invention.
[0025] Figure 6 The above are time-domain diagrams of each IMF of the composite analog signal of this invention.
[0026] Figure 7 The above are the spectrograms of each IMF in the composite analog signal of this invention.
[0027] Figure 8 This is a comparison diagram of the analog signal reconstruction of the present invention.
[0028] Figure 9 This is a diagram illustrating the actual ship signal decomposition experiment process of this invention.
[0029] Figure 10 This is a Spearman-related heatmap for the present invention.
[0030] Figure 11 This is a Spearman correlation plot between the present invention and the target variable.
[0031] Figure 12 This is the RMS trend chart of the PSO-VMD reconstructed signal of the present invention.
[0032] Figure 13 This is a graph showing the RMS prediction results for the Extra Trees test set of this invention.
[0033] Figure 14 This is a dynamic threshold warning diagram for the residuals of the Extra Trees test set in this invention.
[0034] Figure 15 This is a scatter plot of the actual and predicted values for the Extra Trees method of this invention. Detailed Implementation
[0035] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0036] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0037] like Figures 1-15 As shown, this invention provides a dynamic early warning method for vibration signals of marine diesel engines based on PSO-VMD and extreme random trees, including the following steps: Step 1: Collect vibration signals from the marine diesel engine during operation and preprocess the raw data to obtain a continuous and stable input signal. The preprocessing includes: missing value interpolation, outlier removal, DC bias elimination, and amplitude anomaly correction. Specifically, missing value interpolation involves using linear interpolation of adjacent valid sampling points to fill in missing segments of the vibration signal caused by short-term sensor packet loss; outlier removal uses the 3σ criterion to statistically analyze the original vibration sequence, marking and removing isolated anomalous points exceeding the mean ± 3 standard deviations; DC bias elimination removes the arithmetic mean of the entire signal segment by subtracting it to eliminate the DC component introduced by sensor zero-point drift; and amplitude anomaly correction corrects excessive amplitude segments caused by signal saturation clipping and hardware overload by using local neighborhood signal fitting to restore the excessive amplitude points, resulting in a clean, preprocessed original vibration signal from the marine diesel engine.
[0038] Step 2: Adaptively optimize the number of modes K and penalty factor alpha of variational mode decomposition using particle swarm optimization algorithm, with at least one of envelope entropy, kurtosis, and reconstruction error as the evaluation index of adaptability, to obtain the optimized VMD parameter combination; the optimization process of the particle swarm optimization algorithm includes the following steps: Step 21: Initialize the particle swarm, where each particle represents a set of VMD parameter combinations. ; Step 22: Using the minimum envelope entropy, maximum kurtosis, minimum error between the reconstructed signal and the original signal or maximum correlation coefficient of the decomposed IMF components as fitness evaluation indicators, iteratively update the particle position and velocity until the convergence condition is met or the maximum number of iterations is reached, and output the optimal parameter combination.
[0039] Step 3: Decompose the input signal by combining the optimized VMD parameters to obtain multiple Intrinsic Mode Function (IMF) components. Then, based on the energy proportion, correlation coefficient, spectral distribution, and fault characteristic frequency of each IMF component, select the effective components and reconstruct the signal to obtain the reconstructed signal. Step 3, the selection of effective components, includes the following steps: Step 31: Calculate the energy percentage of each IMF component and remove noise components whose energy percentage is lower than the first set threshold. Step 32: Calculate the correlation coefficient between each IMF component and the original signal, and retain the effective components whose correlation coefficient is greater than the second set threshold. Step 33: Analyze the spectral distribution of each IMF component and screen out the effective modes containing fault characteristic frequencies; then reconstruct the screened effective components by linear superposition.
[0040] Step 4: Divide the reconstructed signal into sliding windows, and extract time-domain features, frequency-domain features, trend-domain features, and complexity features within each window to construct a multi-dimensional feature vector. In Step 4, the time-domain features include: root mean square (RMS), standard deviation, peak-to-peak value, peak factor, and impulse factor; the frequency-domain features include: center frequency of the spectrum, root mean square frequency, and frequency band energy percentage; the trend-domain features include: RMS difference, rolling mean, and exponentially weighted mean; and the complexity features include: sample entropy.
[0041] Step 5: Using the multidimensional feature vectors of the current window and historical windows as model input, and the root mean square (RMS) value of the next window as the prediction target, train the extreme random tree regression model to obtain short-term prediction results of the vibration state; Step 5, the training of the extreme random tree regression model includes the following steps: Step 51: Use the multidimensional feature vector of the historical sliding window as the input feature matrix, and use the RMS value of the corresponding next window as the target vector. Step 52: Construct multiple decision trees using the extreme random tree algorithm. When splitting a node, randomly select a subset of features and randomly determine the splitting threshold. The final predicted value is obtained by averaging the prediction results of multiple decision trees.
[0042] Step 6: Calculate the residual sequence between the predicted RMS value and the actual RMS value, and construct a dynamic threshold interval based on the mean and standard deviation of the residuals within the sliding window; when the residuals continuously exceed the warning boundary or reach a set number of durations, it is determined that the diesel engine vibration state has an abnormal trend and a warning result is output. In Step 6, let the actual RMS value of the t-th window be... The model predicts the value. Then the residual ; In length Calculate the mean within the residual sliding window and standard deviation Construct upper and lower dynamic thresholds: ; ; in, Represents the threshold coefficient; when the residual is continuous When a window exceeds the upper or lower threshold, or when the absolute value of the residual continues to increase and exceeds the set boundary, an abnormal warning will be output. Represents the root mean square value; Indicates the first A real sliding window Output value; The output of the extreme random tree model represents the first... A sliding window Predict the output value; Indicates the first The residual between the windowed predicted value and the actual value; This indicates the window length of the residual sliding window; Indicates the first The arithmetic mean of the residual sequence within the sliding window at any given time; Indicates the first The standard deviation of the residual sequence within the sliding window at any given time; express Real-time dynamic warnings of threshold values; express Real-time dynamic warning threshold; This represents the threshold coefficient, used to adjust the sensitivity of the early warning system. This indicates the number of consecutive over-limit judgment windows.
[0043] In this application, preferably, in step 6, when the cumulative number of times the residual exceeds the upper limit of the dynamic threshold or falls below the lower limit of the dynamic threshold reaches a preset first threshold, an abnormal trend is determined and a first-level warning is output; when the residual continuously exceeds the dynamic threshold range and the number of consecutive exceedances reaches a preset second threshold, a fault risk is determined and a second-level warning is output, wherein the preset second threshold is greater than the preset first threshold.
[0044] Example 1 To more realistically simulate the vibration signal of a marine diesel engine turbocharger, a composite analog signal is constructed, comprising the fundamental and harmonic frequencies of rotation, amplitude modulation components, periodic impact attenuation components, structural resonance components, low-frequency trend terms, and Gaussian white noise. Its expression is as follows: ; in, These are the fundamental frequency and harmonic components of the rotation. For amplitude modulation components, It is a component of periodic impact decay. It is a structural resonance component. This is a low-frequency trend term. It is Gaussian white noise.
[0045] (1) Rotational fundamental frequency and harmonic components: ;in, Indicates the fundamental frequency of rotation. Indicates the first The amplitude of the first harmonic component, Indicates the corresponding phase.
[0046] (2) Amplitude modulation component: ;in, Indicates the amplitude of the modulation component. Indicates modulation depth. Indicates the modulation frequency. Indicates the carrier frequency. Indicates phase.
[0047] (3) Periodic impact attenuation components: ;in, Indicates impact strength. Indicates the attenuation coefficient. Indicates the impact excitation frequency, Indicates the first At the moment of the impact This represents the unit step function.
[0048] (4) Structural resonance components: ;in, Indicates the amplitude of the resonance component. Indicates the resonant frequency. Indicates phase.
[0049] (5) Low-frequency trend items: ;in, Indicates the magnitude of the trend term. This indicates the frequency of the low-frequency trend.
[0050] (6) Gaussian white noise: ;in, Indicates the standard deviation of noise. This represents a random variable that follows a standard normal distribution.
[0051] In this application, the simulation sampling frequency is used. The number of sampling points is The parameters are set as follows: rotational fundamental frequency. Modulation frequency Carrier frequency Impact excitation frequency Resonance frequency Low-frequency trend frequency Noise standard deviation .
[0052] This data comes from the "Xin Hongzhuan" vessel, a new type of teaching and training vessel of Dalian Maritime University. The vessel's diesel engine is a Wärtsilä 8L20 four-stroke diesel engine, an 8-cylinder in-line engine from the Wärtsilä 20 series, with a bore of 200 mm and a firing order of 1-5-3-7-4-8-2-6. Vibration data were sampled at a frequency of 4000 Hz. Tests were conducted under five load conditions: 25%, 50%, 75%, 85%, and 100%, with data collected at eight measuring points, covering vibration data under multiple load conditions. Three sets of data were collected: the first set recorded 20,000 data points at each measuring point, and the second and third sets recorded 16,000 data points at each measuring point. This paper mainly analyzes the data under the 100% load condition, as detailed in Table 1.
[0053] Table 1 Number of data columns and measurement points
[0054] To improve the stability and reliability of the prediction model for marine diesel engine vibration signals, data preprocessing of the original vibration signals is required before establishing the prediction model.
[0055] First, the acquired raw vibration signals are checked for missing and outlier values. Invalid, null, or non-numerical data are deleted or processed using linear interpolation to ensure the continuity of the input sequence. Then, the vibration signals are mean-reduced to eliminate the influence of DC bias on subsequent feature extraction. Simultaneously, to avoid extreme outliers affecting model training, the signal amplitude is appropriately truncated to keep the signal within a stable range.
[0056] Furthermore, the decomposition, reconstruction, and feature extraction of real ship data. Decomposition: For the problem of strong non-stationarity and significant noise interference in the original vibration signal, the PSO-VMD method is used to decompose and reconstruct the signal. VMD can decompose complex vibration signals into several intrinsic mode functions, and PSO is used to optimize the number of modes and penalty factor in VMD to reduce the uncertainty caused by manual parameter selection.
[0057] Reconstruction: After decomposition, effective modes are selected based on the energy proportion and correlation of the IMF components, and the effective components are reconstructed to obtain a reconstructed signal with lower noise and more prominent main vibration information. This step can improve signal stability and provide a higher quality data foundation for subsequent RMS prediction.
[0058] Sliding window processing: The vibration signal reconstructed by PSO-VMD is divided into sliding windows with a window length of N and a step size of S. The reconstructed signal is segmented in chronological order without revealing future information. Each window only uses current and historical data for feature extraction, ensuring that the prediction process meets the requirements of time series modeling. In this paper's experiments, a window length of 256 is commonly used, and the step size can be set to 64. A smaller step size can obtain a higher density of sample sequences, which is beneficial for improving short-term prediction accuracy; a larger step size makes the prediction task more challenging and is more suitable for testing the model's generalization ability.
[0059] Feature extraction: Within each sliding window, time-domain, frequency-domain, trend-domain, and complexity features are extracted. Time-domain features include RMS, standard deviation, peak value, peak-to-peak value, mean absolute value, peak factor, and impulse factor, used to describe vibration amplitude and impact characteristics; frequency-domain features include the center frequency of the spectrum, root mean square frequency, low-frequency energy proportion, mid-frequency energy proportion, and high-frequency energy proportion, used to reflect frequency distribution and energy changes; trend features include first-order difference of RMS, second-order difference, rolling mean, and exponentially weighted mean, used to describe the trend of vibration state changes over time; complexity features use sample entropy to characterize the nonlinearity and randomness of the vibration signal.
[0060] The feature vectors extracted from each sliding window are arranged into a sample set in chronological order, with the first feature vector being the first feature vector. The multidimensional features of the nth window are used as input, with the nth window as the input. The RMS value of each window is used as the output label. The training and test sets are divided chronologically to avoid future data leakage. The extreme random tree model consists of multiple random regression trees. Candidate features and splitting thresholds are randomly selected when splitting nodes, and the prediction results of multiple trees are averaged to obtain the RMS prediction value of the next window. After the model is trained, the prediction performance can be evaluated by the root mean square error, mean absolute error, coefficient of determination, and the degree of overlap between the true curve and the predicted curve.
[0061] Let the first The actual RMS value of each window is The model predicts the value. Then the residual In length of Calculate the mean within the residual sliding window and standard deviation Construct upper and lower dynamic thresholds , ,in This is the threshold coefficient, which can be set to 2 to 3 depending on the early warning sensitivity. When the residual is continuous... An abnormal warning will be output when a window exceeds the upper or lower threshold, or when the absolute value of the residual continues to increase and exceeds the set boundary.
[0062] The early warning output includes the anomaly occurrence window, corresponding measurement point, predicted RMS, actual RMS, residual value, dynamic threshold, and number of consecutive exceedances. If the anomaly is mainly manifested as an increase in positive residuals, it indicates that the actual vibration energy is higher than the normal prediction level given by the model based on historical conditions; if the anomaly is mainly manifested as an increase in residual fluctuations, it indicates a decrease in the stability of the diesel engine's vibration state. The above information can provide a basis for maintenance personnel to judge the degree of anomaly, arrange retesting, and formulate condition-based maintenance strategies.
[0063] Example 2 Table 2 Evaluation Table of Reconstructed Signal
[0064] As shown in Table 2, PSO optimizes the parameters within the range of 3-8 modes K and 500-4000 penalty factor alpha, ultimately obtaining the optimal parameters K=8 and alpha=500. The fitness value stabilizes after the third iteration during optimization, indicating that the algorithm can quickly obtain a better combination of VMD parameters. After reconstructing the signal using the filtered IMF components, the reconstructed signal has an RMSE of 0.0914, a MAE of 0.0727, and an SNR of 22.01 dB. Compared to the original noisy signal, both RMSE and MAE decrease, and the signal-to-noise ratio increases by approximately 6.83 dB. This demonstrates that the PSO-VMD decomposition method effectively suppresses noise interference and retains the main periodic components, impact components, and energy change characteristics of the simulated diesel engine vibration signal, providing a reliable data foundation for subsequent sliding window feature extraction, RMS prediction, and dynamic threshold early warning.
[0065] like Figure 9 As shown, compared with the original signal, random noise and high-frequency interference in the reconstructed signal are effectively suppressed, while the main periodic impulse characteristics are preserved. Spectral analysis indicates that the energy distribution of the reconstructed signal is more concentrated, and the fault-related frequency components are more prominent. The envelope entropy decreases from approximately 14 to 13.7, indicating a reduction in signal complexity; the kurtosis increases from approximately 0.6 to 2.8, indicating a significant enhancement of the impulse characteristics; simultaneously, the PSO optimization process converges around the third generation, demonstrating that the optimization algorithm can quickly obtain a better combination of VMD parameters.
[0066] like Figure 10As shown in the correlation heatmap, some time-domain amplitude features, such as standard deviation, RMS, maximum absolute value, and peak-to-peak value, exhibit strong positive correlations, indicating that these features can reflect vibration amplitude and energy changes, but there is also some redundancy. Waveform factor features, such as peak factor, impulse factor, and margin factor, also show strong correlations, indicating that they are all sensitive to local impacts and spike characteristics. In the frequency domain features, the center frequency, root mean square frequency, and frequency standard deviation show high correlations, while they are significantly negatively correlated with the proportion of low-frequency energy, indicating that the energy distribution in different frequency bands affects frequency statistical characteristics.
[0067] like Figure 11 As shown, the maximum absolute value, standard deviation, peak-to-peak value, and low-frequency energy proportion are strongly positively correlated with the target variable, indicating that amplitude energy features play an important role in RMS prediction. Conversely, the frequency standard deviation, root mean square frequency, sample entropy, and spectral center frequency are significantly negatively correlated with the target variable, suggesting that changes in frequency distribution and signal complexity can also reflect changes in vibration state. Based on the above analysis, representative time-domain and frequency-domain features were selected as inputs for subsequent prediction models.
[0068] like Figure 12 As shown, the RMS of the reconstructed signal exhibits obvious non-stationary fluctuation characteristics. The RMS values in most windows are concentrated in the lower amplitude range, but significant spikes appear at several local locations. This indicates that while the ship's diesel engine vibration signal operates stably overall, localized impacts and energy surges still exist. Especially in the latter half, the RMS fluctuation amplitude and the frequency of spikes increase, indicating a certain trend in the vibration state over time. The figure shows that the PSO-VMD reconstructed signal retains the main energy changes and impact characteristics of the original vibration signal well, providing a valid basis for subsequent RMS prediction and dynamic threshold early warning.
[0069] like Figure 13 As shown, the blue curve represents the actual RMS, and the orange curve represents the predicted RMS. It can be seen that the two curves largely overlap, indicating that the model can accurately track the rise, fall, and local peak changes of the RMS. Even in several high-amplitude impact regions, the predicted curve still closely matches the actual curve, demonstrating the model's strong ability to capture sudden changes in vibration energy. Although there are slight deviations near individual peaks, the overall prediction trend is highly consistent, and the ExtraTrees model effectively characterizes the changing vibration state of ship diesel engines.
[0070] like Figure 14Figure 14 shows the results of the dynamic threshold warning for the residuals of the extreme random tree test set. In the figure, the horizontal axis represents the test sample number, and the vertical axis represents the absolute residual; the solid line represents the predicted residual sequence, the long dashed line represents the dynamic warning threshold, and the dotted dashed line represents the dynamic alarm threshold; solid circles mark warning points, and crosses mark alarm points. As can be seen from the figure, the predicted residuals of most test samples are at a low level, indicating that the overall model prediction is relatively stable. When a local residual suddenly increases and exceeds the dynamic threshold, the system can trigger the corresponding warning or alarm. Compared with a fixed threshold, the dynamic threshold can adjust the threshold level in real time according to the mean and standard deviation of historical residuals, appropriately increasing the threshold when the residual fluctuation is large and maintaining high sensitivity when the residual is small, thereby reducing false alarms caused by occasional noise. This figure shows that the dynamic threshold method based on predicted residuals can better adapt to non-stationary vibration conditions and achieve more stable and reliable anomaly warnings. As can be seen from the figure, the predicted residuals of most test samples are at a low level, indicating that the overall model prediction is relatively stable. When a local residual suddenly increases and exceeds the dynamic threshold, the system can trigger the corresponding warning or alarm. Compared to fixed thresholds, dynamic thresholds can adjust the threshold level in real time based on the mean and standard deviation of historical residuals. They appropriately increase the threshold when residual fluctuations are large and maintain high sensitivity when residuals are small, thereby reducing false alarms caused by occasional noise. The figure shows that the dynamic threshold method based on predicted residuals can better adapt to non-stationary vibration conditions, achieving more stable and reliable anomaly warnings.
[0071] like Figure 15 As shown in the figure, the dashed line represents the ideal prediction line, where the predicted value equals the actual value. The figure shows that most scatter points are closely distributed near the ideal prediction line, indicating a high degree of consistency between the predicted and actual values. Samples in both the low and high RMS regions fit the ideal line well, demonstrating that the model can accurately predict not only conventional low-amplitude vibrations but also high-amplitude impacts. A few deviations mainly occur at local abrupt changes or peak samples, due to the strong randomness of sudden impacts, making prediction relatively difficult. This figure further validates the high-precision fitting capability of the ExtraTrees model in vibration RMS prediction tasks.
[0072] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. In the above embodiments of the present invention, the descriptions of each embodiment have their own emphasis; parts not described in detail in a certain embodiment can be referred to in the relevant descriptions of other embodiments. It should be understood that the disclosed technical content in the several embodiments provided in this application can be implemented in other ways.
[0073] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A ship diesel engine vibration signal dynamic early warning method based on PSO-VMD and extreme random tree, characterized in that, Includes the following steps: Step 1: Collect vibration signals during the operation of the ship's diesel engine, preprocess the raw data, and obtain continuous and stable input signals; Step 2: Adaptively optimize the number of modes K and penalty factor alpha of variational mode decomposition using particle swarm optimization algorithm, and use at least one of envelope entropy, kurtosis and reconstruction error as the adaptive evaluation index to obtain the optimized VMD parameter combination. Step 3: Decompose the input signal by combining the optimized VMD parameters to obtain multiple intrinsic mode functions (IMF) components. Then, select the effective components based on the energy ratio, correlation coefficient, spectral distribution, and fault characteristic frequency of each IMF component and reconstruct the signal to obtain the reconstructed signal. Step 4: Divide the reconstructed signal into sliding windows, and extract time-domain features, frequency-domain features, trend-domain features, and complexity features within each window to construct a multi-dimensional feature vector; Step 5: Using the multi-dimensional feature vectors of the current window and historical windows as model inputs, and the root mean square (RMS) value of the next window as the prediction target, train the extreme random tree regression model to obtain short-term prediction results of vibration state. Step 6: Calculate the residual sequence between the predicted RMS value and the actual RMS value, and construct a dynamic threshold interval based on the mean and standard deviation of the residuals within the sliding window; when the residuals continuously exceed the warning boundary or reach the set number of durations, it is determined that there is an abnormal trend in the vibration state of the diesel engine and the warning result is output.
2. The ship diesel engine vibration signal dynamic early warning method based on PSO-VMD and extreme random tree according to claim 1, characterized in that, In step 1, the preprocessing includes: missing value interpolation, outlier removal, DC bias elimination, and amplitude anomaly correction.
3. The method for dynamic early warning of marine diesel engine vibration signals based on PSO-VMD and extreme random trees according to claim 1, characterized in that, In step 2, the optimization process of the particle swarm optimization algorithm includes the following steps: Step 21: Initialize the particle swarm, where each particle represents a set of VMD parameter combinations. ; Step 22: Using the minimum envelope entropy, maximum kurtosis, minimum error between the reconstructed signal and the original signal or maximum correlation coefficient of the decomposed IMF components as fitness evaluation indicators, iteratively update the particle position and velocity until the convergence condition is met or the maximum number of iterations is reached, and output the optimal parameter combination.
4. The method for dynamic early warning of marine diesel engine vibration signals based on PSO-VMD and extreme random trees according to claim 1, characterized in that, In step 3, the screening of effective components includes the following steps: Step 31: Calculate the energy percentage of each IMF component and remove noise components whose energy percentage is lower than the first set threshold. Step 32: Calculate the correlation coefficient between each IMF component and the original signal, and retain the effective components whose correlation coefficient is greater than the second set threshold. Step 33: Analyze the spectral distribution of each IMF component and screen out the effective modes containing fault characteristic frequencies; then reconstruct the screened effective components by linear superposition.
5. The method for dynamic early warning of marine diesel engine vibration signals based on PSO-VMD and extreme random trees according to claim 1, characterized in that, In step 4, the time-domain features include: root mean square (RMS), standard deviation, peak-to-peak value, peak factor, and impulse factor; the frequency-domain features include: center frequency of the spectrum, root mean square frequency, and frequency band energy percentage; the trend-domain features include: RMS difference, rolling mean, and exponentially weighted mean; and the complexity features include: sample entropy.
6. The method for dynamic early warning of marine diesel engine vibration signals based on PSO-VMD and extreme random trees according to claim 1, characterized in that, Step 5, training the extreme random tree regression model, includes the following steps: Step 51: Use the multidimensional feature vector of the historical sliding window as the input feature matrix, and use the RMS value of the corresponding next window as the target vector. Step 52: Construct multiple decision trees using the extreme random tree algorithm. When splitting a node, randomly select a subset of features and randomly determine the splitting threshold. The final predicted value is obtained by averaging the prediction results of multiple decision trees.
7. The method for dynamic early warning of marine diesel engine vibration signals based on PSO-VMD and extreme random trees according to claim 1, characterized in that, In step 6, let the actual RMS value of the t-th window be... The model predicts the value. Then the residual ; In length of Calculate the mean within the residual sliding window and standard deviation Construct upper and lower dynamic thresholds: ; ; in, Represents the threshold coefficient; when the residual is continuous When a window exceeds the upper or lower threshold, or when the absolute value of the residual continues to increase and exceeds the set boundary, an abnormal warning will be output. Represents the root mean square value; Indicates the first A real sliding window Output value; The output of the extreme random tree model represents the first... A sliding window Predict the output value; Indicates the first The residual between the windowed predicted value and the actual value; This indicates the window length of the residual sliding window; Indicates the first The arithmetic mean of the residual sequence within the sliding window at any given time; Indicates the first The standard deviation of the residual sequence within the sliding window at any given time; express Real-time dynamic warnings of threshold values; express Real-time dynamic warning threshold; This represents the threshold coefficient, used to adjust the sensitivity of the early warning system. This indicates the number of consecutive over-limit judgment windows.
8. The method for dynamic early warning of marine diesel engine vibration signals based on PSO-VMD and extreme random trees according to claim 1, characterized in that, In step 6, when the cumulative number of times the residual exceeds the upper limit of the dynamic threshold or falls below the lower limit of the dynamic threshold reaches a preset first threshold, an abnormal trend is determined and a first-level warning is output. When the residual continuously exceeds the dynamic threshold range and the number of consecutive exceedances reaches a preset second threshold, a fault risk is determined and a level two warning is output. The preset second threshold is greater than the preset first threshold.
