A concentrator energy consumption abnormal reason diagnosis method based on DBSCAN algorithm

The DBSCAN algorithm was used to diagnose energy consumption anomalies in the centralized controller equipment of the urban lighting system, which solved the problems of energy waste and safety hazards caused by energy consumption anomalies and improved the stability and energy efficiency of the system.

CN117390560BActive Publication Date: 2026-11-20GUILIN HIVISION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311207887.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-19
Publication Date
2026-11-20
Estimated Expiration
2043-09-19

AI Technical Summary

Technical Problem

Abnormal energy consumption of centralized controller equipment in urban lighting systems leads to energy waste, equipment damage, and safety hazards, and existing technologies are insufficient to efficiently diagnose the causes.

Method used

The DBSCAN algorithm is used for data acquisition, feature extraction, standardization, principal component analysis and dimensionality reduction, and HDBSCAN density clustering to identify and diagnose the causes of abnormal energy consumption. The causes of the anomalies are determined by comparing the feature parameters of the abnormal data points with those of the cluster centers.

Benefits of technology

It improves the stability and energy efficiency of smart lighting systems, provides efficient diagnostic technology, and ensures the safety and sustainable development of urban lighting systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117390560B_ABST
    Figure CN117390560B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of urban lighting, and discloses a concentrator energy consumption abnormal reason diagnosis method based on a DBSCAN algorithm, which comprises the following operation steps: data acquisition, real-time consumption and storage, feature extraction, data standardization, principal component analysis and dimension reduction, implementation of HDBSCAN density clustering, and abnormal reason diagnosis, according to the calculation result of the HDBSCAN, the samples are divided into different clusters, each cluster represents a group of samples with similar features, the feature parameters that have the greatest influence on the state of abnormal data points are found out, the feature parameters between the abnormal data points and the nearest cluster center are compared, the feature parameters that may cause the energy consumption abnormality are determined, and the abnormal reason is judged. Compared with the prior art, the application combines data analysis with modern lighting technology, and makes a positive contribution to the sustainable development of the urban lighting field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of urban lighting technology, specifically to a method for diagnosing the causes of abnormal energy consumption in concentrators based on the DBSCAN algorithm. Background Technology

[0002] In the field of urban planning and lighting, landscape lighting and street lighting play a vital role in enhancing the aesthetics, safety, and energy efficiency of cities. However, with the continuous advancement of urbanization, the scale and complexity of urban lighting systems are also gradually increasing. To better manage and monitor these lighting systems, centralized controller devices are widely used to achieve remote control and monitoring of lighting equipment.

[0003] However, these centralized controller devices may face abnormal energy consumption problems during long-term operation. These abnormal energy consumption may be caused by abnormal changes in key parameters such as increased line current load, prolonged overvoltage or undervoltage, power overload, leakage, and increased lighting duration. These abnormal changes may lead to energy waste, equipment damage, or even safety hazards. Therefore, the requirements for the stability and efficient operation of these intelligent lighting systems have become increasingly urgent. Thus, this application discloses a method for diagnosing the causes of abnormal energy consumption in concentrators based on the DBSCAN algorithm to meet the needs of efficient urban lighting. Summary of the Invention

[0004] (a) Technical problems to be solved

[0005] To address the shortcomings of existing technologies, this invention provides a method for diagnosing the causes of abnormal energy consumption in concentrators based on the DBSCAN algorithm. This method aims to provide an innovative and efficient diagnostic technique for energy consumption anomalies in centralized controller equipment within urban lighting systems, thereby improving the stability, energy efficiency, and operational safety of smart lighting systems. By combining data analysis with modern lighting technology, it makes a positive contribution to the sustainable development of the urban lighting field.

[0006] (II) Technical Solution

[0007] To achieve the above objectives, the present invention provides the following technical solution: a method for diagnosing concentrator energy consumption anomalies based on the DBSCAN algorithm, comprising the following operational steps:

[0008] S1. Data Acquisition: Power consumption data is collected through a 4G module installed on the centralized controller device and the power consumption data is transmitted to the MQTT message transmission protocol;

[0009] S2, Real-time Consumption and Storage: Introducing Spark Structured Streaming technology to consume data obtained from Kafka data streams in real time and generate historical data;

[0010] S3. Feature extraction: Perform statistical feature processing on the historical data and calculate basic statistical indicators;

[0011] S4. Data Standardization: After data feature extraction in S3, the data is standardized so that the values ​​of different features are distributed within a similar range, thereby improving the stability and performance of the model.

