A fault detection system for a smart harvesting terminal

By constructing a labeled historical sample set and using an adaptive weighted dynamic time warping distance calculation method, the false alarm problem in fault detection of intelligent acquisition terminals is solved, accurate fault detection is achieved under complex power distribution network conditions, and the false alarm rate is reduced.

CN122815059BActive Publication Date: 2026-11-27YANGZHOU WANTAI ELECTRIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611309205.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-08-27
Publication Date
2026-11-27
Estimated Expiration
2046-08-27

AI Technical Summary

Technical Problem

In existing technologies, fault detection by intelligent data acquisition terminals is prone to misjudging normal load fluctuations as faults, resulting in a high false alarm rate and making it difficult to accurately distinguish between normal fluctuations and fault fluctuations under complex power distribution network conditions.

Method used

A labeled historical sample set is constructed using a data acquisition and preprocessing module. The fluctuation weight of local extreme points is calculated by a fluctuation weight sequence generation module. Combined with an adaptive weighted dynamic time warping distance calculation and clustering module, a cluster center matrix is ​​generated. A real-time detection module performs fault judgment, avoiding fixed threshold judgment.

Benefits of technology

It improves the sensitivity and anti-interference ability of fault detection, reduces the false alarm rate, and can accurately distinguish between normal fluctuations and fault modes under complex power distribution network conditions, thus reducing misjudgments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122815059B_ABST
    Figure CN122815059B_ABST
Patent Text Reader

Abstract

The application relates to the field of power fault detection, in particular to a fault detection system for an intelligent acquisition terminal, which comprises the following modules: a data acquisition and preprocessing module, which is used for acquiring historical voltage and current time series data and constructing a labeled historical sample set; a fluctuation weight sequence generation module, which is used for detecting local extreme points and calculating local fluctuation weights, and generating a fluctuation weight sequence; an adaptive weighted dynamic time warping distance calculation and clustering module, which is used for adaptively determining a constraint window length and a sampling point weight based on the fluctuation weight sequence, calculating a comprehensive dynamic time warping distance and clustering, and obtaining a labeled clustering cluster and a cluster center matrix; and a real-time detection and judgment module, which is used for real-time data acquisition and matching of a nearest cluster label to output a fault detection result. The application can adaptively identify different fluctuation modes, accurately distinguish normal states from fault states, and reduce a false alarm rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power fault detection. More specifically, this invention relates to a fault detection system for an intelligent data acquisition terminal. Background Technology

[0002] Intelligent data acquisition terminals are deployed in distribution network substations, lines, and user sides to collect electrical quantity data such as voltage and current in real time. They are the basic equipment for distribution network operation monitoring and fault location.

[0003] In existing technologies, fault detection for intelligent data acquisition terminals often relies on fixed threshold comparisons or manual experience rules, such as determining whether the voltage exceeds a preset upper limit or the current falls below a lower limit. However, the actual operating conditions of power distribution networks are complex, with residential electricity consumption, industrial loads, and distributed power sources causing voltage and current signals to exhibit diverse fluctuation patterns. Fixed thresholds and manual rules struggle to distinguish between normal load fluctuations and abnormal fluctuations caused by terminal malfunctions, easily misjudging normal fluctuations as faults, leading to a high false alarm rate. Summary of the Invention

[0004] To address the problem of high false alarm rates in existing technologies for fault detection of intelligent data acquisition terminals, which often misinterpret normal fluctuations as faults, this invention provides the following technical solution.

