The invention discloses a power customer segmentation and behavior discovery method based on a
Mahalanobis distance related Chinese restaurant process, and belongs to the technical field of power customer
data analysis, and the method comprises the following steps: S10, data preprocessing: collecting multi-dimensional
power consumption data of power customers; s20, the
Mahalanobis distance is calculated; s30, sparse approximate optimization is carried out; s40, a Chinese restaurant process related to the
Mahalanobis distance; s50, integrating a hierarchical
Dirichlet process, and automatically learning optimal clustering configuration in a hierarchical structure; s60, performing abnormal behavior detection, and setting a threshold value to perform abnormal customer marking; and S70, outputting and explaining a result, outputting a customer segmentation result and the
feature description of each group, and generating an explainable behavior mode report. According to the method, the potential segmentation structure of the power customer can be automatically found under the condition that the clustering number is not specified in advance, meanwhile, high-dimensional data,
noise interference and a complex dependency relationship are effectively processed, and accurate customer behavior
pattern recognition is achieved.