[0012] S5. Principal Component Analysis and Dimensionality Reduction: Extracting the most representative information from multidimensional standardized data to reduce dimensionality and retain sufficient data variability;

[0013] S6, HDBSCAN Density Clustering: The HDBSCAN (Density Peak Scanning Based on Hierarchical Clustering) algorithm is used to perform density clustering to discover abnormal data points in the historical data and identify potential anomalies based on the clustering results.

[0014] S7. Anomaly Cause Diagnosis: Based on the calculation results of HDBSCAN, the samples are divided into different clusters. Each cluster represents a group of samples with similar characteristics. The feature parameters that have the greatest impact on the state of the abnormal data points are identified. By comparing the feature parameters between the abnormal data points and the nearest cluster center, the feature parameters that may lead to abnormal energy consumption are determined, and the cause of the anomaly is judged.

[0015] Preferably, the electricity consumption data transmitted to the MQTT message transmission protocol is stored in a message queue according to the method of subscribing to message topics.

[0016] Preferably, the historical data includes time-series data and timing strategy data. The time-series data covers key parameters such as A / B / C phase current, A / B / C phase voltage, and A / B / C phase active power. The timing strategy data records the various strategy signals executed by the centralized controller on that day.

[0017] Preferably, the S3 feature extraction stage uses daily averages to capture data features and calculates the daily energy consumption and lighting duration of relevant devices. In the feature extraction stage, the electricity consumption data is converted into the following vector form X:

[0018] Formula: X =

[0019] [[T1,VA1,VB1,VC1,IA1,IB1,IC1PA1,PB1,PC1,PT1,L1,E1],

[0020] …,…,

[0021] [Tm,VAm,VBm,VCm,IAm,IBm,ICm,PAm,PBm,PCm,PTm,Lm,Em]].

[0022] Preferably, the T1…Tm parameter in the first column represents the timestamp reported by the centralized controller device every 1…m days;

[0023] The parameters in columns 2 to 4, VA1…VAm, VB1…VBm, VC1…VCm, represent the average voltage of phase A, phase B, and phase C reported by the controller device over a period of 1…m.

[0024] The parameters in columns 5 to 7, IA1…IAm, IB1…IBm, IC1…ICm, represent the average current of phase A, phase B, and phase C reported by the controller device over 1…m days.

[0025] The parameters in columns 8 to 10, PA1…PAm, PB1…PBm, and PC1…PCm, represent the average power of phase A, phase B, and phase C reported by the controller device over a period of 1…m.

[0026] The parameters in column 11, PT1…PTm, represent the average total power reported by the controller device over 1…m days.

[0027] The parameters in column 12, L1…Lm, represent the daily lighting duration of the relevant equipment within 1…m days;

[0028] The parameters in column 13, E1…Em, represent the daily energy consumption of the relevant equipment within 1…m days.

[0029] Preferably, in step S5, during the principal component analysis stage, standardized data is used, i.e., feature vectors X that have undergone data standardization. The goal of principal component analysis is to project the original data onto a new set of orthogonal feature spaces, where each new feature is a linear combination of the original features. These principal components are ordered in descending order of their ability to explain the variability of the data.

[0030] Preferably, the principal component analysis selects an appropriate number of principal components based on the cumulative contribution rate to ensure that more than 85% of the information is retained, thereby reducing the curse of dimensionality and improving the efficiency and accuracy of data analysis. The steps of the principal component analysis are as follows:

[0031] Step 1: Data standardization;

[0032] The second step is to calculate the covariance matrix.

[0033] Step 3: Eigenvalue decomposition;

[0034] Step 4: Select principal components;

[0035] Step 5: Data dimensionality reduction.

[0036] Preferably, the implementation of the density peak scanning algorithm based on hierarchical clustering in S6 includes steps such as DBSCAN parameter setting, density clustering calculation, clustering result analysis, and anomaly identification. Based on the calculation results of DBSCAN, the samples are divided into different clusters and abnormal data points and abnormal clusters are identified.

[0037] Preferably, the confirmed abnormal data points are compared with their respective density cluster centers to determine the possible causes of abnormal energy consumption and complete the diagnosis of abnormal causes.

[0038] (III) Beneficial Effects

