The invention provides a
transformer area
line loss data processing method and device based on a
Canopy-Kmedoids
algorithm, and a medium, and the method comprises the steps: collecting basic
data information of a power distribution network
transformer area, wherein the basic
data information comprises static parameters of the
transformer area, and screening a transformer area sample set with a stable
line loss rate based on the static parameters; and analyzing transformer area
line loss rate influence factors based on the basic
data information, selecting transformer area static parameters with a large influence degree, adopting a Canpoy
algorithm to carry out coarse clustering on a
data set, taking a central point of a Canpoy subset as an initial central point of a K-medoids
algorithm to carry out fine clustering, calculating the sum of squared errors (SSE) of each clustering scheme, making an
elbow diagram according to the sum of squares of errors of each clustering scheme, selecting a K value at an inflection point of the
elbow diagram as an optimal K value as an optimal result, performing line loss calculation of the transformer area by using the optimal result, and controlling a
power grid according to a line loss calculation result. The method improves the clustering effect, and enables the line loss calculation to be accurate and objective.