Fault diagnosis method, device and system for AC port of household energy router

By extracting and reducing the fault characteristics of the three-phase current signal and training the classification model, the real-time problem of fault diagnosis of household energy routers in the existing technology is solved, the fault location and type are quickly identified, and the diagnosis efficiency is improved.

CN118549846APending Publication Date: 2024-08-27STATE GRID JIANGSU ELECTRIC POWER CO LTD RESEARCH INSTITUTE +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410669752.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing fault diagnosis methods for household energy routers cannot quickly and timely diagnose the location and type of faults during operation. In particular, open circuit faults are difficult to detect in time, which may lead to secondary failures or irreparable damage to the system.

Method used

By extracting the three-phase current signals of household energy routers in different working states, extract fault features and perform feature dimensionality reduction, generate original data sets, train fault classification models, and obtain three-phase current signals in real time to diagnose fault locations and types.

Benefits of technology

Real-time diagnosis function is realized, which can timely and effectively identify the fault location and cause of the fault, reduce the calculation cost and improve the fault diagnosis efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118549846A
    Figure CN118549846A
Patent Text Reader

Abstract

The invention discloses a fault diagnosis method, device and system for an AC port of a household energy router, and the method comprises the steps: extracting N fault features based on generated three-phase current signals of the household energy router in different working states; the extracted fault features are subjected to feature dimension reduction, an original data set is generated, the original data set comprises M fault features, and M is smaller than N; training a fault classification model by using the original data set and the corresponding different working states; and based on the three-phase current signal of the household energy router obtained in real time, extracting M fault features, and inputting the M fault features to the trained fault classification model to obtain a fault classification result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of household energy routers, and in particular relates to a method, device and system for diagnosing faults of an AC port of a household energy router. Background Art

[0002] A household energy router is a power conversion system that connects a common DC bus voltage to other ports through various converters. Its common DC bus is connected to external energy storage power supplies, load equipment, residential mains power and other distributed power supplies. The power balance, information sharing and port coordination operation of these external devices require a stable common DC bus voltage to achieve. The energy router can not only provide plug-and-play AC and DC interfaces for distributed power sources, but also can independently achieve isolation or grid connection with the distribution network according to load and fault requirements, fully ensuring the energy balance of the distribution network. At the same time, the energy router can achieve efficient transmission and precise routing of energy through the mutual constraints of information flow and energy flow. It mainly has the characteristics of renewability, distribution, interconnectivity, openness, etc., which can maximize the use of renewable energy, save energy and reduce costs, and improve the safety of the entire energy system.

[0003] Household energy routers are energy hubs and core equipment for realizing flexible AC and DC power supply. The quality of their performance directly determines the stability and reliability of power supply on the user side. In its AC port, the two most common types of failures of switch devices are open circuit failures and short circuit failures. When a short circuit failure occurs in a switch device, a large amount of heat is generated, causing the device to burn out and eventually convert into an open circuit failure. When an open circuit failure occurs in a switch device, it will remain in the off state. In the early stage of the failure, the open circuit failure is less destructive and difficult to detect. However, if not discovered in time, the open circuit failure may cause a secondary failure in the system, or even cause irreparable damage to the system. The existing household energy router fault diagnosis method is generally offline diagnosis, which cannot quickly and timely diagnose the location and type of the fault during the operation of the household energy router. Summary of the invention

[0004] In view of the above problems, the present invention proposes a method, device and system for diagnosing AC port faults of household energy routers, which can accurately locate the fault location by extracting fault features in the topology of each AC port of the household energy router, identifying and classifying the fault features.

[0005] In order to achieve the above technical objectives and the above technical effects, the present invention is implemented through the following technical solutions:

[0006] In a first aspect, the present invention provides a method for diagnosing a fault of an AC port of a household energy router, comprising:

[0007] Based on the generated three-phase current signals of household energy routers under different working conditions, N kinds of fault features are extracted;

[0008] Performing feature dimensionality reduction on the extracted fault features to generate an original data set, wherein the original data set includes M types of fault features, where M<N;

[0009] Using the original data set and the corresponding different working states, training a fault classification model;

[0010] Based on the three-phase current signal of the household energy router obtained in real time, M types of fault features are extracted and input into the trained fault classification model to obtain the fault classification result.

[0011] In combination with the first aspect, optionally, the different working states include a normal state, a power tube open circuit fault state, and a power tube short circuit fault state;

