Automatic Labeling of Real-World PMU Data: A Weakly Supervised Learning Approach
Abstract
1. Introduction
1.1. Motivation
1.2. Related Work
- Enabling the utilization of noisy, imperfect labels.
- Incorporating fuzzy logic for noise-tolerant confidence quantification.
- Prohibitive annotation costs.
- Non-stationary data distributions.
- Need for domain knowledge integration.
1.3. Main Contributions
- We propose a novel weakly supervised learning framework that leverages the t-cherry junction tree to approximate the underlying dependencies among labeling functions. By incorporating domain knowledge through structured labeling functions, the framework is capable of classifying both frequent and rare/unseen events. This enables the generation of accurate label estimates from limited labeled data, facilitating the scalable and automatic annotation of PMU datasets for utility applications.
- To address the computational challenges associated with junction tree construction, we design an efficient greedy search algorithm that significantly reduces the search space for optimal t-cherry structures. This ensures high-quality inference while keeping computational overhead manageable.
- We implement the proposed framework to augment scarce labeled training data and evaluate it using two years of real-world PMU measurements from the Western Interconnection of the U.S. transmission grid. Experimental results demonstrate that when labeled data account for less than 15% of the total training set, our approach achieves substantially higher label estimation accuracy than existing state-of-the-art weak supervision models. These results highlight the brilliant performance of unseen events and the potential of the proposed method for practical deployment in large-scale PMU data-labeling tasks.
2. Weakly Supervised Learning Based Automatic PMU Data Labeling
2.1. Weakly Supervised Learning Framework
- Labeling function learning. Labeling functions (LFs) can be treated as event classifiers. Given the input PMU data, an LF outputs a label (i.e., event type), e.g., line outage, transformer outage, or frequency event. In the proposed framework, multiple LFs are learnt to characterize the features of different event types. Due to the limited labeled PMU data, the learnt LFs can be noisy and biased. Therefore, directly using the estimates from the LFs cannot generate good event classifiers.
- Generative model. To enhance the accuracy of the estimated labels from the LFs, a generative model is developed. As LFs are learnt using the same dataset, the estimated labels from the LFs are correlated. The goal of the generative model is to characterize the dependency structure of the LFs, based on which the estimated labels are better combined from the LFs to generate better estimates without knowing the ground truth.
2.2. Labeling Function Learning
2.3. Generative Model
2.4. T-Cherry Junction Tree Based Distribution Estimation
2.4.1. Joint Distribution Estimation
- Cluster: Each node of the junction tree is a subset of the LFs, i.e., , also known as a cluster denoted as with the distribution .
- Separator: A separator is an edge that connects two clusters, which can be denoted as . The separator is also a subset of the LFs, and its distribution can be denoted as .
2.4.2. Estimation Error Minimization
2.4.3. Tree Generation Algorithm
| Algorithm 1 b-order t-cherry Junction Tree Generation |
Input: t-cherry junction tree order: b and k labeling function outcome Output: cluster set and separator set Initialization: , , End Initialization while such that if then for j = 1: if then parent(K) = , , , break loop end if end for end if end while |
| Algorithm 2 Order Incremental Algorithm |
Input: cluster set Output: cluster set while such that if then , For all and , calcuated by (5) Add entry to ArrayList A if then for all Link to , , Add entry to ArrayList A end for for all if then end if end for Remove from junction tree. end if end if remove and sort A by w. end while |
| Algorithm 3 Bifurcation Update Algorithm |
Input:
Output: new sub-cluster set , and new sub-separator set , , , , , for i in : , , end for |
2.4.4. Order Incremental Algorithm
2.4.5. Bifurcation Update Algorithm
3. Case Study of Real-World PMU Data
3.1. Experimental Setup
3.1.1. Data
3.1.2. Evaluation Metrics
3.2. Label Estimation Accuracy
3.3. Event Classification Performance
3.4. Impact of Labeling Function Choice
3.5. Robustness on Unseen Events
- Maximum ROCOF ();
- Maximum voltage drop ();
- Maximum current drop ().
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Reuters. Spain, Portugal Switch Back On, Seek Answers After Biggest Ever Blackout; Reuters: London, UK, 2025. [Google Scholar]
- Guo, Q.; Sun, H.; Zhang, M.; Tong, J.; Zhang, B.; Wang, B. Optimal voltage control of PJM smart transmission grid: Study, implementation, and evaluation. IEEE Trans. Smart Grid 2013, 4, 1665–1674. [Google Scholar] [CrossRef]
- Niazazari, I.; Liu, Y.; Ghasenikhani, A.; Biswas, S.; Livani, H.; Yang, L.; Centeno, V.A. PMU-data-driven Event Classification in Power Transmission Grids. In Proceedings of the 2021 IEEE Power & Energy Society Innovative Smart Grid Technologies Conference (ISGT), Virtual, 16–18 February 2021; pp. 1–5. [Google Scholar]
- Liu, Y.; Yang, L.; Ghasemkhani, A.; Livani, H.; Centeno, V.A.; Chen, P.Y.; Zhang, J. Robust event classification using imperfect real-world PMU data. IEEE Internet Things J. 2022, 10, 7429–7438. [Google Scholar] [CrossRef]
- Ratner, A.; Bach, S.H.; Ehrenberg, H.; Fries, J.; Wu, S.; Ré, C. Snorkel: Rapid training data creation with weak supervision. In Proceedings of the VLDB Endowment. International Conference on Very Large Data Bases, NIH Public Access, Munich, Germany, 28 August–1 September 2017; Volume 11, p. 269. [Google Scholar]
- Foggo, B.; Yamashita, K.; Yu, N. pmuBAGE: The Benchmarking Assortment of Generated PMU Data for Power System Events. IEEE Trans. Power Syst. 2023, 39, 3485–3496. [Google Scholar] [CrossRef]
- Liu, S.; Zhao, Y.; Lin, Z.; Liu, Y.; Ding, Y.; Yang, L.; Yi, S. Data-driven event detection of power systems based on unequal-interval reduction of PMU data and local outlier factor. IEEE Trans. Smart Grid 2019, 11, 1630–1643. [Google Scholar] [CrossRef]
- Taghipourbazargani, N.; Dasarathy, G.; Sankar, L.; Kosut, O. A machine learning framework for event identification via modal analysis of PMU data. IEEE Trans. Power Syst. 2022, 38, 4165–4176. [Google Scholar] [CrossRef]
- Zheng, X.; Wang, B.; Kalathil, D.; Xie, L. Generative Adversarial Networks-Based Synthetic PMU Data Creation for Improved Event Classification. IEEE Open Access J. Power Energy 2021, 8, 68–76. [Google Scholar] [CrossRef]
- Li, H.; Ma, Z.; Weng, Y. A transfer learning framework for power system event identification. IEEE Trans. Power Syst. 2022, 37, 4424–4435. [Google Scholar] [CrossRef]
- Bin Akter, S.; Sarkar Pias, T.; Rahman Deeba, S.; Hossain, J.; Abdur Rahman, H. Ensemble learning based transmission line fault classification using phasor measurement unit (PMU) data with explainable AI (XAI). PLoS ONE 2024, 19, e0295144. [Google Scholar] [CrossRef]
- Li, H.; Ma, Z.; Weng, Y.; Blasch, E.; Santoso, S. Structural Tensor Learning for Event Identification with Limited Labels. IEEE Trans. Power Syst. 2022, 38, 5314–5328. [Google Scholar] [CrossRef]
- Dahal, O.P.; Brahma, S.M.; Cao, H. Comprehensive clustering of disturbance events recorded by phasor measurement units. IEEE Trans. Power Deliv. 2013, 29, 1390–1397. [Google Scholar] [CrossRef]
- Li, W.; Wang, M.; Chow, J.H. Fast event identification through subspace characterization of PMU data in power systems. In Proceedings of the 2017 IEEE Power & Energy Society General Meeting, Chicago, IL, USA, 16–20 July 2017; pp. 1–5. [Google Scholar]
- Chen, Y.; Xie, L.; Kumar, P.R. Power system event classification via dimensionality reduction of synchrophasor data. In Proceedings of the 2014 IEEE 8th Sensor Array and Multichannel Signal Processing Workshop (SAM), A Coruña, Spain, 22–25 June 2014; pp. 57–60. [Google Scholar]
- Li, H.; Weng, Y.; Farantatos, E.; Patel, M. An unsupervised learning framework for event detection, type identification and localization using pmus without any historical labels. In Proceedings of the 2019 IEEE Power & Energy Society General Meeting (PESGM), Atlanta, GA, USA, 4–8 August 2019; pp. 1–5. [Google Scholar]
- Senaratne, D.; Kim, J.; Cotilla-Sanchez, E. Spatio-Temporal Frequency Domain Analysis of PMU Data for Unsupervised Event Detection. In Proceedings of the 2021 IEEE Power & Energy Society Innovative Smart Grid Technologies Conference (ISGT), Virtual, 16–18 February 2021; pp. 1–5. [Google Scholar]
- Cui, Q.; Weng, Y. Enhance High Impedance Fault Detection and Location Accuracy via Micro PMUs. IEEE Trans. Smart Grid 2019, 11, 797–809. [Google Scholar] [CrossRef]
- Li, H.; Weng, Y.; Farantatos, E.; Patel, M. A hybrid machine learning framework for enhancing pmu-based event identification with limited labels. In Proceedings of the 2019 International Conference on Smart Grid Synchronized Measurements and Analytics (SGSMA), College Station, TX, USA, 21–23 May 2019; pp. 1–8. [Google Scholar]
- Zhu, L.; Hill, D.J.; Lu, C. Auto-Starting Semisupervised-Learning-Based Identification of Synchrophasor Data Anomalies. IEEE Internet Things J. 2022, 9, 13651–13663. [Google Scholar] [CrossRef]
- Zhou, Y.; Arghandeh, R.; Spanos, C.J. Partial knowledge data-driven event detection for power distribution networks. IEEE Trans. Smart Grid 2017, 9, 5152–5162. [Google Scholar] [CrossRef]
- Farajzadeh-Zanjani, M.; Hallaji, E.; Razavi-Far, R.; Saif, M.; Parvania, M. Adversarial semi-supervised learning for diagnosing faults and attacks in power grids. IEEE Trans. Smart Grid 2021, 12, 3468–3478. [Google Scholar] [CrossRef]
- Yuan, Y.; Wang, Y.; Wang, Z. A Data-driven Framework for Power System Event Type Identification via Safe Semi-supervised Techniques. IEEE Trans. Power Syst. 2023, 39, 1460–1471. [Google Scholar] [CrossRef]
- Yang, F.; Ling, Z.; Zhang, Y.; He, X.; Ai, Q.; Qiu, R.C. Event Detection, Localization, and Classification Based on Semi-Supervised Learning in Power Grids. IEEE Trans. Power Syst. 2022, 38, 4080–4094. [Google Scholar] [CrossRef]
- Ratner, A.J.; De Sa, C.M.; Wu, S.; Selsam, D.; Ré, C. Data programming: Creating large training sets, quickly. In Proceedings of the 30th Conference on Neural Information Processing Systems, Barcelona, Spain, 2–7 December 2016; pp. 1–9. [Google Scholar]
- Liu, Y.; Yang, L. Weakly Supervised Event Classification Using Imperfect Real-world PMU Data with Scarce Labels. In Proceedings of the 2022 IEEE Power & Energy Society General Meeting (PESGM), Denver, CO, USA, 17–21 July 2022; pp. 1–5. [Google Scholar]
- Szántai, T.; Kovács, E. Hypergraphs as a mean of discovering the dependence structure of a discrete multivariate probability distribution. Ann. Oper. Res. 2012, 193, 71–90. [Google Scholar] [CrossRef]
- Proulx, B.; Zhang, J. Modeling social network relationships via t-cherry junction trees. In Proceedings of the IEEE INFOCOM 2014-IEEE Conference on Computer Communications, Toronto, ON, Canada, 27 April–2 May 2014; pp. 2229–2237. [Google Scholar]
- Bukszár, J. Upper bounds for the probability of a union by multitrees. Adv. Appl. Probab. 2001, 33, 437–452. [Google Scholar] [CrossRef]
- Liu, Y. Github Link. 2025. Available online: https://github.com/yunchuanliu2023/example_code (accessed on 20 October 2025).