[0005] A fault detection system for an intelligent data acquisition terminal includes: The data acquisition and preprocessing module is used to collect historical voltage and current time-series data from the intelligent acquisition terminal and construct a labeled historical sample set. The fluctuation weight sequence generation module is connected to the data acquisition and preprocessing module. It is used to detect local extreme points in the voltage and current sequences in historical samples, and calculate the local fluctuation weight of each extreme point based on the amplitude change and time interval change of the extreme points, so as to generate voltage fluctuation weight sequence and current fluctuation weight sequence. An adaptive weighted dynamic time warping distance calculation and clustering module, connected to the data acquisition and preprocessing module and the fluctuation weight sequence generation module, is used to calculate the comprehensive dynamic time warping distance between any two historical samples based on the fluctuation weight sequence, and perform clustering based on the distance to obtain labeled clusters and cluster center matrices; wherein, when calculating the comprehensive dynamic time warping distance, the constraint window length of dynamic time warping is adaptively determined according to the fluctuation weight sequence, and sample-by-sample weights are generated according to the fluctuation weight sequence. The weighted dynamic time warping distances of the voltage sequence and the current sequence are calculated based on the constraint window length and sample-by-sample weights, and then the average value is taken. The real-time detection and decision module is connected to the adaptive weighted dynamic time warping distance calculation and clustering module. It is used to collect voltage and current data in real time to construct real-time samples, and uses the same distance calculation method as the clustering stage to match the cluster labels of the nearest clusters and output the fault detection results.

[0006] Optionally, the data acquisition and preprocessing module performs Min-Max normalization or Z-score normalization on the voltage and current sequences, and stacks the normalized voltage and current sequences into a two-dimensional matrix. Each two-dimensional matrix and its corresponding state label constitute a historical sample.

[0007] Optionally, when the fluctuation weight sequence generation module detects local extreme points, it traverses the sampling points of the sequence. If the current sampling point is greater than the two sampling points before and after it at the same time, it is determined to be a local maximum point; if it is less than the two sampling points before and after it at the same time, it is determined to be a local minimum point.

[0008] Optionally, when the fluctuation weight sequence generation module calculates the local fluctuation weight, it first calculates the amplitude volatility and the time interval volatility, and maps the sum of the two to the open interval of zero to one using the hyperbolic tangent function; the amplitude volatility is obtained by dividing the sum of the amplitude differences between the extreme point and the adjacent extreme points of the same type before and after by twice the global amplitude range, and the time interval volatility is obtained by dividing the sum of the time interval differences between the extreme point and the adjacent extreme points of the same type before and after by twice the global maximum sampling interval.

[0009] Optionally, the adaptive determination of the constraint window length for dynamic time warping specifically involves: The extreme point density and average volatility intensity are calculated based on the volatility weight sequence. The product of the two is used as the volatility characteristic factor. The maximum value of the volatility characteristic factor in any two historical samples is multiplied by the preset benchmark window length to obtain the constraint window length.

[0010] Optionally, the generation of sample-by-sample weights specifically involves: The sampling point weight of a local extreme point is directly taken from the local fluctuation weight of that point; For non-extreme points within the extreme value interval formed by two adjacent local extreme points, the maximum range of unilateral attenuation towards each other is allocated according to the local fluctuation weight ratio of the two local extreme points. After determining the affiliation of the non-extreme point, the weight of the non-extreme point is calculated using the Gaussian kernel function, where the independent variable of the Gaussian kernel function is the sampling interval from the non-extreme point to its affiliation extreme point.

[0011] Optionally, when the adaptive weighted dynamic time warping distance calculation and clustering module performs clustering, it uses the silhouette coefficient method to determine the optimal number of clusters and uses the K-Medoids clustering algorithm to obtain multiple clusters. The label of each cluster is determined by the labels of the majority of historical samples within the cluster, and the cluster center matrix is ​​the two-dimensional matrix corresponding to the cluster center point.

[0012] Optionally, the real-time detection and decision module also introduces confidence level judgment: if the comprehensive dynamic time-normalized distance between the real-time sample and the nearest cluster exceeds a preset distance threshold, it is determined to be an unknown new mode and an update is triggered; the distance threshold is determined based on the 95th quantile of the distance between each historical sample in the historical sample set and the center matrix of its respective cluster.

[0013] The present invention has the following beneficial effects: 1. This invention constructs a fluctuation weight sequence characterizing the severity of local fluctuations, and simultaneously uses it for adaptive adjustment of the constraint window in dynamic time warping and differential weighting of sampling points. This allows the distance metric to dynamically match alignment elasticity and local sensitivity according to the actual fluctuation intensity of the signal: the window is automatically expanded to capture time-series offsets when fluctuations are severe, and the window is tightened to improve computational efficiency when fluctuations are stable. At the same time, extreme points and their neighborhoods are given higher weights, guiding the algorithm to focus on potential fault feature regions. Based on this, voltage and current dual-sequence distances are fused for clustering, enabling the system to accurately distinguish between normal fluctuation modes and fault modes under complex distribution network conditions, significantly improving the sensitivity and anti-interference capability of fault detection.