[0012] When the household energy router is in a normal state, the waveform of the current signal it outputs is a standard sine wave, and the total harmonic distortion is less than the preset percentage;

[0013] The open circuit fault state refers to the open circuit fault state of a single tube in a three-phase bridge arm;

[0014] The short-circuit fault state refers to a single-tube short-circuit fault state in a three-phase bridge arm.

[0015] In combination with the first aspect, optionally, the method for extracting fault features includes:

[0016] For the three-phase current signal, the fault characteristics are extracted by using statistical method.

[0017] In combination with the first aspect, optionally, the three-phase current signal of the household energy router under different working states is generated to extract N types of fault features, including:

[0018] Based on the selected current waveform segment, the maximum instantaneous value of the current signal is calculated. The specific calculation formula is:

[0019] F1 = max(x(i));

[0020] Based on the selected current waveform segment, the minimum instantaneous value of the current signal is calculated. The specific calculation formula is:

[0021] F2 = min(x(i));

[0022] Based on the selected current waveform segment, the peak value of the current signal is calculated. The specific calculation formula is:

[0023] F3 = max(|x(i)|);

[0024] Based on the selected current waveform segment, the peak-to-peak value of the current signal is calculated. The specific calculation formula is:

[0025] F4 = max(x(i))-min(x(i));

[0026] Based on the selected current waveform segment, the average value of the current signal is calculated. The specific calculation formula is:

[0027]

[0028] Based on the selected current waveform segment, the absolute average value of the current signal is calculated. The specific calculation formula is:

[0029]

[0030] Based on the selected current waveform segment, the root mean square value of the current signal is calculated. The specific calculation formula is:

[0031]

[0032] Based on the selected current waveform segment, the variance of the current signal is calculated. The specific calculation formula is:

[0033]

[0034] Based on the selected current waveform segment, the standard deviation of the current signal is calculated. The specific calculation formula is:

[0035]

[0036] Based on the selected current waveform segment, the effective value of the current signal is calculated. The specific calculation formula is:

[0037]

[0038] Based on the selected current waveform segment, the kurtosis of the current signal is calculated. The specific calculation formula is:

[0039]

[0040] Based on the selected current waveform segment, the skewness of the current signal is calculated. The specific calculation formula is:

[0041]

[0042] Based on the selected current waveform segment, the waveform factor of the current signal is calculated. The specific calculation formula is:

[0043]

[0044] Based on the selected current waveform segment, the peak factor of the current signal is calculated. The specific calculation formula is:

[0045]

[0046] Based on the selected current waveform segment, the pulse factor of the current signal is calculated. The specific calculation formula is:

[0047]

[0048] Based on the selected current waveform segment, the margin factor of the current signal is calculated. The specific calculation formula is:

[0049]

[0050] Based on the selected current waveform segment, the clearance factor of the current signal is calculated. The specific calculation formula is:

[0051]

[0052] Where x(i) represents the i-th current sequence; N s Represents the number of samples in the current series.

[0053] In combination with the first aspect, optionally, performing feature dimension reduction on the extracted fault features to generate an original data set includes:

[0054] Random forest is used to reduce the dimension of the extracted fault features and generate the original data set.

[0055] In combination with the first aspect, optionally, the method for generating the original data set includes:

[0056] Construct a household energy router dataset in different states based on N fault features, input it into the random forest model, and obtain the split contribution of each fault feature in the random forest, and then obtain the evaluation score of each fault feature;

[0057] Based on the evaluation score of each feature in the random forest, fault features with evaluation scores greater than the set threshold are screened out to generate the original data set.

[0058] In combination with the first aspect, optionally, for a single fault feature, the root mean square error importance is selected as an evaluation criterion for the splitting contribution, and the calculation formula of the root mean square error importance is:

[0059]

[0060] In the formula, I M (f) represents the root mean square error importance; T is the total number of nodes involved in the splitting of a single fault feature; RMSE(t) is the mean square error of node t.

[0061] In combination with the first aspect, optionally, the fault classification model is a SVM classifier based on a kernel function.

[0062] In a second aspect, the present invention provides a household energy router AC port fault diagnosis device, comprising:

[0063] A first feature extraction module is used to extract N types of fault features based on the generated three-phase current signals of the household energy router under different working states;

[0064] A feature dimension reduction module is used to perform feature dimension reduction on the extracted fault features to generate an original data set, wherein the original data set includes M types of fault features, where M<N;

