A fault detection method and detection system for an analog-to-digital intelligent distribution box
By installing a sensor array in the distribution box to collect multiple types of data, constructing a comprehensive feature vector, and using an improved gradient boosting tree algorithm for fault diagnosis, the problems of single data collection and insufficient fault identification adaptability in the existing technology are solved, and the content of full-dimensional fault tracing and detection is enriched.
Patent Information
- Application Number
- CN202611697293.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-30
- Publication Date
- 2026-11-27
AI Technical Summary
Existing power distribution box fault detection technologies suffer from limitations such as limited data acquisition types, inability to cover all dimensions of operational status, lack of multi-source data integration and processing, insufficient fault identification adaptability, inability to achieve full-dimensional fault tracing, and the detection process being independent of equipment operation and maintenance records, making in-depth analysis of fault tracing impossible.
By installing a sensor array inside the distribution box to collect various types of operational data, constructing a comprehensive feature vector, using an improved gradient boosting tree algorithm for fault diagnosis, and combining historical maintenance records to trace and locate the root cause of the fault, a final fault diagnosis report is generated.
It achieves a complete description of the full-dimensional operating status of the distribution box, dynamically adapts to complex fault scenarios, refines the distinction of fault types, outputs standardized fault category identifiers and quantitative confidence levels, and combines historical records to perform multi-level fault source tracing and positioning, thus enriching the output content of fault detection.
Smart Images

