GAN-based ship engine anomaly detection method

Through the ship engine anomaly detection model based on GAN, the problem of blank ship engine detection algorithm and difficulty in fault location is solved, high-precision anomaly detection and fault location are achieved, and navigation safety is ensured.

CN118535952APending Publication Date: 2024-08-23XIDIAN UNIV

Patent Information

Application Number
CN202410633545.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

There are gaps in the anomaly detection algorithm of ship engines, low credibility of health status assessment, and insufficient basis for operation and maintenance support decision-making, which leads to delays in fault processing and increased severity. Structural complexity and coupling make fault location difficult.

Method used

The ship engine anomaly detection model based on GAN uses the generator and discriminator to generate new abnormal sample data through system division, abnormal type determination, operating parameter collection and data processing, and builds an abnormal classification network to improve detection accuracy and accuracy, and achieve Fault location.

Benefits of technology

It improves the precision and accuracy of ship engine abnormality detection, can quickly and accurately find the root cause of the fault, ensures navigation safety, and fills the research gap in the field of ship engine abnormality detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535952A
    Figure CN118535952A
Patent Text Reader

Abstract

The invention discloses a GAN-based ship engine anomaly detection model construction method, and discloses a GAN-based ship engine anomaly detection method on the basis of the model. The method comprises the following steps: dividing a ship engine system; determining an exception type based on the exception condition of each system; multiple operation parameters of the engine at different moments are collected, and an affiliation system is determined; performing data processing to obtain sample data at each moment; determining labels to obtain a training set; generating newly added abnormal sample data by using a generator and a discriminator based on the abnormal sample data; and training the anomaly classification network by the joint training set to obtain a ship engine anomaly detection model, which is used for obtaining an anomaly detection result of the to-be-detected sample data to represent whether ship engine anomaly exists or not and an anomaly type, and is used for positioning an abnormal system. According to the method, the blank of research in the field of ship engine anomaly detection is filled, the anomaly detection of the engine can be realized under the condition of a small number of anomaly samples, and the anomaly reason can be accurately positioned.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of ship engine anomaly detection, and specifically relates to a ship engine anomaly detection method based on GAN. Background Art

[0002] In the new wave of information technology, the rapid development of technologies such as big data, artificial intelligence and the Internet of Things is having a profound impact on the industrial system and the shipping industry. In this new information age, data has become a digital expression of material flow, information flow, and energy flow, and has become a new "currency". In the future, the shipping industry will make great use of big data technology to obtain, analyze and integrate a large amount of information and data through modern information management strategies, which will provide strong support for abnormal detection of ship engines.

[0003] However, the safety management technology of ship engines still faces many challenges, such as low credibility of health status assessment and insufficient basis for operation and maintenance support decision-making. In addition, the structure of ship engines is very complex, including a large number of subsystems and equipment, and there are strong coupling and nonlinear characteristics between these subsystems. If we only rely on the experience of the operator to make judgments, we often cannot quickly and accurately find the root cause of the fault, which may cause the best time for fault handling to be missed, thereby aggravating the severity of the fault. Therefore, when a ship engine fails, being able to accurately locate the faulty equipment and quickly analyze the cause of the failure is of vital importance to ensure navigation safety, which is why ship engine abnormality detection has become a key technology.

[0004] However, at present, the research on ship engines is relatively lacking, and there is still a gap in the algorithm for detecting anomalies in ship engines. Summary of the invention

[0005] In order to solve the above problems existing in the prior art, the present invention proposes a GAN-based ship engine anomaly detection model construction method and a GAN-based ship engine anomaly detection method based on data mining and deep learning. The technical problem to be solved by the present invention is achieved through the following technical solutions:

[0006] In a first aspect, an embodiment of the present invention provides a method for constructing a ship engine anomaly detection model based on GAN, and the method for constructing a ship engine anomaly detection model based on GAN includes:

[0007] Divide the ship engine into systems; and determine multiple abnormal types of the ship engine based on the abnormal conditions existing in each system;

[0008] A system for collecting various operating parameters of the ship engine at different times and determining the attribution of each operating parameter;

[0009] Data processing is performed on all the collected operating parameters to obtain sample data at each moment; after determining the labels of the sample data at each moment, a training set is obtained; wherein, in the training set, the label of the normal sample data is that the ship engine is normal, and the label of the abnormal sample data is the abnormal type of the ship engine;

[0010] Based on the abnormal sample data, new abnormal sample data is generated using the constructed generator and discriminator; the constructed abnormal classification network is trained using the new abnormal sample data and the collection of the training set to obtain a trained ship engine abnormality detection model; wherein the ship engine abnormality detection model is used to obtain the abnormality detection result of the sample data to be tested, and the abnormality detection result characterizes whether there is a ship engine abnormality and the type of abnormality when there is an abnormality, and is used to locate the abnormal system.

[0011] In one embodiment of the present invention, the system divided into the ship engine includes:

