1. Introduction
With the further implementation of the carbon peaking and carbon neutrality policy, the installed capacity and power generation share of clean energy sources, represented by wind power [
1] and photovoltaic power [
2], have increased year by year in power systems. AC/DC hybrid distribution networks have become an important development direction for modern distribution systems, because of their advantages in renewable energy accommodation, power supply flexibility, and power quality. However, wind generation and solar generation are greatly affected by weather conditions. Their outputs are usually volatile, intermittent, and stochastic. This brings great challenges to the operation control and power supply security of AC/DC hybrid distribution networks [
3,
4]. In extreme cases, it may lead to wind and solar curtailment and equipment overload, and even affect system stability. In addition, the coupling characteristics between the AC and DC subsystems further increase the complexity of reliability analysis in AC/DC hybrid distribution networks. Therefore, it has become an important research direction in new-type power systems to assess the power supply reliability of AC/DC hybrid distribution networks with large-scale renewable energy integration [
5,
6,
7]. In power system planning, design, and reliability assessment, a common approach is to select representative or typical days as typical operating scenarios of the power system [
8,
9]. These limited scenarios are used to characterize power generation, transmission, and consumption behaviors over a long time scale. By analyzing the operating characteristics of these typical scenarios, the workload of system analysis can be significantly reduced. This avoids calculating all system states one by one. This approach is especially important for new-type power systems with high shares of stochastic renewable energy.
Large-scale integration of renewable energy sources, such as wind and photovoltaic power, also brings significant uncertainty to grid power. This poses severe challenges to the secure operation of AC/DC hybrid distribution networks. To address power system planning and dispatch problems under uncertainty, the mainstream research methods mainly include time-series analysis [
10], uncertainty-based Monte Carlo simulation [
11], and scenario generation methods [
12,
13,
14]. Among them, scenario generation has been widely used in dispatch and planning studies [
15,
16]. The commonly used scenario generation methods can be classified into three categories: expert experience-based methods, probabilistic model-based methods, and typical-scenario-based methods. Among these methods, the experience-based method relies on experts to select a representative time period as the typical operating scenario. Because it is strongly affected by subjective factors, this method has gradually become unsuitable for scenario generation in new-type power systems dominated by stochastic renewable energy. In contrast, probabilistic model-based sampling methods use historical statistical data of generation and load. They fit probability distributions and then generate typical scenarios by combining random sampling techniques, such as Monte Carlo simulation or Latin hypercube sampling. Although this method can better capture the randomness of generation and load, it is still constrained by the law of large numbers. Stable convergence to a certain scenario can only be achieved when the sample size is sufficiently large. In addition, the generated scenario data are based on the expected distribution of historical data. They may not fully reflect actual operating conditions. Therefore, the applicability of this method is also limited.
Clustering-based scenario reduction is a typical scenario generation method supported by data-driven techniques [
17,
18]. By using dimensionality reduction and clustering algorithms, this method reduces a large number of operating scenarios into a limited set of typical scenarios according to specific features. While preserving the temporal characteristics of generation and load, it can effectively improve the accuracy of scenario reduction in system analysis and significantly reduce computation time. At present, it has become one of the mainstream approaches for power system scenario generation. Reference [
19] proposed a typical scenario set generation method considering wind power and load based on an improved K-means clustering algorithm. This method can aggregate and reduce data within the calculation period, and it was applied to the assessment of wind power accommodation capability. Reference [
20] developed an annual sequential production simulation model considering large-scale wind and solar generation from the perspective of renewable energy accommodation. The model comprehensively considers wind and solar output characteristics, load characteristics, unit peak-shaving capability, and grid transmission capacity. Reference [
21] carried out a comprehensive comparative analysis of different clustering methods for generating long-term wind farm output variation curves. Reference [
22] proposed an improved Adaptive-DBSCAN clustering algorithm for fault detection in photovoltaic power stations. By analyzing the key factors affecting unit power generation, the method accurately identifies variables related to generation fluctuations and uses them as inputs to the fault detection model. This improved algorithm enhances detection capability under abnormal conditions and improves model accuracy and reliability. It finally enables efficient fault identification and diagnosis for photovoltaic power stations and provides strong support for photovoltaic system operation and maintenance. Reference [
23] proposed a photovoltaic power forecasting method that combines the K-means++ clustering algorithm with a Long Short-Term Memory (LSTM) network. In this method, K-means++ is first used to cluster the dataset. The clustered dataset is then used to train and test the LSTM neural network. This improves forecasting accuracy. It also optimizes the structure of the dataset, enabling the model to capture photovoltaic power variation trends more accurately and thus improving overall forecasting performance. Reference [
24] proposed a multidimensional clustering method. This method searches subspaces by traversing an FP-tree storage structure and applies a defined K-Gaussian model in each subspace for clustering identification. The model divides subspace data into normal and abnormal clusters, removes redundant data, and accurately identifies abnormal data. As a result, it not only improves clustering efficiency but also enhances abnormal data detection capability, providing an effective solution for multidimensional data processing. Reference [
25] used the fuzzy C-means clustering method to analyze historical load data of typical grid days and obtained representative seasonal daily load curves for weekdays. These results provide important support for load forecasting, load control, and power anomaly detection. They also offer guidance for electricity price formulation and marketing strategy optimization.
At present, studies on distribution network reliability assessment with large-scale renewable energy integration mainly focus on probabilistic modeling of renewable generation output. Among these studies, scenario clustering is often used to construct probabilistic models of renewable power output. However, with the increasing penetration of renewable energy, source-side power output shows significant uncertainty and strong volatility. Traditional deterministic operating models can no longer accurately describe the actual operating characteristics of the system. Reliability indices are closely related to the net load level at a given time. A higher net load level means a larger gap between generation capacity and load demand. It also implies a greater possible amount of load curtailment and a higher risk to power supply reliability. If the full-scenario enumeration method is used to quantify reliability under all possible renewable output states, the computational complexity will grow exponentially. As a result, the required computational resources may exceed the limits of practical engineering applications. Scenario clustering is therefore often introduced into power supply reliability assessment to reduce the computational burden. However, for reliability assessment, the temporal information of system operating parameters must be preserved. When dealing with high-dimensional time-series operating data, traditional scenario clustering methods often produce unsatisfactory clustering results because of the high dimensionality.
To address the above issues, this paper proposes a power supply reliability assessment method for AC/DC hybrid distribution networks with large-scale renewable energy integration. The daily net load duration curve is used as the feature variable to represent system operating scenarios. An improved t-SNE algorithm is adopted to achieve effective dimensionality reduction of high-dimensional time-series data. Then, a two-stage clustering strategy is developed. It combines preliminary clustering based on an improved DBSCAN algorithm with secondary clustering based on an improved K-means algorithm. In this way, typical operating scenarios of AC/DC hybrid distribution networks with large-scale renewable energy integration are generated. Based on these typical scenarios, the power supply reliability indices of the distribution network are calculated in a weighted manner. This enables an efficient and quantitative assessment of power supply reliability.
2. Dimensionality Reduction of Net Load Duration Curves Based on an Improved t-SNE
In conventional power supply reliability assessment of power systems, the output of dominant fossil-fuel generating units is generally deterministic. Therefore, the system operating mode
can be fully described by a limited number of typical operating scenarios. However, with the integration of high-penetration renewable energy, source-side power output exhibits significant uncertainty and strong volatility. Traditional deterministic operating models can no longer accurately characterize the actual operating features of the system. If a full-scenario enumeration method is used to quantify the risk under all possible renewable output states, the computational complexity will increase exponentially. The computational burden grows with the number of renewable energy nodes n as O(2
n). As a result, the required computational resources may exceed the limits of practical engineering applications. For this reason, scenario clustering is often used in risk assessment studies. However, in power supply reliability assessment, the temporal information of system operating parameters must be preserved. Traditional scenario clustering methods often fail to achieve effective clustering for sequential operating scenarios because the dimensionality of the data set is too high. Therefore, based on full consideration of the volatility and uncertainty of renewable power output, this paper performs clustering analysis of typical operating scenarios under large-scale renewable energy integration through feature variable extraction, dimensionality reduction of sequential operating parameters, and multiple clustering stages. On this basis, a quantitative calculation of the power supply reliability of the AC/DC hybrid distribution network is achieved. The power supply reliability of a power system can be quantified by comprehensively considering the probability of an event and the severity of its consequences, and it can be expressed as:
where
is the probability of fault event
;
is the operating state of the power system at time
t;
is the
j-th load level at time
t;
is the probability that the
j-th load level occurs under operating state
; and
is the severity function of fault event
when the load level is
.
Typical operating scenarios of the power grid under large-scale renewable energy integration can be generated from the historical statistical data of regional grid operating parameters. However, grid operating parameters are numerous and heterogeneous. Therefore, appropriate feature variables must be selected to accurately describe operating scenarios. In scenario clustering analysis for power supply reliability assessment, the selection of feature variables should be closely related to the risk-driving factors of system operation. As discussed above, the power supply reliability of an AC/DC hybrid distribution network at the substation level is mainly affected by the mismatch between generation power and load power caused by faults. The risk index is therefore closely related to the net load level of the system at a given time.
The net load level refers to the difference between the load demand and the renewable power output of the system at a given time. A higher net load level indicates a larger gap between generation capability and load demand. It also implies a greater possible amount of load loss under the corresponding system state, and thus a higher level of operational risk. Therefore, the net load duration curve is adopted as the clustering feature because it compactly represents the supply–demand imbalance caused by the combined variation in renewable generation and load demand. In reliability assessment, the risk level is more directly associated with the residual demand after renewable generation is considered than with wind power, photovoltaic power, or load demand separately. Therefore, the net load duration curve can effectively characterize the distribution of operating stress related to load curtailment probability, load curtailment frequency, and expected energy not supplied.
Compared with directly clustering multidimensional time-series data of wind power, photovoltaic power, and load, this feature reduces the dimensionality of scenario representation and improves clustering efficiency, while emphasizing the overall balance state of the system. However, since the duration curve rearranges net load values by magnitude, it may weaken chronological information such as ramping behavior and short-term temporal correlations. Thus, the proposed method is more suitable for long-term, planning-oriented reliability assessment, whereas chronological multidimensional time-series modeling is still required for short-term dynamic operation or real-time control analysis.
The net load level of the system can be expressed as:
where
is the power demand of the
j-th load node under operating state
;
is the output power of the i-th renewable energy source under operating state
; and
and
are the numbers of load nodes and renewable energy sources.
If the historical statistical data contain daily operating parameters for a total of M system days, a daily net load matrix can be constructed by taking the system net load levels at all time periods of each day as rows and the net load levels of different days as columns:
where
is the system net load level at time
t on day
M.
To avoid poor clustering performance caused by an excessively large value range due to numerical scale imbalance, the daily net load matrix in the above equation is further normalized. The normalized net load level can be expressed as:
By normalizing all elements in (3), the normalized daily net load matrix can be obtained and denoted as . Then, can be used as the feature variable of typical operating scenarios, and typical operating scenarios can be generated through clustering techniques.
After the normalized daily net load matrix of the regional power grid is obtained, scenario reduction can be carried out through clustering analysis, and typical operating scenarios with preserved temporal characteristics can be identified. In this matrix, each row consists of the net load levels at (t) time points within one day. In practical grid data acquisition systems, key parameters are usually collected and stored at 15 min intervals. Therefore, the number of time points of the net load level within one day is (t = 96). In other words, the dimension of is 96. When clustering is performed on high-dimensional data, data points become sparse in the high-dimensional space. As a result, clustering algorithms that rely on distance metrics may lose effectiveness in such a space. This can lead to unstable clustering results and makes it difficult to reflect the true cluster structure. Therefore, in the generation of typical operating scenarios, the high-dimensional time-series data in are first reduced in dimension to facilitate the subsequent clustering process.
The t-SNE algorithm, i.e., t-distributed stochastic neighbor embedding, is a nonlinear dimensionality reduction method based on manifold learning. It maps high-dimensional data samples into a low-dimensional manifold structure. It then achieves effective dimensionality reduction by solving the corresponding embedding mapping. At the same time, it can preserve the local similarity between data points. Therefore, it is suitable for dimensionality reduction of high-dimensional time-series data. The main steps of this algorithm are as follows.
(1) Probability distribution in the high-dimensional space
First, the similarity between every pair of high-dimensional data sample points should be calculated. In this process, the conditional probability
between two sample points is used to measure their similarity, and it can be expressed as:
The above equation means that neighboring points are selected according to the conditional probability density derived from a Gaussian distribution centered at sample point
. A larger conditional probability indicates a higher similarity between the two points. It also means that the point is more likely to be a neighbor of the sample point. In the equation,
is the width of the Gaussian kernel. Its specific value can be determined by introducing the perplexity index, which can be expressed as:
By specifying the value of , the parameter in the Gaussian kernel can be solved by a binary search algorithm. In practical engineering applications, the perplexity is usually set between 5 and 50.
After obtaining
, the conditional probability between any two data points in the high-dimensional space can be calculated by using (5). To avoid directional bias between data points, the joint probability
between sample points should also be computed as:
where
n is the number of samples.
(2) Probability distribution in the low-dimensional space
Within the framework of the classical stochastic neighbor embedding algorithm, cluster crowding often occurs when high-dimensional data are reduced in dimension. Specifically, during dimensionality reduction, different cluster structures may overlap topologically because of space compression. As a result, their distinguishability is significantly reduced. It should be noted that this phenomenon essentially arises from the mismatch between the probability representations of high-dimensional and low-dimensional manifolds. In other words, the local topological relationships embedded in the high-dimensional space cannot be preserved consistently in the low-dimensional space by traditional probability modeling methods. The heavy-tailed property of the t-distribution can effectively overcome the problem of excessive compression of sample distances in the low-dimensional embedding space. By introducing the degree-of-freedom parameter of the t-distribution, nonlinear scaling of distances can be achieved. In this way, medium distances in the high-dimensional space can produce an appropriate manifold unfolding after mapping. At the same time, the separation property of long-distance samples can also be preserved. Therefore, in the low-dimensional space, the similarity between two data points is defined by a t-distribution with one degree of freedom, as follows:
where
is the projection of the high-dimensional data point
in the low-dimensional space, i.e., the low-dimensional embedding coordinate. Its specific position should be adjusted by gradient descent.
(3) Determination of low-dimensional coordinates based on the loss function
Based on the obtained
and
, a
KL divergence function is constructed to measure the similarity between these two probability distributions. It is then used to determine the coordinates of data points in the low-dimensional space. The objective function of the
KL divergence is given by:
A smaller value of
C indicates that
and
are closer to each other. This means that the high-dimensional distribution is more similar to the low-dimensional distribution, and the dimensionality reduction is more accurate. After obtaining
C, its gradient with respect to the low-dimensional data point
is calculated as:
After obtaining the partial derivatives, the iterative expression for updating the spatial positions of the low-dimensional data points can be constructed as:
where
is the coordinate position of the low-dimensional data point at the
h-th iteration;
is the learning rate; and
is the momentum coefficient.
Through the above steps, dimensionality reduction of high-dimensional data based on the t-SNE algorithm can be achieved. However, as shown in (6), the calculation of the Gaussian kernel width requires a manually specified perplexity. Although this value is generally set within the range of 5 to 50 based on experience, different perplexity values may lead to significantly different dimensionality reduction results and thus affect the quality of the reduced data.
Therefore, based on the conventional t-SNE algorithm, this paper proposes a t-SNE method with KL-divergence elbow correction to realize automatic optimization of the perplexity . The perplexity value at the elbow point corresponds to the critical point of diminishing returns in the KL-divergence function. This point indicates that the reduced data can preserve sufficient local structure while maintaining the global variation trend of the high-dimensional data. In this way, the reduced data can avoid being overly smoothed or excessively fragmented.
3. Typical Operating Scenario Clustering Based on an Improved K-Means Algorithm
The DBSCAN algorithm does not require the number of clusters to be specified in advance. It can adaptively determine the optimal clustering structure according to the spatial density distribution of data points. In addition, its noise identification mechanism can effectively filter out outliers or noise points in the data. This helps avoid distortion of clustering results caused by data acquisition errors or accidental recording errors. This characteristic makes DBSCAN particularly suitable for handling possible abnormal values in power grid operating data and ensures the accuracy of typical scenario extraction.
The core principle of the DBSCAN algorithm is based on the concept of density reachability. First, the neighborhood radius, namely Epsilon (Eps), and the neighborhood density threshold, namely Minimum Points (MinPts), are defined to determine the neighborhood range of each data point. Then, the number of data points contained in the neighborhood is used to determine whether the point is a core point. For each core point, all points within its neighborhood are assigned to the same cluster. The other points in the neighborhood are then visited recursively. If these points also satisfy the core point condition, the cluster continues to expand until no new core points can be found. In essence, this algorithm performs clustering by identifying high-density regions in the dataset, while low-density regions are excluded from the clustering results. This density-based clustering mechanism enables the algorithm to effectively discover clusters with arbitrary shapes and automatically identify noise data.
However, two parameters in the DBSCAN algorithm must be determined, namely the neighborhood radius and the neighborhood density threshold. The former is also called the radius parameter. It represents the radius of the neighborhood around a data point. In the dataset, the region within a distance of Eps from a data point is called the neighborhood of that point. The latter is also called the minimum number of points. It represents how many data points must exist within the neighborhood of a data point for that point to be defined as a core point. In the conventional DBSCAN algorithm, the values of Eps and MinPts are usually set empirically and then adjusted repeatedly according to the clustering results. This process is highly subjective. Therefore, this paper uses the k-nearest-neighbor distance curve to automatically identify the above two parameters.
Before presenting the steps of the improved DBSCAN algorithm, the variables used in the algorithm are first defined.
Definition 1. Eps neighborhood: The Eps neighborhood refers to the region centered at a data point with Eps as the radius, and it is expressed as:
In the above equation, is the mapping matrix of in the low-dimensional space. Then, the Eps neighborhood contains all data points in matrix whose distances to object do not exceed Eps.
Definition 2. Core point: If the Eps neighborhood of data point
contains at least MinPts data points, then
is called a core point, which can be expressed as: Definition 3. Noise point: A noise point is a point that is neither a core point nor contained in the Eps neighborhood of any core point.
Based on the above definitions, the basic steps of the improved DBSCAN clustering algorithm proposed in this paper for the adaptive determination of Eps and MinPts are given as follows.
First, for any two data points
and
in the dimension-reduced dataset
, the Euclidean distance between them is calculated as:
The calculated distances are then combined to form the distance distribution matrix of dataset .
Next, the elements in each row of matrix are sorted in ascending order to form a new matrix . This matrix is called the k-nearest-neighbor matrix. The element in the k-th column represents the distance from a data point in dataset to its k-th nearest neighbor.
On this basis, the average value of each column of matrix is calculated. In this way, the k-average nearest-neighbor distances of the data points are obtained and arranged in matrix . These values are taken as candidate values of Eps. The k-th average nearest-neighbor distance is denoted by Eps(k), where k = 1, 2, … m.
Furthermore,
k is initialized as 1, and the corresponding
Eps(
k) is obtained. Substituting it into (15), the expected number of data points within the
Eps neighborhood of each data point
in dataset
can be obtained as:
where ⌊ ⌋ denotes the floor operation.
Next, it is checked whether k ≤ m is satisfied. If not, the algorithm terminates. A curve of the number of output clusters of DBSCAN versus (k) is then plotted, and its elbow point is taken as the optimal Eps(k) and MinPts(k). If the condition is satisfied, the DBSCAN input parameters Eps(k) and MinPts(k) are initialized. Meanwhile, the DBSCAN cluster label set is initialized as Labels = {LC}. The current cluster index is initialized as LC = 0. The data point index is initialized as i = 1. The visit flags of all data points are initialized to 0 in .
Then, it is checked whether condition is satisfied. If not, the point is marked as a noise point, and i = i + 1 is set to process the next data point. If condition is satisfied, the point is regarded as a core point. A new cluster C is created, and its cluster index is set to the current maximum cluster index plus 1, i.e., LC = max(LC) + 1. The algorithm then enters the cluster expansion stage. Next, an empty set Q is created. Data point and all points in its neighborhood are added into set Q. At the same time, the data index is initialized as j = 1.
For any data point in Q, it is checked whether the stopping condition is satisfied . If it is satisfied, the current cluster expansion is completed. Otherwise, the following steps are performed. It is first determined whether the data point has been visited, i.e., whether vj = 1 is satisfied. If yes, let j = j + 1, and continue to determine whether this point is a core point. Otherwise, let vj = 1, let j = j + 1, and directly add the data point to set Q, and then continue to process the next data point. It is further determined whether is a core point. If yes, all points in its neighborhood are added to set Q. Otherwise, the data point is directly added to set Q, and j = j + 1 is set to continue processing the next point in the set. When , for any data point, vi = 1 is satisfied, all clustering results are output, the number of clusters corresponding to the current Eps(k) and MinPts(k) is recorded, and k = k + 1 is set. The algorithm then returns to check whether k ≤ m holds, and the above process is repeated until all k values have been traversed. Otherwise, the current cluster continues to expand.
By applying the above algorithm to the dimension-reduced dataset , the preliminary clustering results can be obtained. Each cluster contains several data points with similar features. However, validation results show that, because the renewable generation output curves exhibit strong randomness, one round of clustering alone cannot guarantee satisfactory classification results. Therefore, based on the preliminary clustering by DBSCAN, this paper further performs secondary clustering using an improved K-means algorithm, so as to obtain more accurate clustering results.
(1) Optimization of Initial Cluster Centroids Based on K-means++
After preliminary clustering is performed on the dimension-reduced dataset , suppose that all data points in are divided into H1st clusters, and the h cluster is denoted by H1st(h). In this section, secondary clustering based on the improved K-means algorithm is further carried out for each cluster to improve clustering accuracy.
K-means clustering is a typical unsupervised machine learning algorithm. Its core idea is to partition a dataset into K disjoint clusters through iterative optimization. Given the cluster number K, the algorithm performs clustering by minimizing the sum of squared Euclidean distances between data points and the centroids of their assigned clusters. Specifically, the algorithm alternately performs the following two steps: assigning data points according to the current centroids, and updating the centroid positions according to the current cluster members, until the convergence condition is satisfied. However, in the conventional K-means algorithm, the initial centroids are selected randomly. As a result, the algorithm is prone to falling into a local optimum and cannot guarantee a globally optimal clustering result. Therefore, this paper adopts the K-means++ algorithm to optimize the selection of the initial centroids and reduce the probability of convergence to a local optimum.
The specific procedure of the secondary clustering method based on the improved K-means++ proposed in this paper is as follows:
First, initialize the cluster index as
h = 1, and set the number of clusters for secondary clustering as
K. It is then checked whether
h ≤
H1st is satisfied. If yes, initialize the centroid index as
k = 1, and calculate the number of data points in cluster
H1st(
h), denoted by
Nh. Then, randomly select one data point
from this cluster as the first cluster centroid, denoted by
ck. Otherwise, the calculation ends. Next, it is checked whether
k ≤
K is satisfied. If yes, calculate the minimum distance between each of the other data points in the cluster and
ck as:
If the condition is not satisfied, it means that K initial centroids for secondary clustering have been obtained, and the algorithm then enters the iterative clustering stage.
During the determination of the initial centroids, the following equation is used to calculate the probability that each data point in the cluster is selected as the next cluster centroid:
The above equation indicates that a data point with a larger minimum distance from the existing centroids has a higher probability of being selected as the next initial centroid. According to this probability distribution, the centroid of the next cluster is determined by weighted random sampling. Then, let k = k + 1, and continue to check whether k ≤ K holds.
After the initial centroids are determined, the following equation is used as the objective function of the secondary clustering to assign each data point to a cluster:
where
is the objective function of the
K-means algorithm. The goal is to optimize the cluster centroids
C so that the sum of squared Euclidean distances from all data points in each cluster to the corresponding centroid is minimized.
denotes the set of all data points in the
k-th cluster.
For the specific assignment process, the squared Euclidean distance from each data point
to each centroid
is first calculated as:
where
l is the
l-th feature of
, and the data point has
m dimensions in total.
Each data point is then assigned to the nearest cluster centroid. According to the current cluster partition, the position of each centroid is updated by using the mean of all sample points in the cluster, i.e.,
where
is the number of data points in the
k-th cluster.
Equations (19) and (20) are repeated until the cluster centroids at the (
t + 1)-th iteration no longer change significantly compared with those at the
t-th iteration, i.e.,
where
is the given convergence threshold.
After convergence is reached, (19) is used again to calculate the distance between each data point and each centroid c. Each data point is then assigned to the cluster represented by its nearest centroid. In this way, the secondary clusters corresponding to the preliminary cluster H1st(h), namely C1, C2, …CK, are obtained. Then, let h = h + 1, and return to check whether h ≤ H1st(h) holds. The above process is repeated until secondary clustering has been completed for all preliminary clusters.
(2) Calculation model of the optimal cluster number K based on Silhouette Coefficient (SC) and the Davies–Bouldin Index (DB) multi-objective optimization with the entropy weight method
By following the above steps, the optimal secondary clustering result for all data points in H1st(h), can be obtained under a given value of K. However, as mentioned above, the clustering performance is highly dependent on the preset value of K. In most cases, the optimal value of K is unknown in advance. It is often determined only after repeated manual trials based on experience, which makes the clustering result subjective. To overcome the limitation of the conventional K-means algorithm and reduce the subjectivity of manually setting the cluster number K, this paper proposes a multi-index fusion evaluation strategy based on the entropy weight method. Specifically, by combining the quantitative analysis of the SC-DB, an automatic optimization model for selecting the value of K is constructed. This method uses the entropy weight method to assign objective weights and balance the contributions of clustering compactness, represented by SC, and inter-cluster separability, represented by DB. In this way, the optimal value of K can be determined adaptively. The specific procedure is as follows:
For
, each possible value of
K is taken as an input, and the steps described in the previous subsection are used to perform secondary clustering on
. For each
,
K secondary clusters can be obtained, denoted by
, where
. For each
, the average distance between data point
i within the cluster and the other data points in the same cluster is calculated as:
where
is the number of data points in the cluster.
The average distance from data point
to all data points in each of the other clusters
is calculated. The minimum of these distances is taken as the inter-cluster Euclidean distance:
By combining (22) and (23), the
SC of a single data point
can be obtained, which is expressed as:
As can be seen from the above equation, when the inter-cluster distance
of data point
is much larger than its intra-cluster distance
, the value of the
SC approaches 1. This indicates that the point has been assigned to the correct cluster. Otherwise, it indicates that the point has been assigned to an incorrect cluster. By averaging the
SC of all data points
, the
SC of the overall clustering result can be obtained as:
Similar to the
SC, the
DB index is also commonly used to evaluate clustering quality. The difference is that this index mainly measures the balance between intra-cluster compactness and inter-cluster separation. It evaluates clustering performance by comparing the relative distance between clusters with the dispersion within each cluster. For a clustering result containing
K clusters, the
DB index is defined as:
where
is the average dispersion of the
q-th cluster
, i.e., the intra-cluster compactness. It can be measured by calculating the average distance from all data points in the
q-th cluster
to the cluster centroid
:
where
is the Euclidean distance between the centroid
of the q-th cluster and the centroid
of the
b-th cluster, and it is used to measure inter-cluster separation:
As can be seen from (26), when the intra-cluster compactness is high and the inter-cluster separation is large, the DB index is small. In contrast, when the intra-cluster compactness is low and the inter-cluster separation is small, the DB index becomes large.
Since the SC and the DB provide complementary criteria for evaluating clustering performance, a unified evaluation framework should be established through multi-index fusion. A larger SC value indicates higher intra-cluster compactness, whereas a smaller DB value reflects better inter-cluster separation. Therefore, this paper adopts the entropy weight method to address this issue.
During the secondary clustering of dataset
, for each possible value of
K, the corresponding
SC and
DB indices can be obtained from (25) and (26), denoted by
SCK and
DBK, respectively. The arrays formed by these
SC and
DB indices are denoted as:
To avoid the influence of the dimensional differences between the SC and DB indices on the entropy weights, these two indices are first normalized. For
SCK, max normalization is adopted:
Similarly, for
DBK, min normalization is adopted:
In this way, both indices are normalized to the range of [0, 1]. A value closer to 1 indicates better clustering performance.
In the entropy weight method, entropy reflects the degree of dispersion of an index. A larger degree of dispersion indicates a higher importance of the index. Accordingly, the information entropy values of the above two indices under
K possible cluster numbers are calculated as follows:
where
and
are the information entropy values of the SC index and the DB index.
and
are defined as:
A smaller information entropy value indicates that the index contains more effective information and should be assigned a larger weight. The weights of the SC index and the DB index are calculated by the following equations:
For each
, the comprehensive evaluation index
obtained by the entropy weight method is calculated by the following equation:
A larger value of this index indicates better clustering performance. Therefore, the corresponding value of K for can be taken as the optimal number of clusters. By substituting it into the above method, the optimal clustering result for can be obtained.