Figure CN123179149A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power distribution box fault detection technology, and in particular to a fault detection method and system for modular intelligent power distribution boxes. Background Technology
[0002] Intelligent distribution boxes are widely used in power distribution systems. During long-term continuous operation, the internal electrical components are prone to performance degradation, and various electrical anomalies can gradually develop into equipment failures, affecting the overall operational stability of the power distribution system. At present, routine fault detection work for distribution boxes is generally limited to the collection and recording of basic electrical parameters. The data collection types are relatively simple and do not cover operational information at the equipment structure and connection level, such as temperature fluctuations and changes in contact resistance. The monitoring content has obvious limitations and cannot fully cover the full-dimensional operational status of the distribution box.
[0003] Conventional detection methods only analyze single operating parameters independently, lacking the integration and processing of multi-source operating data and feature mining processes. They cannot uniformly extract and integrate implicit state information such as electrical distortion, three-phase operating differences, and dynamic changes in temperature and resistance, making it difficult to form a feature system that can comprehensively reflect the real-time operating conditions of the equipment. They also cannot effectively identify minor abnormal conditions in the early stages of the equipment.
[0004] Existing fault diagnosis models have fixed operational rules and cannot be dynamically adjusted based on the distribution and combination of fault features. This results in insufficient adaptability for fault identification, only enabling preliminary differentiation of basic fault categories. The fault detection process is independent of the equipment maintenance record system, failing to incorporate in-depth analysis of historical maintenance information. Fault tracing is broad, unable to pinpoint the location of the fault and the development of the anomaly, and also unable to systematically divide maintenance work. To address the current situation where data acquisition is limited, features are scattered, and single models are built with weak adaptability and simplistic diagnostic content, a new detection method is needed to achieve an integrated detection mode that simultaneously collects multiple types of operational data, unifies the construction of multi-dimensional features, and constructs an adaptive model for diagnosis and comprehensive fault tracing. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of existing technologies and to propose a fault detection method and system for modular intelligent distribution boxes.
[0006] To achieve the above objectives, the present invention adopts the following technical solution: a fault detection method for modular intelligent distribution boxes, comprising: The sensor array installed inside the distribution box and at the incoming line end continuously collects multiple types of operating data, including three-phase current waveforms, voltage waveforms, switch contact temperature sequences, and contact resistance change sequences at key connection points. The various types of operating data are preprocessed and feature extracted to construct a comprehensive feature vector characterizing the instantaneous operating state of the distribution box. The comprehensive feature vector includes current harmonic distortion rate, three-phase unbalance, voltage sag depth, temperature change rate, and resistance increment. The comprehensive feature vector is input into a pre-trained fault diagnosis model, which is constructed using an improved gradient boosting tree algorithm. The improved gradient boosting tree algorithm dynamically adjusts the splitting rules based on the frequency of occurrence and combination relationship of each feature in historical fault cases. The fault diagnosis model analyzes and calculates the comprehensive feature vector to output a preliminary fault type identifier and a confidence score. The preliminary fault type identifier includes overload, short circuit, poor contact, insulation degradation, and phase loss. Based on the preliminary fault type identification, confidence score, and historical maintenance records of the distribution box, a root cause analysis and location analysis of the fault is performed to generate a final fault diagnosis report that includes the location of the specific faulty component, the fault evolution path, and the maintenance priority ranking.
[0007] As a further aspect of the present invention, the multi-type operating data is preprocessed and feature extracted to construct a comprehensive feature vector characterizing the instantaneous operating state of the distribution box, including: The three-phase current waveform is processed by Fast Fourier Transform to calculate the amplitude of the fundamental component and each harmonic component, and the current harmonic distortion rate is generated based on the ratio of the amplitude of each harmonic component to the amplitude of the fundamental component. Calculate the difference in the effective values of the three-phase currents in the three-phase current waveforms, and generate the three-phase unbalance based on the ratio of the difference between the effective value of the maximum phase current and the effective value of the minimum phase current to the effective value of the average current. Monitor the effective value change of the voltage waveform within a preset time window, record the maximum deviation of the effective voltage value from falling below the rated value, and generate the voltage sag depth. Perform differential operation on the temperature sequence of the switch contacts, calculate the average rate of change of temperature values at adjacent sampling times, and generate the temperature change rate; Baseline comparison is performed on the contact resistance change sequence of the key connection points, and the relative percentage increment of the current sampled value relative to the initial calibration value is calculated to generate the resistance increment. After normalizing the current harmonic distortion rate, three-phase unbalance, voltage sag depth, temperature change rate, and resistance increment, they are combined in a preset order to form the comprehensive feature vector.
[0008] As a further aspect of the present invention, the improved gradient boosting tree algorithm dynamically adjusts the splitting rules based on the frequency of occurrence and combination relationships of each feature in historical fault cases, including: In the process of constructing each decision tree, a dynamic weight is maintained for each feature. The dynamic weight is updated according to the frequency of the corresponding feature co-occurring with various fault labels in historical fault cases. When splitting nodes, the traditional Gini impurity or information gain is weighted and corrected according to the dynamic weight of each feature, so that the splitting rules tend to select features or feature combinations that frequently appear in historical failures. After generating a new leaf node, the training samples assigned to the new leaf node are traversed, the feature value combination pattern of the samples in the current leaf node is counted, and the current feature value combination pattern is recorded as a new potential fault feature pattern. In the subsequent tree construction process, the potential fault feature pattern is used as a virtual feature to participate in the candidate split node. The dynamic weight of the virtual feature is set according to the frequency and discriminative power of the corresponding pattern in historical faults. When the fault diagnosis model predicts the new input comprehensive feature vector, the decision path is influenced by the dynamic weights of the original features and virtual features, thus achieving dual learning from historical experience and new patterns.
[0009] As a further aspect of the present invention, the comprehensive feature vector is analyzed and calculated using the fault diagnosis model to output a preliminary fault type identifier and confidence score, including: The comprehensive feature vector is simultaneously input into multiple pre-trained gradient boosting decision trees in the fault diagnosis model; In each decision tree, the comprehensive feature vector is passed from the root node to a leaf node along a specific path according to the splitting rules of each node. The leaf node stores an original probability distribution of various types of faults. The original probability distributions output by all decision tree leaf nodes are collected, and the probabilities of various fault types are weighted and averaged to calculate the average probability of the comprehensive feature vector belonging to each fault type. The fault type with the highest average probability is selected as the initial fault type identifier. The average probability value corresponding to the preliminary fault type identifier is converted into the confidence score by a calibration function mapping based on the model's performance on the validation set.
[0010] As a further aspect of the present invention, by combining the preliminary fault type identification, confidence score, and historical maintenance records of the distribution box, a root cause analysis and location analysis of the fault is performed to generate a final fault diagnosis report containing the specific location of the faulty component, the fault evolution path, and the maintenance priority ranking, including: Based on the preliminary fault type identifier, a set of electrical components strongly correlated with the preliminary fault type is retrieved from the topology knowledge base of the distribution box to form a preliminary list of suspected components. Based on the confidence score, each element in the preliminary list of suspected elements is assigned an initial suspicion weight; The historical maintenance records of the distribution box are queried to filter out components that have experienced similar faults in the past and their maintenance times. The suspicion weight of the corresponding components is increased based on the time elapsed since the maintenance. In the topology of the distribution box, the electrical connection and physical location relationships between the components in the preliminary list of suspected components are analyzed, and a fault impact propagation network centered on the high-weight suspected components is constructed. Based on the fault propagation network, the fault originating element and the fault propagation path within the box are derived and determined as the fault evolution path. By combining the suspicion weight of each component, its centrality in the fault impact propagation network, and its historical cost of replacement or repair, a maintenance urgency index is calculated for each component, and the components are sorted according to the maintenance urgency index to generate a maintenance priority ranking. By integrating the location information of the fault-originating component, the fault evolution path, and the maintenance priority ranking, a final fault diagnosis report with a structured description is formed.
[0011] As a further aspect of the present invention, the step of retrieving a set of electrical components strongly correlated with the initial fault type from the topology knowledge base of the distribution box includes: The topology knowledge base of the distribution box is stored in a graph structure, where nodes represent electrical components within the distribution box and edges represent electrical connections between components. Each electrical component node is associated with the type attribute of its component and a record of historical fault types; When the preliminary fault type identifier is received, all electrical component nodes are traversed in the topology knowledge base, and nodes containing the preliminary fault type identifier in the historical fault type records are selected. Starting from the selected node, trace along the edge to its adjacent upstream and downstream components in the electrical path, and include the upstream and downstream components together; The set of all screened and traced electrical component nodes is considered as the set of electrical components strongly correlated with the initial fault type.
[0012] As a further aspect of the present invention, based on the fault propagation network, the fault originating element and the fault propagation path within the box are derived and determined, including the fault evolution path: In the fault propagation network, historical fault occurrence time information of all nodes is extracted, and the occurrence time of the most recent historical similar fault of each element in the preliminary suspected element list is compared. The element with the earliest occurrence time is identified as the candidate element for fault origin. Calculate the node betweenness centrality of the candidate fault origin element in the fault effect propagation network. If its node betweenness centrality is higher than a preset threshold, it is directly identified as the fault origin element. If the node betweenness centrality of the candidate fault origin element is not higher than a preset threshold, then in the fault impact propagation network, starting from the element with the highest suspicion weight in the preliminary suspected element list, a reverse breadth-first search is performed along the electrical connection edge to identify all source elements with an in-degree of zero. By comparing the historical failure probabilities of the source components, the source component with the highest historical failure probability is determined as the failure origin component; After identifying the fault originating element, in the fault influence propagation network, taking the fault originating element as the initial node, the transmission process of fault signals or abnormal electrical parameters is simulated based on the electrical connection relationship and physical adjacency relationship between each element. Record the sequence of activated component nodes during the simulated transmission process, and filter the node sequence according to the suspicion weight of each component. Remove nodes whose suspicion weight is lower than the second preset threshold, and use the filtered node sequence as the propagation path of the fault in the box.
[0013] As a further aspect of the present invention, the three-phase current waveform is subjected to Fast Fourier Transform processing to calculate the amplitude of the fundamental component and each harmonic component, and the current harmonic distortion rate is generated based on the ratio of the amplitude of each harmonic component to the amplitude of the fundamental component, including: The current waveform of each phase of the distribution box is synchronously sampled at a preset sampling frequency to obtain a discrete three-phase current sequence. Hanning windows are applied to the discretized current sequence of each phase to suppress spectral leakage, and fast Fourier transform is performed on the windowed sequence to obtain the spectrum of the current of each phase. In the spectrum of each phase current, locate the spectral component corresponding to the fundamental frequency wave and extract its amplitude as the fundamental wave component amplitude. In the spectrum of each phase current, locate the harmonic spectrum components from the second harmonic to the preset highest harmonic, and extract their amplitudes as the amplitudes of each harmonic component. For each phase, calculate the sum of squares of the amplitudes of all harmonic components from the second harmonic to the preset highest harmonic, and then calculate the square root of the sum of squares to obtain the total effective value of the harmonics of the corresponding phase. For each phase, the ratio of the total effective value of harmonics of the corresponding phase to the amplitude of its fundamental component is calculated to obtain the current harmonic distortion rate of the corresponding phase. The maximum value among the three-phase current harmonic distortion rates is taken as the final current harmonic distortion rate used to construct the comprehensive eigenvector.
[0014] As a further aspect of the present invention, during the construction of each decision tree, a dynamic weight is maintained for each feature. This dynamic weight is updated based on the frequency with which the corresponding feature co-occurs with various fault labels in historical fault cases, including: Initialize a feature weight dictionary, where the initial weight of each feature is 1; Load the historical failure case dataset, wherein each case in the historical failure case dataset contains a comprehensive feature vector sample and its corresponding real failure type label; Traverse each node to be split in the current decision tree, and for the training sample set within the node, calculate the sum of the feature values of each feature in the feature weight dictionary across all samples; For each feature, based on its current sum of feature values, retrieve all historical cases in the historical fault case dataset that contain the feature value range corresponding to the sum of the corresponding feature values; In the historical cases retrieved by statistics, the frequency of co-occurrence of corresponding feature values and various fault labels is used to form a feature-fault co-occurrence frequency matrix. Based on the feature-fault co-occurrence frequency matrix, the correlation strength between the corresponding feature and the main fault type of the sample in the current node is calculated, and the dynamic weight of the corresponding feature is updated according to the correlation strength.
[0015] As a further aspect of the present invention, the present invention also includes a fault detection system for a smart distribution box, the system including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, it implements the steps of the fault detection method for a modular smart distribution box as described above.
[0016] Compared with the prior art, the advantages and positive effects of the present invention are as follows: The system comprehensively collects three-phase current waveforms, voltage waveforms, switch contact temperature sequences, and contact resistance change sequences at key connection points. It performs unified preprocessing and standardized feature extraction on massive amounts of operational data, integrating multiple electrical and physical state indicators to form a comprehensive feature vector. This simultaneous integration of multiple types of operational data covers all state dimensions related to temperature rise of electrical contacts and aging of connection components in the distribution box. It overcomes the limitations of single-parameter acquisition modes, fully recording subtle state fluctuations generated during equipment operation, enriching the descriptive dimensions of equipment operation status, addressing the status gaps inherent in single-indicator monitoring, and completely restoring the overall real-time operating condition of the distribution box.
[0017] Based on the frequency and combination relationships of various features in historical fault cases, the internal splitting rules of the gradient boosting tree algorithm are adjusted to change the fixed model operation logic and adapt to the feature distribution patterns under different fault scenarios. The dynamic rule adjustment method can adapt to the diverse fault manifestations in complex power distribution environments, enhance the fault discrimination capability under multi-feature coupling conditions, refine the distinction boundaries between different fault types, and output standardized fault category labels and quantified confidence scores.
[0018] By combining the model's output results with existing historical maintenance records for joint analysis, multi-level fault tracing and localization are conducted to pinpoint the range of hardware components corresponding to anomalies and trace the progressive changes in anomalies. Maintenance tasks are arranged according to the degree of impact on equipment operation, expanding the output content of fault detection, extending the fault detection workflow, connecting fault identification with subsequent maintenance execution, enriching the implementation content of daily status management of power distribution equipment, and adapting to the routine status monitoring needs of intelligent distribution boxes during long-term continuous operation. Attached Figure Description
[0019] Figure 1 This is a state diagram of a fault detection method for a modular intelligent distribution box according to the present invention. Figure 2 A flowchart for constructing a comprehensive feature vector by preprocessing and extracting features from multiple types of operational data; Figure 3 A flowchart for improving the dynamic adjustment of splitting rules in gradient boosting trees. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0021] In the description of this invention, it should be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships, are based on the orientation or positional relationships shown in the accompanying drawings and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, in the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0022] See Figure 1A fault detection method for modular intelligent distribution boxes is proposed, the overall implementation of which is as follows: Multiple operational data are continuously and synchronously collected through sensor arrays pre-deployed at key monitoring points and their incoming lines within the distribution box. These data include three-phase current waveforms, voltage waveforms, temperature variations over time at switch and circuit breaker contacts, and contact resistance variations over time at key conductor connection points. The collected multi-type operational data are fed into a preprocessing and feature extraction module. This module cleans, aligns, and calculates the raw waveform and sequence data, extracting key feature indicators that characterize the instantaneous state of the system. These indicators include current harmonic distortion rate, three-phase unbalance, voltage sag depth, temperature change rate, and resistance increment. These normalized indicators are then combined into a comprehensive feature vector in a fixed order. This comprehensive feature vector is fed into a pre-trained fault diagnosis model, which is constructed based on an improved gradient boosting tree algorithm. The improvement lies in the algorithm's ability to dynamically optimize its internal decision rules based on the statistical regularities of each feature in historical fault cases. After receiving the comprehensive feature vector, the fault diagnosis model performs inference operations through its internal tree set, outputting a preliminary identifier indicating the most likely fault type and providing a confidence score reflecting the reliability of this judgment. The system combines the preliminary fault type identifier, the confidence score provided by the model, and the historical maintenance records archived for the distribution box to perform in-depth root cause tracing and precise location analysis on the topology model of the distribution box, generating a structured final fault diagnosis report. This report clearly indicates the location of the most likely faulty component, the inferred fault evolution process, and lists the priority of maintenance actions.
[0023] In one embodiment of the present invention, the construction process of the comprehensive eigenvector is described in detail, particularly the method for calculating the current harmonic distortion rate. See also... Figure 2The three-phase current waveforms are processed using Fast Fourier Transform (FFT) to calculate the amplitudes of the fundamental component and each harmonic component. The current harmonic distortion rate is then generated based on the ratio of the amplitude of each harmonic component to the amplitude of the fundamental component. Specifically, the current waveforms of each phase in the distribution box are synchronously sampled at a preset fixed sampling frequency to obtain a discretized three-phase current sequence. A Hanning window function is applied to each independent discretized current sequence to suppress spectral leakage. An FFT is then performed on the windowed sequence to obtain the spectrum of each phase current. Within the spectrum of each phase current, the spectral component corresponding to the power frequency fundamental wave is located, and its amplitude is extracted as the fundamental component amplitude of that phase. Within the same spectrum, the spectral components of each harmonic component within the range from the second harmonic to the preset highest harmonic are located, and their amplitudes are extracted as the amplitudes of each harmonic component. For each phase, the sum of squares of the amplitudes of all harmonic components from the second harmonic to the preset highest harmonic is calculated, and the square root of this sum is then calculated to obtain the total effective harmonic value for the corresponding phase. For each phase, the ratio of the total effective value of harmonics to the amplitude of its fundamental component is calculated to obtain the current harmonic distortion rate of that phase. The maximum value among the three-phase current harmonic distortion rates is taken as the final current harmonic distortion rate used to construct the comprehensive eigenvector. The difference in the effective values of the three-phase current waveforms is calculated, and the three-phase imbalance is generated based on the ratio of the difference between the maximum and minimum effective values of the phase current to the average effective value of the current. The effective value change of the voltage waveform within a preset time window is monitored, and the maximum deviation of the effective voltage value from the rated value is recorded to generate the voltage sag depth. A first-order difference operation is performed on the temperature sequence of the switch contacts to calculate the average rate of change of temperature values at adjacent sampling times, generating the temperature change rate. A baseline comparison is performed on the contact resistance change sequence of key connection points, and the percentage increase of the current sampled value relative to the initial calibration value is calculated to generate the resistance increment. After normalizing the calculated current harmonic distortion rate, three-phase unbalance, voltage sag depth, temperature change rate, and resistance increment, they are combined into a multi-dimensional array in a predefined order. This array is the comprehensive feature vector.
[0024] In practical implementation, consider an intelligent distribution box used in an industrial site, with a rated operating voltage of 400 volts and a rated frequency of 50 Hz. Sensor arrays installed at the incoming line and key internal nodes of the distribution box synchronously acquire three-phase current and voltage waveforms at a sampling frequency of 10,000 samples per second, while simultaneously acquiring switch contact temperature and contact resistance of key connection points once per second. For processing the three-phase current waveforms, the system acquires a discrete A-phase current sequence, B-phase current sequence, and C-phase current sequence containing 1024 sampling points. The A-phase current sequence is multiplied by a Hanning window function of length 1024, and a 1024-point Fast Fourier Transform is performed on the windowed A-phase current sequence to obtain the A-phase current spectrum. From the A-phase current spectrum, the amplitude of the spectral component corresponding to the 50 Hz power frequency is identified and extracted, denoted as the A-phase fundamental component amplitude. In the A-phase current spectrum, the amplitudes of all harmonic components from 100 Hz to 2500 Hz (i.e., the second to fiftieth harmonics) are identified and extracted. Based on the amplitudes of each harmonic component in phase A, the total effective value of phase A harmonics is calculated. The phase A current harmonic distortion rate is calculated based on the ratio of the total effective value of phase A harmonics to the amplitude of the phase A fundamental component. The same windowing, transformation, extraction, and calculation process is repeated for the phase B and phase C current sequences to obtain the phase B and phase C current harmonic distortion rates, respectively. Comparing the three values of phase A, phase B, and phase C current harmonic distortion rates, the maximum value is used as the final current harmonic distortion rate for constructing the comprehensive feature vector. The calculation relationship can be expressed as: in: This indicates the final current harmonic distortion rate used. , , These represent the current harmonic distortion rates calculated based on the currents of phases A, B, and C, respectively. The current harmonic distortion rate for each phase... The total effective value of harmonics of this phase Divide by the amplitude of the fundamental component of that phase get.
[0025] In some embodiments, the three-phase imbalance is calculated based on the acquired current waveform data. Within one calculation cycle, the effective values of phase A current, phase B current, and phase C current are calculated separately. The maximum and minimum values among the effective values of phase A current, phase B current, and phase C current are identified. The average value of the effective values of phase A current, phase B current, and phase C current is calculated. The three-phase imbalance is calculated by dividing the difference between the maximum and minimum effective values of the phase current by the average effective value of the three-phase current. The calculation of the voltage sag depth involves continuously monitoring the voltage waveform and calculating the voltage effective value sequence within a preset 200-millisecond time window. The voltage effective value sequence is compared with the rated voltage value, and the maximum deviation of the voltage effective value from the rated voltage value is recorded as the voltage sag depth. The processing of the switch contact temperature sequence involves calculating the temperature change rate. The system acquires the temperature values of the most recent 10 sampling times, calculates the difference between the temperature values of adjacent sampling times, and calculates the arithmetic mean of the 9 differences. The average rate of change obtained is the temperature change rate. The resistance increment is calculated by comparing the current contact resistance sample value with the healthy resistance value recorded during the initial calibration of the system. The percentage increase of the current sample value relative to the initial calibration value is then calculated to obtain the resistance increment.
[0026] In practical implementation, the calculated results of current harmonic distortion rate, three-phase unbalance, voltage sag depth, temperature change rate, and resistance increment are original features with different dimensions and numerical ranges. The system maintains a normalized parameter table, which stores the typical minimum and maximum values of each feature under historical normal operating conditions. Each original feature value is subtracted from its corresponding typical minimum value and then divided by the difference between its corresponding typical maximum and minimum values, mapping the original feature value to the [0,1] interval. The normalized current harmonic distortion rate, three-phase unbalance, voltage sag depth, temperature change rate, and resistance increment are arranged and combined in a preset order, namely current harmonic distortion rate, three-phase unbalance, voltage sag depth, temperature change rate, and resistance increment, to form a five-dimensional comprehensive feature vector.
[0027] In some embodiments, a specific sampling and calculation example illustrates how a sensor array synchronously acquires current waveform data for phases A, B, and C. After applying a Hanning window to the phase A current data and performing a Fast Fourier Transform, the fundamental component amplitude of phase A is calculated to be 100.0 amperes, the total effective value of the second to fiftieth harmonics of phase A is 8.5 amperes, and the phase A current harmonic distortion rate is 0.085. The same processing is performed on the phase B current data, resulting in a phase B current harmonic distortion rate of 0.092. The same processing is performed on the phase C current data, resulting in a phase C current harmonic distortion rate of 0.078. The system compares the three values of 0.085, 0.092, and 0.078, and selects the maximum value of 0.092 as the final output current harmonic distortion rate characteristic value. The calculated effective values of the three-phase currents show that the effective value of phase A current is 102.1 amps, phase B current is 98.3 amps, and phase C current is 105.6 amps. The average effective value of the three-phase current is 102.0 amps, and the difference between the effective values of the maximum and minimum phase currents is 7.3 amps. The calculated three-phase imbalance is 0.0716. Voltage monitoring shows that the effective voltage value dropped to a minimum of 378 volts within the time window. The system rated voltage is 400 volts, and the voltage sag depth is 22 volts. The switch contact temperature sequence shows that the temperature rose from 45.0 degrees Celsius to 46.5 degrees Celsius within 10 seconds, with a calculated temperature change rate of 0.15 degrees Celsius per second. The current sampled value of the contact resistance at a critical connection point is 1.15 milliohms, with an initial calibration value of 1.00 milliohms. The resistance increment is calculated to be 0.15% or 15%. After normalization and mapping, these original values are combined in sequence to form a comprehensive feature vector [0.92, 0.65, 0.44, 0.30, 0.60], where 0.92 corresponds to the normalized current harmonic distortion rate, 0.65 corresponds to the normalized three-phase imbalance, 0.44 corresponds to the normalized voltage sag depth, 0.30 corresponds to the normalized temperature change rate, and 0.60 corresponds to the normalized resistance increment.
[0028] In one embodiment of the present invention, the mechanism for maintaining and updating dynamic weights in the improved gradient boosting tree algorithm is described in detail. See also... Figure 3In constructing each decision tree of the fault diagnosis model, a dynamic weight is maintained for each feature in the comprehensive feature vector. This dynamic weight is updated based on the frequency of co-occurrence of the corresponding feature with various fault labels in historical fault cases. Specifically, this includes: initializing a feature weight dictionary, where the initial weight for each feature is set to 1; loading a historical fault case dataset, where each case contains a comprehensive feature vector sample and its corresponding true fault type label; traversing each node to be split in the currently constructed decision tree, and for the training sample set within the current node, calculating the sum of feature values for each feature in the feature weight dictionary across these samples; for each feature to be evaluated, retrieving all historical cases in the historical fault case dataset that contain the feature value range corresponding to the sum of its currently calculated feature values based on its current sum of feature values; statistically analyzing the frequency of co-occurrence of the specific feature value with various fault labels in these retrieved historical cases, forming a feature-fault co-occurrence frequency matrix; and calculating the correlation strength between the feature and the main fault types of the samples within the current node based on this feature-fault co-occurrence frequency matrix, and updating the dynamic weight of the feature in the dictionary based on this correlation strength.
[0029] When splitting decision tree nodes, traditional splitting criteria such as Gini impurity or information gain are weighted and modified based on the updated dynamic weights of each feature. This makes the splitting rules more inclined to select features or feature combinations that frequently appear in historical faults or are strongly correlated with faults. After generating a new leaf node, all training samples assigned to that new leaf node are traversed, and a specific combination pattern formed by the values of each feature in these samples is statistically analyzed. This feature value combination pattern is recorded as a new, potentially meaningful fault feature pattern. In the subsequent decision tree construction process, this potential fault feature pattern is included as a virtual feature in the candidate feature set of the splitting node. The dynamic weight of this virtual feature is set according to the frequency of the pattern it represents in historical fault cases and its ability to distinguish fault categories. When the trained fault diagnosis model predicts the newly input comprehensive feature vector, the vector travels along the decision path from the root node to the leaf node in each tree, simultaneously influenced by the dynamic weights of the original features and the aforementioned virtual features. This enables the algorithm to learn and utilize both historical experience knowledge and newly discovered feature patterns.
[0030] In its implementation, the training of the improved gradient boosting tree algorithm begins with the initialization of a feature weight dictionary. The initial dynamic weight for each feature in the comprehensive feature vector contained in the feature weight dictionary is set to 1. A historical fault case dataset is loaded, containing 10,000 records. Each record is a historical case, and each historical case contains a comprehensive feature vector sample consisting of current harmonic distortion rate, three-phase imbalance, voltage sag depth, temperature change rate, and resistance increment, along with its corresponding true fault type label. The fault type labels include overload, short circuit, poor contact, insulation degradation, and phase loss. When constructing the first decision tree of the fault diagnosis model, all training samples are processed starting from the root node. For the training sample set within the root node, the sum of the feature values of the "current harmonic distortion rate" feature in all samples is calculated.
[0031] Assume the total calculated current harmonic distortion rate (HHDCR) feature value is 850.6. Retrieve all historical cases containing HHDCR feature values within the interval [850.0, 851.0] from the historical fault case dataset, retrieving 150 historical cases. Count the frequency of co-occurrence of different HHDCR feature values with various fault labels such as "overload" and "short circuit" in these 150 historical cases, forming a co-occurrence frequency matrix of HHDCR feature and fault type. Assuming the main fault type of the samples in the current root node is "overload," calculate the correlation strength between the HHDCR feature and the "overload" fault based on the co-occurrence frequency matrix. Update the dynamic weight of the "current harmonic distortion rate" feature in the feature weight dictionary based on the calculated correlation strength. The update relationship can be expressed as: in: This represents the updated dynamic weights of the features. This represents the dynamic weights of the features before the update. It is a preset learning rate parameter. This refers to the correlation strength between the calculated features and the main fault types of the current node. The same process of calculating the sum of feature values, retrieving historical cases, calculating co-occurrence frequencies, calculating correlation strength, and updating dynamic weights is repeated for other features in the feature weight dictionary, such as "three-phase imbalance" and "voltage sag depth".
[0032] In some embodiments, when a node in the decision tree needs to be split, the traditional information gain splitting criterion is weighted and corrected based on the updated dynamic weights of each feature in the feature weight dictionary. For the "current harmonic distortion rate" feature, assuming its current dynamic weight is 1.8, the information gain of this feature based on the sample is calculated, and the information gain value is multiplied by the dynamic weight 1.8 to obtain the weighted information gain. For the "temperature change rate" feature, assuming its current dynamic weight is 1.2, the information gain of the "temperature change rate" feature is calculated and multiplied by 1.2. The weighted information gain values of all features are compared, and the feature with the largest weighted information gain value and its splitting point are selected as the splitting rule for the current node. This makes the splitting rule more inclined to select features that are more strongly associated with faults in historical fault cases and have higher dynamic weights. After a new leaf node is generated in the decision tree, all training samples assigned to this new leaf node are traversed, the values of each feature in these samples are counted, and a frequently occurring combination of feature values is recorded, such as "current harmonic distortion rate > 0.85 and temperature change rate > 0.25". This feature value combination pattern "current harmonic distortion rate > 0.85 and temperature change rate > 0.25" is recorded as a new potential fault feature pattern, and a pattern identifier is assigned to this potential fault feature pattern.
[0033] In practical implementation, during the construction of subsequent decision trees, the recorded potential fault feature patterns are added as virtual features to the candidate feature set of split nodes. An initial dynamic weight is assigned to this virtual feature, "current harmonic distortion rate > 0.85 and temperature change rate > 0.25," based on the frequency of this pattern in the historical fault case dataset and its ability to distinguish different fault types. During node splitting calculations, this virtual feature, along with the original current harmonic distortion rate, temperature change rate, and other features, participates in the calculation and comparison of weighted information gain. When the fault diagnosis model predicts the newly input comprehensive feature vector, the comprehensive feature vector is passed from the root node to the leaf node in each decision tree. At each node, it is determined whether the comprehensive feature vector satisfies the condition of the virtual feature, "current harmonic distortion rate > 0.85 and temperature change rate > 0.25." The decision path is influenced by both the dynamic weights of the original features and the dynamic weights of the virtual features. The dynamic weights of original features reflect the historical experience of a single feature, while the dynamic weights of virtual features reflect new patterns of feature combinations. The fault diagnosis model completes inference through dual learning from historical experience and new patterns.
[0034] It is understandable that updating the feature weight dictionary is a continuous process. When constructing each decision tree in the fault diagnosis model, a dynamic weight calculation and update step is performed for each node to be split. The statistical analysis of the co-occurrence frequency matrix of features and fault types is based on the entire historical fault case dataset, ensuring that the dynamic weight adjustment is based on global statistical patterns rather than local samples. The generation of virtual features relies on the feature value combination patterns of samples within the leaf nodes of the decision tree. These patterns are automatically discovered and extracted from the training data. The dynamic weight setting of virtual features comprehensively considers the frequency and discriminative power of patterns; patterns with high frequency and that clearly point to a specific fault type will receive higher dynamic weights. The weighted correction of information gain during decision tree node splitting ensures that features or feature combinations with high dynamic weights have higher priority in constructing more compact and accurate decision rules, thereby explicitly encoding knowledge from historical fault cases into the tree structure of the fault diagnosis model.
[0035] In one embodiment of the present invention, the process of a fault diagnosis model outputting a preliminary fault type identifier and a confidence score is described in detail. A comprehensive feature vector is simultaneously input into multiple pre-trained gradient boosting decision trees in the fault diagnosis model. In each independent decision tree, the input comprehensive feature vector is passed from the root node to a unique leaf node along a specific path according to the splitting rules of each node on the path from the root node to the leaf node. This leaf node stores an original probability distribution for various fault types during the training phase. The original probability distributions output by all the leaf nodes of the decision trees are aggregated, and the probabilities belonging to the same fault type are weighted and averaged to calculate the average probability of the comprehensive feature vector belonging to each preset fault type. The fault type with the highest average probability value is selected as the preliminary fault type identifier for this diagnosis. The average probability value corresponding to this preliminary fault type identifier is input into a pre-defined calibration function based on the model's performance on an independent validation set for mapping and transformation. This transforms the original probability value into a confidence score between 0 and 1 or a specific score range, which more reliably reflects the credibility of the model's judgment.
[0036] In practice, a comprehensive feature vector generated from the field sensor array after preprocessing has a specific value of [0.92, 0.65, 0.44, 0.30, 0.60]. This comprehensive feature vector is simultaneously input into one hundred pre-trained gradient boosting decision trees in the fault diagnosis model. In each independent gradient boosting decision tree, the comprehensive feature vector is passed on according to the splitting rules of each node on the path from the root node to the leaf node. For example, in the first decision tree, the transmission of the comprehensive feature vector is judged at the root node based on the rule of "whether the current harmonic distortion rate is greater than 0.85". Since the current harmonic distortion rate in the comprehensive feature vector is 0.92, the judgment result is true, and the comprehensive feature vector is transmitted to the right child node. At the right child node, the judgment is made based on the rule of "whether the temperature change rate is greater than 0.25". Since the temperature change rate in the comprehensive feature vector is 0.30, the judgment result is true, and the comprehensive feature vector continues to be transmitted to the next right child node. Finally, the comprehensive feature vector reaches a leaf node of the first decision tree. This leaf node has stored an original probability distribution for five types of faults: overload, short circuit, poor contact, insulation degradation, and phase loss during the model training phase. In the second decision tree, the comprehensive feature vector may be transmitted to another leaf node along a different path according to its node rules. This leaf node stores another original probability distribution. Each gradient boosting decision tree in the fault diagnosis model independently completes the transmission process of the comprehensive feature vector from the root node to the unique leaf node and outputs the original probability distribution stored in the corresponding leaf node.
[0037] In some embodiments, the original probability distributions output by all gradient boosting decision tree leaf nodes in the fault diagnosis model are aggregated and synthesized by a central processor. Assuming the original probability distributions are obtained from three gradient boosting decision tree leaf nodes, refer to Table 1: Table 1: Original probability distribution of leaf nodes in gradient boosting decision-making For the "overload" fault type, the probability values output by the three decision trees are aggregated, which are 0.65, 0.70, and 0.60, respectively. A weighted average is calculated on these three probability values, with the weight of each decision tree set according to its out-of-bag estimation error in the training set, to obtain the average probability that the comprehensive feature vector belongs to the "overload" fault type. The same weighted average calculation process is repeated for other fault types such as "short circuit," "poor contact," "insulation degradation," and "phase loss." The formula for calculating the average probability of each fault type is expressed as: in: Indicates the fault type The average probability, This represents the total number of gradient boosting decision trees in the fault diagnosis model. Indicates the first Gradient boosting of decision tree weights Indicates the first Fault types output by leaf nodes of gradient boosting decision trees The probability of each fault type is calculated. After calculating the average probability for all fault types, a set of average probability values is obtained. The fault type with the highest average probability value is selected as the initial fault type identifier.
[0038] In practical implementation, it is assumed that the average probability value of the "overload" fault type is 0.682, the average probability value of the "short circuit" fault type is 0.110, the average probability value of the "poor contact" fault type is 0.123, the average probability value of the "insulation degradation" fault type is 0.055, and the average probability value of the "phase loss" fault type is 0.030, calculated by weighted averaging. Comparing the five average probability values, the "overload" fault type has the highest average probability value of 0.682, so the system selects "overload" as the initial fault type identifier for this diagnosis. The average probability value of 0.682 corresponding to the "overload" fault type is input into a pre-defined calibration function based on the model's performance on the independent validation set for mapping transformation. The calibration function adopts a parameterized sigmoid function form, which transforms the original average probability value into a confidence score between 0 and 1. The average probability of the comprehensive feature vector belonging to "overload" is 0.682. After calibration function mapping, a confidence score of 0.89 is output. This confidence score reflects the credibility of the fault diagnosis model in judging the current state as an "overload" fault.
[0039] It is understandable that the original probability distribution stored in each leaf node of the gradient boosting decision tree is calculated during the model training phase based on the proportion of each type of fault in the training samples falling into that leaf node. In the weighted average calculation, the weights of each gradient boosting decision tree can be set to be equal, or they can be allocated according to the differences in performance of each gradient boosting decision tree during training, with better-performing gradient boosting decision trees being given higher weights. The parameters of the calibration function are obtained by fitting the prediction results of the fault diagnosis model on an independent validation dataset. Its purpose is to calibrate the original average probability value output by the model to a scale that better matches the true confidence level. The preliminary fault type identification is the result of the fault diagnosis model's collective decision-making based on multiple gradient boosting decision trees, while the confidence score is a quantitative assessment of the decision certainty based on this. Together, they constitute the preliminary diagnostic output of the fault diagnosis model on the input comprehensive feature vector.
[0040] In one embodiment of the present invention, a method for generating a list of suspected components in fault root cause tracing and location analysis is described in detail. Based on the preliminary fault type identifier output by the fault diagnosis model, a set of electrical components strongly correlated with the fault type is retrieved from the topology knowledge base of the distribution box to form a preliminary list of suspected components. The topology knowledge base of the distribution box is stored in a graph structure, where nodes represent specific electrical components within the distribution box, and edges represent electrical connections between components. Each electrical component node is associated with its component type attribute and historical fault type records. When a preliminary fault type identifier is received, all electrical component nodes are traversed in the topology knowledge base, and nodes whose historical fault type records contain the preliminary fault type identifier are selected. Starting from these selected nodes, the upstream and downstream components adjacent to them on the electrical path are traced along the connecting edges, and these upstream and downstream components are included in the consideration. The set of all electrical component nodes obtained through direct screening and electrical connection tracing is taken as the set of electrical components strongly correlated with the current preliminary fault type, i.e., the preliminary list of suspected components.
[0041] Based on the confidence score provided by the model, each component in the preliminary suspected component list is assigned an initial suspicion weight. Historical maintenance records of the distribution box are queried to filter components that have experienced similar faults in the past and their maintenance dates. The suspicion weight of the corresponding components is enhanced based on the time elapsed since the maintenance event. In the topology diagram of the distribution box, the electrical connections and physical proximity relationships between the components in the preliminary suspected component list are analyzed to construct a fault propagation network centered on components with higher suspicion weights. Based on the constructed fault propagation network, the most likely fault origin component and the fault propagation path within the box are derived as the inferred fault evolution path. Combining the suspicion weight of each component, its centrality in the fault propagation network, and its historical replacement or repair costs, a maintenance urgency index for each component is calculated. Components are then sorted from high to low maintenance urgency index to generate a maintenance priority ranking. Finally, the location information of the identified fault origin component, the inferred fault evolution path, and the maintenance priority ranking are integrated to form a structured final fault diagnosis report.
[0042] In practical implementation, the fault diagnosis model outputs a preliminary fault type identifier "poor contact" and a confidence score of 0.76 for a given input comprehensive feature vector. Based on this preliminary fault type identifier, the system searches the distribution box's topology knowledge base. The distribution box's topology knowledge base is stored in a graph structure. Nodes in the graph represent specific electrical components within the distribution box, such as "incoming circuit breaker QF1," "outgoing circuit breaker QF2," "busbar connection point B3," and "cable connector J8." Edges represent the electrical connections between components, such as "QF1 output connected to B3" and "B3 connected to QF2 input." Each electrical component node is associated with its component type attributes and historical fault type records. For example, the historical fault type records for the "cable connector J8" node include "poor contact" and "overheating." The system traverses all electrical component nodes in the topology knowledge base, filtering out nodes whose historical fault type records contain the identifier "poor contact," specifically the "cable connector J8" and "busbar connection point B3" nodes. Starting from node "Cable Connector J8", trace along the edge to its adjacent upstream component "Outgoing Circuit Breaker QF2" and downstream component "Load Line L5" on the electrical path. Starting from node "Busbar Connection Point B3", trace its upstream and downstream components "Incoming Circuit Breaker QF1" and "Outgoing Circuit Breaker QF2". The set consisting of all the selected and traced electrical component nodes "Cable Connector J8", "Busbar Connection Point B3", "Incoming Circuit Breaker QF1", "Outgoing Circuit Breaker QF2", and "Load Line L5" is considered as the set of electrical components strongly correlated with the "poor contact" fault type, i.e., the preliminary list of suspected components.
[0043] In some embodiments, the system assigns an initial suspicion weight based on a confidence score to each element in the preliminary list of suspected elements. The initial suspicion weight is determined according to the formula... Calculation, where Indicates the initial suspicion weight. This represents the confidence score output by the fault diagnosis model. This represents a baseline coefficient related to the basic failure probability of a component. The system queries the historical maintenance record database of the distribution box, filtering out components that have historically experienced the "poor contact" fault and their maintenance dates. The suspicion weight of each component is then increased based on the time elapsed since the maintenance. An exemplary preliminary list of suspected components and the weighting process are shown in Table 2. Table 2: Preliminary List of Suspected Components and Weight Adjustment Table In practical implementation, the system analyzes the electrical connections and physical locations of the following components in the preliminary list of suspected components: "Cable Connector J8", "Busbar Connection Point B3", "Incoming Circuit Breaker QF1", "Outgoing Circuit Breaker QF2", and "Load Line L5" within the topology knowledge base of the distribution box. Electrical connections are determined based on edges in the topology knowledge base, while physical locations are determined based on coordinate distances in the 3D model of the distribution box. A fault propagation network is constructed centered on "Cable Connector J8" (0.912) and "Busbar Connection Point B3" (0.836), which have higher suspicion weights. Network nodes include the aforementioned five components, and network edges represent possible fault propagation paths due to electrical connections or physical proximity.
[0044] Based on the constructed fault propagation network, the system derives and determines the most likely fault originating element and the fault propagation path within the enclosure, serving as the inferred fault evolution path. By combining the enhanced suspicion weights of each element, its centrality index in the fault propagation network, and its historical replacement or repair cost data, a maintenance urgency index is calculated for each element. The calculation of the maintenance urgency index considers weighting factors, centrality factors, and cost factors. Based on the maintenance urgency index, components are sorted from high to low to generate a maintenance priority ranking. The ranking result is: "Cable Connector J8" takes precedence over "Busbar Connection Point B3", "Outgoing Circuit Breaker QF2", "Incoming Circuit Breaker QF1", and "Load Line L5". The system integrates the location information of the identified fault originating element "Cable Connector J8", the inferred fault evolution path from "Cable Connector J8" to "Busbar Connection Point B3" and then affecting "Outgoing Circuit Breaker QF2", and the above maintenance priority ranking to generate a structured final fault diagnosis report.
[0045] Understandably, the graph structure storage method of the topology knowledge base enables efficient querying and traversal of electrical connections between components. Historical fault type records are the core filtering condition for retrieving preliminary suspected components. Tracing upstream and downstream components in the electrical path is based on the assumption that a fault may affect or originate from its neighboring components. The calculation of initial suspicion weights transforms the global confidence score output by the model into an initial degree of suspicion for each specific suspected component. The query of historical maintenance records and the application of time enhancement factors introduce equipment-specific maintenance history information, personalizing the analysis results. The construction of the fault impact propagation network connects isolated suspected components through electrical and physical relationships, providing a model foundation for analyzing fault propagation. The maintenance urgency index integrates multiple dimensions such as fault probability, impact range, and economics, and its ranking results are used to guide the allocation of on-site maintenance resources. The structured output of the final fault diagnosis report integrates fault location, path inference, and maintenance recommendations, providing maintenance personnel with complete diagnostic conclusions and action guidelines.
[0046] In one embodiment of the present invention, the specific steps for deriving the fault evolution path based on a fault impact propagation network are detailed. In the constructed fault impact propagation network, historical fault occurrence time information of all nodes is extracted. The occurrence time of the most recent historical similar fault is compared with that of each element in the preliminary suspect element list, and the element with the earliest occurrence time is identified as a candidate fault origin element. The betweenness centrality of the node of the candidate fault origin element in the fault impact propagation network is calculated. If its betweenness centrality is higher than a preset threshold, it is directly identified as the fault origin element. If the betweenness centrality of the node of the candidate fault origin element is not higher than the preset threshold, a reverse breadth-first search is performed along the electrical connection edges in the fault impact propagation network, starting from the element with the highest suspicion weight in the preliminary suspect element list, to identify all source elements with an in-degree of zero. The historical fault probabilities of these source elements are compared, and the source element with the highest historical fault probability is identified as the fault origin element. After identifying the fault origin element, in the fault impact propagation network, using the fault origin element as the initial node, the transmission process of fault signals or abnormal electrical parameters is simulated based on the electrical connection relationships and physical adjacency relationships between the elements. Record the sequence of activated component nodes during the simulated transmission process, and filter the node sequence according to the current suspicion weight of each component in the sequence. Remove nodes whose suspicion weight is lower than the second preset threshold, and use the filtered node sequence as the inferred path of the fault propagation in the box.
[0047] In implementation, the system extracts historical fault occurrence time information for all nodes in the fault propagation network. It compares the most recent occurrence time of similar faults for each element in the preliminary suspect list. The preliminary suspect list includes three elements: "Cable Connector J8," "Busbar Connection Point B3," and "Outgoing Circuit Breaker QF2." The most recent "poor contact" fault for "Cable Connector J8" occurred 150 days ago, and for "Busbar Connection Point B3" it occurred 400 days ago. "Outgoing Circuit Breaker QF2" has no similar fault records. The system identifies "Busbar Connection Point B3," with the earliest occurrence time, as a candidate fault origin element. It calculates the betweenness centrality of "Busbar Connection Point B3" in the fault propagation network. Node betweenness centrality reflects the importance of this element as a shortest path bridge in the network. The system's preset betweenness centrality threshold is 0.5. The calculated betweenness centrality of "Busbar Connection Point B3" is 0.3, which is below the preset threshold of 0.5. The system then proceeds to the next steps.
[0048] In the fault propagation network, starting with the component "Cable Connector J8" with the highest suspicion weight in the initial list of suspected components, a reverse breadth-first search is performed along the electrical connection edges. The reverse breadth-first search examines the upstream electrical connection component "Outgoing Circuit Breaker QF2" of "Cable Connector J8", then examines the upstream electrical connection component "Busbar Connection Point B3" of "Outgoing Circuit Breaker QF2", and continues to examine the upstream electrical connection component "Incoming Circuit Breaker QF1" of "Busbar Connection Point B3". "Incoming Circuit Breaker QF1" has zero in-degree in the fault propagation network and is identified as a source component. During the search process, "Load Line L5" is also identified as another source component with zero in-degree. The system compares the historical fault probabilities of the source components "incoming circuit breaker QF1" and "load line L5". According to the statistics of the historical maintenance record database, the historical fault probability of "poor contact" for "incoming circuit breaker QF1" is 0.05, and the historical fault probability of "poor contact" for "load line L5" is 0.01. The system identifies the source component "incoming circuit breaker QF1" with the highest historical fault probability as the fault origin component.
[0049] In some embodiments, after determining that "incoming circuit breaker QF1" is the fault originating element, the transmission process of fault signals or abnormal electrical parameters is simulated in the fault impact propagation network, with "incoming circuit breaker QF1" as the initial node. The simulated transmission process is based on the electrical connection relationship and physical adjacency relationship between each element. The abnormality is transmitted from "incoming circuit breaker QF1" to its directly electrically connected "busbar connection point B3", then from "busbar connection point B3" to its connected "outgoing circuit breaker QF2", and from "outgoing circuit breaker QF2" to "cable connector J8". The sequence of activated element nodes recorded in the simulated transmission process is ["incoming circuit breaker QF1", "busbar connection point B3", "outgoing circuit breaker QF2", "cable connector J8"]. The system filters the node sequence based on the suspicion weight of each component. The second preset suspicion weight threshold set by the system is 0.7. The suspicion weight of "incoming circuit breaker QF1" in the sequence is 0.760, the suspicion weight of "busbar connection point B3" is 0.836, the suspicion weight of "outgoing circuit breaker QF2" is 0.760, and the suspicion weight of "cable joint J8" is 0.912. The suspicion weight of all components is higher than the second preset threshold of 0.7, and no node is eliminated. The filtered node sequence ["incoming circuit breaker QF1", "busbar connection point B3", "outgoing circuit breaker QF2", "cable joint J8"] is used by the system as the path for the fault to spread within the box.
[0050] In practical implementation, the step of comparing the most recent historical occurrence time of similar failures for each element in the preliminary suspected element list involves calculating the difference between the current time and the recorded failure occurrence time. The step of calculating node betweenness centrality is based on the proportion of shortest paths between nodes in the failure propagation network that pass through that node. A reverse breadth-first search identifies source elements with an in-degree of zero. Zero in-degree means that there are no directed edges pointing to that node in the failure propagation network, i.e., no upstream element. When comparing the historical failure probabilities of source elements, the historical failure probabilities are calculated according to the formula: in: Indicates the probability of historical failures. This indicates the number of times the component has experienced the same type of failure in its historical records. This indicates the total number of runtime units recorded for this element. When calculating the suspicion weight enhancement factor, the time enhancement factor... Based on the time since the repair The calculation relationship of the time enhancement factor is as follows: ,in It is a preset attenuation coefficient. It is the number of days since the repair.
[0051] It is understandable that extracting historical fault occurrence time information relies on a complete database of equipment historical maintenance logs. Comparing occurrence times to determine the earliest faulty component is based on the assumption that faults may have a cumulative effect over time or originate from a specific point. Node betweenness centrality is a centrality metric in graph theory used to measure the mediating importance of a node in the network. The preset threshold needs to be adjusted based on the network topology complexity of the specific distribution box and historical data analysis. Reverse breadth-first search is a graph search algorithm used to trace possible fault sources backward in the network. Identifying nodes with an in-degree of zero means that these components are the starting point upstream of the electrical path or a relatively independent starting point. Historical fault probabilities provide inherent reliability information about the components themselves. Simulating the fault propagation process is a logical deduction of the physical propagation of the fault on the topology model. Suspicion weight thresholds are used to filter out components with low probability, focusing on high-suspicion fault paths. The filtered node sequence constitutes a concise, high-probability description of the fault propagation process. The entire derivation process integrates time information, network topology, historical component reliability, and current suspicion weights to determine the fault origin and propagation path.
[0052] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any other way. Any person skilled in the art may make changes or modifications to the above-disclosed technical content to create equivalent embodiments that can be applied to other fields. However, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the protection scope of the present invention.
Claims
1. A fault detection method for modular intelligent distribution boxes, characterized in that, The method includes: The sensor array installed inside the distribution box and at the incoming line end continuously collects multiple types of operating data, including three-phase current waveforms, voltage waveforms, switch contact temperature sequences, and contact resistance change sequences at key connection points. The various types of operating data are preprocessed and feature extracted to construct a comprehensive feature vector characterizing the instantaneous operating state of the distribution box. The comprehensive feature vector includes current harmonic distortion rate, three-phase unbalance, voltage sag depth, temperature change rate, and resistance increment. The comprehensive feature vector is input into a pre-trained fault diagnosis model, which is constructed using an improved gradient boosting tree algorithm. The improved gradient boosting tree algorithm dynamically adjusts the splitting rules based on the frequency of occurrence and combination relationship of each feature in historical fault cases. The fault diagnosis model analyzes and calculates the comprehensive feature vector to output a preliminary fault type identifier and a confidence score. The preliminary fault type identifier includes overload, short circuit, poor contact, insulation degradation, and phase loss. Based on the preliminary fault type identification, confidence score, and historical maintenance records of the distribution box, a root cause analysis and location analysis of the fault is performed to generate a final fault diagnosis report that includes the location of the specific faulty component, the fault evolution path, and the maintenance priority ranking.
2. The fault detection method for a modular intelligent distribution box according to claim 1, characterized in that, The various types of operational data are preprocessed and feature extracted to construct a comprehensive feature vector characterizing the instantaneous operating state of the distribution box, including: The three-phase current waveform is processed by Fast Fourier Transform to calculate the amplitude of the fundamental component and each harmonic component, and the current harmonic distortion rate is generated based on the ratio of the amplitude of each harmonic component to the amplitude of the fundamental component. Calculate the difference in the effective values of the three-phase currents in the three-phase current waveforms, and generate the three-phase unbalance based on the ratio of the difference between the effective value of the maximum phase current and the effective value of the minimum phase current to the effective value of the average current. Monitor the effective value change of the voltage waveform within a preset time window, record the maximum deviation of the effective voltage value from falling below the rated value, and generate the voltage sag depth. Perform differential operation on the temperature sequence of the switch contacts, calculate the average rate of change of temperature values at adjacent sampling times, and generate the temperature change rate; Baseline comparison is performed on the contact resistance change sequence of the key connection points, and the relative percentage increment of the current sampled value relative to the initial calibration value is calculated to generate the resistance increment. After normalizing the current harmonic distortion rate, three-phase unbalance, voltage sag depth, temperature change rate, and resistance increment, they are combined in a preset order to form the comprehensive feature vector.
3. The fault detection method for a modular intelligent distribution box according to claim 1, characterized in that, The improved gradient boosting tree algorithm dynamically adjusts the splitting rules based on the frequency and combination relationships of each feature in historical failure cases, including: In the process of constructing each decision tree, a dynamic weight is maintained for each feature. The dynamic weight is updated according to the frequency of the corresponding feature co-occurring with various fault labels in historical fault cases. When splitting nodes, the traditional Gini impurity or information gain is weighted and corrected according to the dynamic weight of each feature, so that the splitting rules tend to select features or feature combinations that frequently appear in historical failures. After generating a new leaf node, the training samples assigned to the new leaf node are traversed, the feature value combination pattern of the samples in the current leaf node is counted, and the current feature value combination pattern is recorded as a new potential fault feature pattern. In the subsequent tree construction process, the potential fault feature pattern is used as a virtual feature to participate in the candidate split node. The dynamic weight of the virtual feature is set according to the frequency and discriminative power of the corresponding pattern in historical faults. When the fault diagnosis model predicts the new input comprehensive feature vector, the decision path is influenced by the dynamic weights of the original features and virtual features, thus achieving dual learning from historical experience and new patterns.
4. The fault detection method for a modular intelligent distribution box according to claim 1, characterized in that, The process of analyzing and calculating the comprehensive feature vector using the fault diagnosis model to output a preliminary fault type identifier and confidence score includes: The comprehensive feature vector is simultaneously input into multiple pre-trained gradient boosting decision trees in the fault diagnosis model; In each decision tree, the comprehensive feature vector is passed from the root node to a leaf node along a specific path according to the splitting rules of each node. The leaf node stores an original probability distribution of various types of faults. The original probability distributions output by all decision tree leaf nodes are collected, and the probabilities of various fault types are weighted and averaged to calculate the average probability of the comprehensive feature vector belonging to each fault type. The fault type with the highest average probability is selected as the initial fault type identifier. The average probability value corresponding to the preliminary fault type identifier is converted into the confidence score by a calibration function mapping based on the model's performance on the validation set.
5. A fault detection method for a modular intelligent distribution box according to claim 1, characterized in that, The process combines the preliminary fault type identification, confidence score, and historical maintenance records of the distribution box to perform root cause tracing and location analysis, generating a final fault diagnosis report that includes the location of specific faulty components, the fault evolution path, and maintenance priority ranking. Based on the preliminary fault type identifier, a set of electrical components strongly correlated with the preliminary fault type is retrieved from the topology knowledge base of the distribution box to form a preliminary list of suspected components. Based on the confidence score, each element in the preliminary list of suspected elements is assigned an initial suspicion weight; The historical maintenance records of the distribution box are queried to filter out components that have experienced similar faults in the past and their maintenance times. The suspicion weight of the corresponding components is increased based on the time elapsed since the maintenance. In the topology of the distribution box, the electrical connection and physical location relationships between the components in the preliminary list of suspected components are analyzed, and a fault impact propagation network centered on the high-weight suspected components is constructed. Based on the fault propagation network, the fault originating element and the fault propagation path within the box are derived and determined as the fault evolution path. By combining the suspicion weight of each component, its centrality in the fault impact propagation network, and its historical cost of replacement or repair, a maintenance urgency index is calculated for each component, and the components are sorted according to the maintenance urgency index to generate a maintenance priority ranking. By integrating the location information of the fault-originating component, the fault evolution path, and the maintenance priority ranking, a final fault diagnosis report with a structured description is formed.
6. A fault detection method for a modular intelligent distribution box according to claim 5, characterized in that, The process of retrieving a set of electrical components strongly correlated with the initial fault type from the topology knowledge base of the distribution box includes: The topology knowledge base of the distribution box is stored in a graph structure, where nodes represent electrical components within the distribution box and edges represent electrical connections between components. Each electrical component node is associated with the type attribute of its component and a record of historical fault types; When the preliminary fault type identifier is received, all electrical component nodes are traversed in the topology knowledge base, and nodes containing the preliminary fault type identifier in the historical fault type records are selected. Starting from the selected node, trace along the edge to its adjacent upstream and downstream components in the electrical path, and include the upstream and downstream components together; The set of all screened and traced electrical component nodes is considered as the set of electrical components strongly correlated with the initial fault type.
7. A fault detection method for a modular intelligent distribution box according to claim 5, characterized in that, The process of deriving and determining the fault originating element and the fault propagation path within the box based on the fault impact propagation network, as the fault evolution path, includes: In the fault propagation network, historical fault occurrence time information of all nodes is extracted, and the occurrence time of the most recent historical similar fault of each element in the preliminary suspected element list is compared. The element with the earliest occurrence time is identified as the candidate element for fault origin. Calculate the node betweenness centrality of the candidate fault origin element in the fault effect propagation network. If its node betweenness centrality is higher than a preset threshold, it is directly identified as the fault origin element. If the node betweenness centrality of the candidate fault origin element is not higher than a preset threshold, then in the fault impact propagation network, starting from the element with the highest suspicion weight in the preliminary suspected element list, a reverse breadth-first search is performed along the electrical connection edge to identify all source elements with an in-degree of zero. By comparing the historical failure probabilities of the source components, the source component with the highest historical failure probability is determined as the failure origin component; After identifying the fault originating element, in the fault influence propagation network, taking the fault originating element as the initial node, the transmission process of fault signals or abnormal electrical parameters is simulated based on the electrical connection relationship and physical adjacency relationship between each element. Record the sequence of activated component nodes during the simulated transmission process, and filter the node sequence according to the suspicion weight of each component. Remove nodes whose suspicion weight is lower than the second preset threshold, and use the filtered node sequence as the propagation path of the fault in the box.
8. A fault detection method for a modular intelligent distribution box according to claim 2, characterized in that, The process of performing a Fast Fourier Transform on the three-phase current waveform to calculate the amplitude of the fundamental component and each harmonic component, and generating the current harmonic distortion rate based on the ratio of the amplitude of each harmonic component to the amplitude of the fundamental component, includes: The current waveform of each phase of the distribution box is synchronously sampled at a preset sampling frequency to obtain a discrete three-phase current sequence. Hanning windows are applied to the discretized current sequence of each phase to suppress spectral leakage, and fast Fourier transform is performed on the windowed sequence to obtain the spectrum of the current of each phase. In the spectrum of each phase current, locate the spectral component corresponding to the fundamental frequency wave and extract its amplitude as the fundamental wave component amplitude. In the spectrum of each phase current, locate the harmonic spectrum components from the second harmonic to the preset highest harmonic, and extract their amplitudes as the amplitudes of each harmonic component. For each phase, calculate the sum of squares of the amplitudes of all harmonic components from the second harmonic to the preset highest harmonic, and then calculate the square root of the sum of squares to obtain the total effective value of the harmonics of the corresponding phase. For each phase, the ratio of the total effective value of harmonics of the corresponding phase to the amplitude of its fundamental component is calculated to obtain the current harmonic distortion rate of the corresponding phase. The maximum value among the three-phase current harmonic distortion rates is taken as the final current harmonic distortion rate used to construct the comprehensive eigenvector.
9. A fault detection method for a modular intelligent distribution box according to claim 3, characterized in that, In the process of constructing each decision tree, a dynamic weight is maintained for each feature. This dynamic weight is updated based on the frequency with which the corresponding feature co-occurs with various fault labels in historical fault cases, including: Initialize a feature weight dictionary, where the initial weight of each feature is 1; Load the historical failure case dataset, wherein each case in the historical failure case dataset contains a comprehensive feature vector sample and its corresponding real failure type label; Traverse each node to be split in the current decision tree, and for the training sample set within the node, calculate the sum of the feature values of each feature in the feature weight dictionary across all samples; For each feature, based on its current sum of feature values, retrieve all historical cases in the historical fault case dataset that contain the feature value range corresponding to the sum of the corresponding feature values; In the historical cases retrieved by statistics, the frequency of co-occurrence of corresponding feature values and various fault labels is used to form a feature-fault co-occurrence frequency matrix. Based on the feature-fault co-occurrence frequency matrix, the correlation strength between the corresponding feature and the main fault type of the sample in the current node is calculated, and the dynamic weight of the corresponding feature is updated according to the correlation strength.
10. A fault detection system for an intelligent distribution box, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the fault detection method for a modular intelligent distribution box as described in any one of claims 1 to 9.