[0065] A model training module, used to train a fault classification model using the original data set and corresponding different working states;

[0066] The fault diagnosis module is used to extract M types of fault features based on the three-phase current signal of the household energy router obtained in real time, and input them into the trained fault classification model to obtain the fault classification result.

[0067] In a third aspect, the present invention provides a household energy router AC port fault diagnosis system, including a storage medium and a processor;

[0068] The storage medium is used to store instructions;

[0069] The processor is configured to operate according to the instructions to execute the method according to any one of the first aspects.

[0070] Compared with the prior art, the present invention has the following beneficial effects:

[0071] The existing household energy router fault diagnosis technology is generally an offline diagnosis, which cannot timely and effectively determine the fault location and fault type. The household energy router AC port fault diagnosis method, device and system proposed in the present invention first generate the three-phase current signal of the household energy router under different working states, and extract N fault features; then, perform feature dimension reduction on the extracted fault features to generate an original data set, which includes M fault features for reducing the computational cost during real-time operation and improving the efficiency of fault diagnosis; use the original data set and the corresponding different working states to train a fault classification model; based on the three-phase current signal of the household energy router obtained in real time, extract M fault features, and input them into the trained fault classification model to obtain a fault classification result, and finally realize the real-time diagnosis function, which can timely and effectively diagnose the fault location and cause of the household energy router AC port.

[0072] Furthermore, the present invention proposes a random forest feature extraction method based on statistical data, and the selected features are the features with the highest scores, which are highly universal. Specifically, for each fault feature, the error of the fault feature affecting the node splitting in the random forest is obtained, and the size of the error represents the node position of the fault feature participating in the decision tree splitting. Therefore, according to the error, it can be evaluated whether the fault feature is suitable as the basis for fault classification. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor, among which:

[0074] Figure 1 is a flow chart of a method for diagnosing a fault of an AC port of a household energy router in one embodiment of the present invention;

[0075] Figure 2 It is a household energy router AC port fault mode diagnosed in one embodiment of the present invention;

[0076] Figure 3 A schematic diagram of an Area Under Curve (AUC) value obtained on a three-phase current data set of a household energy router in one embodiment of the present invention;

[0077] Figure 4 It is a binary classification confusion matrix diagram obtained on a three-phase current data set of an AC port of a household energy router in one embodiment of the present invention;

[0078] Figure 5 It is a simulation fault diagnosis result in an embodiment of the present invention. DETAILED DESCRIPTION

[0079] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0080] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0081] Example 1

[0082] An embodiment of the present invention provides a method for diagnosing a fault of an AC port of a household energy router, comprising the following steps:

[0083] (1) Based on the generated three-phase current signals of the household energy router in different working states, N types of fault features are extracted; in a specific implementation process, the three-phase current signals of the household energy router in different working states can be generated based on a power electronics simulation method;

[0084] (2) performing feature dimensionality reduction on the extracted fault features to generate an original data set, wherein the original data set includes M types of fault features, where M<N;

[0085] (3) training a fault classification model using the original data set and the corresponding different working states;

[0086] (4) Based on the three-phase current signal of the household energy router obtained in real time, M types of fault features are extracted and input into the trained fault classification model to obtain the fault classification result.

[0087] In a specific implementation of the embodiment of the present invention, the different working states include a normal state, a power tube open circuit fault state, and a power tube short circuit fault state;

[0088] When the household energy router is in normal state, the waveform of the current signal it outputs is a standard sine wave, and the total harmonic distortion THD is less than the preset percentage;

[0089] The open circuit fault state refers to the open circuit fault state of a single tube in a three-phase bridge arm;

[0090] The short-circuit fault state refers to a single-tube short-circuit fault state in a three-phase bridge arm.

[0091] In a specific implementation of the embodiment of the present invention, the method for extracting fault features includes:

[0092] For the three-phase current signal, a statistical method is used to extract fault features. Specifically, based on the generated three-phase current signal of the household energy router under different working conditions, N types of fault features are extracted, including:

[0093] Based on the selected current waveform segment, the maximum instantaneous value of the current signal is calculated. The specific calculation formula is:

[0094] F1 = max(x(i));

[0095] Based on the selected current waveform segment, the minimum instantaneous value of the current signal is calculated. The specific calculation formula is:

[0096] F2 = min(x(i));

[0097] Based on the selected current waveform segment, the peak value of the current signal is calculated. The specific calculation formula is:

[0098] F3 = max(|x(i)|);