[0014] 2. This invention uses a clustering method to divide historical samples into normal clusters and fault clusters. During real-time detection, it directly matches the nearest cluster label for judgment, without the need to set a fixed threshold. This avoids misjudgment caused by normal load fluctuations in the distribution network and reduces the false alarm rate of faults.

[0015] 3. This invention introduces confidence level judgment in the real-time detection stage. When the distance between the real-time sample and the nearest cluster exceeds a preset threshold, it is determined to be an unknown new mode and triggers model update, which effectively avoids false alarms caused by unseen normal fluctuation modes. Attached Figure Description

[0016] Figure 1 This is a module flowchart of a fault detection system for an intelligent data acquisition terminal according to an embodiment of the present invention. Detailed Implementation

[0017] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are some embodiments of the present invention, but not all embodiments.

[0018] This invention provides a fault detection system for intelligent data acquisition terminals, referring to... Figure 1 The system includes a data acquisition and preprocessing module, a fluctuation weight sequence generation module, an adaptive weighted DTW distance calculation and clustering module, and a real-time detection and decision module.

[0019] The output of the data acquisition and preprocessing module is connected to the input of the fluctuation weight sequence generation module and the adaptive weighted DTW distance calculation and clustering module to provide a labeled historical sample set. The output of the fluctuation weight sequence generation module is connected to the input of the adaptive weighted DTW distance calculation and clustering module to provide the extreme point fluctuation weight distribution for each historical sample. The output of the adaptive weighted DTW distance calculation and clustering module is connected to the input of the real-time detection and decision module to provide labeled fluctuation pattern clusters and their cluster center matrices. The real-time detection and decision module outputs fault detection results based on the real-time acquired data and the received cluster center matrix. The specific functions and operations of each module are described in detail below with reference to the accompanying drawings.

[0020] Data acquisition and preprocessing module The voltage and current time-series data generated by the intelligent data acquisition terminal vary under different operating conditions. However, the raw data contains noise and has different dimensions, which can affect the accuracy of subsequent analysis if used directly. Therefore, it is necessary to first collect historical data and normalize it, and add a status label to each sample.

[0021] This module is set to a sampling frequency of 10Hz and a sampling window length of 100 sampling points. It continuously collects voltage and current time series data for no less than 7 days through an intelligent acquisition terminal, and records the operating status corresponding to each sampling window. The normal status is marked as 0, and the fault status is marked as 1.

[0022] Min-Max normalization is performed on the voltage and current sequences within each sampling window to map all data to... The interval is used to eliminate differences in amplitude dimensions. As an alternative implementation, Z-score normalization can be used to convert the data into a distribution with a mean of 0 and a standard deviation of 1, which is suitable for scenarios where there are outliers or the amplitude distribution is non-uniform.

[0023] The normalized voltage and current sequences within the same window are stacked row-wise to form a 2-row × 100-column two-dimensional matrix, where the first row is the voltage sequence and the second row is the current sequence. Each two-dimensional matrix and its corresponding state label together constitute a historical sample.

[0024] This module aggregates historical samples from all sampling windows to obtain a labeled historical sample set. Each historical sample in this set contains a voltage-current two-dimensional matrix and a label (0 indicates normal, 1 indicates fault), which serves as the output of this module.

[0025] Fluctuation Weight Sequence Generation Module The fluctuation patterns of voltage and current time-series signals are reflected not only in the magnitude of their amplitudes but also in the frequency and density of peaks and troughs. Using only the original sequences for similarity measurement is insufficient to highlight these local characteristics. Therefore, it is necessary to extract the distribution sequence of extreme points that reflects the intensity of local signal fluctuations from each historical sample.

[0026] This module receives the historical sample set output by the data acquisition and preprocessing module, and processes each historical sample separately. For any given historical sample, the voltage and current sequences from its two-dimensional matrix are extracted as the target sequences.