[0012] Combustion chamber, bearings, crankcase, sensors and control units, cylinders, valves, control systems, circuit systems.

[0013] In one embodiment of the present invention, the multiple abnormality types of the ship engine are determined based on the abnormal conditions existing in each system, including:

[0014] According to the correlation between the systems and the abnormal conditions of the systems, a ship engine abnormality classification diagram is established, wherein the ship engine abnormality classification diagram includes a plurality of primary abnormality types related to the system, and each primary abnormality type includes a plurality of secondary abnormality types related to the operating parameters;

[0015] Treat all secondary anomaly types as the anomaly type for the ship's engine.

[0016] In one embodiment of the present invention, the multiple operating parameters include:

[0017] The speed, temperature, pressure, vibration, fuel consumption and oil consumption of the ship engine.

[0018] In one embodiment of the present invention, the data processing of all collected operating parameters to obtain sample data at each moment includes:

[0019] The collected operating parameters are cleaned and normalized in turn to obtain the corresponding pre-processed data;

[0020] For each moment, all preprocessed data at that moment are fused to obtain the sample data at that moment.

[0021] In one embodiment of the present invention, the method of generating new abnormal sample data based on the abnormal sample data by using the constructed generator and discriminator includes:

[0022] For the selected abnormal sample data, random noise and labels are input into the constructed generator to obtain abnormal sample generated data;

[0023] Input the abnormal sample generation data and the abnormal sample data into the constructed discriminator, discriminate the truth or falsity of the abnormal sample generation data, and continuously optimize the generator and the discriminator using the discrimination result until the abnormal sample generation data passes the discrimination of the discriminator; wherein, when the discrimination result is true, it indicates that the discriminator passes the discrimination;

[0024] The multiple abnormal sample data that have passed the judgment are used as new abnormal sample data.

[0025] In one embodiment of the present invention, the generator includes: a first convolutional network and a decoder; the first convolutional network includes four convolutional layers, and the first convolutional network is used to extract data features of input abnormal sample data; the decoder includes a plurality of fully connected layers, and the decoder is used to obtain abnormal sample generation data similar to the abnormal sample data and corresponding labels according to the labels of the input generator and the data features output by the first convolutional network; wherein the decoder adopts Dropout regularization technology;

[0026] The discriminator includes: a fully connected layer network and a second convolutional network; the second convolutional network includes four convolutional layers.

[0027] In a second aspect, an embodiment of the present invention provides a GAN-based ship engine anomaly detection method, and the GAN-based ship engine anomaly detection method includes:

[0028] Collecting various operating parameters of the ship engine, and determining the system to which each operating parameter belongs according to the pre-divided systems of the ship engine;

[0029] Perform data processing on all collected operating parameters to obtain the sample data to be tested;

[0030] Performing digital simulation analysis on the sample data to be tested, and transmitting the simulation results to a digital twin; wherein the digital twin is used to characterize the system structure of the ship engine;

[0031] Input the sample data to be tested in the digital twin into a pre-trained ship engine anomaly detection model to obtain an anomaly detection result, wherein the anomaly detection result indicates whether the sample data to be tested has an engine anomaly and the type of anomaly when an anomaly exists; wherein the ship engine anomaly detection model is obtained according to the GAN-based ship engine anomaly detection model construction method described in the first aspect;

[0032] The abnormality detection result is fed back to the digital twin to realize abnormal system positioning when there is an abnormality in the ship engine.

[0033] In one embodiment of the present invention, the abnormality detection result is fed back to the digital twin to realize abnormal system positioning when there is an abnormality in the ship engine, including:

[0034] The abnormality detection result is fed back to the digital twin, and when there is an engine abnormality, the system displays the type of abnormality on the digital twin.

[0035] In one embodiment of the present invention, after obtaining the abnormality detection result, the method further includes:

[0036] When there is an engine abnormality, an abnormality alarm is issued.

[0037] Beneficial effects of the present invention:

[0038] The embodiment of the present invention provides a method for constructing a ship engine anomaly detection model based on GAN based on data mining and deep learning. First, the ship engine is divided into systems; based on the abnormal conditions existing in each system, multiple abnormal types of the ship engine are determined; then multiple operating parameters of the ship engine at different times are collected, and the system to which each operating parameter belongs is determined; next, data processing is performed on all the collected operating parameters to obtain sample data at each time; after determining the labels of the sample data at each time, a training set is obtained; finally, based on the abnormal sample data, new abnormal sample data is generated using the constructed generator and discriminator; and the constructed abnormal classification network is trained using the collection of the new abnormal sample data and the training set. , and obtain a trained ship engine anomaly detection model; the present invention can use a generative adversarial network to augment the abnormal sample data, solve the problem of poor training effect caused by the small number of abnormal sample data of ship engines and insufficient training samples, thereby improving the accuracy and precision of the ship engine anomaly detection model for anomaly detection, and the embodiment of the present invention divides the ship engine into systems, and determines the multiple abnormal types of the ship engine as the categories of abnormal classification according to the abnormal conditions existing in each system, which can refine the type of fault and achieve accurate classification, and can use the abnormal type obtained by classification to locate the abnormal system with a fault, can quickly and accurately find the root cause of the fault, and quickly analyze the cause of the fault, thereby ensuring navigation safety.