[0039] Compared with existing technologies, this invention provides a method for diagnosing concentrator energy consumption anomalies based on the DBSCAN algorithm, which has the following beneficial effects: This method applies modern data analysis technology to the field of energy consumption anomaly diagnosis in urban lighting systems. In particular, by integrating DBSCAN and mutation point algorithm models, it aims to accurately extract features from various data generated by centralized controller devices and conduct in-depth analysis to capture potential energy consumption anomalies. Through density clustering implemented by HBDSCAN, abnormal data points can be effectively detected, and further verification is performed through the mutation point algorithm to ensure the reliability of the diagnostic results. By comparing abnormal data points with their respective density cluster centers, precise feature extraction and in-depth analysis are performed on data such as current, voltage, power load, leakage current, switching duration, and strategies generated by centralized controller devices installed in smart lighting systems during operation. This helps to determine the main causes of energy consumption anomalies, thus providing strong guidance for repair and optimization. This provides an innovative and efficient diagnostic technology for energy consumption anomalies in centralized controller devices in urban lighting systems, thereby improving the stability, energy efficiency, and operational safety of smart lighting systems. Attached Figure Description

[0040] Figure 1 This is a schematic diagram illustrating the operating principle of the present invention. Detailed Implementation

[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0042] As described in the background section, there are shortcomings in the existing technology. In order to solve the above-mentioned technical problems, this application proposes a method for diagnosing the causes of concentrator energy consumption anomalies based on the DBSCAN algorithm.

[0043] In one typical implementation of this application, such as Figure 1 As shown, a method for diagnosing concentrator energy consumption anomalies based on the DBSCAN algorithm includes the following steps:

[0044] S1. Data Acquisition: The power consumption data is collected by the 4G module installed on the centralized controller equipment and transmitted to the MQTT message transmission protocol.

[0045] S2, Real-time Consumption and Storage: Introducing Spark Structured Streaming technology to consume data obtained from Kafka data streams in real time and generate historical data;

[0046] S3. Feature Extraction: Perform statistical feature processing on historical data and calculate basic statistical indicators;

[0047] S4. Data Standardization: After data feature extraction in S3, the data is standardized so that the values ​​of different features are distributed within a similar range, which is used to improve the stability and performance of the model.

[0048] S5. Principal Component Analysis and Dimensionality Reduction: Extracting the most representative information from multidimensional standardized data to reduce dimensionality and retain sufficient data variability;

[0049] S6, HDBSCAN Density Clustering: The HDBSCAN (Density Peak Scanning Based on Hierarchical Clustering) algorithm is used to perform density clustering to discover anomalous data points in historical data and identify potential anomalies based on the clustering results.

[0050] S7. Anomaly Cause Diagnosis: Based on the calculation results of HDBSCAN, the samples are divided into different clusters. Each cluster represents a group of samples with similar characteristics. The feature parameters that have the greatest impact on the state of the abnormal data points are identified. By comparing the feature parameters between the abnormal data points and the nearest cluster center, the feature parameters that may lead to abnormal energy consumption are determined, and the cause of the anomaly is judged.

[0051] In a preferred embodiment of this work, electricity consumption data is collected using a 4G module installed on a centralized controller device. This collected data is transmitted via the MQTT message transmission protocol and then stored in a message queue according to the subscribed message topics. This step ensures efficient caching and transmission of electricity consumption data. Furthermore, during the real-time consumption and storage phase, by introducing Spark Structured Streaming technology, we can consume data obtained from Kafka data streams in real time. These data are efficiently stored in the Hadoop Distributed File System (HDFS) to ensure real-time performance and reliability. Historical data includes time-series data and timing strategy data. Time-series data covers multiple key parameters such as A / B / C phase current, A / B / C phase voltage, and A / B / C phase active power. Timing strategy data records the various strategy signals executed by the centralized controller on that day. For the centralized controller, instantaneous energy consumption generated by instantaneous power is not the primary concern regarding energy consumption anomalies. Therefore, we need to perform statistical feature processing on the data and calculate basic statistical indicators. This application aims to use daily averages to capture data characteristics and calculate the daily energy consumption of relevant equipment and lighting duration. In the feature extraction stage, the electricity consumption data is transformed into the following vector form X:

[0052] Formula: X =

[0053] [[T1,VA1,VB1,VC1,IA1,IB1,IC1PA1,PB1,PC1,PT1,L1,E1],

[0054] …,…,

[0055] [Tm,VAm,VBm,VCm,IAm,IBm,ICm,PAm,PBm,PCm,PTm,Lm,Em]].