| Classifier | RF | LR | KNN | GBDT | |
|---|---|---|---|---|---|
| Feature | |||||
| Voltage magnitude | |||||
| ROCOF | |||||
| Labeled Data Rate (%) | Snorkel | SelfTrain | LabelSpread | 2 Order | 3 Order | 4 Order |
|---|---|---|---|---|---|---|
| 5 | ||||||
| 6 | ||||||
| 7 | ||||||
| 8 | ||||||
| 9 | ||||||
| 10 | ||||||
| 11 | ||||||
| 12 | ||||||
| 13 | ||||||
| 14 | ||||||
| 15 |
| Labeled Data Rate (%) | Snorkel | SelfTrain | LabelSpread | 2 Order | 3 Order | 4 Order |
|---|---|---|---|---|---|---|
| 5 | ||||||
| 6 | ||||||
| 7 | ||||||
| 8 | ||||||
| 9 | ||||||
| 10 | ||||||
| 11 | ||||||
| 12 | ||||||
| 13 | ||||||
| 14 | ||||||
| 15 |
| Comparison | t Value | p Value | Significant (0.05) |
|---|---|---|---|
| 4th-order vs. Snorkel | 9.83 | <0.0001 | Yes |
| 4th-order vs. SelfTrain | 1.48 | 0.16 | No |
| 4th-order vs. LabelSpread | 9.87 | <0.0001 | Yes |
| 4th-order vs. 2nd-order | 2.79 | 0.011 | Yes |
| 4th-order vs. 3rd-order | 3.65 | 0.002 | Yes |
| LFC1 | LFC2 | LFC3 | LFC4 | LFC5 | |
|---|---|---|---|---|---|
| V-RF | V-RF | I-RF | V-RF | I-RF | |
| V-LR | V-LR | I-LR | V-SVM | I-LR | |
| V-KNN | V-KNN | I-KNN | V-KNN | I-SVM | |
| V-GBDT | V-SVM | I-SVM | V-GBDT | I-GBDT | |
| R-RF | R-RF | R-RF | R-RF | R-RF | |
| R-LR | R-LR | R-LR | R-SVM | R-LR | |
| R-KNN | R-KNN | R-KNN | R-KNN | R-SVM | |
| R-GBDT | R-SVM | R-SVM | R-GBDT | R-GBDT |
| Labeled Data Rate (%) | LFC1 | LFC2 | LFC3 | LFC4 | LFC5 |
|---|---|---|---|---|---|
| 5 | |||||
| 6 | |||||
| 7 | |||||
| 8 | |||||
| 9 | |||||
| 10 | |||||
| 11 | |||||
| 12 | |||||
| 13 | |||||
| 14 | |||||
| 15 |
| Labeled Data Rate (%) | LFC1 | LFC2 | LFC3 | LFC4 | LFC5 |
|---|---|---|---|---|---|
| 5 | |||||
| 6 | |||||
| 7 | |||||
| 8 | |||||
| 9 | |||||
| 10 | |||||
| 11 | |||||
| 12 | |||||
| 13 | |||||
| 14 | |||||
| 15 |
| Labeled Data Rate (%) | LFC1 | LFC2 | LFC3 | LFC4 | LFC5 |
|---|---|---|---|---|---|
| 5 | |||||
| 6 | |||||
| 7 | |||||
| 8 | |||||
| 9 | |||||
| 10 | |||||
| 11 | |||||
| 12 | |||||
| 13 | |||||
| 14 | |||||
| 15 |
| Labeled Data Rate (%) | LFC1 | LFC2 | LFC3 | LFC4 | LFC5 |
|---|---|---|---|---|---|
| 5 | |||||
| 6 | |||||
| 7 | |||||
| 8 | |||||
| 9 | |||||
| 10 | |||||
| 11 | |||||
| 12 | |||||
| 13 | |||||
| 14 | |||||
| 15 |
| Labeled Data Rate (%) | LFC1 | LFC2 | LFC3 | LFC4 | LFC5 |
|---|---|---|---|---|---|
| 5 | |||||
| 6 | |||||
| 7 | |||||
| 8 | |||||
| 9 | |||||
| 10 | |||||
| 11 | |||||
| 12 | |||||
| 13 | |||||
| 14 | |||||
| 15 |
| Labeled Data Rate (%) | LFC1 | LFC2 | LFC3 | LFC4 | LFC5 |
|---|---|---|---|---|---|
| 5 | |||||
| 6 | |||||
| 7 | |||||
| 8 | |||||
| 9 | |||||
| 10 | |||||
| 11 | |||||
| 12 | |||||
| 13 | |||||
| 14 | |||||
| 15 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Liu, Y.; Yang, L.; Zhang, J. Automatic Labeling of Real-World PMU Data: A Weakly Supervised Learning Approach. Electronics 2025, 14, 4703. https://doi.org/10.3390/electronics14234703
Liu Y, Yang L, Zhang J. Automatic Labeling of Real-World PMU Data: A Weakly Supervised Learning Approach. Electronics. 2025; 14(23):4703. https://doi.org/10.3390/electronics14234703
Chicago/Turabian StyleLiu, Yunchuan, Lei Yang, and Junshan Zhang. 2025. "Automatic Labeling of Real-World PMU Data: A Weakly Supervised Learning Approach" Electronics 14, no. 23: 4703. https://doi.org/10.3390/electronics14234703
APA StyleLiu, Y., Yang, L., & Zhang, J. (2025). Automatic Labeling of Real-World PMU Data: A Weakly Supervised Learning Approach. Electronics, 14(23), 4703. https://doi.org/10.3390/electronics14234703