[0039] The GAN-based ship engine anomaly detection method provided in the embodiment of the present invention realizes engine anomaly detection in a digital simulation scenario of a ship engine based on deep learning. The method applies a pre-trained ship engine anomaly detection model to a ship, collects and analyzes the ship's operating parameter data in real time, warns of possible anomaly types and anomaly probabilities, and can locate the equipment in the engine system where the anomaly is located. When an anomaly occurs in the ship's engine, it can quickly detect and accurately locate the cause of the anomaly, assist maintenance personnel and other relevant personnel to improve work efficiency, and ensure the safety of the ship during navigation. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A schematic diagram of a process of constructing a ship engine anomaly detection model based on GAN provided by an embodiment of the present invention;

[0041] Figure 2 A ship engine abnormality classification diagram according to an embodiment of the present invention;

[0042] Figure 3 The overall framework diagram of the process of obtaining a ship engine anomaly detection model based on GAN in an embodiment of the present invention;

[0043] Figure 4is a structural diagram of a generator according to an embodiment of the present invention;

[0044] Figure 5 is a structural diagram of a discriminator according to an embodiment of the present invention;

[0045] Figure 6 A structural diagram of an abnormal classification network according to an embodiment of the present invention;

[0046] Figure 7 A schematic diagram of the overall network training process according to an embodiment of the present invention;

[0047] Figure 8 A schematic diagram of a process flow of a ship engine anomaly detection method based on GAN provided in an embodiment of the present invention;

[0048] Fig. 9 Anomaly detection flow chart of the GAN-based ship engine anomaly detection method provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The present invention is further described in detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.

[0050] In the first aspect, the embodiment of the present invention provides a method for constructing a ship engine anomaly detection model based on GAN based on data mining and deep learning, such as Figure 1 As shown, the method may include the following steps:

[0051] S1, dividing the ship engine into systems; and determining multiple abnormal types of the ship engine based on abnormal conditions existing in each system;

[0052] The embodiment of the present invention divides the ship engine into different systems according to the different structures of the ship engine and the correlation of the engine operating parameters.

[0053] In an optional implementation manner, the system divided from the ship engine may include:

[0054] Combustion chamber, bearings, crankcase, sensors and control units, cylinders, valves, control systems, circuit systems.

[0055] On this basis, the abnormal types under each system can be determined according to the abnormal conditions existing in each system. These abnormal types are related to the operating parameters and represent the abnormalities caused by the relevant operating parameters under the corresponding system not meeting the requirements. The abnormal types obtained by subdividing each system can be used as multiple abnormal types of ship engines, which can be used as the classification categories of abnormalities in subsequent abnormality detection.

[0056] In an optional implementation manner, the multiple abnormality types of the ship engine are determined based on the abnormal conditions existing in each system, including:

[0057] According to the correlation between the systems and the abnormal conditions of the systems, a ship engine abnormality classification diagram is established, wherein the ship engine abnormality classification diagram includes a plurality of primary abnormality types related to the system, and each primary abnormality type includes a plurality of secondary abnormality types related to the operating parameters;

[0058] Treat all secondary anomaly types as the anomaly type for the ship's engine.

[0059] See also Figure 2 , Figure 2 This is an optional classification diagram of ship engine abnormalities in an embodiment of the present invention. As can be seen from the diagram, multiple first-level abnormality types include: bearing and crankcase abnormalities, combustion chamber abnormalities, engine sensor and control unit abnormalities, cylinder head and valve abnormalities, control system and circuit abnormalities, other abnormality types, and special abnormalities.

[0060] Among them, since the bearing and crankcase systems are related, they are considered as the same first-level abnormality type; similarly, the control system and circuit system are related, so they are considered as the same first-level abnormality type; similarly, the cylinder and valve systems are related, so they are considered as the same first-level abnormality type. In addition to the above systems, two first-level abnormality types, other abnormality types and special abnormalities, are added for ship engines.

[0061] There are multiple secondary abnormality types under each primary abnormality type, and all these secondary abnormality types constitute multiple abnormality types of the ship engine.

[0062] S2, collecting various operating parameters of the ship engine at different times, and determining the system to which each operating parameter belongs;

[0063] At each moment, various operating parameters of the ship engine are comprehensively collected and processed to obtain a variety of operating parameters at that moment.

[0064] In an optional implementation manner, the multiple operating parameters include:

[0065] The speed, temperature, pressure, vibration, fuel consumption and oil consumption of the ship engine.

[0066] Operating parameters are key indicators for assessing the health and performance of a vessel’s engines and are not limited to the examples listed above.

