3.1. Data Preprocessing
Data preprocessing is one of the key steps to ensure the accuracy of marine main engine performance evaluation. The core task of this step is to eliminate abnormal samples, which mainly fall into two categories: one is invalid data samples with missing values; the other is non-steady-state operating samples generated during engine start-up, shutdown transients and stopped states. Based on marine engineering operational experience, an operating condition is determined as non-steady-state and will be excluded when it meets any of the following criteria: rotational speed below the minimum stable speed (20 RPM), power below 10 kW, or fuel flow rate below 0.0001 kg/h. This avoids parameter fluctuations during operating condition switching from interfering with subsequent steady-state performance evaluation.
Basic statistics of the samples before and after preprocessing are summarized in
Table 3. As illustrated in
Figure 2, the red curve representing the preprocessed data has successfully removed the abnormal data points below the minimum stable speed from the original black raw-data curve.
3.2. Steady-State Operating Region Identification
Various navigation states of a ship generate a large amount of non-steady-state data, which can interfere with the performance evaluation of the marine main engine. The steady-state detection (SSD) algorithm proposed by Kelly et al. [
10] requires few manually set parameters and is suitable for multivariate steady-state detection, making it well suited for identifying the stable operating intervals of a marine main engine.
In this study, the SSD algorithm from reference [
10] is adopted to identify stable intervals, with two parameters to be specified.
The first parameter is the window width . If is too small, the detection process may not provide sufficient time to reach a steady state; if is too large, unstable data within the window might be misclassified as steady. Therefore, the window size should be chosen according to the actual operating characteristics of the target engine. In this paper, the window width is set to , corresponding to a 2 h duration under the 10 min sampling interval. This setting matches the operating transition law of large low-speed marine diesel engines. Constrained by operating procedures and cylinder thermal stress, the transition of main engine parameters from one steady state to another typically takes 1–2 h under high-load ocean-going conditions. Taking into account the thermal inertia of lubricating oil and cylinder liner cooling water, the overall steady-state transition process is basically consistent with this window length, which can avoid misclassifying normal transitional fluctuations as anomalies. Fast condition switches under low loads belong to port maneuvering non-steady-state scenarios, which are inherently excluded in the steady-state detection step.
The second parameter is the critical value of the Student’s
-test, which is determined by looking up the table according to the degrees of freedom
and the significance level α. In this study, the significance level is set to 0.025, which was chosen by tuning on the real-ship dataset, within the tunable range suggested by literature [
10]. The degrees of freedom refer to the number of independent or freely varying parameters in a sample when using sample statistics to estimate population parameters. The formula for the degrees of freedom of the independent Student’s
-test is as follows:
where
represents the number of samples, i.e., the window width.
Thus, by determining whether the relevant thermal parameters at a given time are in a steady state, it can be judged whether the marine main engine is operating stably. The sample information after steady-state identification is presented in
Table 4.
Figure 3 shows the rotational speed before and after SSD steady-state detection. The black curve corresponds to the preprocessed data, and the red curve corresponds to the data after steady-state detection. The two large fluctuations in the preprocessed series correspond to acceleration, deceleration, or shutdown transients and are excluded from the steady-state dataset. The resulting series is more suitable for performance comparative analysis under stable operating conditions.
3.3. Operating Condition Classification
CLIQUE (Clustering In QUEst) is a grid- and density-based clustering method for high-dimensional spaces. It partitions each selected dimension into grid intervals, identifies dense units, and connects adjacent dense units into clusters. This formulation is suitable for unlabeled operating data because the condition regions are determined from data density rather than a preassigned class label.
The CLIQUE procedure follows the established grid-density formulation [
21,
23]. A unit is dense when the fraction of samples it contains exceeds the density threshold τ and connected dense units form a cluster.
The detailed procedure for partitioning the marine main engine operating conditions using the CLIQUE algorithm is described below:
Determine the dimensionality of the multidimensional space according to the number of performance parameters required for condition partitioning.
Set the grid segmentation separately for each dimension, using the numbers of intervals reported in
Table 5.
When k = 1, all rectangular units are candidate dense units.
Traverse the multidimensional space and count the number of data points contained in each dense unit within the k-dimensional subspace, i.e., compute its density.
Identify all dense units in the k-dimensional subspace according to the density threshold τ.
Eliminate unqualified dense subspaces.
Determine the set of candidate dense units for the (k + 1)-dimensional subspace based on the dense unit set of the k-dimensional subspace; if the dense units of the (k + 1)-dimensional subspace are empty, proceed to the next step; otherwise, jump back to step (4).
Identify the clusters in the k-dimensional space.
Save the clustering information to the database.
The 37,026 samples retained after steady-state screening are used for operating condition partitioning. Five variables—fuel type, power, rotational speed, scavenge air temperature and scavenge air pressure—define the CLIQUE input space. The remaining 17 variables are carried as performance monitoring parameters. For subsequent outlier detection via Mahalanobis distance calculation after condition partitioning, all 22 variables are used, including the five partitioning variables and the 17 monitoring parameters.
Table 5 reports the range and grid segmentation for each CLIQUE input dimension.
The density threshold is τ = 0.002. With 37,026 steady samples, a grid unit is dense when it contains approximately 74 or more samples. This density-based criterion is distinct from conventional engineering verification methods based on an absolute speed difference. Using the grid settings in
Table 5, CLIQUE identifies 33 operating condition clusters (
Figure 4). Condition 1 contains 23,720 samples and is the most populated cluster; Condition 33 contains eight samples, representing a rare transient operating condition.
To quantitatively evaluate the performance of CLIQUE in operating condition partitioning and clarify the rationale for algorithm selection, the classic K-means++ algorithm is adopted for a matched-data comparison. The clustering experiment is conducted on the same 37,026 steady-state samples with the same five operating condition variables. Since K-means++ is a distance-based clustering algorithm, min–max normalization is performed on the input variables before clustering. The optimal number of clusters k is determined by the silhouette coefficient, which measures the intra-cluster cohesion and inter-cluster separation of the clustering results.
Figure 5 presents the silhouette coefficient curve across k = 3 to 10 and the sample size distribution under the optimal four-cluster solution. The algorithm achieves the maximum silhouette coefficient of 0.6374 at k = 4. The cluster distribution panel shows that the partitioning result is dominated by one large-scale cluster and one medium-sized cluster, accompanied by two small clusters, representing a relatively coarse global partition of the operating space.
Table 6 systematically summarizes the multidimensional comparison between K-means++ and CLIQUE. Considered alongside the 33-condition CLIQUE result in
Figure 4, the difference in partition granularity is distinct: K-means++ compresses the operating space into four centroid-based Voronoi partitions, while CLIQUE identifies 33 density-connected operating condition clusters using the density threshold τ = 0.002 and variable-specific grid resolution, retaining a much finer set of both common and sparse local conditions.
In terms of underlying mechanism, K-means++ requires the number of clusters to be pre-specified and produces convex cluster boundaries based on centroid distance. In contrast, CLIQUE does not rely on a pre-defined cluster count, and clusters are formed by connecting adjacent dense grid units, which can better adapt to the irregular shape and uneven sample distribution of marine engine operating conditions. For the core objective of this study—isolating locally comparable operating regions before Mahalanobis distance-based performance evaluation—CLIQUE demonstrates task-specific advantages over K-means++, rather than general algorithmic superiority.
As noted above, this task-specific advantage should not be interpreted as universal algorithmic superiority. The silhouette coefficient is adopted as the validity metric for K-means++, while it is not calculated for the CLIQUE result in this study. The two partitioning approaches are not ranked under a unified general validity index, and the algorithm selection is based on the specific demand of fine-grained operating condition partitioning for marine main engine performance analysis.
3.4. Condition-Specific Multivariate Deviation and Retrospective Change-Point Analysis
3.4.1. Full-Condition Deviation Distribution and Analysis
Based on the partitioning results of 33 steady-state operating conditions obtained by the CLIQUE algorithm, this section conducts condition-specific multivariate deviation analysis and retrospective change-point detection. To visually demonstrate the degree of interference caused by operating condition shifts on performance deviation calculation, the Mahalanobis distance of each steady-state sample relative to its corresponding condition centroid is calculated for the full dataset, and the time series distribution of deviations across all operating conditions is derived, as shown in
Figure 6.
From the perspective of overall distribution, the Mahalanobis distance presents significant step-like fluctuations with the switching of operating conditions, and there are notable differences in the distance baseline across different operation phases: the distance baseline under high-load conditions is generally higher than that under low-load conditions, and sharp jumps in distance values occur during condition transition periods. If performance evaluation and change-point detection are performed directly across operating conditions on the full dataset, the parameter distribution shifts caused by operating condition differences will be misinterpreted as equipment performance changes, introducing large systematic deviations into the analysis results.
3.4.2. Condition-Specific Multivariate Deviation and Analysis
Since Condition 1 is the most frequently observed cluster, it is selected as the common operating condition for the case study. It contains 23,720 samples from 19:00 on 7 July 2020 to 07:40 on 14 May 2021. This frequency-based designation does not imply that the condition is optimal or independently verified as healthy.
Table 7 summarizes its parameter ranges.
After the operating conditions of the main engine are partitioned using the CLIQUE clustering algorithm, the Mahalanobis distance of performance samples at different time points under the same operating condition is calculated, yielding a time series of Mahalanobis distance.
Taking the common operating range Condition 1 as an example, the overall performance of the marine main engine is evaluated and analyzed. The first 1000 performance samples are selected as the initial performance baseline sample space. Since these samples correspond to the period immediately following scheduled docking repair and system commissioning, they are treated as representing the healthy state under an engineering assumption. Their mean values are listed in
Table 8, spanning from 19:00 on 7 July 2020 to 7:20 on 6 September 2020. Subsequently, the Mahalanobis distance between performance samples at different time instants and the initial sample space is computed, resulting in a Mahalanobis distance time series of length 22,720. The corresponding Condition-specific multivariate deviation trajectory is shown in
Figure 7.
As shown in
Figure 7, the Mahalanobis distance gradually increases from September 2020 to late January 2021, which is consistent with the empirical gradual deviation pattern of marine main engine performance under normal operating conditions. However, from mid-January to March 2021, the Mahalanobis distance exhibits an abrupt rise and pronounced fluctuations, indicating an obvious deviation of the main engine’s overall operating state from the baseline. After March 2021, the growth of the Mahalanobis distance slows down, suggesting that the deviation rate reverts to a normal level.
It can be preliminarily inferred from the data trajectory that abnormal performance conditions may have occurred during the period from mid-January to March 2021, which could be related to potential anomalies or performance fluctuations. The subsequent recovery of the deviation trend is likely associated with anomaly rectification or maintenance adjustments. Nevertheless, these inferences are drawn purely from data-driven deviation analysis, and the specific causes require further verification with independent operation and maintenance records.
To verify this hypothesis, ablation experiments are conducted by sequentially excluding each performance parameter, recalculating the Mahalanobis distance and fitting the performance deviation trend curve. The results show that, when the parameter “2# Cylinder liner cooling water outlet temperature” is excluded, the fitted deviation curve evolves smoothly over time with no abrupt jumps or severe fluctuations (see
Figure 8). In contrast, removing any other performance parameter does not alter the deviation pattern, which remains consistent with the full-parameter trajectory in
Figure 9. Further analysis confirms that the 2# Cylinder liner cooling water outlet temperature exhibits significant fluctuations from late February to March 2021 (see
Figure 10), which matches the abrupt deviation period observed in the full-parameter curve, indicating that the main engine may have experienced an operational anomaly during this period. The ablation experiment identifies the 2# cylinder liner cooling water outlet temperature as the parameter most strongly associated with the multivariate deviation; nonetheless, the physical location and root cause of any fault cannot be determined from the available data without independent maintenance records.
3.4.3. Retrospective Change-Point Analysis
The core objective of anomaly early warning is to issue an alert signal before the anomaly fully develops. However, in real navigation scenarios, if the warning is triggered only after an obvious change in the performance deviation trend has already occurred, the optimal intervention opportunity is often missed. To address this issue, an anomaly early warning technique based on time-domain analysis is proposed in this study. The core idea is to identify the first occurrence of a sudden change (mutation) in the performance deviation curve of the marine main engine as the anomaly warning timing while simultaneously localizing the abnormal cause, thereby achieving proactive anomaly prevention. It should be noted that the present analysis is retrospective (post hoc): the proposed pipeline is applied to historical voyage data to estimate the lead time, rather than deployed as a real-time online warning system.
In this paper, the cumulative anomaly curve method and the Yamamoto-type signal-to-noise ratio (SNR) rule [
24] are employed to detect mutations in the Mahalanobis distance time series. The cumulative anomaly method calculates the cumulative anomaly value at each time point in the time series and generates a curve with time as the abscissa, which is used to intuitively visualize the trend. The rise and fall of the curve reflect the increase or decrease in the anomaly, and the approximate time of a mutation in the target time series can be identified by changes in the curve trend [
24,
25]. For a time series X, the cumulative anomaly at a given time
is expressed as:
where
is the mean of the series X.
The Yamamoto-type SNR rule evaluates whether a mutation occurs at a given point by comparing the means of two sub-sequences. It should be noted that this SNR threshold is an empirical heuristic gate rather than a
p-value significance test; no significance level α or
p-value is computed by the rule itself. The basic idea is to treat the problem of whether there is a significant difference between the means of two sub-sequences in a time series as the problem of whether there is a significant difference between the means of two populations. Suppose a series X, and the numbers of samples in the sub-sequences before and after the test point are
and
, respectively. The signal-to-noise ratio (SNR) is defined as:
where
and
are the means of the preceding and succeeding sub-sequences and
and
are their respective standard deviations.
SNR > 1.0 is treated as evidence of a candidate mutation, and SNR > 2.0 is treated as evidence of a sharp mutation. Since the test statistic relies on a sub-sequence of data collected after the test point, the score at any candidate time point requires subsequent observations to compute. For prospective online deployment, a one-sided or sequential detection rule would be required, with dedicated evaluation of detection delay and false alarm rate.
In the historical dataset, the 2# Cylinder liner cooling water outlet temperature becomes visibly more volatile after the multivariate deviation trajectory begins to shift (
Figure 11). This temporal sequence supports the retrospective mutation analysis but does not constitute validated evidence of a prospective early warning lead time.
To identify the specific mutation time using time-domain analysis, the cumulative anomaly method is first employed to determine the approximate time range of the mutation, and then, the Yamamoto test is used for precise localization. The trend of the cumulative anomaly curve can intuitively reveal the approximate time of the mutation in the performance deviation curve. From
Figure 12, it can be observed that, as time increases, the Mahalanobis distance gradually rises, and the corresponding cumulative anomaly value gradually decreases, which is consistent with the general pattern of gradual performance degradation in marine main engines. However, in late January 2021, the cumulative anomaly curve shows a clear upward trend, indicating a mutation in the performance deviation curve. Thus, it can be determined that the first mutation of the performance deviation curve roughly occurred between 23 January and 26 February 2021. The performance series corresponding to this time period is extracted, and the Yamamoto test is applied to calculate the SNR, with the resulting mutation test curves shown in
Figure 13 and
Figure 14.
As can be seen in
Figure 13 and
Figure 14, at 18:10 on 25 January 2021, the SNR first exceeds 1.0, confirming that the exact time of the first mutation in the performance deviation curve is 18:10 on 25 January 2021. Since both the cumulative anomaly calculation and the Yamamoto test rely on observations after each candidate time point, this timestamp corresponds to a retrospectively detected mutation point rather than a real-time warning decision generated using only data available up to time t. This point marks the recommended retrospective reference point for anomaly early warning.
A comparative analysis between the curves and the temperature parameter is shown in
Figure 15,
Figure 16 and
Figure 17. It can be observed that there is still a considerable interval between the first mutation time of the overall performance deviation curve and the occurrence of significant abnormal fluctuation of the temperature parameter, which further demonstrates the early detection potential of the proposed anomaly early warning method.