[0027] Taking any target sequence, such as a voltage sequence, as an example, perform the following operations: First, local extrema are detected in the target sequence. As a preferred implementation, this embodiment employs a five-point comparison method: traversing the target sequence... One sampling point, Starting from 3 and ending at 98, if the number... The sampling point is simultaneously greater than the first one. , , , If a point has four sampling points, it is determined to be a local maximum; if it is smaller than all four sampling points, it is determined to be a local minimum. The first and last two sampling points of the target sequence are not included in the determination because a complete neighborhood cannot be obtained.

[0028] As an alternative implementation, the adjacent point comparison method can also be used: if the first... The sampling point is simultaneously greater than the first one. and the If a sample point is identified as a local maximum, then the method is computationally less complex and is suitable for stable signals with a high signal-to-noise ratio.

[0029] As an alternative implementation method, when there is strong noise interference in the field environment, the first-order difference method can be used: calculate the first-order difference of the target sequence, and when the first-order difference changes from positive to negative, it corresponds to a local maximum point, and when it changes from negative to positive, it corresponds to a local minimum point.

[0030] Then, a local fluctuation weight is calculated for each local extreme point. The calculation of this local fluctuation weight takes into account both the amplitude change and the temporal distribution change, so that the weight can comprehensively reflect the intensity of fluctuation at the extreme point.

[0031] Taking local maxima as an example, any local maximum is selected as the target maximum. Local maxima before and after sampling are obtained and labeled as the first and second maxima, respectively. The normalized amplitude difference between the target maximum and the first maxima, and between the target maximum and the second maxima, are calculated, using the difference between the maximum and minimum amplitudes of all local maxima within the target sequence for normalization. The two normalized amplitude differences are then added together to obtain the amplitude volatility of the target maximum. A larger amplitude volatility indicates more drastic amplitude changes near the extreme point.

[0032] Next, the normalized time difference between the target maximum and the first maximum, and the normalized time difference between the target maximum and the second maximum are calculated again, using the maximum value of the sampling index difference between all adjacent local maxima within the target sequence for normalization. The two calculated normalized time differences are then added together to obtain the time volatility of the target maximum. A larger time volatility indicates more disordered fluctuations around that extreme point.

[0033] Furthermore, the amplitude volatility and time volatility are added together, and the result is compressed using the hyperbolic tangent function. The interval is used to obtain the local fluctuation weights of the aforementioned target maximum value.

[0034] Specifically, in this embodiment, the amplitude fluctuation rate of the target maximum value is set to be... Time volatility is If the local fluctuation weight is F, then the local fluctuation weight F can be obtained using the hyperbolic tangent function as follows: Because the amplitude volatility of the target maximum is And time volatility All are positive numbers, therefore The value is positive, making the local fluctuation weight F of the target maximum greater than 0, thereby setting the amplitude fluctuation rate of the target maximum to a positive value. With time volatility The sum of the two numbers is compressed into the interval (0,1).

[0035] The same calculation method is used for local minima. For the first and last extreme points in the target sequence, only the adjacent extreme points on one side are used for calculation.

[0036] Finally, the extreme point distribution sequence of the target sequence is constructed: a sequence of the same length as the original target sequence is generated, and the sampling index positions corresponding to the local extreme points are marked with the corresponding local fluctuation weights, while the sampling index positions of the non-extreme points are marked as 0. This sequence retains the spatial distribution relationship of each sampling position relative to the extreme points. The local fluctuation weights at the extreme point positions directly represent the intensity of the fluctuation at that point, while the position of the non-extreme point being 0 indicates that it does not play a major role in representing the fluctuation.

[0037] This leads to the fluctuation weight sequence of the target sequence, where the value at each position is either the local fluctuation weight or 0.

[0038] Based on the above operations, this module obtains the voltage fluctuation weight sequence and the current fluctuation weight sequence for each historical sample.