[0099] Based on the selected current waveform segment, the peak-to-peak value of the current signal is calculated. The specific calculation formula is:

[0100] F4 = max(x(i))-min(x(i));

[0101] Based on the selected current waveform segment, the average value of the current signal is calculated. The specific calculation formula is:

[0102]

[0103] Based on the selected current waveform segment, the absolute average value of the current signal is calculated. The specific calculation formula is:

[0104]

[0105] Based on the selected current waveform segment, the root mean square value of the current signal is calculated. The specific calculation formula is:

[0106]

[0107] Based on the selected current waveform segment, the variance of the current signal is calculated. The specific calculation formula is:

[0108]

[0109] Based on the selected current waveform segment, the standard deviation of the current signal is calculated. The specific calculation formula is:

[0110]

[0111] Based on the selected current waveform segment, the effective value of the current signal is calculated. The specific calculation formula is:

[0112]

[0113] Based on the selected current waveform segment, the kurtosis of the current signal is calculated. The specific calculation formula is:

[0114]

[0115] Based on the selected current waveform segment, the skewness of the current signal is calculated. The specific calculation formula is:

[0116]

[0117] Based on the selected current waveform segment, the waveform factor of the current signal is calculated. The specific calculation formula is:

[0118]

[0119] Based on the selected current waveform segment, the peak factor of the current signal is calculated. The specific calculation formula is:

[0120]

[0121] Based on the selected current waveform segment, the pulse factor of the current signal is calculated. The specific calculation formula is:

[0122]

[0123] Based on the selected current waveform segment, the margin factor of the current signal is calculated. The specific calculation formula is:

[0124]

[0125] Based on the selected current waveform segment, the clearance factor of the current signal is calculated. The specific calculation formula is:

[0126]

[0127] Where x(i) represents the i-th current sequence; N s Represents the number of samples in the current series.

[0128] In a specific implementation of the embodiment of the present invention, the step of performing feature dimensionality reduction on the extracted fault features to generate an original data set includes:

[0129] The extracted fault features are subjected to feature dimensionality reduction using random forest to generate an original data set. Specifically, the method for generating the original data set includes:

[0130] Construct a household energy router dataset in different states based on N fault features, input it into the random forest model, and obtain the split contribution of each fault feature in the random forest, and then obtain the evaluation score of each fault feature;

[0131] Based on the evaluation score of each feature in the random forest, fault features with evaluation scores greater than the set threshold are screened out to generate the original data set.

[0132] In a specific implementation of the embodiment of the present invention, for a single fault feature, the root mean square error importance is selected as the evaluation criterion for the split contribution, and the calculation formula of the root mean square error importance is:

[0133]

[0134] In the formula, I M (f) represents the root mean square error importance; T is the total number of nodes involved in the splitting of a single fault feature; RMSE(t) is the root mean square error of node t.

[0135] In a specific implementation of the embodiment of the present invention, the fault classification model is a SVM classifier based on a kernel function. The training method of the fault classification model includes:

[0136] Dividing the original data set and different states corresponding to the original data set into a training set, a test set and a validation set;

[0137] Using the training set to train a SVM classifier;

[0138] The test set is used to verify the performance of the trained SVM classifier to obtain a trained offline fault classification model.

[0139] In the actual application process, the generated offline fault classification model is imported into the diagnosis module of the online power electronics simulation software;

[0140] Based on the three-phase current signal of the household energy router obtained by real-time operation of the power electronics simulation software, M types of fault features are extracted and input into the diagnosis module of the online power electronics simulation software to obtain the fault classification results.

[0141] The method in the embodiment of the present invention is described in detail below in conjunction with a specific implementation manner.

[0142] Combination Figure 1 The method for diagnosing a fault in an AC port of a household energy router in an embodiment of the present invention comprises the following steps:

[0143] Step 1: Generate the required three-phase current signals of the household energy router under different working conditions based on the power electronics simulation method;

[0144] Step 2, using 17 fault features based on statistical data as three-phase current signal extraction objects, extracting fault features from the three-phase current signal, including the maximum value, minimum value, peak value, peak-to-peak value, average value, absolute average value, root amplitude, variance, standard deviation, effective value, kurtosis, skewness, waveform factor, peak factor, pulse factor, margin factor and clearance factor of the three-phase current signal;

[0145] Step 3: Use the random forest method to perform feature dimensionality reduction on the extracted fault features to generate an original data set D, wherein the original data set D includes M types of fault features;

