Cruise ship HVAC fault diagnosis method based on confidence GA-SVM
By using the confidence GA-SVM method in HVAC fault diagnosis, optimizing the SVM model parameters and introducing confidence calculation, the problem of insufficient HVAC fault diagnosis accuracy in the existing technology is solved, and the accuracy and reliability of fault location are significantly improved.
Patent Information
- Application Number
- CN202210555422.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-20
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-05-20
AI Technical Summary
Existing data-driven HVAC fault diagnosis methods have shortcomings in accuracy, reliability and safety, making it difficult to effectively locate faults in the HVAC system of large cruise ships.
The confidence-based GA-SVM method is used to optimize the penalty coefficient and kernel function coefficient of SVM through the GA algorithm, and a confidence calculation model is introduced to build an optimal HVAC fault diagnosis model to improve the diagnosis accuracy.
It improves the accuracy and reliability of HVAC fault diagnosis, further enhances the credibility of diagnostic results through the confidence screening mechanism, and achieves higher fault location accuracy.
Smart Images

Figure CN114970710B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of HVAC fault diagnosis, and in particular to a cruise ship HVAC fault diagnosis method based on confidence GA-SVM. Background Art
[0002] As an important part of the cruise ship, the HVAC (heating, ventilation and air conditioning system) plays a role in controlling the comfort of the environment, so the safety and reliability of the system are particularly important. However, due to the large system size and complex structure of the HVAC of large cruise ships, it is often difficult to locate the fault once a fault occurs, so it is necessary to use fault diagnosis methods to perform real-time fault diagnosis on the HVAC system.
[0003] Fault detection and diagnosis of HVAC can not only improve the safety and reliability of the system, but also reduce the energy consumption of the HVAC system by 10%-35%. In addition, combining fault diagnosis technology with the cruise ship's SCADA system can also facilitate system maintenance and improve the intelligence of system management.
[0004] In the prior art, there are many methods for HVAC fault diagnosis, such as model-based fault diagnosis methods, rule-based knowledge fault diagnosis methods, and data-driven fault diagnosis methods. In recent years, due to the large-scale, systematized, and nonlinear characteristics of HVAC, it has become increasingly difficult to establish an accurate HVAC model, and its applicability is not strong. However, the rule-based knowledge fault diagnosis method is too dependent on the experience and knowledge of experts and lacks a scientific theoretical basis, which limits its application. Different from the first two methods, with the rapid development of big data technology, computer technology, and artificial intelligence technology, data-driven fault diagnosis technology can learn fault diagnosis models from historical data, effectively overcoming the shortcomings of the first two methods and becoming a research hotspot in the field of fault diagnosis in recent years.
[0005] Many researchers have used machine learning algorithms such as BP neural network, LSTM, deep learning, and SVM for HVAC fault diagnosis, and have achieved good results, with a fault diagnosis accuracy of about 90%. However, as one of the most important indicators for measuring diagnostic results, how to further improve the accuracy of data-driven diagnostic methods has always been the main research direction and task of related scientific research. Summary of the invention
[0006] The purpose of the present invention is to address the deficiencies of the above-mentioned technology and provide a cruise ship HVAC fault diagnosis method based on confidence GA-SVM. The GA algorithm is used to optimize the penalty coefficient and kernel function coefficient of SVM, and then a confidence mechanism is introduced to solve the problem that the existing data-driven HVAC fault diagnosis method has insufficient accuracy, reliability and safety.
[0007] To achieve the above object, the cruise ship HVAC fault diagnosis method based on confidence GA-SVM involved in the present invention comprises the following steps:
[0008] A) Data collection: collecting original sample data, which includes fault samples and normal samples;
[0009] B) Data preprocessing: normalizing the collected sample data and performing feature selection;
[0010] C) Design GA-SVM algorithm: Encode the penalty coefficient c and kernel function coefficient γ of the SVM fault diagnosis model as the chromosome of GA, and use the accuracy ac, false alarm rate wb, and missed alarm rate lb of the SVM fault diagnosis model to construct a multi-objective optimization function as the fitness function of GA;
[0011] D) Fault diagnosis model training: The GA-SVM algorithm automatically finds the optimal penalty coefficient c0 and the optimal kernel function coefficient γ0 that meet the multi-objective optimization function, substitutes the optimal penalty coefficient c0 and the optimal kernel function coefficient γ0 into the GA-SVM algorithm, and obtains the optimal SVM fault diagnosis model;
[0012] E) introducing a confidence calculation model: introducing the confidence calculation model of the prediction result of the SVM fault diagnosis model into the optimal SVM fault diagnosis model to obtain an optimal confidence SVM fault diagnosis model;
[0013] F) Obtaining the diagnosis result: Then, the collected real-time HVAC sample data is input into the optimal confidence SVM fault diagnosis model after data preprocessing to obtain the diagnosis result and the confidence of the diagnosis result.
[0014] Preferably, in step A), the sample data is recorded as X i , i is the serial number of the sample data, X i =(x1,x2,...,x n ,y i ), x1,x2,...,x n is the characteristic element selected for fault diagnosis based on the HVAC operation principle, y i For sample data X i The fault category label of the
[0015] Preferably, in step B), the collected sample data is normalized to the interval [0, 1], and the feature selection includes forward sequence method, backward sequence method, optimization algorithm, Pearson correlation coefficient method, minimum redundancy maximum correlation algorithm, and the sample data after feature selection is X i =(x1,x2,...,x d ,yi ), d < n, and the sample data is reduced from n dimensions to d dimensions.
[0016] Preferably, the Pearson correlation coefficient method is used for feature selection to calculate the Pearson correlation coefficient between any two feature elements If the absolute value of the Pearson correlation coefficient is greater than or equal to the set threshold T s , then any one of the feature elements is removed, and the Pearson correlation coefficient Its mathematical expression is as follows:
[0017]
[0018] where x a and x b represent any two feature elements, E(·) represents the expectation, and the sample data after feature selection becomes X i =(x1, x2,..., x d , y i ), d < n, and the sample data is reduced from n dimensions to d dimensions.
[0019] Preferably, in step C), the SVM fault diagnosis model in the GA - SVM algorithm is:
[0020]
[0021] where sign(·) is the sign function, λ i is the Lagrange coefficient, k(X i , X) is the kernel function, b is the bias, and the fitness function of GA is:
[0022] h(c, γ) = ζ * ac + μ * wb + ε * lb s.t. ξ + μ + ε = 1
[0023] where ζ is the weight coefficient of the accuracy rate ac, μ is the weight coefficient of the false alarm rate wb, ε is the weight coefficient of the miss - alarm rate lb, and the kernel function k(X i , X) is the Gaussian radial basis function, k(X i , X) = exp(-γ‖X i -X‖ 2 ), and the kernel function coefficient σ is the kernel function width.
[0024] Preferably, in the step D), the GA population is updated every generation from the initialization, a part of the sample data is randomly selected as the training sample set, and another part of the sample data is input into the SVM fault diagnosis model as the test set, and the test result is returned to the fitness function of the GA for the population evolution operation. The test result includes the accuracy, the false alarm rate and the missed alarm rate. After that, the GA passes the optimal individual of each generation, that is, the optimal penalty coefficient and the kernel function coefficient, to the SVM fault diagnosis model. After multiple iterations, the optimal penalty coefficient c0 and the optimal kernel function coefficient γ0 of the SVM fault diagnosis model are obtained, and the optimal penalty coefficient c0 and the optimal kernel function coefficient γ0 are substituted into the GA-SVM algorithm to obtain the optimal SVM fault diagnosis model:
[0025]
[0026] Preferably, in step E), the confidence calculation model of the prediction result of the SVM fault diagnosis model is as follows:
[0027]
[0028]
[0029] Among them, c +1 where c represents the positive class, -1 represents the negative class, is the accuracy of the sample point to the classification hyperplane, δ is the sensitivity of the confidence to the distance change, the smaller δ is, the greater the sensitivity is, and vice versa.
[0030] Preferably, in step F), after obtaining the diagnosis result and the confidence of the diagnosis result, the confidence of the diagnosis result is used in a confidence screening mechanism to determine whether to accept the current diagnosis result, and if the current diagnosis result is rejected, a secondary diagnosis is performed.
[0031] Preferably, in the confidence screening mechanism, a confidence threshold T is set P , when the confidence of the diagnosis result is greater than the confidence threshold T P When , the diagnosis result is accepted, otherwise it is rejected, and the sample is substituted into multiple K-means classifiers, and different initial cluster centers are selected for secondary diagnosis, where K = k + 1, K is the total number of classification categories, k is the number of fault categories, and + 1 means adding a normal sample category.
[0032] Preferably, the multiple secondary diagnosis results obtained are voted to obtain the final diagnosis result, that is, the final diagnosis result is the diagnosis result that appears most times in the secondary diagnosis results. If there are multiple diagnosis results that appear most times, the above-mentioned rejected samples are reclassified using multiple K-means classifiers until there is only one result that appears most times in the secondary results.
[0033] Compared with the prior art, the present invention has the following advantages:
[0034] 1. The GA algorithm is used to optimize the penalty coefficient and kernel function coefficient of SVM to obtain the optimal model parameters of SVM, and then the optimal HVAC fault diagnosis model is obtained to improve the accuracy of fault diagnosis;
[0035] 2. Introduce the improved SVM confidence mechanism into the fault diagnosis model, so that the diagnosis result is accompanied by the confidence of the result, and then use the confidence in the confidence screening mechanism to further improve the diagnostic accuracy of SVM. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a flow chart of the cruise ship HVAC fault diagnosis method based on confidence GA-SVM of the present invention;
[0037] Figure 2 A training diagram of the fault diagnosis model training in the present invention;
[0038] Figure 3 Schematic diagram of the confidence screening mechanism in the present invention. DETAILED DESCRIPTION
[0039] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0040] like Figure 1 As shown, a cruise ship HVAC fault diagnosis method based on confidence GA-SVM includes the following steps:
[0041] A) Data collection: Collect the original sample data, which includes fault samples and normal samples. The fault samples include sample data of common faults such as fan fault, sensor fault, controller fault, and air valve stuck. The sample data is recorded as X i , i is the serial number of the sample data, X i =(x1,x2,...,x n ,y i ), x1,x2,...,x n are characteristic elements selected for fault diagnosis based on the HVAC operating principle, namely, system parameters, including supply air temperature, return air temperature, mixed gas temperature, supply air humidity, return air humidity, mixed gas humidity, cooling coil load, heating coil load, etc. i For sample data X i Fault category label of
[0042] B) Data preprocessing: Normalize the collected sample data to the interval [0, 1], and use the Pearson correlation coefficient method for feature selection to calculate the Pearson correlation coefficient between any two feature elements. If the absolute value of the Pearson correlation coefficient is greater than or equal to the set threshold T s , then eliminate any one of the feature elements, and the Pearson correlation coefficient Its mathematical expression is as follows:
[0043]
[0044] Among them, x a and x b represent any two feature elements, E(·) represents the expectation, and the sample data after feature selection becomes X i =(x1, x2,..., x d , y i ), d < n, the sample data is reduced from n dimensions to d dimensions, which can optimize the training model and improve the accuracy while avoiding the curse of dimensionality;
[0045] C) Design the GA-SVM algorithm: Encode the penalty coefficient c and the kernel function coefficient γ of the SVM fault diagnosis model as the chromosomes of the GA, and use the accuracy ac, false alarm rate wb, and missed alarm rate lb of the SVM fault diagnosis model to construct a multi-objective optimization function as the fitness function of the GA. The SVM fault diagnosis model in the GA-SVM algorithm is:
[0046]
[0047] Among them, sign(·) is the sign function, λ i is the Lagrange coefficient, k(X i , X) is the kernel function, b is the bias, and the fitness function of the GA is:
[0048] h(c, γ) = ζ * ac + μ * wb + ε * lb s.t. ξ + μ + ε = 1
[0049] Among them, ζ is the weight coefficient of the accuracy ac, μ is the weight coefficient of the false alarm rate wb, ε is the weight coefficient of the missed alarm rate lb, and the kernel function k(X i , X) is the Gaussian radial basis function, k(X i , X) = exp(-γ‖X i -X‖ 2 ), and the kernel function coefficient σ is the kernel function width;
[0050] D) Fault diagnosis model training: The GA-SVM algorithm automatically finds the optimal penalty coefficient c0 and the optimal kernel function coefficient γ0 that meet the multi-objective optimization function, such as Figure 2 As shown in the figure, the GA population is updated every generation from the initialization, and a part of the sample data is randomly selected as the training sample set, and the other part of the sample data is input into the SVM fault diagnosis model as the test set. The test results are returned to the fitness function of the GA for population evolution operation. The test results include accuracy, false alarm rate and missed alarm rate. After that, the GA passes the optimal individual of each generation, that is, the optimal penalty coefficient and kernel function coefficient, to the SVM fault diagnosis model. After multiple iterations, the optimal penalty coefficient c0 and the optimal kernel function coefficient γ0 of the SVM fault diagnosis model are obtained. The optimal penalty coefficient c0 and the optimal kernel function coefficient γ0 are substituted into the GA-SVM algorithm to obtain the optimal SVM fault diagnosis model:
[0051]
[0052] E) Introducing a confidence calculation model: The confidence calculation model of the prediction results of the SVM fault diagnosis model is introduced into the optimal SVM fault diagnosis model to obtain the optimal confidence SVM fault diagnosis model. The confidence calculation model of the prediction results of the SVM fault diagnosis model is as follows:
[0053]
[0054]
[0055] Among them, c +1 where c represents the positive class, -1 represents the negative class, is the accuracy of the sample point to the classification hyperplane, δ is the sensitivity of the confidence to the distance change, the smaller δ is, the greater the sensitivity is, and vice versa;
[0056] F) Obtaining diagnostic results: After data preprocessing, the collected real-time HVAC sample data is input into the optimal confidence SVM fault diagnosis model to obtain the diagnostic results and the confidence of the diagnostic results, such as: "System status: VAV valve stuck, confidence: 80%; System status: normal, confidence: 95%";
[0057] In addition, in this embodiment, Figure 3 As shown, the confidence of the diagnosis result is used in the confidence screening mechanism to determine whether to accept the current diagnosis result. If the current diagnosis result is rejected, a secondary diagnosis is performed. In the confidence screening mechanism, a confidence threshold T is set. P , when the confidence of the diagnosis result is greater than the confidence threshold T PWhen , the diagnosis result is accepted, otherwise the diagnosis result is rejected, and the sample is substituted into multiple K-means classifiers, and different initial clustering centers are selected for secondary diagnosis, where K=k+1, K is the total number of classification categories, k is the number of fault categories, +1 means adding a normal sample category, and the multiple secondary diagnosis results are voted to obtain the final diagnosis result, that is, the final diagnosis result is the diagnosis result that appears most times in the secondary diagnosis results. If there are multiple diagnosis results that appear most times, the above rejected samples are reclassified using multiple K-means classifiers until there is only one result that appears most times in the secondary results.
[0058] The cruise ship HVAC fault diagnosis method based on the confidence GA-SVM of the present invention uses the GA algorithm to optimize the penalty coefficient and the kernel function coefficient of the SVM, thereby obtaining the optimal model parameters of the SVM fault diagnosis model, and then obtaining the optimal HVAC fault diagnosis model to improve the accuracy of fault diagnosis; and introduces the improved SVM confidence mechanism into the fault diagnosis model, so that the diagnosis result is accompanied by the confidence of the result, and then the confidence is used in the confidence screening mechanism to further improve the diagnosis accuracy of the SVM fault diagnosis model.
Claims
1. A cruise ship HVAC fault diagnosis method based on confidence GA-SVM, characterized by: The steps include: A) Data collection: Collect original sample data, which includes fault samples and normal samples. Fault samples include sample data of fan fault, sensor fault, controller fault, and air valve stuck fault. Sample data is recorded as X i , i is the serial number of the sample data, X i =(x1, x2, ..., x n ,y i ), x1, x2, ..., x n are characteristic elements selected for fault diagnosis based on the HVAC operating principle, namely, system parameters, including supply air temperature, return air temperature, mixed gas temperature, supply air humidity, return air humidity, mixed gas humidity, cooling coil load, and heating coil load. i For sample data X i Fault category label of B) Data preprocessing: normalizing the collected sample data and performing feature selection; C) Design GA-SVM algorithm: Encode the penalty coefficient c and kernel function coefficient γ of the SVM fault diagnosis model as the chromosome of GA, and use the accuracy ac, false alarm rate wb, and missed alarm rate lb of the SVM fault diagnosis model to construct a multi-objective optimization function as the fitness function of GA. The SVM fault diagnosis model in the GA-SVM algorithm is: where sign(·) is the sign function, λ i is the Lagrange coefficient, k(X i , X) is the kernel function, b is the bias, and the sample data X i = (x1, x2,..., x d , y i ) after feature selection, with d < n, and the sample data is reduced from n dimensions to d dimensions. The fitness function of GA is as follows: h(c,γ)=ζ*ac+μ*wb+ε*lb stξ+μ+ε=1 Among them, ζ is the weight coefficient of accuracy ac, μ is the weight coefficient of false alarm rate wb, ε is the weight coefficient of missed alarm rate lb, and kernel function k(X i , X) is the Gaussian radial basis function, k(X i , X) = exp(-γ||X i -X|| 2 ), kernel function coefficient σ is the kernel function width; D) Fault diagnosis model training: The GA-SVM algorithm automatically searches for the optimal penalty coefficient c0 and the optimal kernel function coefficient γ0 that meet the multi-objective optimization function, and substitutes the optimal penalty coefficient c0 and the optimal kernel function coefficient γ0 into the GA-SVM algorithm to obtain the optimal SVM fault diagnosis model. The GA population is updated every generation from initialization, and a part of the sample data is randomly selected as the training sample set, and the other part of the sample data is input into the SVM fault diagnosis model as the test set. The test results are returned to the fitness function of the GA for population evolution operation. The test results include accuracy, false alarm rate and missed alarm rate. After that, the GA passes the optimal individual of each generation, that is, the optimal penalty coefficient and the kernel function coefficient, to the SVM fault diagnosis model. After multiple iterations, the optimal penalty coefficient c0 and the optimal kernel function coefficient γ0 of the SVM fault diagnosis model are obtained, and the optimal penalty coefficient c0 and the optimal kernel function coefficient γ0 are substituted into the GA-SVM algorithm to obtain the optimal SVM fault diagnosis model: E) introducing a confidence calculation model: introducing the confidence calculation model of the prediction result of the SVM fault diagnosis model into the optimal SVM fault diagnosis model to obtain an optimal confidence SVM fault diagnosis model; F) Obtaining the diagnosis result: Then, the collected real-time HVAC sample data is input into the optimal confidence SVM fault diagnosis model after data preprocessing to obtain the diagnosis result and the confidence of the diagnosis result.
2. The cruise ship HVAC fault diagnosis method based on confidence GA-SVM as claimed in claim 1, characterized in that: In the step B), the collected sample data is normalized to the interval [0, 1]. The feature selection includes the forward sequential method, the backward sequential method, the optimization algorithm, the Pearson correlation coefficient method, and the minimum redundancy maximum relevance algorithm. The sample data after feature selection is X i =(x1, x2,..., x d , y i ), d < n. The sample data is reduced from n dimensions to d dimensions.
3. The cruise ship HVAC fault diagnosis method based on confidence GA-SVM as claimed in claim 2, characterized in that: The Pearson correlation coefficient method is used for feature selection to calculate the Pearson correlation coefficient between any two feature elements. If the absolute value of the Pearson correlation coefficient is greater than or equal to the set threshold T s , then remove any characteristic element, the Pearson correlation coefficient Its mathematical expression is as follows: where x a and x b represent any two characteristic elements, E(·) represents the expectation, and the sample data after feature selection becomes X i =(x1, x2,..., x d , y i ), d < n, and the sample data is reduced from n dimensions to d dimensions.
4. The cruise ship HVAC fault diagnosis method based on confidence GA-SVM as claimed in claim 1, characterized in that: In the step E), the confidence calculation model of the prediction result of the SVM fault diagnosis model is as follows: Among them, c +1 where c represents the positive class, -1 represents the negative class, is the accuracy of the sample point to the classification hyperplane, δ is the sensitivity of the confidence to the distance change, the smaller δ is, the greater the sensitivity is, and vice versa.
5. The cruise ship HVAC fault diagnosis method based on confidence GA-SVM as claimed in claim 4, characterized in that: In the step F), after obtaining the diagnosis result and the confidence of the diagnosis result, the confidence of the diagnosis result is used in the confidence screening mechanism to determine whether to accept the current diagnosis result. If the current diagnosis result is rejected, a secondary diagnosis is performed.
6. The cruise ship HVAC fault diagnosis method based on confidence GA-SVM as claimed in claim 5, characterized in that: In the confidence screening mechanism, a confidence threshold T is set P , when the confidence of the diagnosis result is greater than the confidence threshold T P When , the diagnosis result is accepted, otherwise it is rejected, and the sample is substituted into multiple K-means classifiers, and different initial cluster centers are selected for secondary diagnosis, where K = k + 1, K is the total number of classification categories, k is the number of fault categories, and + 1 means adding a normal sample category.
7. The cruise ship HVAC fault diagnosis method based on confidence GA-SVM as claimed in claim 6, characterized in that: The multiple secondary diagnosis results obtained are voted to obtain the final diagnosis result, that is, the final diagnosis result is the diagnosis result that appears most times in the secondary diagnosis results. If there are multiple diagnosis results that appear most times, the above-mentioned rejected samples are reclassified using multiple K-means classifiers until there is only one result that appears most times in the secondary results.
Citation Information
Patent Citations
Transformer fault diagnosis method based on gauss transform and global optimization SVM (support vector machine)
CN109270390A
A rolling bearing fault diagnosis method based on IAGA-SVM
CN109902339A