[0067] In addition, determine the system to which each operating parameter belongs; here, the operating parameters obtained at each moment can be divided into various systems according to the relationship between the operating parameters and the system, and the ship engine abnormality classification diagram can be referred to to facilitate subsequent tracing. In addition, all the collected operating parameters can be put into the database, and stored separately according to the system in the database to facilitate subsequent data processing.

[0068] S3, performing data processing on all collected operating parameters to obtain sample data at each moment; determining the labels of the sample data at each moment to obtain a training set;

[0069] In an optional implementation manner, the data processing of all collected operating parameters to obtain sample data at each moment includes:

[0070] The collected operating parameters are cleaned and normalized in turn to obtain the corresponding pre-processed data;

[0071] For each moment, all preprocessed data at that moment are fused to obtain the sample data at that moment.

[0072] Among them, the collected operating parameters can be extracted from the database for data processing. Data cleaning includes screening and denoising. Screening is to eliminate data that does not meet the requirements, and denoising is to remove noise that affects valid data. Data normalization is to unify the value range of different features to the same scale, which helps to avoid certain features from having too much impact on the model training process and also helps to speed up the convergence of the model. After this part of the processing, multiple pre-processed data can be obtained at each moment;

[0073] For each moment, all preprocessed data at that moment are fused to obtain the sample data of that moment. This is to fuse multidimensional data to obtain one-dimensional sample data. The specific data fusion method uses nonlinear weighting. For any moment, the corresponding weights are used to perform nonlinear weighted summation on the preprocessed data, and stability description variables and correlation description variables are introduced to obtain a sample data.

[0074] In this way, a sample data can be obtained at each moment. In order to carry out subsequent model training, the label of the sample data needs to be determined.

[0075] According to the operating status of the ship engine at the corresponding moment when the data was collected, labels were set for the sample data, and then all the sample data carrying the labels constituted a training set.

[0076] Among them, in the training set, the sample data is divided into normal sample data and abnormal sample data; the label of the normal sample data is that the ship engine is normal, and the label of the abnormal sample data is the abnormal type of the ship engine.

[0077] S4, based on the abnormal sample data, using the constructed generator and discriminator to generate new abnormal sample data; using the new abnormal sample data and the combination of the training set to train the constructed abnormal classification network, to obtain a trained ship engine abnormality detection model;

[0078] Among them, the ship engine anomaly detection model is used to obtain anomaly detection results of the sample data to be tested. The anomaly detection results characterize whether there is an anomaly in the ship engine and the type of anomaly when an anomaly exists, and are used to locate the abnormal system.

[0079] This step first selects a deep learning model suitable for ship engine anomaly detection. Common neural networks include: Convolutional Neural Network (CNN), Recurrent Neural Network (RNN) and Back Propagation Neural Network (BPNN) models. However, in practice, the probability of ship engine anomalies is small, the sample size of abnormal data is small, and the number of samples of different anomaly types varies greatly. If one of the above models is used alone, due to the imbalance of the training set, that is, the normal sample data is far more than the abnormal sample data, this will greatly affect the accuracy and stability of the anomaly detection results.

[0080] In order to solve the problems of small number of abnormal samples and unbalanced number of samples between categories in ship engine anomaly detection, a ship engine anomaly detection scheme based on GAN (Generative Adversarial Network) was proposed.

[0081] In S4, based on the abnormal sample data, generating new abnormal sample data using the constructed generator and discriminator may include:

[0082] 1) For the selected abnormal sample data, random noise and labels are input into the constructed generator to obtain abnormal sample generated data;

[0083] 2) Inputting the abnormal sample generation data and the abnormal sample data into the constructed discriminator, discriminating the truth or falsity of the abnormal sample generation data, and continuously optimizing the generator and the discriminator using the discrimination result until the abnormal sample generation data passes the discrimination by the discriminator; wherein, when the discrimination result is true, it indicates that the discriminator passes the discrimination;

[0084] 3) Multiple abnormal sample data that have passed the judgment are used as new abnormal sample data.

[0085] See also Figure 3 To understand step S4 of the embodiment of the present invention, Figure 3 The overall framework diagram of the process of obtaining a ship engine anomaly detection model based on GAN in an embodiment of the present invention;

[0086] Specifically, the generator, the discriminator and the anomaly classification network are all pre-built, and the specific structure is introduced below. The generator and the discriminator of the embodiment of the present invention constitute an improved GAN network.

[0087] When executing step S4, random noise and labels are input into the generator. The labels here are labels of the selected abnormal sample data. The generator can generate similar abnormal sample data for the selected abnormal sample data based on its own input data and the generator principle.

[0088] The input data of the discriminator is the abnormal sample data and the abnormal sample generated data generated by the generator. Figure 3 In the example, the original samples represent all the collected operating parameters. After data processing, the training set is obtained. However, the input to the discriminator is the abnormal sample data in the training set. Figure 3 The discriminator distinguishes the authenticity of the abnormal sample data generated by the generator relative to the abnormal sample generated data, and then iteratively optimizes the generator and the discriminator according to the result of the distinction, so that the abnormal sample data generated by the generator is judged to be true by the discriminator. At this time, the optimization of the generator and the discriminator is completed, and the abnormal sample data generated by the generator can be used as the new abnormal sample data. In this way, multiple new abnormal sample data can be obtained to achieve the augmentation of the abnormal sample data in the original training set.