[0039] Adaptive Weighted DTW Distance Calculation and Clustering Module Similarity in fluctuation patterns among different historical samples requires a distance metric that can adapt to changes in local fluctuation intensity and is sensitive to peak and trough regions. Simultaneously, to distinguish normal fluctuation patterns from fault fluctuation patterns, samples with similar patterns need to be clustered into one class and assigned a class label. Therefore, this module first calculates the comprehensive DTW distance between any two historical samples, and then performs clustering based on this distance. The fluctuation weight sequence in the aforementioned fluctuation weight sequence generation module plays two roles here: first, it adaptively adjusts the DTW constraint window length by adjusting the extreme point density and average fluctuation intensity; second, it assigns a higher distance contribution to areas of severe fluctuation by weighting each sampling point.

[0040] After receiving the historical sample set (including labels) output by the data acquisition and preprocessing module and the fluctuation weight sequence output by the fluctuation weight sequence generation module, this module selects any two historical samples as the target sample and the control sample, respectively. The voltage sequence and current sequence of the target sample are used as the first voltage sequence and the first current sequence, respectively, and the voltage sequence and current sequence of the control sample are used as the second voltage sequence and the second current sequence, respectively.

[0041] Taking the voltage sequences of the target sample and the control sample as an example, perform the following operations: First, calculate the extreme point density for both the target sample and the control sample, which is the total number of extreme points divided by the total number of sampling points contained in the sample. Then, calculate the average fluctuation intensity for both the target sample and the control sample, which is the arithmetic mean of the local fluctuation weights of all extreme points.

[0042] The product of the extreme point density and the average fluctuation intensity obtained from the above calculation is used as the fluctuation characteristic factor of the target sample or the control sample. Then, the maximum value of the fluctuation characteristic factor is taken and multiplied by a preset reference window length to obtain the DTW constraint window length of the first and second voltage sequences. This adaptive mechanism allows the window length to dynamically change with the degree of signal fluctuation: when the fluctuation is severe, the search range is expanded to avoid alignment failure; when the fluctuation is stable, the search range is narrowed to improve computational efficiency. The value of the reference window length is a preset value. The larger the reference window length, the more data is used to calculate the comprehensive DTW distance, and the more accurate the calculation result. However, the required data computation is larger, and the computational efficiency is lower. Therefore, the value of the reference window length can be set according to the accuracy requirements and data computation efficiency requirements for comprehensive DTW clustering. As a preferred embodiment, the reference window length can be set to 10, that is, there are 10 sampling points within the reference window. If the interval between two sampling points is taken as a sampling period, then the reference window length is 10 sampling periods.

[0043] Taking the target sample as an example, let the total number of sampling points of the target sample be... The total number of extreme points is And the fluctuation intensity of the i-th sampling point is Let G be the volatility characteristic factor of the target sample. Then, the volatility characteristic factor G can be obtained by the following formula: Then, taking the first voltage sequence as an example, for the identified local extrema, arbitrarily select two adjacent extrema, such as the first... The extreme point and the first There are two extreme points, and these two extreme points and all the sampling points in between constitute an extreme value interval.

[0044] Calculate the first The extreme point is directed towards the first The maximum range of unilateral attenuation at the extreme point and the first The extreme point is directed towards the first The maximum range of unilateral attenuation at each extreme point, and the extreme points with larger local fluctuation weights gain a wider range of influence.

[0045] For example, the first The extreme point is directed towards the first The maximum range of unilateral attenuation at each extreme point satisfies the following relationship: In the formula, For the first The extreme point is directed towards the first The maximum range of unilateral attenuation at each extreme point For the first The extreme point and the first The total sampling interval between each extreme point For the first Local fluctuation weights at extreme points For the first Local fluctuation weights at each extreme point. The extreme point is directed towards the first The calculation logic for the maximum range of unilateral attenuation at the extreme point is the same as that for the first extreme point. The extreme point is directed towards the first Maximum range of unilateral attenuation at each extreme point The calculation logic is the same, so it will not be repeated here.

[0046] Next, for any non-extreme point within the aforementioned extreme value interval, if the non-extreme point is far from the first... The extreme points are closer, meaning the sampling interval between them is less than [a certain value]. Then the non-extreme point belongs to the first... The first extreme point; conversely, if the non-extreme point is far from the first extreme point. The extreme points are closer, meaning the sampling interval between them is less than [a certain value]. Then the non-extreme point belongs to the first... There are several extreme points.

