Power detection method, device, equipment and storage medium
By collecting electric power data and reconstructing the phase space of electrical appliances, combined with maximum overlap discrete wavelet transform and mathematical morphology technology, combined with stacked generalized additive model and random forest algorithm, the problem of difficulty in real-time detection of faults by traditional electrical appliance detection methods is solved, achieving Provides higher fault prediction accuracy and reliability.
Patent Information
- Application Number
- CN202410895409.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-05
AI Technical Summary
Traditional electrical appliance detection methods are difficult to detect potential internal faults in electrical appliances in real time, causing equipment to suddenly malfunction during operation, affecting safety and reliability. Especially in high-precision and high-demand industrial environments, existing power detection methods suffer from data noise. There are limitations in filtering and signal feature extraction, making it difficult to separate power data under normal operation and abnormal operation conditions.
The power detection method is adopted, including power data collection of target electrical appliances, phase space reconstruction, maximum overlap discrete wavelet transform, mathematical morphology technology processing and the combination of stacked generalized additive model and random forest algorithm to predict faults. The structure captures dynamic features, identifies abnormal features and locates fault locations.
It significantly improves the accuracy and reliability of electrical fault prediction, can detect potential faults earlier, enhances the accuracy and reliability of anomaly detection, and improves the accuracy of electrical fault prediction.
Smart Images