[0146] Step 4: Establish a kernel function-based SVM classifier as a fault classification model;

[0147] Step 5: Randomly select 80% of the data in the original data set D generated after feature dimensionality reduction as the training set D train , use the training set to train the classifier offline;

[0148] Step 6: Use the test dataset D test Perform performance evaluation on the model trained in step 5. If the evaluation model accuracy is lower than 70%, return to step 5. If the evaluation model accuracy is higher than 70%,

[0149] Step 7: Apply the trained classification model data to the online diagnosis model of the household energy router. Specifically, based on the three-phase current signal of the household energy router acquired in real time, N' kinds of fault features are extracted and input into the trained fault classification model to obtain the fault classification result.

[0150] Further, in step 1, the different working states include a normal state, a power tube open circuit fault state, and a power tube short circuit fault state;

[0151] Under normal conditions, the output current signal of the household energy router is a standard sine wave, and the total harmonic distortion THD is less than 5%;

[0152] The open circuit fault state is a single tube open circuit fault state in a three-phase bridge arm, and the short circuit fault state is a single tube short circuit fault state in a three-phase bridge arm;

[0153] The AC port failure of the household energy router analyzed is as follows: Figure 2 Marked.

[0154] Furthermore, the 17 fault characteristics described in step 2 include maximum value, minimum value, peak value, peak-to-peak value, average value, absolute average value, root mean value, variance, standard deviation, effective value, kurtosis, skewness, form factor, peak factor, pulse factor, margin factor and clearance factor. The fault characteristic formula is as follows:

[0155] (1) Maximum value: the maximum instantaneous value of the current signal in the selected current waveform segment (two cycle signals);

[0156] F1=max(x(i))

[0157] (2) Minimum value: the minimum instantaneous value of the current signal in the selected current waveform segment;

[0158] F2=min(x(i))

[0159] (3) Peak value: The absolute value of the current sequence reaches the maximum value instantaneously in the selected current waveform segment;

[0160] F3=max(|x(i)|)

[0161] (4) Peak-to-peak value: The difference between the lowest point and the highest point in the selected current waveform segment, that is, the amplitude range of the waveform;

[0162] F4=max(x(i))-min(x(i))

[0163] (5) Average value: the average value of the current signal in the selected current waveform segment;

[0164]

[0165] (6) Absolute average value: the average of the absolute values ​​of all current signals in the selected current waveform segment;

[0166]

[0167] (7) Root-mean-square amplitude: the root-mean-square value of the current signal in the selected current waveform segment;

[0168]

[0169] (8) Variance: The variance of the fault current signal is a statistical measure that can be used to evaluate the instability or volatility of the current signal;

[0170]

[0171] (9) Standard Deviation: The standard deviation of the fault current signal is the square root of the variance, which is a measure of the discreteness or variability of the signal data;

[0172]

[0173] (10) Effective value: Effective value is a commonly used measure of current signals, which reflects the amplitude of the signal and is also related to the power of the signal;

[0174]

[0175] (11) Kurtosis: The kurtosis of the fault current signal is a statistical measure used to describe the peakiness or flatness of the signal data and the difference from the normal distribution;

[0176]

[0177] (12) Skewness: The skewness of the fault current signal is a statistical measure used to describe the asymmetry or degree of skewness of the signal data;

[0178]

[0179] (13) Form factor: The form factor of a fault current signal is the ratio of the peak value of the current signal to its effective value. The form factor is usually used to measure the peak value of the current signal, that is, the relationship between the instantaneous peak value of the signal and the average or effective value of the signal.

[0180]

[0181] (14) Peak factor: The peak factor of the fault current signal is the ratio of the peak value of the current signal to its effective value. The peak factor emphasizes the difference between the instantaneous peak value and the average value of the signal, rather than the volatility.

[0182]

[0183] (15) Pulse factor: The pulse factor of a fault current signal is a measure of the pulse nature of the signal. The pulse factor is usually used to describe the relationship between the instantaneous peak value of the signal and its pulse width, where the pulse width is the duration of the pulse signal.

[0184]

[0185] (16) Margin factor: The margin factor of the fault current signal is usually used to measure the performance margin of a system or circuit to ensure the stability and safety of the system under different operating conditions. Margin factor is a measure used to express the additional tolerance of a parameter in a system or circuit to cope with uncertainty, fluctuations or abnormal conditions.

[0186]