[0047] After determining the affiliation of all non-extreme points within the aforementioned extreme value interval, the weight of each non-extreme point is calculated using the Gaussian kernel function, satisfying the following relationship: In the formula, The weight of a single non-extreme point within the aforementioned extreme value interval. The local fluctuation weight of the extreme point to which a single non-extreme point belongs. The sampling interval between a single non-extreme point and its associated extreme point is the number of sampling points between a single non-extreme point and its associated extreme point. This represents the Gaussian kernel decay coefficient. The Gaussian kernel function causes the weights to decay exponentially with distance; the closer to the extreme point, the greater the weight, and the farther away, the smaller the weight, simulating the natural law that the influence of fluctuations weakens with distance. This embodiment uses the Gaussian kernel decay coefficient. is the standard deviation of the number of sampling points across all extreme value intervals.

[0048] For the extreme points at the beginning and end of the first voltage sequence, the interval between them and the sequence boundary is directly taken as the range of maximum unilateral attenuation. The non-extreme points within the interval are weighted according to the Gaussian kernel method described above.

[0049] By iterating through all non-extreme points in the above manner and combining this with the weights already assigned to the extreme points, the weights corresponding to all sampling points of the first voltage sequence are obtained. The same method is used to obtain the weights of the sampling points of the second voltage sequence.

[0050] Finally, for any two sampling points in the first and second voltage sequences, the absolute value of the difference between the original values ​​of these two sampling points is calculated. This difference is then multiplied by the product of the weights corresponding to the two sampling points to obtain the weighted Euclidean distance between them. Alternatively, the squared Euclidean distance or Manhattan distance can be used instead of the absolute value of the difference. By multiplying by the sampling point weights, sampling points in areas of significant fluctuation contribute more to the distance, guiding the DTW algorithm to focus more on segments of the signal with significant fluctuations, thereby improving the sensitivity of fault mode identification. During the dynamic programming search for the optimal regular path, only sampling point pairs that satisfy the condition that the time index difference between the two sampling points is less than or equal to the length of the DTW constraint window are allowed to participate in the cumulative distance calculation.

[0051] Starting from the first sampling point of the first voltage sequence and the second voltage sequence, the cumulative distance matrix is ​​iteratively updated until the last sampling point. The cumulative distance value at the end point is the adaptive DTW distance between the first voltage sequence and the second voltage sequence.

[0052] For the first and second current sequences of the target sample and the control sample, the above process is completely reused to obtain the adaptive DTW distance between the first and second current sequences.

[0053] The adaptive DTW distance between the first voltage sequence and the second voltage sequence is added to the adaptive DTW distance between the first current sequence and the second current sequence, and the average value is calculated to obtain the comprehensive DTW distance between the target sample and the control sample. The smaller the comprehensive DTW distance, the more similar the voltage and current fluctuation patterns of the two samples are.

[0054] A distance matrix is ​​constructed using the combined DTW distance between all pairwise historical samples in the historical sample set as a similarity measure. To automatically determine a reasonable number of clusters, the silhouette coefficient method is adopted: for each K value between 2 and 10, clustering is performed and the average silhouette coefficient of all historical samples is calculated. The K value with the largest average silhouette coefficient is selected as the optimal number of clusters. The silhouette coefficient can evaluate the compactness and separation of the clustering results; the largest average silhouette coefficient indicates the best clustering effect.

[0055] As a preferred implementation, this embodiment employs the K-Medoids clustering algorithm, which uses actual samples as centroids and is insensitive to outliers. K historical samples are randomly selected from the historical sample set as initial centroids. Each non-centroid historical sample is assigned to the cluster containing the centroid with the smallest sum of its combined DTW distance. Within each cluster, the sum of the combined DTW distances between all pairwise historical samples is calculated, and the historical sample with the smallest sum of distances to all other historical samples within the cluster is selected as the new centroid. This assignment and update process is repeated until the centroids of all clusters no longer change, resulting in the final K clusters.

[0056] The status labels (0 or 1) of all historical samples within each cluster are calculated. If normal samples (label 0) constitute the majority of samples in a cluster, meaning more than half of the historical samples in that cluster are normal, then the cluster label is set to 0. If faulty samples (label 1) constitute the majority of samples, meaning more than half of the historical samples in that cluster are faulty, then the cluster label is set to 1. The center point of each cluster is an actual historical sample, and its two-dimensional matrix (voltage and current sequence) serves as the cluster center matrix.