[0089] In the case of ship engine abnormality detection, the generator structure designed by the present invention is as follows: Figure 4 shown.

[0090] The generator includes: a first convolutional network and a decoder; the first convolutional network includes four convolutional layers, and the first convolutional network is used to extract data features of input abnormal sample data; each convolutional layer is designed to extract specific features of engine data. These convolutional layers use filters and activation functions to dig deeper into the complex and abstract features in the data layer by layer. As the layers increase, the first convolutional network can recognize more complex patterns, such as specific waveforms of engine operation. After each convolutional layer, the data features are transformed and enhanced.

[0091] The decoder includes several fully connected layers, which reconstruct and generate new data samples based on the extracted features. The decoder is used to obtain abnormal sample generation data similar to the abnormal sample data and corresponding labels based on the labels of the input generator and the data features output by the first convolutional network; the function of the decoder is to map the high-dimensional features output by the first convolutional network back to the original data space, thereby converting them into practical data samples. The decoder adopts Dropout regularization technology to prevent overfitting and ensure sample diversity;

[0092] The discriminant structure designed by the present invention is as follows Figure 5 As shown,

[0093] The discriminator includes: a fully connected layer network and a second convolutional network; the second convolutional network includes four convolutional layers.

[0094] Specifically, the sample data from the generator is input into the fully connected layer network. At this stage, the fully connected layer acts as the first part of the discriminator and further processes and integrates the features through a series of neural network layers. The Dropout layer reduces the dependence on specific samples by randomly disconnecting some neuron connections during model training, thereby enhancing the generalization ability.

[0095] Each convolutional layer of the second convolutional network is equipped with multiple filters (convolution kernels) that can capture local features of sample data in different spatial dimensions. The second convolutional network can effectively reduce the dimension of the data by accurately analyzing the complex patterns of input samples through local perception and feature extraction. This dimensionality reduction operation not only reduces the burden of model processing, but also retains key information for distinguishing true and false samples. At the same time, it reversely enhances the features of the generator sample data to ensure the effectiveness of the generated sample data.