Figure CN118427731B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electrical appliance testing technology, and in particular to an electric power detection method, device, equipment and storage medium. Background Art
[0002] With the popularity of electrical appliances, the safety performance testing of electrical equipment is particularly important. Traditional electrical testing methods mainly rely on regular physical inspections and simple electrical parameter monitoring, but these methods are often difficult to detect potential faults inside electrical appliances in real time, which may cause sudden failures of electrical appliances during operation, seriously affecting the safety and reliability of the equipment. Especially in high-precision and high-demand industrial environments, the limitations of traditional testing methods are becoming more and more obvious, and a more advanced, real-time and accurate testing method is urgently needed.
[0003] Most of the existing power detection methods rely on a single signal analysis technology, such as Fourier transform or basic wavelet analysis. Although they can capture certain characteristics of power signals, they are often unable to handle complex power data and are prone to overlooking some key fault characteristics. In addition, these methods have great limitations in data noise filtering and signal feature extraction, and it is difficult to effectively separate power data under normal operation and abnormal operation, resulting in the accuracy and timeliness of fault detection being difficult to meet actual needs. Summary of the invention
[0004] The present application provides a power detection method, device, equipment and storage medium for improving the accuracy of fault prediction of electrical appliances.
[0005] In a first aspect, the present application provides a power detection method, the power detection method comprising:
[0006] Collect power data of target electrical appliances to obtain original power data sequence;
[0007] Reconstructing the original power data sequence in phase space to obtain a phase space data set;
[0008] Performing maximum overlap discrete wavelet transform on the phase space data set to obtain multi-level signal features;
[0009] Using mathematical morphology technology to perform isolation energy feature calculation and abnormal feature determination on the multi-level signal features to obtain multiple abnormal features;
[0010] Performing cumulative energy feature and directional feature analysis on the multiple abnormal features to obtain abnormal position information of each abnormal feature;
[0011] A stacked generalized additive model and a random forest algorithm are used to perform fault prediction on the multiple abnormal features and the abnormal location information to obtain a fault prediction result of the target electrical appliance.
[0012] In a second aspect, the present application provides a power detection device, the power detection device comprising:
[0013] The acquisition module is used to collect power data of the target electrical appliances and obtain the original power data sequence;
[0014] A reconstruction module, used for performing phase space reconstruction on the original power data sequence to obtain a phase space data set;
[0015] A transformation module, used for performing maximum overlap discrete wavelet transformation on the phase space data set to obtain multi-level signal features;
[0016] A calculation module, used for performing isolation energy feature calculation and abnormal feature determination on the multi-level signal features by using mathematical morphology technology to obtain multiple abnormal features;
[0017] An analysis module, used to perform cumulative energy feature and directional feature analysis on the multiple abnormal features to obtain abnormal position information of each abnormal feature;
[0018] The prediction module is used to use a stacked generalized additive model and a random forest algorithm to perform fault prediction on the multiple abnormal features and the abnormal location information to obtain a fault prediction result of the target electrical appliance.
[0019] The third aspect of the present application provides a power detection device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the power detection device executes the above-mentioned power detection method.
[0020] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned power detection method.
[0021] In the technical solution provided by the present application, the high accuracy and consistency of the original power data are ensured by real-time monitoring of voltage and current, noise filtering and normalization processing. It can effectively eliminate external interference and obtain more accurate power data. By reconstructing the original power data in phase space, the time series data can be converted into trajectories in high-dimensional space, revealing the dynamic characteristics of electrical performance. The phase space reconstruction method can capture hidden patterns and system states that cannot be detected by traditional time domain analysis, which helps to find potential fault signs earlier. The maximum overlap discrete wavelet transform technology is applied to decompose the phase space data, and the power signal can be analyzed at multiple scales. Not only can the frequency components in the power signal be identified, but also short-term abnormal fluctuations and mutations can be detected. The mathematical morphology technology is used to process the multi-level signal features. By calculating the isolated energy features and performing abnormal feature determination, the abnormal features in the power signal can be accurately identified. Through expansion and erosion operations, the significance of the features is enhanced, and the accuracy and reliability of abnormal detection are improved. The detected abnormal features are analyzed by cumulative energy features and directional features, and the location of the fault can be accurately located. By building a simulation model of the electrical appliance and performing coordinate mapping and directional analysis, the fault area can be accurately divided and the fault hotspot can be identified. The stacked generalized additive model and random forest algorithm are used to predict faults based on multiple abnormal features and abnormal location information, and a comprehensive analysis is performed by combining multiple feature data. The stacked generalized additive model can identify the contribution of each feature to fault prediction, and the random forest algorithm can process high-dimensional data and provide robust prediction results. The combination of the two improves the accuracy and reliability of fault prediction and significantly improves the accuracy of fault prediction for electrical appliances. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0023] Figure 1 A schematic diagram of an embodiment of a power detection method in an embodiment of the present application;
[0024] Figure 2 Schematic diagram of an embodiment of a power detection device in an embodiment of the present application. DETAILED DESCRIPTION
[0025] Embodiments of the present application provide a method, device, equipment and storage medium for detecting electric power. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 , an embodiment of the power detection method in the embodiment of the present application includes:
[0027] Step S101, collecting power data of a target electrical appliance to obtain an original power data sequence;
[0028] It is understandable that the execution subject of the present application may be a power detection device, or a terminal or a server, which is not limited here. The present application embodiment is described by taking a server as the execution subject as an example.
[0029] Specifically, the target electrical appliance is connected to a plurality of preset test instruments to perform comprehensive power data collection. The target electrical appliance is subjected to voltage and current tests to obtain a voltage data sequence and a current data sequence. In order to ensure the accuracy and consistency of the data, the voltage data sequence and the current data sequence are respectively subjected to time synchronization processing to obtain time-synchronized voltage data and time-synchronized current data. The purpose of time synchronization is to eliminate the error that may be introduced due to the difference in data acquisition time, so that the voltage data and the current data can be compared and analyzed on the same time axis. The voltage data and the current data after time synchronization are subjected to noise filtering to remove interference and noise in the data. By applying an appropriate filtering algorithm, the cleaned voltage data and the cleaned current data are obtained, and the noise-filtered data can more truly reflect the power characteristics of the target electrical appliance. The cleaned voltage data and the current data are normalized to obtain normalized voltage data and normalized current data, and the data are converted to the same dimension. By scaling the data proportionally, the voltage data and the current data are within the same numerical range, eliminating the influence between different dimensions. The normalized voltage data and the normalized current data are subjected to data integration to obtain the original power data sequence. The voltage data and current data are combined to form a complete power data sequence, which contains the power characteristic information of the target appliance during the acquisition period.
[0030] Step S102, reconstructing the original power data sequence in phase space to obtain a phase space data set;
[0031] Specifically, the dimension of the original power data sequence is selected to determine the time dimension and variable dimension of the original power data sequence, so that the dynamic characteristics and change laws of the data can be accurately captured in the subsequent phase space reconstruction process. According to the time dimension and variable dimension, the original power data sequence is delayed embedded to obtain delayed embedded data. Delay embedding is to construct a new data set containing time delay information by shifting the data at a certain time interval. The delayed embedded data is mapped into the phase space to obtain a phase space point set. The phase space point set reflects the distribution of data in high-dimensional space. In order to better understand the structure and characteristics of the phase space point set, a boundary analysis is performed on it to determine the boundary and distribution characteristics of the phase space. Through boundary analysis, the effective range and distribution law of data points in the phase space are identified. The principal component analysis algorithm is used to reduce the dimension of the phase space point set to obtain the reduced-dimensional phase space data. Principal component analysis is an effective dimensionality reduction method that reduces the data dimension while retaining the main features of the data, thereby reducing the computational complexity and storage requirements. Based on the reduced-dimensional phase space data, the distribution density of the data points is estimated to obtain the density estimation result. Density estimation is to identify the density of data points in the phase space, so as to find the clustered and sparse areas of the data. Based on the density estimation results, the reduced-dimensional phase space data is topologically sorted to obtain topologically sorted data. Topological sorting can reveal the relative position relationship and connection order between data points. Cluster analysis is performed on the topologically sorted data to obtain the target clustering results. Cluster analysis is to classify similar data points into one category to discover the inherent structure and pattern of the data. Based on the target clustering results, labels are assigned to the topologically sorted data to obtain multiple target data groups. Each target data group represents a cluster in the phase space, reflecting a certain specific feature or state of the data. Corresponding phase space data sets are generated based on multiple target data groups. These phase space data sets contain the power characteristic information of the target electrical appliances under different states.
[0032] Step S103, performing maximum overlap discrete wavelet transform on the phase space data set to obtain multi-level signal features;
[0033] Specifically, frequency analysis is performed on the phase space data set to obtain frequency analysis results, and the main frequency components and harmonic components in the data set are identified. According to the frequency analysis results, the phase space data set is subjected to maximum overlap discrete wavelet transform to obtain wavelet transform results. Maximum overlap discrete wavelet transform is an efficient signal processing method that can decompose the signal into different scales and frequencies without losing information and extract the multi-level features of the signal. Through maximum overlap discrete wavelet transform, data representations at different frequencies and scales are obtained, and these representations contain important information in the original signal. Scale analysis is performed on the wavelet transform results to obtain scale energy analysis results, evaluate the energy distribution of the signal at different scales, and identify the main features of the signal at each scale. Peak detection is performed on the scale energy analysis results to obtain multiple peak data, identify significant change points and abnormal points in the signal, and these points usually correspond to important events or features in the signal. Feature encoding is performed on the peak data to obtain encoded feature data. Feature encoding is to convert peak data into an encoding form that is easy to process and analyze, which is convenient for subsequent calculation and analysis. Through feature encoding, complex signal features are simplified into a set of encoded data, which can represent the main features and change patterns in the signal. Subsequently, the coded feature data is hierarchically clustered to obtain multi-level signal features. Hierarchical clustering is to classify similar coded feature data into one category to discover the intrinsic structure and pattern in the signal. Through hierarchical clustering, different feature levels in the signal are identified, which reflect the characteristic information of the signal at different scales and frequencies. Finally, through the above steps, the phase space data set is subjected to maximum overlap discrete wavelet transform to generate multi-level signal features.
[0034] Step S104, using mathematical morphology technology to perform isolation energy feature calculation and abnormal feature determination on multi-level signal features to obtain multiple abnormal features;
[0035] Specifically, threshold analysis is performed on multi-level signal features to determine a target threshold and filter out signal features that may contain anomalies. Abnormal features are screened for multi-level signal features according to the target threshold to obtain multiple first signal features, and the abnormal parts in the signal are preliminarily identified. Energy calculation is performed on multiple first signal features to obtain the total energy value of each first signal feature. The amplitude and frequency of the signal feature are analyzed to calculate the energy contained in it. The total energy value reflects the strength and importance of the signal feature and can help identify the most significant abnormal features. Multiple first signal features are sorted according to the total energy value to obtain energy sorting results, and feature selection is performed on the energy sorting results to obtain multiple second signal features. Mathematical morphological expansion and erosion operations are performed on the signal features to obtain multiple third signal features. Mathematical morphological operation is an image processing technology that expands and erodes the signal features to enlarge and reduce the boundaries of the features and more accurately identify the abnormal parts in the signal. The expansion operation expands the range of the signal feature and increases its detection sensitivity; the erosion operation removes noise and unimportant parts and enhances the accuracy of the feature. The isolation energy characteristics of multiple third signal characteristics are calculated to obtain the isolation energy characteristic value of each third signal characteristic. The energy value within a specific range is calculated by analyzing the local energy of the signal characteristic. The isolation energy characteristic value reflects the strength of the signal characteristic within a local range. Classification decisions are made on multiple third signal characteristics according to the isolation energy characteristic value to obtain multiple abnormal characteristics. The signal characteristics are classified into two categories: normal and abnormal by analyzing the isolation energy characteristic value. According to the size of the isolation energy characteristic value, the most significant abnormal feature is identified.
[0036] Step S105, performing cumulative energy feature and directional feature analysis on multiple abnormal features to obtain abnormal position information of each abnormal feature;
[0037] Specifically, a simulation model of the target electrical appliance is constructed, and coordinate mapping is performed on multiple abnormal features to obtain the coordinates of the abnormal position. The operation state and fault characteristics of the target electrical appliance are accurately simulated in a virtual environment. By mapping the abnormal features to specific positions in the simulation model, the abnormal position coordinates corresponding to each abnormal feature are obtained. The distance calculation is performed on the abnormal position coordinates to obtain abnormal distance data. By measuring the distance between the position of the abnormal feature in the simulation model and other reference points, the relative position and distribution of the abnormal feature are determined. The abnormal distance data is screened for the minimum distance to obtain the nearest abnormal position. By selecting the abnormal feature with the shortest distance, the abnormal feature closest to the fault source or key position is identified. This helps to quickly locate the abnormal feature that is most likely to cause the fault and improve the efficiency and accuracy of fault detection. Direction analysis is performed on the nearest abnormal position to obtain abnormal direction information. By analyzing the distribution direction of the abnormal feature in space, the path and trend of fault propagation are identified. The abnormal direction information is divided into regions to obtain abnormal region division results. The abnormal features are divided into different regions according to their direction information to determine the possible impact range of the fault. Hot spot analysis is performed on the abnormal region division results to obtain abnormal hot spot regions. By identifying the areas where abnormal features appear, the high-incidence areas and key monitoring areas of faults are determined. The monitoring priorities of abnormal hot spots are sorted to obtain the priority sorting results. By evaluating the severity and impact range of abnormal features, the monitoring priority order is determined. The priority sorting results are allocated with cumulative energy features to obtain the abnormal location information of each abnormal feature. By analyzing the energy accumulation of each abnormal feature, its influence and importance in the overall fault are determined.
[0038] Step S106: Use the stacked generalized additive model and random forest algorithm to perform fault prediction on multiple abnormal features and abnormal location information to obtain a fault prediction result of the target electrical appliance.
[0039] Specifically, feature encoding and integration are performed on multiple abnormal features and abnormal location information to obtain an abnormal feature input vector. Various forms of abnormal features and location information are converted into a unified input format to facilitate subsequent model processing and analysis. The abnormal feature input vector is input into the stacked generalized additive model for feature contribution degree calculation and vector weighted analysis to obtain an abnormal feature weighted vector. The stacked generalized additive model is an efficient nonlinear regression model that can handle complex feature relationships and interactions. By calculating the feature contribution degree, the importance of each feature in fault prediction is identified, and the features are weighted for analysis. Fault prediction is performed on the abnormal feature weighted vector to obtain an initial prediction result. The initial prediction result is a prediction value obtained by analyzing and calculating the input features based on the stacked generalized additive model, reflecting the failure probability or risk level of the target electrical appliance under the current feature conditions. Residual analysis is performed on the initial prediction result to obtain a residual analysis result. The prediction error of the model is identified by comparing the difference between the initial prediction result and the actual observed value. The residual prediction calculation is performed on the residual analysis result through the random forest algorithm to obtain residual prediction data. The random forest algorithm is an integrated learning method that effectively handles complex nonlinear relationships and high-dimensional feature data by constructing multiple decision trees and voting on their results. By performing random forest prediction on the residual analysis results, the errors in the initial prediction results are corrected, thereby improving the accuracy of the final prediction results. The residual prediction data and the initial prediction results are merged and the confidence is calculated to obtain the confidence value. The residual prediction data and the initial prediction results are comprehensively analyzed to obtain the final prediction results. Confidence calculation is to evaluate the reliability and credibility of the prediction results. By calculating the confidence value, a reliability score is assigned to each prediction result, thereby helping users judge the accuracy and reliability of the prediction results. According to the confidence value, the fault prediction result of the target appliance is finally output.
[0040] In the embodiment of the present application, the high accuracy and consistency of the original power data are ensured by real-time monitoring of voltage and current, noise filtering and normalization processing. External interference can be effectively eliminated to obtain more accurate power data. By reconstructing the original power data in phase space, time series data can be converted into trajectories in high-dimensional space to reveal the dynamic characteristics of electrical performance. The phase space reconstruction method can capture hidden patterns and system states that cannot be detected by traditional time domain analysis, which helps to find potential fault signs earlier. The maximum overlap discrete wavelet transform technology is applied to decompose the phase space data, and the power signal can be analyzed at multiple scales. Not only can the frequency components in the power signal be identified, but also short-term abnormal fluctuations and mutations can be detected. The mathematical morphology technology is used to process the multi-level signal features. By calculating the isolated energy features and performing abnormal feature determination, the abnormal features in the power signal can be accurately identified. Through expansion and erosion operations, the significance of the features is enhanced, and the accuracy and reliability of abnormal detection are improved. The detected abnormal features are analyzed by cumulative energy features and directional features, and the location of the fault can be accurately located. By building a simulation model of the electrical appliance and performing coordinate mapping and directional analysis, the fault area can be accurately divided and the fault hotspot can be identified. The stacked generalized additive model and random forest algorithm are used to predict faults based on multiple abnormal features and abnormal location information, and a comprehensive analysis is performed by combining multiple feature data. The stacked generalized additive model can identify the contribution of each feature to fault prediction, and the random forest algorithm can process high-dimensional data and provide robust prediction results. The combination of the two improves the accuracy and reliability of fault prediction and significantly improves the accuracy of fault prediction for electrical appliances.
[0041] In a specific embodiment, the process of executing step S101 may specifically include the following steps:
[0042] (1) Connect the target appliance and multiple preset test instruments;
[0043] (2) Performing a voltage test on the target electrical appliance to obtain a voltage data sequence, and performing a current test on the target electrical appliance to obtain a current data sequence;
[0044] (3) Time-synchronizing the voltage data sequence and the current data sequence respectively to obtain time-synchronized voltage data and time-synchronized current data;
[0045] (4) performing noise filtering on the voltage data after time synchronization to obtain cleaned voltage data, and performing noise filtering on the current data after time synchronization to obtain cleaned current data;
[0046] (5) normalizing the voltage data after cleaning to obtain normalized voltage data, and normalizing the current data after cleaning to obtain normalized current data;
[0047] (6) Integrate the normalized voltage data and the normalized current data to obtain the original power data sequence.
[0048] Specifically, the target electrical appliance is connected to multiple preset test instruments. The test instruments usually include high-precision voltmeters and ammeters, which are used to measure the voltage and current of the target electrical appliance, respectively. The connection process ensures that the test instrument is in good contact with the measuring points of the target electrical appliance to avoid signal interference or data loss. For example, suppose that the operating status of an industrial motor is monitored. The rated voltage of the motor is 380V and the rated current is 10A. Select a voltmeter with a range of 0-500V and an ammeter with a range of 0-20A, connect the positive and negative probes of the voltmeter to the voltage measurement points of the motor, respectively, and connect the two probes of the ammeter to the current measurement points of the motor, and ensure that all connections are stable. After connecting the test instruments, perform voltage tests and current tests. The voltage test can record the voltage changes over a period of time to obtain a voltage data sequence; similarly, the current test can record the current changes to obtain a current data sequence. Assume that the voltage data sequence recorded by the voltmeter during the test is , the current data sequence recorded by the ammeter is ,in Indicates time. Time synchronization is performed on the voltage data sequence and the current data sequence to obtain the time-synchronized voltage data and the time-synchronized current data. Ensure that the voltage and current data are compared and analyzed at the same time point to eliminate the error caused by the difference in acquisition time. Time synchronization can be achieved through interpolation methods or synchronous sampling methods. For example, using the linear interpolation method, the voltage data and current data are interpolated according to a unified time axis to obtain the time-synchronized voltage data. Current data synchronized with time After time synchronization, noise filtering is performed on the synchronized voltage data and current data to remove the noise signal introduced during the measurement process to obtain cleaned voltage data and cleaned current data. Noise filtering can use a variety of filtering algorithms, such as low-pass filters, Kalman filters, etc. Assume that the Kalman filter is used to filter the voltage data after time synchronization, and the filtered voltage data is , filter the current data after time synchronization, and the filtered current data is . Normalize the cleaned voltage data and current data to obtain normalized voltage data and normalized current data. Convert the data to the same numerical range to facilitate subsequent analysis and processing. Common normalization methods include minimum-maximum normalization and z-score normalization. Assuming that the minimum-maximum normalization method is used to normalize the cleaned voltage data, the normalized voltage data is , the calculation formula is:
[0049] ;
[0050] in and are the minimum and maximum values of the voltage data after cleaning, respectively. Similarly, the current data after cleaning is normalized, and the normalized current data is The normalized voltage data and the normalized current data are integrated to obtain the original power data sequence. Data integration is to combine the voltage data and the current data to form a complete power data sequence for subsequent fault detection and analysis.
[0051] In a specific embodiment, the process of executing step S102 may specifically include the following steps:
[0052] (1) Select the dimension of the original power data sequence and determine the time dimension and variable dimension of the original power data sequence;
[0053] (2) According to the time dimension and variable dimension, the original power data sequence is delayed embedded to obtain delayed embedded data;
[0054] (3) Mapping the time-delay embedded data into the phase space to obtain a phase space point set, and performing boundary analysis on the phase space point set to determine the boundary and distribution characteristics of the phase space;
[0055] (4) Using the principal component analysis algorithm to reduce the dimension of the phase space point set, the reduced-dimensional phase space data is obtained;
[0056] (5) Estimating the data point distribution density of the reduced-dimensional phase space data to obtain the density estimation result;
[0057] (6) Based on the density estimation results, the reduced-dimensional phase space data is topologically sorted to obtain topologically sorted data, and cluster analysis is performed on the topologically sorted data to obtain the target clustering results;
[0058] (7) Based on the target clustering results, labels are assigned to the topologically sorted data to obtain multiple target data groups, and corresponding phase space data sets are generated based on the multiple target data groups.
[0059] Specifically, appropriate dimensions are selected from the original power data sequence to determine the time dimension and variable dimension in the data. The time dimension can represent the time point of data collection, while the variable dimension represents the different power parameters measured at these time points. According to the determined time dimension and variable dimension, the original power data sequence is delayed and embedded to generate delayed embedded data. By introducing delayed variables in the time series to increase the dimension of the data, a phase space is constructed in the high-dimensional space. This process can be expressed by the formula:
[0060] ;
[0061] in, Indicates at time The embedding vector of is the original power data sequence, For time delay, is the embedding dimension. After obtaining the delayed embedded data, it is mapped into the phase space to obtain the phase space point set, so that the data originally in the time domain can be presented as a series of points in the phase space. The distribution and trajectory of these points can reveal the dynamic characteristics of the system. The boundary analysis of the phase space point set is performed to determine the boundary and distribution characteristics of the phase space, identify the external boundary of the phase space point set, and understand the characteristics of its spatial distribution, so as to lay the foundation for the subsequent dimensionality reduction processing. Subsequently, the principal component analysis algorithm is used to reduce the dimension of the phase space point set to obtain the reduced-dimensional phase space data. The principal component analysis algorithm is a commonly used dimensionality reduction technique that projects high-dimensional data into a low-dimensional space through linear transformation while retaining the main information of the data. The principal component analysis algorithm calculates the covariance matrix and decomposes it by eigenvalues to extract the main eigenvectors, which represent the main components of the data. The data point distribution density is estimated for the reduced-dimensional phase space data to obtain the density estimation result. Density estimation can help understand the distribution of data in the reduced-dimensional space and identify the concentrated and sparse areas of data. Common density estimation methods include kernel density estimation and k-nearest neighbor density estimation. Based on the density estimation results, the reduced-dimensional phase space data is topologically sorted to obtain topologically sorted data. The data points are sorted according to their density and proximity to reveal the internal structure and relationship of the data. Cluster analysis is performed on the topologically sorted data to obtain the target clustering results. The data points are divided into different groups according to their similarity. Common clustering algorithms include k-means, DBSCAN, and hierarchical clustering. Based on the target clustering results, labels are assigned to the topologically sorted data to obtain multiple target data groups. Each data group represents a class of similar data points and reflects a specific structure or pattern in the phase space. Based on the target data group, the corresponding phase space data sets are generated, which can be used for further analysis and applications, such as fault detection and prediction.
[0062] In a specific embodiment, the process of executing step S103 may specifically include the following steps:
[0063] (1) Perform frequency analysis on the phase space data set to obtain frequency analysis results;
[0064] (2) Perform maximum overlap discrete wavelet transform on the phase space data set according to the frequency analysis results to obtain the wavelet transform result;
[0065] (3) Performing scale analysis on the wavelet transform results to obtain scale energy analysis results, and performing peak detection on the scale energy analysis results to obtain multiple peak data;
[0066] (4) Feature encoding is performed on multiple peak data to obtain encoded feature data, and hierarchical clustering is performed on the encoded feature data to obtain multi-level signal features.
[0067] Specifically, frequency analysis is performed on the phase space data set to reveal the periodicity and frequency characteristics hidden in the data set. Frequency analysis usually uses Fourier transform to convert the time domain signal into a representation in the frequency domain. By analyzing the spectrum, the main frequency components and energy distribution are determined. According to the frequency analysis results, the phase space data set is subjected to maximum overlap discrete wavelet transform. The maximum overlap discrete wavelet transform is an effective time-frequency analysis tool that can analyze the local characteristics of the signal at different scales. The maximum overlap discrete wavelet transform is different from the traditional discrete wavelet transform. There is no downsampling step, so the full length of the original data is retained at each scale, thereby more accurately capturing the detailed features in the signal. The basic steps of the maximum overlap discrete wavelet transform include decomposition and reconstruction. In the decomposition step, the signal is decomposed through a series of filter groups to obtain wavelet coefficients at different scales. The maximum overlap discrete wavelet transform formula is:
[0068] ;
[0069] in, For the The wavelet coefficients of the scale, is the filter coefficient, is the original signal, is the length of the signal. represents the sum of all filter coefficients, is a cyclic shift operation used to process signal boundaries. After obtaining the wavelet transform result, scale analysis is performed on it to obtain the scale energy analysis result. The purpose of scale analysis is to evaluate the energy distribution of the signal at different scales, so as to identify the signal features that are significant at a specific scale. Energy is expressed by calculating the sum of the squares of the wavelet coefficients. The specific formula is:
[0070] ;
[0071] in, Indicates The energy of the scale, For the The wavelet coefficients of the scale, is the length of the signal. represents the sum of all wavelet coefficients. Represents the square of the wavelet coefficients and is used to calculate energy. Peak detection is performed on the scale energy analysis results to determine multiple peak data. The purpose of peak detection is to identify the local maximum values of the signal at different scales. These peaks usually correspond to important features or mutation points in the signal. By setting a threshold or using a sliding window method, the peak position and amplitude in the signal can be effectively detected. Subsequently, multiple peak data are feature encoded to obtain encoded feature data. The detected peak information is converted into a higher-level feature representation by quantizing the peak amplitude, position, and frequency. The specific form of the encoded feature data can be designed according to application requirements. For example, the peak information can be encoded as a vector in which each element represents a feature dimension. Finally, the encoded feature data is hierarchically clustered to obtain multi-level signal features. Hierarchical clustering is a clustering analysis method that recursively merges or splits data points to construct a hierarchical tree structure that reflects the similarity between data points. Common hierarchical clustering algorithms include agglomerative hierarchical clustering and divisive hierarchical clustering. Agglomerative hierarchical clustering starts with each data point as a separate cluster and continuously merges the most similar clusters until all data points are in one cluster. Divisive hierarchical clustering, on the contrary, starts with an overall cluster and continues to split until each data point becomes a separate cluster. The distance metric for hierarchical clustering usually uses Euclidean distance or cosine similarity, and the link method can choose single link, complete link or average link, etc.
[0072] In a specific embodiment, the process of executing step S104 may specifically include the following steps:
[0073] (1) Perform threshold analysis on multi-level signal features to obtain the target threshold;
[0074] (2) Screening the multi-level signal features for abnormal features according to the target threshold to obtain multiple first signal features;
[0075] (3) performing energy calculation on the plurality of first signal features to obtain a total energy value of each first signal feature;
[0076] (4) sorting the plurality of first signal features according to the total energy value to obtain an energy sorting result, and performing feature selection on the energy sorting result to obtain a plurality of second signal features;
[0077] (5) performing mathematical morphological dilation and erosion operations on the plurality of second signal features to obtain a plurality of third signal features;
[0078] (6) performing isolation energy feature calculation on the plurality of third signal features to obtain an isolation energy feature value of each third signal feature;
[0079] (7) Classify and decide on the multiple third signal features according to the isolated energy characteristic values to obtain multiple abnormal features.
[0080] Specifically, threshold analysis is performed on multi-level signal features to determine an appropriate threshold so that significant abnormal features can be screened out in subsequent steps. For example, when processing vibration signals, a threshold in the frequency domain is determined to distinguish between normal operation and fault conditions. The threshold can be determined by statistical analysis or empirical methods. Assume that in the analysis, a signal feature is considered to be an abnormal feature when its amplitude is greater than a certain threshold T. Abnormal feature screening is performed on multi-level signal features according to the target threshold, and multiple first signal features are screened out. The first signal features represent those abnormal signal parts that exceed the threshold. In order to analyze these abnormal features more accurately, the total energy value of each first signal feature is calculated. Energy calculation is usually achieved by square summation: .in, is the total energy value, For the signal characteristics, is the total number of signal features. After obtaining the total energy value of each first signal feature through energy calculation, multiple first signal features are sorted according to the total energy value to obtain the energy sorting result. Energy sorting helps to identify abnormal features with the highest energy, which are usually related to important faults or abnormal events. Feature selection is performed based on the energy sorting results, and several signal features with the highest energy are selected as second signal features. Subsequently, mathematical morphological dilation and erosion operations are performed on the second signal features. Mathematical morphology is an image processing technology that is often used for morphological feature extraction in signal processing. The dilation operation is used to expand signal features to make them easier to detect; the erosion operation is used to shrink signal features and remove noise and unimportant parts. Assume is the input signal, is the structural element, and the dilation and erosion operations can be expressed as:
[0081] ;
[0082] ;
[0083] in, represents the expansion operation, Represents an erosion operation, and + and - represent the translation of a set. After the expansion and erosion operations, multiple third signal features are obtained. The isolated energy features are calculated for the third signal features to quantify the independence and significance of each third signal feature in the signal. The isolated energy features can be achieved by calculating the energy distribution of the signal in each part. Classification decisions are made for multiple third signal features based on the isolated energy feature values. The purpose of the classification decision is to classify these features into different anomaly types. Various classification algorithms can be used, such as support vector machines, random forests, etc., to ultimately obtain multiple anomaly features.
[0084] In a specific embodiment, the process of executing step S105 may specifically include the following steps:
[0085] (1) Construct a simulation model of the target electrical appliance, perform coordinate mapping on multiple abnormal features, obtain the coordinates of the abnormal position, and calculate the distance of the abnormal position coordinates to obtain abnormal distance data;
[0086] (2) Perform minimum distance screening on the abnormal distance data to obtain the nearest abnormal position, and perform direction analysis on the nearest abnormal position to obtain abnormal direction information;
[0087] (3) Performing regional division on the abnormal direction information to obtain abnormal regional division results, and performing hot spot analysis on the abnormal regional division results to obtain abnormal hot spot areas;
[0088] (4) Prioritize the monitoring of abnormal hot spots to obtain priority sorting results, and allocate cumulative energy features to the priority sorting results to obtain the abnormal location information of each abnormal feature.
[0089] Specifically, a simulation model of the target electrical appliance is constructed. Based on the physical structure and working principle of the electrical appliance, finite element analysis or multi-physics simulation software, such as ANSYS, COMSOL, etc., is used to set the geometric shape, material properties and boundary conditions of the electrical appliance to simulate its operating state under different working conditions. Coordinate mapping is performed on multiple abnormal features to obtain the coordinates of the abnormal position. The detected abnormal features are matched with the physical spatial position of the electrical appliance so as to accurately locate the abnormality in the simulation model. For example, if the abnormal feature is a voltage fluctuation detected on a certain sensor, the position coordinates of the sensor need to be mapped to the simulation model of the electrical appliance. Distance calculation is performed on the obtained abnormal position coordinates to obtain abnormal distance data. The abnormal distance data is screened for the minimum distance to obtain the nearest abnormal position, and the abnormal feature with the nearest distance is identified. The abnormal feature is obtained by traversing all distance data and finding the minimum value. The nearest abnormal position may represent a fault concentration point in a key area of the electrical appliance. Direction analysis is performed on the nearest abnormal position to obtain abnormal direction information. Direction analysis can be achieved by calculating the vector between abnormal positions. Direction information helps to identify the abnormal propagation path and determine the source of the fault. Subsequently, based on the abnormal direction information, the target electrical appliance is divided into regions to obtain the abnormal region division results. According to the structural characteristics and abnormal direction information of the electrical appliance, the electrical appliance is divided into multiple regions, each of which represents a possible fault source or fault propagation path. For example, different components or regions of the electrical appliance are divided into power supply area, control area, execution area, etc. Hot spot analysis is performed on the abnormal region division results to obtain abnormal hot spot areas. By counting the number of abnormal features and energy distribution in each area, the areas where abnormal features are concentrated are identified. These hot spots are usually high-incidence areas of faults and need to be paid special attention. Hot spot analysis can visualize the abnormal distribution of each area through heat maps or density maps. The abnormal hot spot areas are prioritized for monitoring and priority ranking results are obtained. The basis for priority ranking can be the number of abnormal features, total energy value or historical fault records. Through priority ranking, it is determined which areas need to be monitored and maintained first. Priority ranking can use a weighted scoring method to calculate the priority score of each area according to the weights of different indicators:
[0090] ;
[0091] in, For the The priority score of each region, is the number of abnormal features in the region, is the total energy value, For historical fault records, is the weight coefficient. According to the priority sorting results, the cumulative energy feature allocation is performed on each region to obtain the abnormal location information of each abnormal feature. The cumulative energy feature allocation is to distribute the energy of each region to the abnormal features it contains to quantify the importance of each feature. The specific formula is:
[0092] ;
[0093] in, For the In the region The cumulative energy characteristics of the abnormal characteristics, is the total energy of the region, is the number of abnormal features in the area.
[0094] In a specific embodiment, the process of executing step S106 may specifically include the following steps:
[0095] (1) Perform feature encoding and integration on multiple abnormal features and abnormal location information to obtain an abnormal feature input vector;
[0096] (2) The abnormal feature input vector is input into the stacked generalized additive model to calculate the feature contribution degree and vector weighted analysis to obtain the abnormal feature weighted vector;
[0097] (3) Perform fault prediction on the abnormal feature weighted vector to obtain an initial prediction result, and perform residual analysis on the initial prediction result to obtain a residual analysis result;
[0098] (4) Using the random forest algorithm, perform residual prediction calculation on the residual analysis results to obtain residual prediction data;
[0099] (5) The residual prediction data and the initial prediction results are combined and the confidence is calculated to obtain a confidence value, and the fault prediction result of the target electrical appliance is output according to the confidence value.
[0100] Specifically, feature encoding and integration are performed on multiple abnormal features and abnormal location information to obtain an abnormal feature input vector, and the abnormal features of multiple dimensions and the corresponding abnormal location information are encoded into a vector for input into the prediction model. Assuming that each abnormal feature contains n attributes (such as frequency, amplitude, duration, etc.), and the abnormal location information contains m attributes (such as coordinates, distance, etc.), each abnormal feature input vector can be represented as an n+m-dimensional vector. The abnormal feature input vector is input into the stacked generalized additive model for feature contribution degree calculation and vector weighted analysis. The generalized additive model is a flexible regression model that represents the output variable by representing the sum of nonlinear functions of the input variables. The stacked generalized additive model further improves the prediction ability of the model through a multi-layer structure. The form of the stacked generalized additive model can be expressed as:
[0101] ;
[0102] in, is the connection function, is the response variable The expected value of is a constant term, is the input variable A nonlinear function of . During the model training process, the contribution of each feature in each input vector is calculated to obtain a feature weighted vector. Fault prediction is performed using the feature weighted vector to obtain an initial prediction result. The initial prediction result is a fault prediction value based on the weighted feature vector. In order to improve the accuracy of the prediction, residual analysis is required for the initial prediction results. The purpose of residual analysis is to evaluate the difference between the predicted results and the actual observed values. The residual prediction is calculated on the residual analysis results using the random forest algorithm. Random forest is an ensemble learning method that improves prediction accuracy by constructing multiple decision trees and combining their prediction results. The purpose of residual prediction is to identify and correct systematic errors in the initial prediction. The prediction formula of random forest can be expressed as: ;
[0103] in, It is The predicted value of the residual, is the number of trees, It is The prediction results of the tree, is the input feature vector. The residual prediction data and the initial prediction results are merged and the confidence value is calculated. The merging process is to add the initial prediction result to the residual prediction result to obtain the corrected prediction value. The confidence value reflects the reliability of the prediction result, which can be estimated by calculating the variance of the prediction result or using the Bayesian method. Finally, the fault prediction result of the target electrical appliance is output according to the confidence value. A high confidence value indicates that the prediction result is more reliable and can be used as a basis for fault diagnosis and maintenance decisions. For example, assuming that the initial prediction result is that the probability of the equipment failing in the next hour is 70%, the residual prediction result corrects this probability to 75%, and the confidence value is 0.85, indicating that the prediction result is more reliable. Finally, the output fault prediction result is that the probability of the equipment failing in the next hour is 75%, and this prediction result has a high confidence level.
[0104] The above describes the power detection method in the embodiment of the present application. The following describes the power detection device in the embodiment of the present application. Figure 2 In the embodiment of the present application, an embodiment of the power detection device includes:
[0105] The acquisition module 201 is used to acquire power data of the target electrical appliance to obtain an original power data sequence;
[0106] A reconstruction module 202 is used to perform phase space reconstruction on the original power data sequence to obtain a phase space data set;
[0107] Transformation module 203, used for performing maximum overlap discrete wavelet transform on the phase space data set to obtain multi-level signal features;
[0108] A calculation module 204 is used to use mathematical morphology technology to perform isolation energy feature calculation and abnormal feature determination on multi-level signal features to obtain multiple abnormal features;
[0109] An analysis module 205 is used to analyze the accumulated energy characteristics and directional characteristics of the multiple abnormal characteristics to obtain abnormal position information of each abnormal characteristic;
[0110] The prediction module 206 is used to use the stacked generalized additive model and the random forest algorithm to perform fault prediction on multiple abnormal features and abnormal location information to obtain a fault prediction result of the target electrical appliance.
[0111] Through the cooperation of the above components, the high accuracy and consistency of the original power data are ensured through real-time monitoring of voltage and current, noise filtering and normalization processing. It can effectively eliminate external interference and obtain more accurate power data. By reconstructing the original power data in phase space, the time series data can be converted into trajectories in high-dimensional space, revealing the dynamic characteristics of electrical performance. The phase space reconstruction method can capture hidden patterns and system states that cannot be detected by traditional time domain analysis, which helps to find potential fault signs earlier. The maximum overlap discrete wavelet transform technology is used to decompose the phase space data, which can analyze the power signal at multiple scales. It can not only identify the frequency components in the power signal, but also detect short-term abnormal fluctuations and mutations. The mathematical morphology technology is used to process the multi-level signal features. By calculating the isolated energy features and determining the abnormal features, the abnormal features in the power signal can be accurately identified. Through the expansion and erosion operations, the significance of the features is enhanced, and the accuracy and reliability of abnormal detection are improved. The cumulative energy features and directional features of the detected abnormal features are analyzed to accurately locate the location of the fault. By building a simulation model of the electrical appliance and performing coordinate mapping and directional analysis, the fault area can be accurately divided and the fault hotspot can be identified. The stacked generalized additive model and random forest algorithm are used to predict faults based on multiple abnormal features and abnormal location information, and a comprehensive analysis is performed by combining multiple feature data. The stacked generalized additive model can identify the contribution of each feature to fault prediction, and the random forest algorithm can process high-dimensional data and provide robust prediction results. The combination of the two improves the accuracy and reliability of fault prediction and significantly improves the accuracy of fault prediction for electrical appliances.
[0112] The present application also provides an electric power detection device, which includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the electric power detection method in the above-mentioned embodiments.
[0113] The present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer executes the steps of the power detection method.
[0114] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0115] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0116] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A power detection method, characterized in that: The power detection method comprises: Collect power data of target electrical appliances to obtain original power data sequence; Reconstructing the original power data sequence in phase space to obtain a phase space data set; Performing maximum overlap discrete wavelet transform on the phase space data set to obtain multi-level signal features; Mathematical morphology technology is used to calculate the isolated energy features and determine the abnormal features of the multi-level signal features to obtain multiple abnormal features; specifically, the method includes: performing threshold analysis on the multi-level signal features to obtain a target threshold; screening the multi-level signal features for abnormal features according to the target threshold to obtain multiple first signal features; performing energy calculation on the multiple first signal features to obtain the total energy value of each first signal feature; sorting the multiple first signal features according to the total energy value to obtain an energy sorting result, and performing feature selection on the energy sorting result to obtain multiple second signal features; performing mathematical morphological expansion and erosion operations on the multiple second signal features to obtain multiple third signal features; performing isolated energy feature calculation on the multiple third signal features to obtain an isolated energy feature value of each third signal feature; performing classification decisions on the multiple third signal features according to the isolated energy feature value to obtain multiple abnormal features; Performing cumulative energy feature and directional feature analysis on the multiple abnormal features to obtain abnormal position information of each abnormal feature; specifically comprising: constructing a simulation model of the target electrical appliance, and performing coordinate mapping on the multiple abnormal features to obtain abnormal position coordinates, and performing distance calculation on the abnormal position coordinates to obtain abnormal distance data; performing minimum distance screening on the abnormal distance data to obtain the nearest abnormal position, and performing directional analysis on the nearest abnormal position to obtain abnormal direction information; performing regional division on the abnormal direction information to obtain an abnormal region division result, and performing hot spot analysis on the abnormal region division result to obtain an abnormal hot spot region; performing monitoring priority sorting on the abnormal hot spot region to obtain a priority sorting result, and performing cumulative energy feature allocation on the priority sorting result to obtain abnormal position information of each abnormal feature; A stacked generalized additive model and a random forest algorithm are used to perform fault prediction on the multiple abnormal features and the abnormal location information to obtain a fault prediction result of the target electrical appliance.
2. The power detection method according to claim 1, characterized in that: The step of collecting power data from the target electrical appliance to obtain an original power data sequence includes: Connect the target appliance to multiple preset test instruments; Performing a voltage test on the target electrical appliance to obtain a voltage data sequence, and performing a current test on the target electrical appliance to obtain a current data sequence; Performing time synchronization on the voltage data sequence and the current data sequence respectively to obtain time-synchronized voltage data and time-synchronized current data; Performing noise filtering on the voltage data after the time synchronization to obtain cleaned voltage data, and performing noise filtering on the current data after the time synchronization to obtain cleaned current data; Normalizing the voltage data after cleaning to obtain normalized voltage data, and normalizing the current data after cleaning to obtain normalized current data; The normalized voltage data and the normalized current data are integrated to obtain an original power data sequence.
3. The power detection method according to claim 1, characterized in that: The phase space reconstruction of the original power data sequence to obtain a phase space data set includes: Performing dimension selection on the original power data sequence to determine a time dimension and a variable dimension of the original power data sequence; According to the time dimension and the variable dimension, delay embedding is performed on the original power data sequence to obtain delay embedded data; Mapping the time-delay embedded data into a phase space to obtain a phase space point set, and performing boundary analysis on the phase space point set to determine the boundary and distribution characteristics of the phase space; Using a principal component analysis algorithm to perform dimensionality reduction processing on the phase space point set to obtain dimensionality-reduced phase space data; Performing data point distribution density estimation on the reduced-dimensional phase space data to obtain a density estimation result; According to the density estimation result, topologically sorting the reduced-dimensional phase space data to obtain topologically sorted data, and performing cluster analysis on the topologically sorted data to obtain a target clustering result; According to the target clustering result, labels are assigned to the topological sorting data to obtain multiple target data groups, and corresponding phase space data sets are generated according to the multiple target data groups.
4. The power detection method according to claim 1, characterized in that: The phase space data set is subjected to maximum overlap discrete wavelet transform to obtain multi-level signal features, including: Performing frequency analysis on the phase space data set to obtain a frequency analysis result; Performing maximum overlap discrete wavelet transform on the phase space data set according to the frequency analysis result to obtain a wavelet transform result; Performing scale analysis on the wavelet transform result to obtain a scale energy analysis result, and performing peak detection on the scale energy analysis result to obtain multiple peak data; Feature encoding is performed on the multiple peak data to obtain encoded feature data, and hierarchical clustering is performed on the encoded feature data to obtain multi-level signal features.
5. The power detection method according to claim 1, characterized in that: The method of using a stacked generalized additive model and a random forest algorithm to perform fault prediction on the multiple abnormal features and the abnormal location information to obtain a fault prediction result of the target electrical appliance includes: Performing feature coding integration on the multiple abnormal features and the abnormal position information to obtain an abnormal feature input vector; Inputting the abnormal feature input vector into the stacked generalized additive model to perform feature contribution degree calculation and vector weighted analysis to obtain an abnormal feature weighted vector; Performing fault prediction on the abnormal feature weighted vector to obtain an initial prediction result, and performing residual analysis on the initial prediction result to obtain a residual analysis result; Perform residual prediction calculation on the residual analysis result by using a random forest algorithm to obtain residual prediction data; The residual prediction data and the initial prediction result are combined and confidence calculated to obtain a confidence value, and the fault prediction result of the target electrical appliance is output according to the confidence value.
6. A power detection device, characterized in that: The power detection device comprises: The acquisition module is used to collect power data of the target electrical appliances and obtain the original power data sequence; A reconstruction module, used for performing phase space reconstruction on the original power data sequence to obtain a phase space data set; A transformation module, used for performing maximum overlap discrete wavelet transformation on the phase space data set to obtain multi-level signal features; A calculation module is used to use mathematical morphology technology to perform isolation energy feature calculation and abnormal feature judgment on the multi-level signal features to obtain multiple abnormal features; specifically comprising: performing threshold analysis on the multi-level signal features to obtain a target threshold; performing abnormal feature screening on the multi-level signal features according to the target threshold to obtain multiple first signal features; performing energy calculation on the multiple first signal features to obtain a total energy value of each first signal feature; sorting the multiple first signal features according to the total energy value to obtain an energy sorting result, and performing feature selection on the energy sorting result to obtain multiple second signal features; performing mathematical morphology expansion and erosion operations on the multiple second signal features to obtain multiple third signal features; performing isolation energy feature calculation on the multiple third signal features to obtain an isolation energy feature value of each third signal feature; performing classification decisions on the multiple third signal features according to the isolation energy feature value to obtain multiple abnormal features; An analysis module is used to perform cumulative energy feature and directional feature analysis on the multiple abnormal features to obtain abnormal position information of each abnormal feature; specifically comprising: constructing a simulation model of the target electrical appliance, and performing coordinate mapping on the multiple abnormal features to obtain abnormal position coordinates, and performing distance calculation on the abnormal position coordinates to obtain abnormal distance data; performing minimum distance screening on the abnormal distance data to obtain the nearest abnormal position, and performing directional analysis on the nearest abnormal position to obtain abnormal direction information; performing regional division on the abnormal direction information to obtain an abnormal region division result, and performing hot spot analysis on the abnormal region division result to obtain an abnormal hot spot region; performing monitoring priority sorting on the abnormal hot spot region to obtain a priority sorting result, and performing cumulative energy feature allocation on the priority sorting result to obtain abnormal position information of each abnormal feature; The prediction module is used to use a stacked generalized additive model and a random forest algorithm to perform fault prediction on the multiple abnormal features and the abnormal location information to obtain a fault prediction result of the target electrical appliance.
7. A power detection device, characterized in that: The power detection device comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the power detection device to perform the power detection method according to any one of claims 1 to 5.
8. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the power detection method according to any one of claims 1 to 5 is implemented.