[0187] (17) Residual factor: The residual factor of the fault current signal is a parameter used to describe the relationship between active power and apparent power. It is used to represent the phase difference between current and voltage. The specific value can be obtained by dividing the peak value by the effective value.

[0188]

[0189] Where x(i) represents the i-th current sequence; N s Represents the number of samples in the current series.

[0190] Furthermore, the random forest feature dimensionality reduction method described in step 3 has the following specific steps:

[0191] 1) Construct a household energy router dataset in different states based on 17 fault characteristics as input samples for the random forest model;

[0192] 2) Setting the number of trees and the depth of the trees, preferably, taking the number of trees as 100 and the depth of the trees as 10, and constructing a random forest model;

[0193] 3) The importance of each feature is evaluated by measuring its split contribution in the random forest. The root mean square error importance is selected as the evaluation criterion for split contribution. The specific formula is as follows. After training the random forest model, the evaluation scores corresponding to the 17 features are obtained. The scores of the 17 features are arranged in descending order to obtain the four features with the highest scores.

[0194]

[0195] In the formula, I M (f) represents the root mean square error importance; T is the total number of nodes involved in the splitting of a single fault feature; RMSE(t) is the root mean square error of node t.

[0196] In this specific implementation, a household energy router model is established in MATLAB / Simulink to perform performance evaluation, specifically:

[0197] The evaluation indicator used is the area under the curve (AUC) value. The AUC curve evaluates the sensitivity (true positive rate) and specificity (false positive rate) of the model from different classification thresholds. The evaluation indicator AUC is calculated as follows:

[0198]

[0199] Among them, TP represents the number of positive samples correctly classified as positive samples, FN represents the number of positive samples misclassified as negative samples, TN represents the number of negative samples correctly classified as negative samples, and FP represents the number of negative samples misclassified as positive samples. Figure 3It can be seen that the curves are close to the point in the figure where the true positive rate is the largest and the false positive rate is the smallest, so the classification effect of the disclosed method is excellent. Figure 4 The values ​​on the diagonal of the matrix represent the number of correct predictions, and the values ​​on the off-diagonal represent the number of incorrect predictions. Figure 4 Covered Figure 2 The faults generated at the fault locations F1-F15 include short circuit and open circuit. Figure 5 The real-time diagnosis result of the disclosed method is shown in Figure 1. In this embodiment, the simulation model runs for 0.4s and the fault type is determined at 0.24s. It can be seen from the figure that a fault can be determined at position F1 at 0.24s.

[0200] Example 2

[0201] Based on the same inventive concept as that of Embodiment 1, an embodiment of the present invention provides a household energy router AC port fault diagnosis device, comprising:

[0202] A first feature extraction module is used to extract N types of fault features based on the generated three-phase current signals of the household energy router under different working states;

[0203] A feature dimension reduction module is used to perform feature dimension reduction on the extracted fault features to generate an original data set, wherein the original data set includes M types of fault features, where M<N;

[0204] A model training module, used to train a fault classification model using the original data set and corresponding different working states;

[0205] The fault diagnosis module is used to extract M types of fault features based on the three-phase current signal of the household energy router obtained in real time, and input them into the trained fault classification model to obtain the fault classification result.

[0206] The rest are the same as in Example 1.

[0207] Example 3

[0208] An embodiment of the present invention provides a household energy router AC port fault diagnosis system, including a storage medium and a processor;

[0209] The storage medium is used to store instructions;

[0210] The processor is configured to operate according to the instructions to execute the method according to any one of the embodiments 1.

[0211] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0212] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0213] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0214] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0215] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which all fall within the protection of the present invention.

[0216] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A method for diagnosing AC port faults of household energy routers, characterized in that: include: Based on the generated three-phase current signals of household energy routers under different working conditions, N kinds of fault features are extracted; Performing feature dimensionality reduction on the extracted fault features to generate an original data set, wherein the original data set includes M types of fault features, where M<N; Training a fault classification model using the original data set and different working states corresponding to the original data set; Based on the three-phase current signal of the household energy router obtained in real time, M types of fault features are extracted and input into the trained fault classification model to obtain the fault classification result.

2. A household energy router AC port fault diagnosis method according to claim 1, characterized in that: The different working states include a normal state, a power tube open circuit fault state, and a power tube short circuit fault state; When the household energy router is in a normal state, the waveform of the current signal it outputs is a standard sine wave, and the total harmonic distortion is less than the preset percentage; The open circuit fault state refers to the open circuit fault state of a single tube in a three-phase bridge arm; The short-circuit fault state refers to a single-tube short-circuit fault state in a three-phase bridge arm.