[0056] As a preferred embodiment of this example, the first column of parameters T1…Tm represents the timestamp reported by the centralized controller device every 1…m days;

[0057] The parameters VA1…VAm, VB1…VBm, and VC1…VCm in columns 2 to 4 represent the average voltage of phase A, phase B, and phase C reported by the controller device over 1…m days.

[0058] The parameters IA1…IAm, IB1…IBm, and IC1…ICm in columns 5 to 7 represent the average current of phase A, phase B, and phase C reported by the controller device over 1…m days.

[0059] The parameters PA1…PAm, PB1…PBm, and PC1…PCm in columns 8 to 10 represent the average power of phase A, phase B, and phase C reported by the controller device over 1…m days.

[0060] The parameters in column 11, PT1…PTm, represent the average total power reported by the controller device over 1…m days.

[0061] The parameter L1…Lm in column 12 represents the daily lighting duration of the relevant equipment within 1…m days;

[0062] The parameter E1…Em in column 13 represents the daily energy consumption of the relevant equipment within 1…m days;

[0063] By extracting features from electricity consumption data, we can more effectively capture important information about energy consumption, providing a more valuable data foundation for subsequent energy consumption anomaly diagnosis.

[0064] As a preferred implementation in this embodiment, in S5, during the principal component analysis stage, standardized data is used, namely, the feature vector X after data standardization. The goal of principal component analysis is to project the original data onto a new set of orthogonal feature spaces, where each new feature is a linear combination of the original features. These principal components are ordered in descending order of their ability to explain the variability of the data. After feature extraction, in order to ensure the scale consistency between different features, it is often necessary to standardize the data. Standardization can make the values ​​of different features distributed in a similar range, which helps to improve the stability and performance of the model.

[0065] This application uses the StandardScaler method for data standardization, as shown in the following formula:

[0066] z = x - μ / σ

[0067] Where x represents the original feature value, μ represents the mean of the feature, σ represents the standard deviation of the feature, and z represents the standardized feature value.

[0068] As a preferred implementation in this embodiment, principal component analysis and dimensionality reduction are key steps in this method, used to extract the most representative information from multidimensional standardized data in order to reduce dimensionality and retain sufficient data variability.

[0069] Suppose we have m samples and n features, and the feature matrix is ​​X (with dimensions m x n), where each row represents a sample and each column represents a feature. The steps for performing principal component analysis are as follows:

[0070] Step 1: Data Standardization: Calculate the mean μj and standard deviation σj for each feature, and then standardize the features using the following formula:

[0071]

[0072] Step 2: Calculate the covariance matrix: The formula for calculating the element cij of the covariance matrix C is as follows:

[0073]

[0074] Where ˉxi and xˉj are the mean values ​​of the i-th and j-th columns, respectively;

[0075] Step 3, Eigenvalue decomposition: Calculate the eigenvalues ​​λ1,λ2,...,λn of the covariance matrix and the corresponding eigenvectors v1,v2,...,vn;

[0076] Step 4: Principal Component Selection: Sort the eigenvectors in descending order of their eigenvalues, and select the top n eigenvectors whose cumulative contribution rate reaches a predetermined threshold. The cumulative contribution rate is defined as:

[0077]

[0078] Principal component analysis selects an appropriate number of principal components based on the cumulative contribution rate to ensure that more than 85% of the information is retained, thereby reducing the curse of dimensionality and improving the efficiency and accuracy of data analysis.

[0079] Step 5: Data dimensionality reduction: Multiply the standardized feature vector X by the selected principal component feature vector to obtain the dimensionality-reduced data.

[0080] As a preferred embodiment of this example, the implementation of the density peak scanning algorithm based on hierarchical clustering in S6 includes steps such as DBSCAN parameter setting, density clustering calculation, clustering result analysis, and anomaly identification. Based on the calculation results of DBSCAN, the samples are divided into different clusters, and abnormal data points and abnormal clusters are identified. The implementation steps of the density peak scanning algorithm based on hierarchical clustering (DBSCAN) are described in detail below, as well as how to apply it to the diagnosis of concentrator energy consumption anomalies. The steps are as follows:

[0081] DBSCAN parameter settings

[0082] Choosing appropriate DBSCAN parameters can ensure accurate cluster identification and anomaly detection in the data during density clustering. These parameters include the minimum number of samples for a cluster and the distance threshold. This invention uses an exhaustive method to calculate the DBSCAN parameters, where ε is the neighborhood radius (0.1, 2.0), and the minimum number of samples MinPts defined by density is in the range of (3, 16). The optimal parameter combination is obtained by iterative calculation.