[0057] The output of this module is K clusters, each with a cluster center matrix and a cluster label (0 for normal mode and 1 for fault mode), which are provided to the real-time detection and decision module.

[0058] In this embodiment, the historical samples obtained are the actual voltage and current data of the intelligent acquisition terminal. The number of normal and fault samples is not limited or filtered so that the fault samples can include more fault types.

[0059] Real-time detection and decision module During real-time operation, the pre-trained fluctuation pattern clusters are needed to quickly determine the currently collected data without retraining or setting fixed thresholds. Therefore, this module collects data in real time, extracts its fluctuation weight sequence, compares it with the cluster centers, and outputs the fault detection result based on the label of the nearest cluster.

[0060] This module receives the cluster center matrix and cluster labels of each cluster from the adaptive weighted DTW distance calculation and clustering module. Using the same sampling frequency, sampling window length, and normalization parameters as the data acquisition and preprocessing module, it acquires voltage and current time-series data in real time to construct a two-dimensional matrix of real-time samples.

[0061] Using the same method as the fluctuation weight sequence generation module, the voltage and current sequences in the real-time samples are processed separately to obtain the voltage fluctuation weight sequence and current fluctuation weight sequence of the real-time samples.

[0062] Each cluster's cluster center matrix is ​​treated as a sample, and the comprehensive DTW distance between the real-time sample and the cluster center matrix of each cluster is calculated. The calculation method is the same as the method for calculating the comprehensive DTW distance between two historical samples described above. Taking one cluster as an example, the method for calculating the cluster center matrix of the real-time sample and its clusters includes: calculating the DTW distance between the voltage sequence of the real-time sample and the voltage sequence of the cluster center matrix of the cluster, and the DTW distance between the voltage and current of the real-time sample and the current sequence of the cluster center matrix of the cluster. These two DTW distances are then summed and averaged to obtain the comprehensive DTW distance between the real-time sample and the cluster center matrix of the cluster. The cluster with the smallest comprehensive DTW distance is selected as the matching cluster for the real-time sample. The cluster label corresponding to this matching cluster is retrieved: if the cluster label is 0, the current intelligent acquisition terminal is considered to be operating normally; if the cluster label is 1, the current intelligent acquisition terminal is considered to have a fault risk, and a fault alarm signal is output.

[0063] As an alternative implementation, a confidence level assessment can be introduced during the real-time detection phase: if the distance between a real-time sample and its nearest cluster exceeds a preset distance threshold, it is determined to be an unknown new pattern, triggering a model update process instead of directly outputting a fault, thus avoiding false alarms caused by unseen normal fluctuation patterns. This distance threshold is determined as follows: the comprehensive DTW distance between each historical sample in the historical sample set and its corresponding cluster center matrix is ​​calculated, and the 95th percentile of these comprehensive DTW distances is taken as the distance threshold.

[0064] Taking one historical sample set as an example, suppose the historical sample set has N historical samples. Sort the historical samples in the historical sample set according to the comprehensive DTW distance with the cluster center matrix in ascending order, and then sort the samples in the sorted set. The combined DTW distance between each historical sample and its cluster center matrix is ​​used as the distance threshold, where This is the floor symbol.

[0065] Thus, this embodiment of the invention completes the entire implementation process of a fault detection system for an intelligent data acquisition terminal.

[0066] It should be noted that those skilled in the art can make various modifications and improvements without departing from the inventive concept, and these all fall within the scope of protection of this invention. Therefore, the scope of protection of this patent should be determined by the appended claims.

Claims