3. A household energy router AC port fault diagnosis method according to claim 1, characterized in that: The method for extracting the fault characteristics comprises: For the three-phase current signal, the fault characteristics are extracted by using statistical method.

4. A household energy router AC port fault diagnosis method according to claim 4, characterized in that: Based on the generated three-phase current signal of the household energy router in different working states, N kinds of fault features are extracted, including: Based on the selected current waveform segment, the maximum instantaneous value of the current signal is calculated. The specific calculation formula is: F1 = max(x(i)); Based on the selected current waveform segment, the minimum instantaneous value of the current signal is calculated. The specific calculation formula is: F2 = min(x(i)); Based on the selected current waveform segment, the peak value of the current signal is calculated. The specific calculation formula is: F3 = max(|x(i)|); Based on the selected current waveform segment, the peak-to-peak value of the current signal is calculated. The specific calculation formula is: F4 = max(x(i))-min(x(i)); Based on the selected current waveform segment, the average value of the current signal is calculated. The specific calculation formula is: Based on the selected current waveform segment, the absolute average value of the current signal is calculated. The specific calculation formula is: Based on the selected current waveform segment, the root mean square value of the current signal is calculated. The specific calculation formula is: Based on the selected current waveform segment, the variance of the current signal is calculated. The specific calculation formula is: Based on the selected current waveform segment, the standard deviation of the current signal is calculated. The specific calculation formula is: Based on the selected current waveform segment, the effective value of the current signal is calculated. The specific calculation formula is: Based on the selected current waveform segment, the kurtosis of the current signal is calculated. The specific calculation formula is: Based on the selected current waveform segment, the skewness of the current signal is calculated. The specific calculation formula is: Based on the selected current waveform segment, the waveform factor of the current signal is calculated. The specific calculation formula is: Based on the selected current waveform segment, the peak factor of the current signal is calculated. The specific calculation formula is: Based on the selected current waveform segment, the pulse factor of the current signal is calculated. The specific calculation formula is: Based on the selected current waveform segment, the margin factor of the current signal is calculated. The specific calculation formula is: Based on the selected current waveform segment, the clearance factor of the current signal is calculated. The specific calculation formula is: Where x(i) represents the i-th current sequence; N s Represents the number of samples in the current series.

5. A household energy router AC port fault diagnosis method according to claim 1, characterized in that: The step of performing feature dimensionality reduction on the extracted fault features to generate an original data set includes: Random forest is used to reduce the dimension of the extracted fault features and generate the original data set.

6. A household energy router AC port fault diagnosis method according to claim 5, characterized in that: The method for generating the original data set includes: A household energy router dataset under different states based on N kinds of fault characteristics is constructed and input into the random forest model. The split contribution of each fault characteristic in the random forest is obtained, and then the evaluation score of each fault characteristic is obtained. Based on the evaluation score of each characteristic in the random forest, the fault characteristics with evaluation scores greater than the set threshold are screened out to generate the original dataset.

7. A household energy router AC port fault diagnosis method according to claim 6, characterized in that: For a single fault feature, the importance of the root mean square error is selected as the evaluation criterion for the split contribution. The calculation formula of the importance of the root mean square error is: In the formula, I M (f) represents the importance of the root mean square error; T is the total number of nodes involved in the splitting of a single fault feature; RMSE(t) is the root mean square error of node t.

8. A household energy router AC port fault diagnosis method according to claim 1, characterized in that: The fault classification model is a SVM classifier based on kernel function.

9. A household energy router AC port fault diagnosis device, characterized in that: include: A first feature extraction module is used to extract N types of fault features based on the generated three-phase current signals of the household energy router under different working states; A feature dimension reduction module is used to perform feature dimension reduction on the extracted fault features to generate an original data set, wherein the original data set includes M types of fault features, where M<N; A model training module, used to train a fault classification model using the original data set and corresponding different working states; The fault diagnosis module is used to extract M types of fault features based on the three-phase current signal of the household energy router obtained in real time, and input them into the trained fault classification model to obtain the fault classification result.

10. A household energy router AC port fault diagnosis system, characterized in that: including storage media and processors; The storage medium is used to store instructions; The processor is configured to operate according to the instructions to perform the method according to any one of claims 1-8.