[0083] Density clustering calculation

[0084] Based on the selected parameters, we use the DBSCAN algorithm to perform density clustering calculations on the data after dimensionality reduction from principal component analysis. During the calculation process, DBSCAN automatically identifies core samples, marginal samples, and noise samples, thereby determining the cluster assignment for each sample. Because the algorithm formulas involved in DBSCAN are too complex, we will mainly describe its implementation process:

[0085] The DBSCAN algorithm process is as follows:

[0086] Input: The dimensionality-reduced sample set D = (x1, x2, ..., xm), neighborhood parameters (□, MinPts), and sample distance metric.

[0087] Output: Cluster partition C.

[0088] Step 1: Initialization

[0089] Initialize the core point set Ω = □,

[0090] Initialize the number of clusters k = 0,

[0091] Initialize the unvisited sample set Γ = D,

[0092] Cluster partitioning C = □

[0093] Step 2: Calculate the core point set Ω = □

[0094] for j = 1, 2, ..., m, do:

[0095] Find the □-neighborhood subset N□(xi) of sample xi using a distance metric.

[0096] if N□(xi)≥MinPts then

[0097] Add sample xi to the core object sample set: Ω = Ω ∪ x

[0098] end if

[0099] end for

[0100] Step 3: Clustering

[0101] whileΩ! =□do:

[0102] From the set of core points Ω, a core point o is randomly selected.

[0103] Initialize the current cluster core object queue Ωcur = o.

[0104] Initialize the category index k = k + 1,

[0105] Initialize the current cluster sample set Ck = o.

[0106] Update the set of unvisited samples Γ = Γ-o

[0107] whileΩcur! =□do:

[0108] Take the first sample q of Ωcur

[0109] Calculate the □-neighborhood N□(q) of q using the neighborhood distance threshold □.

[0110] if |N□(q)|≥MinPts then

[0111] make (q)∪Γ

[0112] Will Add to queue Ωcur

[0113] Will

[0114]

[0115] end if

[0116] endwhile

[0117] Step 4: Output C = C1, C2, ..., Ck

[0118] Clustering results analysis

[0119] Based on the calculation results of DBSCAN, the samples were then divided into different clusters, each cluster representing a group of samples with similar characteristics. The characteristics, size and distribution of each cluster were then analyzed to gain insights into energy consumption anomalies.

[0120] Anomaly identification

[0121] By analyzing the clustering results, we can identify possible anomalous clusters. The samples in these clusters are relatively isolated in density and have a different degree of aggregation than other samples. These anomalous clusters may have an important impact on the occurrence of concentrator energy consumption anomalies, and therefore become the focus of our subsequent analysis.

[0122] As a preferred implementation in this embodiment, after completing the above implementation steps of the density peak scanning algorithm (DBSCAN) based on hierarchical clustering, the data is first converted into a comparable form by performing appropriate normalization and denormalization operations on outlier data points and cluster centers to ensure data consistency and interpretability.

[0123] Then, each outlier data point is iterated over, and its distance to each cluster center is calculated. By comparing the distances between the outlier data point and each cluster center, the nearest cluster center can be found, i.e., which cluster center is more density-close to the outlier data point.

[0124] Next, the differences between the outlier data points and the nearest cluster center are calculated to identify which feature parameters have the greatest impact on the state of the outlier data points. By comparing the feature parameters between the outlier data points and the nearest cluster center, it can be determined which feature parameters may lead to energy consumption anomalies.

[0125] Finally, the most influential characteristic parameters and their corresponding values ​​are added to the records of the outlier data points for further analysis and interpretation. This information will help to more accurately identify the possible causes of energy consumption anomalies and provide strong clues for further diagnosis and treatment.

[0126] Through this series of steps, density clustering and feature comparison methods can be combined to analyze abnormal data points more deeply, thereby more accurately identifying and interpreting the factors that cause abnormal energy consumption. This helps to provide more valuable information and insights in the diagnosis of the causes of abnormal energy consumption in concentrators.