[0096] Finally, the results of the discriminator are fed back to the generator to improve the similarity between the abnormal sample data generated by the generator and the original abnormal sample data, so as to improve the performance of the generative adversarial network. The abnormal sample data that meets the requirements (i.e., the abnormal sample data that has passed the discriminator's judgment) is used as the engine's new abnormal sample data output for subsequent training of the abnormal classification network.

[0097] Among them, the abnormal sample data is recorded as x, the generator is G, the discriminator is D, the input noise of the generator is recorded as z, and the objective function of the above-mentioned generative adversarial network is:

[0098]

[0099] Among them, the first It means that the discriminator D tries to maximize the recognition accuracy of the real data x. The real data x here refers to the original abnormal sample data; Represents the distribution of real data p data (x) is the expected value of the real data sample x obtained by sampling, x~p data (x) represents the distribution of real data p data (x) is randomly sampled to obtain a real data sample x.

[0100] Item 2 It means that the generator G tries to minimize the recognition accuracy of the discriminator D on the generated sample G(z) (i.e., the abnormal sample generated data). Denotes the noise distribution p input from the generator z The noise sample z obtained by sampling in (z) calculates the expectation, z~p z (z) represents the noise distribution p input from the generator z A noise sample z is obtained by random sampling in (z).

[0101] Generator Loss: The goal of the generator is to generate realistic samples as much as possible, so the generator's loss function uses the most commonly used negative discriminator loss (that is, the generator hopes that the generated samples will be judged as real samples by the discriminator):

[0102]

[0103] Discriminator Loss: The goal of the discriminator is to distinguish between real samples and generated samples as correctly as possible, so the discriminator loss function includes the loss of real samples and the loss of generated samples:

[0104]

[0105] Among them, m represents the batch size, z (i) represents the input noise of the generator, G(z (i) ) represents the sample generated by the generator, D(x (i) ) represents the output of the discriminator for the real sample.

[0106] For the generative adversarial network of the embodiment of the present invention, the optimizer uses Adam, and the update rule is:

[0107] Compute the first moment estimate of the gradient: m t =β1·m t-1 +(1-β1)·g t ;

[0108] Compute the second moment estimate of the gradient:

[0109] Correct the gradient based on the first-order moment estimate and the second-order moment estimate:

[0110] Update parameters:

[0111] Among them, m t and v t They represent the first-order moment estimate and the second-order moment estimate of the gradient, respectively, and g t represents the current gradient, β1 and β2 are the decay rates, and w t Represents the current parameter, η represents the learning rate, and ε represents a sufficiently small constant.

[0112] For anomaly classification networks, see Figure 3 Understand that its input is the training set and the newly added abnormal sample data and corresponding labels output by the discriminator. The above collection is used to train the abnormal classification network.

[0113] The structure of the anomaly classification network is as follows Figure 6 As shown in the figure, the abnormal classification network (referred to as the classification network) is constructed using the BP neural network. The network structure includes an input layer, a hidden layer, and an output layer. The data in the hidden layer undergoes a series of nonlinear transformations implemented by the neuron activation function for feature extraction. In a multi-layer BP neural network, each layer of neurons is fully connected, that is, the output of one neuron becomes the input of all neurons in the next layer.

[0114] For the engine anomaly detection task, in the final stage of the anomaly classification network, each output neuron corresponds to a specific anomaly type. Here, the output layer uses the Softmax activation function, which can convert the output of the neuron into a probability distribution, that is, the predicted probability of each anomaly type. Figure 3 As shown, abnormality type 1, abnormality type 2, ..., abnormality type n represent all abnormality types of the ship engine.

[0115] The anomaly classification network uses cross entropy as the loss function, expressed as:

[0116]

[0117] Where n is the number of samples; C is the number of categories, that is, the number of abnormal types; y ij is the true label of sample i belonging to category j; is the probability that sample i belongs to category j predicted by the anomaly classification network.

[0118] During the training process, the input data is passed through the network through forward propagation and a prediction result is generated at the output layer. Then, the error between the prediction result and the true label is calculated and passed back to the network to adjust the network weights and biases. This process is repeated on the data set used for training until the network performance reaches a satisfactory level.

[0119] It is understandable that after the deep learning model is trained, the validation set can be used to test and adjust the model to ensure the accuracy and robustness of the model. In the embodiment of the present invention, specifically, the designed neural network (including the generator, the discriminator, and the anomaly classification network) is trained by acquiring the recent historical data of a certain ship engine. The training process is as follows: Figure 7 As shown in the figure, it includes three parts: data processing, sample augmentation and sample classification. The collected engine data is processed and divided into a training set and a validation set. The training set is input into the generative adversarial network (including the generator and the discriminator), the abnormal sample data is augmented, and an augmented training set (a collection of training set and newly added abnormal sample data) with relatively balanced abnormal type data is obtained. The augmented training set is input into the abnormal classification network to train the abnormal classification network, and the network is verified using the validation set. According to the output verification result, it is judged whether it meets the requirements, and then it is judged whether the network parameters need to be adjusted and retrained. For example, the accuracy is obtained by comparing the predicted output with the true label. If the accuracy reaches 95%, the neural network adjustment is completed; if the accuracy does not reach 95%, the model parameters are adjusted until the accuracy reaches the standard. Finally, the trained abnormal classification network is obtained as the ship engine abnormality detection model.

[0120] Among them, the ship engine abnormality detection model can be used to perform abnormality detection on the sample data to be tested obtained from various operating parameters of the ship engine collected in real time, and to obtain the abnormality detection results of the sample data to be tested. The abnormality detection results characterize whether there is an abnormality in the ship engine and the type of abnormality when there is an abnormality. Moreover, since there is a corresponding relationship between the abnormality type and the system of the ship engine, it can be used to locate the abnormal system after the abnormality type is obtained, thereby determining the specific system location where the fault occurs.

[0121] In the GAN-based ship engine anomaly detection model construction method provided by the embodiment of the present invention based on data mining and deep learning, the ship engine is first divided into systems; based on the abnormal conditions existing in each system, multiple abnormal types of the ship engine are determined; then multiple operating parameters of the ship engine at different times are collected, and the system to which each operating parameter belongs is determined; next, data processing is performed on all the collected operating parameters to obtain sample data at each time; after determining the labels of the sample data at each time, a training set is obtained; finally, based on the abnormal sample data, new abnormal sample data is generated using the constructed generator and discriminator; the constructed abnormal classification network is trained using the collection of the new abnormal sample data and the training set, A trained ship engine anomaly detection model is obtained; the present invention can use a generative adversarial network to augment abnormal sample data, solve the problem of poor training effect caused by less abnormal sample data of ship engines and insufficient training samples, thereby improving the accuracy and precision of anomaly detection by the ship engine anomaly detection model, and the embodiment of the present invention divides the ship engine into systems, and determines multiple abnormal types of the ship engine as categories of abnormal classification according to the abnormal conditions existing in each system, which can refine the type of fault and achieve accurate classification, and can use the abnormal type obtained by classification to locate the abnormal system with a fault, can quickly and accurately find the root cause of the fault, and quickly analyze the cause of the fault, thereby ensuring navigation safety.

[0122] In the second aspect, corresponding to the method embodiment of the first aspect, the embodiment of the present invention further provides a GAN-based ship engine anomaly detection method based on data mining and deep learning, see Figure 8 and Fig. 9 , the method comprising:

[0123] S001, collecting various operating parameters of a ship engine, and determining the system to which each operating parameter belongs according to the systems pre-divided by the ship engine;

[0124] S002, performing data processing on all collected operating parameters to obtain sample data to be tested;

[0125] The ship engine anomaly detection model pre-trained in the first aspect can be deployed in the ship engine, and multiple operating parameters of the ship engine at the same time can be obtained in real time, and the collected data can be transmitted to the database for storage and data processing. S001 to S002 can refer to the relevant content of the first aspect, and will not be repeated here.

[0126] S003, performing digital simulation analysis on the sample data to be tested, and transmitting the simulation results to the digital twin; wherein the digital twin is used to characterize the system structure of the ship engine;

[0127] Digital simulation analysis is to simulate and analyze the sample data to be tested based on expert knowledge. It can be implemented using relevant simulation software, which is not limited here. The simulation result characterization includes operating parameter information, model output information and system response to simulate and predict the behavior of the engine. After the simulation results are transmitted to the digital twin, the digital twin can be used to build the system structure of the ship engine, and the digital twin can be monitored in real time, and abnormality detection can be performed based on the data of the digital twin.

[0128] S004, inputting the sample data to be tested in the digital twin into a pre-trained ship engine anomaly detection model to obtain an anomaly detection result, wherein the anomaly detection result indicates whether the sample data to be tested has an engine anomaly, and the type of anomaly when an anomaly exists;

[0129] The ship engine anomaly detection model is obtained according to the GAN-based ship engine anomaly detection model construction method described in the first aspect. Fig. 9 It is represented as “Ship engine anomaly detection model based on improved GAN”; the specific generation process is not described here.

[0130] S005, feeding back the abnormality detection result to the digital twin to realize abnormal system positioning when there is an abnormality in the ship engine.

[0131] The abnormality detection result can be fed back to the digital twin, and when there is an engine abnormality, the system to which the abnormality type belongs can be displayed on the digital twin. For example, the system with an abnormality in the ship engine system structure corresponding to the digital twin can be highlighted by color display or the like.

[0132] Furthermore, after obtaining the abnormality detection result, the ship engine abnormality detection method may further include:

[0133] When there is an engine abnormality, an abnormality alarm is issued.

[0134] For example, when the abnormal detection result indicates that the sample data to be tested has an engine abnormality, an alarm can be directly issued using sound, light, and other means, or a corresponding alarm can be issued after the abnormal system is located. For example, the abnormal system in the ship engine system structure corresponding to the digital twin appears flashing, highlighted, and accompanied by an alarm sound, etc., to provide corresponding reminders.

[0135] In an embodiment of the present invention, if it is found that the parameters of the ship engine equipment are abnormal or the probability of abnormality is high, an alarm can be immediately sounded that the engine system to which it belongs has an abnormality, and the system can automatically make a protection decision, such as first trying to see if the parameters can be restored to normal through system control, and sending the abnormal information to maintenance personnel and other relevant personnel, and providing them with abnormal detection results to assist in fault location and repair.

[0136] The embodiment of the present invention is based on data mining and deep learning, and proposes a GAN-based ship engine anomaly detection method, which realizes engine anomaly detection in a digital simulation scenario of a ship engine based on deep learning. The method applies a pre-trained ship engine anomaly detection model to a ship, collects and analyzes the ship's operating parameter data in real time, warns of possible anomalies and anomaly probabilities, and can locate the equipment in the engine system where the anomaly is located. When an abnormality occurs in the ship's engine, it can quickly detect and accurately locate the cause of the anomaly, assist maintenance personnel and other relevant personnel to improve work efficiency, and ensure the safety of the ship during navigation.

[0137] Aiming at the problem of ship engine anomaly detection, the present invention covers multiple engines currently and even in the future, and proposes a deep learning anomaly detection algorithm suitable for a small amount of engine abnormal sample data, filling the gap in the research field of ship engine anomaly detection. Aiming at the problem of few abnormal samples, specific processing is performed. Compared with related anomaly detection algorithms in other fields, the anomaly detection involved in the present invention can also distinguish the type of anomaly when there are few abnormal sample data sets, and has broad application prospects.

[0138] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for constructing a ship engine anomaly detection model based on GAN, characterized in that: include: Divide the ship engine into systems; and determine multiple abnormal types of the ship engine based on the abnormal conditions existing in each system; A system for collecting various operating parameters of the ship engine at different times and determining the attribution of each operating parameter; Data processing is performed on all the collected operating parameters to obtain sample data at each moment; after determining the labels of the sample data at each moment, a training set is obtained; wherein, in the training set, the label of the normal sample data is that the ship engine is normal, and the label of the abnormal sample data is the abnormal type of the ship engine; Based on the abnormal sample data, new abnormal sample data is generated using the constructed generator and discriminator; the constructed abnormal classification network is trained using the new abnormal sample data and the collection of the training set to obtain a trained ship engine abnormality detection model; wherein the ship engine abnormality detection model is used to obtain the abnormality detection result of the sample data to be tested, and the abnormality detection result characterizes whether there is a ship engine abnormality and the type of abnormality when there is an abnormality, and is used to locate the abnormal system.

2. The method for constructing a ship engine anomaly detection model based on GAN according to claim 1, characterized in that: The systems divided into ship engines include: Combustion chamber, bearings, crankcase, sensors and control units, cylinders, valves, control systems, circuit systems.

3. The method for constructing a ship engine anomaly detection model based on GAN according to claim 1, characterized in that: The multiple abnormality types of the ship engine are determined based on the abnormal conditions existing in each system, including: According to the correlation between the systems and the abnormal conditions of the systems, a ship engine abnormality classification diagram is established, wherein the ship engine abnormality classification diagram includes a plurality of primary abnormality types related to the system, and each primary abnormality type includes a plurality of secondary abnormality types related to the operating parameters; Treat all secondary anomaly types as the anomaly type for the ship's engine.

4. The method for constructing a ship engine anomaly detection model based on GAN according to claim 1, characterized in that: The various operating parameters include: The speed, temperature, pressure, vibration, fuel consumption and oil consumption of the ship engine.

5. The method for constructing a ship engine anomaly detection model based on GAN according to claim 1, characterized in that: The data processing of all collected operating parameters to obtain sample data at each moment includes: The collected operating parameters are cleaned and normalized in turn to obtain the corresponding pre-processed data; For each moment, all preprocessed data at that moment are fused to obtain the sample data at that moment.

6. The method for constructing a ship engine anomaly detection model based on GAN according to claim 1, characterized in that: The method of generating new abnormal sample data based on the abnormal sample data by using the constructed generator and discriminator includes: For the selected abnormal sample data, random noise and labels are input into the constructed generator to obtain abnormal sample generated data; Input the abnormal sample generation data and the abnormal sample data into the constructed discriminator, discriminate the truth or falsity of the abnormal sample generation data, and continuously optimize the generator and the discriminator using the discrimination result until the abnormal sample generation data passes the discrimination of the discriminator; wherein, when the discrimination result is true, it indicates that the discriminator passes the discrimination; The multiple abnormal sample data that have passed the judgment are used as new abnormal sample data.

7. The method for constructing a ship engine anomaly detection model based on GAN according to claim 6, characterized in that: The generator includes: a first convolutional network and a decoder; the first convolutional network includes four convolutional layers, and the first convolutional network is used to extract data features of input abnormal sample data; the decoder includes a plurality of fully connected layers, and the decoder is used to obtain abnormal sample generation data similar to the abnormal sample data and corresponding labels according to the labels of the input generator and the data features output by the first convolutional network; wherein the decoder adopts Dropout regularization technology; The discriminator includes: a fully connected layer network and a second convolutional network; the second convolutional network includes four convolutional layers.

8. A GAN-based ship engine anomaly detection method, characterized in that: include: Collecting various operating parameters of the ship engine, and determining the system to which each operating parameter belongs according to the pre-divided systems of the ship engine; Perform data processing on all collected operating parameters to obtain the sample data to be tested; Performing digital simulation analysis on the sample data to be tested, and transmitting the simulation results to a digital twin; wherein the digital twin is used to characterize the system structure of the ship engine; The sample data to be tested in the digital twin is input into a pre-trained ship engine anomaly detection model to obtain an anomaly detection result, wherein the anomaly detection result indicates whether the sample data to be tested has an engine anomaly, and the type of anomaly when an anomaly exists; wherein the ship engine anomaly detection model is obtained according to the GAN-based ship engine anomaly detection model construction method according to any one of claims 1 to 7; The abnormality detection result is fed back to the digital twin to realize abnormal system positioning when there is an abnormality in the ship engine.

9. The GAN-based ship engine anomaly detection method according to claim 8, characterized in that: Feeding back the abnormality detection result to the digital twin to realize abnormal system positioning when there is an abnormality in the ship engine, including: The abnormality detection result is fed back to the digital twin, and when there is an engine abnormality, the system displays the type of abnormality on the digital twin.

10. The GAN-based ship engine anomaly detection method according to claim 8 or 9, characterized in that: After obtaining the abnormality detection result, the method further includes: When there is an engine abnormality, an abnormality alarm is issued.

Citation Information

Patent Citations

  • Fault diagnosis method of loader engine using big data

    CN110749447A

  • Marine engine room equipment state monitoring and fault diagnosis method, and system and medium

    CN111190349A

  • Fault classification method based on DCGAN-CNN

    CN115358274A

  • Unmanned aerial vehicle sensor class unbalanced data anomaly detection method and detection system

    CN116563690A

Cited By

  • Few-sample marine engine anomaly detection method based on enhanced element transfer learning

    CN119337217A

  • Ship vibration anomaly detection method and system

    CN119807868A

  • Automatic detection ship maintenance collector and detection method

    CN119872812A

  • Electrical automation electrical cabinet intelligent control method and system based on Internet of Things

    CN121115648A