1. A fault detection system for an intelligent data acquisition terminal, characterized in that, include: The data acquisition and preprocessing module is used to collect historical voltage and current time-series data from the intelligent acquisition terminal and construct a labeled historical sample set. The fluctuation weight sequence generation module is connected to the data acquisition and preprocessing module. It is used to detect local extreme points in the voltage and current sequences in historical samples, and calculate the local fluctuation weight of each extreme point based on the amplitude change and time interval change of the extreme points, so as to generate voltage fluctuation weight sequence and current fluctuation weight sequence. The calculation of the local fluctuation weight includes: first calculating the amplitude fluctuation rate and the time interval fluctuation rate, and then mapping the sum of the two to the open interval of zero to one using the hyperbolic tangent function; the amplitude fluctuation rate is obtained by dividing the sum of the amplitude differences between the extreme point and the adjacent extreme points of the same type by twice the global amplitude range, and the time interval fluctuation rate is obtained by dividing the sum of the time interval differences between the extreme point and the adjacent extreme points of the same type by twice the global maximum sampling interval; An adaptive weighted dynamic time warping distance calculation and clustering module, connected to the data acquisition and preprocessing module and the fluctuation weight sequence generation module, is used to calculate the comprehensive dynamic time warping distance between any two historical samples based on the fluctuation weight sequence, and perform clustering based on the distance to obtain labeled clusters and cluster center matrices; wherein, when calculating the comprehensive dynamic time warping distance, the constraint window length of dynamic time warping is adaptively determined according to the fluctuation weight sequence, including: calculating the extreme point density and average fluctuation intensity according to the fluctuation weight sequence, taking the product of the two as the fluctuation feature factor, and taking the maximum value of the fluctuation feature factor in any two historical samples and multiplying it by a preset benchmark window length to obtain the constraint window length; The sampling point weights are generated based on the fluctuation weight sequence, including: the sampling point weights of local extrema are directly taken from the local fluctuation weights of that point; for non-extrema points within the extremum interval formed by two adjacent local extrema points, the maximum unilateral attenuation range towards each other is allocated according to the local fluctuation weight ratio of the two local extrema points. After determining the affiliation of the non-extrema point, the weight of the non-extrema point is calculated using a Gaussian kernel function, where the independent variable of the Gaussian kernel function is the sampling interval from the non-extrema point to its affiliation extrema point. The weighted dynamic time warping distance of the voltage and current sequences is calculated based on the constraint window length and the sampling point weight, and then the average value is taken. The real-time detection and decision module is connected to the adaptive weighted dynamic time warping distance calculation and clustering module. It is used to collect voltage and current data in real time to construct real-time samples, and uses the same distance calculation method as the clustering stage to match the cluster labels of the nearest clusters and output the fault detection results.

2. The fault detection system for an intelligent data acquisition terminal according to claim 1, characterized in that, The data acquisition and preprocessing module performs Min-Max normalization or Z-score normalization on the voltage and current sequences, and stacks the normalized voltage and current sequences into a two-dimensional matrix. Each two-dimensional matrix and its corresponding state label constitute a historical sample.

3. The fault detection system for an intelligent data acquisition terminal according to claim 1, characterized in that, When the fluctuation weight sequence generation module detects local extreme points, it traverses the sampling points of the sequence. If the current sampling point is greater than the two sampling points before and after it at the same time, it is determined to be a local maximum point. If it is less than the two sampling points before and after it at the same time, it is determined to be a local minimum point.

4. The fault detection system for an intelligent data acquisition terminal according to claim 1, characterized in that, When performing clustering, the adaptive weighted dynamic time warping distance calculation and clustering module uses the silhouette coefficient method to determine the optimal number of clusters and uses the K-Medoids clustering algorithm to obtain multiple clusters. The label of each cluster is determined by the labels of the majority of historical samples within the cluster, and the cluster center matrix is ​​the two-dimensional matrix corresponding to the cluster center point.

5. A fault detection system for an intelligent data acquisition terminal according to claim 1, characterized in that, The real-time detection and decision module also introduces confidence level judgment: if the comprehensive dynamic time-normalized distance between the real-time sample and the nearest cluster exceeds a preset distance threshold, it is determined to be an unknown new mode and an update is triggered; the distance threshold is determined based on the 95th percentile of the distance between each historical sample in the historical sample set and the center matrix of its respective cluster.

Citation Information

Patent Citations

  • Abnormal data real-time detection method and system for data acquisition terminal

    CN122238978A

  • Endpoint detection in a stand-alone real-time voice recognition system

    US5845092A