[0127] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A method for diagnosing concentrator energy consumption anomalies based on the DBSCAN algorithm, characterized in that: The following steps are included: S1. Data Acquisition: Electricity consumption data is collected through a 4G module installed on the centralized controller device and transmitted to the MQTT message transmission protocol; the electricity consumption data transmitted to the MQTT message transmission protocol is stored in a message queue according to the subscription message topic. S2. Real-time Consumption and Storage: Spark Structured Streaming technology is introduced to consume data obtained from Kafka data streams in real time and generate historical data. The historical data includes time-series data and timing strategy data. The time-series data covers key parameters such as A / B / C phase current, A / B / C phase voltage, and A / B / C phase active power. The timing strategy data records the various strategy signals executed by the centralized controller on that day. S3. Feature Extraction: Perform statistical feature processing on the historical data to calculate basic statistical indicators; use daily averages to capture data features, and calculate the daily energy consumption and lighting duration of relevant devices, converting the electricity data into the following vector form X: Formula: X = [[T1,VA1,VB1,VC1,IA1,IB1,IC1,PA1,PB1,PC1,PT1,L1,E1], …,…, [Tm,VAm,VBm,VCm,IAm,IBm,ICm,PAm,PBm,PCm,PTm,Lm,Em]]; Among them, the T1…Tm parameter in the first column represents the timestamp reported by the centralized controller device every 1…m days; The parameters in columns 2 to 4, VA1…VAm, VB1…VBm, and VC1…VCm, represent the average voltage of phase A, phase B, and phase C reported by the controller device over a period of 1…m. The parameters in columns 5 to 7, IA1…IAm, IB1…IBm, IC1…ICm, represent the average current of phase A, phase B, and phase C reported by the controller device over 1…m days. The parameters in columns 8 to 10, PA1…PAm, PB1…PBm, and PC1…PCm, represent the average power of phase A, phase B, and phase C reported by the controller device over a period of 1…m. The parameters in column 11, PT1…PTm, represent the average total power reported by the controller device over 1…m days. The parameters in column 12, L1…Lm, represent the daily lighting duration of the relevant equipment within 1…m days; The parameters in column 13, E1…Em, represent the daily energy consumption of the relevant equipment within 1…m days. S4. Data Standardization: After data feature extraction in S3, the data is standardized so that the values ​​of different features are distributed within a similar range, thereby improving the stability and performance of the model. S5. Principal Component Analysis and Dimensionality Reduction: Using standardized data, i.e., feature vectors X after data standardization, the original data is projected onto a new set of orthogonal feature spaces, where each new feature is a linear combination of the original features. These features are sorted in descending order of their explanatory power for data variability, and the top n feature vectors with a cumulative contribution rate of over 85% are selected based on their cumulative contribution rate to ensure that over 85% of the information is retained. This allows the extraction of the most representative information from the multidimensional standardized data, which is used to reduce dimensionality and retain sufficient data variability. S6, HDBSCAN Density Clustering: The HDBSCAN (Density Peak Scanning Based on Hierarchical Clustering) algorithm is used to perform density clustering to discover anomalous data points in the historical data and identify potential anomalies based on the clustering results. S7. Anomaly Cause Diagnosis: Based on the calculation results of HDBSCAN, the samples are divided into different clusters. Each cluster represents a group of samples with similar characteristics. Normalization and denormalization operations are performed on the abnormal data points and cluster centers. Each abnormal data point is traversed, and the distance between it and each cluster center is calculated and compared. The nearest cluster center is found, and the difference between the abnormal data point and the nearest cluster center is calculated. The feature parameters that have the greatest impact on the state of the abnormal data point are identified. By comparing the feature parameters between the abnormal data point and the nearest cluster center, the feature parameters that may lead to abnormal energy consumption are determined, and the cause of the anomaly is judged.

2. The method for diagnosing concentrator energy consumption anomalies based on the DBSCAN algorithm according to claim 1, characterized in that: The principal component analysis selects an appropriate number of principal components based on the cumulative contribution rate to ensure that more than 85% of the information is retained. This is used to reduce the curse of dimensionality and improve the efficiency and accuracy of data analysis. The steps of the principal component analysis are as follows: Step 1: Data standardization; The second step is to calculate the covariance matrix. Step 3: Eigenvalue decomposition; Step 4: Select principal components; Step 5: Data dimensionality reduction.

3. The method for diagnosing concentrator energy consumption anomalies based on the DBSCAN algorithm according to claim 1, characterized in that: The implementation of the density peak scanning algorithm based on hierarchical clustering in S6 includes steps such as DBSCAN parameter setting, density clustering calculation, clustering result analysis, and anomaly identification. Based on the calculation results of DBSCAN, the samples are divided into different clusters and abnormal data points and abnormal clusters are identified.