Manuscript Offprint
arXiv:2610.33387PMU Foundation Model Bridge: A Tool for Connecting Synchrophasor Streams to Time Series Foundation Models
Haozong Wang , Jiahui Yang , Yuru Wu , Chujie Zeng , Qian Liu , Yan Wen , Yayu Yang , Muhammad Umar Afzaal , and Yilu Liu
The University of Tennessee, Knoxville, TN, USA
Oak Ridge National Laboratory, Oak Ridge, TN, USA
Abstract—This paper presents PMU Foundation Model Bridge, an open source tool that connects online phasor measurement unit (PMU) or phasor data concentrator (PDC) streams to publicly available time series foundation models (TSFM). Through a desktop interface or command line interface, users can select measurement channels, define preprocessing, choose TSFMs, and configure outputs. In the initial release, 4 publicly available TSFMs were supported, including Chronos-2, TimesFM 2.5, Timestral, and TimesFM-3. The tool supports both file and synchrophasor streaming outputs, therefore enabling both offline use and integration into C37.118-based online workflow applications. In addition to supporting raw synchrophasor data, the framework provides a preprocessing layer for deriving customized additional quantities for forecasting. The tool is validated using a virtual PMU and real-time laboratory measurements from a frequency disturbance recorder (FDR). The tool aims to support community research on combining synchrophasor technology with TSFMs.
Index Terms—Synchrophasor, phasor measurement unit, time series foundation model, online forecasting.
I. INTRODUCTION
Forecasting is an important task in power system planning and operation. Examples include load and wind power forecasting for energy scheduling [1] and electricity price forecasting for market decisions [2]. For applications concerned with faster grid dynamics, synchrophasor technology provides an important source of synchronized voltage, current, and frequency measurements through phasor measurement units (PMUs) [3]. These measurements support prediction of future system states when communication delays leave some measurements unavailable [4], as well as prediction of system dynamics following disturbances [5].
Traditional forecasting approaches often describe temporal dependencies using predefined signal or statistical models, such as autoregressive models [5]. In the deep learning era, dramatic increases in model complexity and parameter amounts have enabled superior performance on complex forecasting tasks [4], [6]. However, these methods are generally developed for a particular task, with model selection, parameter fitting, and training tailored to that application. In recent years, large language models (LLMs) based on the Transformer architecture have demonstrated the potential of pretraining on large datasets to support multiple tasks with limited adaptation to each task [7]. Motivated by these advances, time series foundation models (TSFMs) based on Transformers learn reusable temporal patterns from diverse collections of time series data, treating forecasting across domains as a shared learning problem. These models can therefore forecast new series without training for each specific task.
Connecting synchrophasor streams with TSFMs is therefore a natural option for exploring power system forecasting applications. However, practical integration involves several issues in online data handling and model execution, including the formation of historical windows from measurements that may arrive out of order, incomplete or invalid data, and variable inference latency. Further considerations include the temporal interpretation of forecast outputs and their channel mappings for downstream applications, as well as maintaining responsive operation during slow inference or interrupted input.
To support the power systems research community, this paper presents PMU Foundation Model Bridge, an open source tool that connects online PMU or phasor data concentrator (PDC) streams to Chronos-2 [8], TimesFM 2.5 [9], TimesFM-3 [10], or Timestral [11]. It provides channel selection, optional Python preprocessing, local inference, and network streaming or file output through a desktop interface and a command line interface (CLI). The source code and usage instructions are publicly available on GitHub. The paper describes the tool's architecture and functional verification with virtual PMU and laboratory measurement streams. The tool aims to support research on integrating synchrophasor technology with TSFMs.
© 2027 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.
https://github.com/wanghaozong88/pmu-fm

Fig. 1. Time relationships for one forecast.
A. Foundation Model Inputs and Outputs
The foundation model takes a recent history of selected signals and predicts their future values. For forecast , the input matrix has rows for historical sampling times and columns for channels. The nominal sample interval after preprocessing is . The pretrained model predicts the next samples of each channel:
The output contains H predicted samples for each of the C channels. Model parameters remain fixed during use.
Users can select channels and set the history length, forecast length, and interval between model calls.
B. Key Times and Their Relationships
Each predicted value is associated with two key timestamps: a reference time marking the end of the input and a target time indicating when the prediction applies. The reference time is the measurement time of its last input sample. The kth predicted sample has target time
where the difference is the forecast lead.
Receiving data, waiting, computing, and sending reduce the time remaining before the target. Denote as the timestamp when computation finishes and as the timestamp when local transmission to client j finishes. Fig. 1 shows these four times. At local send completion, the remaining lead is
For a meaningful forecast, is a necessary condition, assuming aligned source and local clocks. However, it should be noted that local send completion does not confirm downstream receipt. Therefore, a positive remaining lead is not a sufficient condition for timely delivery.
III. SYSTEM ARCHITECTURE
Fig. 2 shows how data move through the tool: incoming measurements form historical windows, preprocessing prepares the model inputs, and completed forecasts are sent to file and network outputs. A common runtime coordinates these steps. The desktop interface and CLI both configure this runtime and display its status.
Before a run, users can select among Chronos-2, TimesFM 2.5, Timestral, or TimesFM-3 and provide its local weight directory. The tool loads the selected model once for successive forecasts. A model adapter handles the required input format and returns predictions in a common format. All four backends forecast each channel independently. Covariate support and joint multivariate forecasting can be added in future work.
A. Historical Windows
The receiver reads the source configuration to identify the available channels and their units. It stores the selected values together with measurement times, reception times, and quality information. Samples are sorted by measurement time in a buffer with a fixed capacity. A short waiting period allows for samples arriving out of order, and each submitted window keeps a fixed set of samples. Duplicate and excessively late samples are discarded and counted.
Before prediction, the tool checks the window's sampling intervals, completeness, and quality. By default, windows containing missing, nonfinite, invalid, or unsynchronized data are skipped, with the reason recorded. Users can enable limited repair of missing data through preprocessing. For sources with rounded timestamps, samples are matched to expected times counted backward from the window reference. A small configured tolerance allows for rounding, with unique matches required. The tolerance is bounded relative to the source and model intervals. Accepted samples retain their original timestamps and values.
B. Preprocessing
Despite raw synchrophasor data, users may also wish to forecast customized quantities calculated from PMU measurements, such as variables or indicators defined for a particular study. The preprocessing layer lets users construct these time series and pass them to the foundation model. This extends the tool to forecasting tasks involving both reported measurements and quantities defined by users.
An optional Python function receives a copy of the selected historical data and descriptions of their times, units, sources, and quality. Users can calculate new channels through these data. The function returns the processed time series along with the corresponding channel information, which could be selected as inputs of the TSFMs. The tool checks the returned times, values, and channel mappings before prediction, and carries the names and units into the results. If preprocessing normalizes the input, users can provide an inverse function to restore predictions to the original scale and units.
C. Handling Delays and Interruptions
The worker processes one forecast at a time. When inference takes longer than the interval between model calls, new eligible windows can become available while the worker is still busy. The runtime keeps one window waiting for execution. If a newer eligible window becomes available before the waiting window is submitted, it replaces the waiting window, and

Fig. 2. Tool architecture. Solid arrows show data flow, and dashed arrows show configuration and supervision. Preprocessing, the selected model, and an optional inverse transform run in one worker process. File and network outputs use the same forecast record.
the replacement is recorded. This gives priority to recent measurements.
The runtime monitors execution time and worker memory. A monotonic clock measures elapsed time for timeout checks. If execution exceeds a time or memory limit, the worker is terminated. Restart attempts are limited. If an input interruption leads to a reconnection, the tool will clear the history and collect a fresh window. A change in source configuration stops the run for channel remapping. Results from a previous source state are discarded.
Input reception, file writing, and network sending use separate queues with fixed capacities. These activities can proceed independently. A client is disconnected if its queue fills or sending exceeds the time limit, and file errors or dropped records are reported. When the tool's run ends, it closes its input and output connections, stops the worker, and closes the output files. Each downstream client can use START and STOP commands to enable or pause forecast transmission on its own connection.
D. Output Structure
The tool supports both file and network outputs. It contains the predicted values, channel descriptions, reference and target times, completion time, and model information. Each forecast has a unique identifier, allowing successive forecasts for the same target time to be stored separately. All four backends return median point forecasts, with this statistic recorded alongside the values.
For file outputs, CSV files will be generated to store the complete forecast sequence. Accompanying metadata identify channel sources and units, the model and weights used, and the preprocessing script. Publication events record submission for sending and completion of local sends. File writing status is tracked separately from network transmission.
For network outputs, the tool generates a C37.118 synchrophasor stream and places selected forecast leads in ANALOG channels in floating point format. Each channel represents a reported or calculated quantity at a fixed lead, and the frame timestamp is . A mapping record links each output channel to its name, unit, source, and forecast lead. Downstream applications use this mapping to interpret the predictions.
The FREQ and DFREQ fields carry source measurements at the same reference time. Frames are published when these required source values are valid, with a status flag indicating that the data have been modified. Skipped publications are recorded as events.
IV. VALIDATION
A. Virtual PMU Stream
An initial test was conducted using a virtual PMU. The virtual PMU ran on the same workstation as the tool and supplied an online measurement stream, which was processed using TimesFM 2.5 to generate frequency forecasts. The resulting forecast stream was transmitted to PMU Connection Tester, where the reception of configuration and forecast data frames was verified using its parser. This test covered the processing chain from measurement acquisition and local forecasting to downstream reception.
Fig. 3(a) compares the recorded frequency with predictions aligned by target time. The predictions follow the main oscillation, with differences in parts of the record. Fig. 3(b) shows three predictions with a lead of one second. Each predicted value is plotted at its target , computation completion , and local send completion . Computation and local transmission both finished before the target times for the three forecasts shown.
B. Laboratory PMU Stream
An additional test used live measurements received from a laboratory frequency disturbance recorder (FDR). A configuration frame was imported to decode the online stream. The measurements arrived at 10 samples/s. TimesFM 2.5 used 4 s of history to predict the next second, with one model call per second. In the test, the tool predicted frequency, rate of change of frequency, voltage magnitude, and voltage angle.

(a) Frequency comparison: recorded input run

(b) Recorded timing: latest network run
Fig. 4. Laboratory FDR tests using TimesFM 2.5: (a) measured frequency and predictions from a run with saved input windows; (b) completion and local send times relative to the reference in a later network run. Boxes span interquartile ranges, with median lines and full-range whiskers. The vertical line marks the 1 s target. The panels use separate runs on the same day.

(a) Frequency aligned by target time

(b) Prediction timestamps (1 s ahead)
Fig. 3. Basic validation using TimesFM 2.5: (a) measured and predicted frequency and (b) target, completion, and local send times of predictions with a lead of one second.
Fig. 4(a) compares measured frequency with predictions. Predictions with a lead of one second are matched to measurements at the same target times. Fig. 4(b) summarizes the timing of the test. Computation finished 0.39–0.69 s after the reference times, with a median of 0.60 s. Local TCP transmission finished 0.41–0.76 s after the reference times, with a median of 0.64 s. All local sends completed before their corresponding targets with a lead of one second, leaving 0.24–0.59 s until the target. These results show that the tool processed the live stream and completed local transmission within the selected forecast lead during this run.
V. CONCLUSION
PMU Foundation Model Bridge provides a configurable connection between online synchrophasor streams and publicly available time series foundation models. The tool combines channel selection, flexible preprocessing, local model execution, and file and network outputs in a shared runtime. Users can work with reported or calculated quantities and choose among four supported models through the same workflow. Tests with a virtual PMU and laboratory PMU data demonstrate online model execution and output generation. The tool is intended to support community research on integrating synchrophasors with TSFMs. Future development can add covariates and joint multivariate forecasting and extend validation to a wider range of power system data.
ACKNOWLEDGMENT
The authors acknowledge that the software code for PMU Foundation Model Bridge was developed by OpenAI Codex.
REFERENCES
[1] C. Wang, P. Pinson, and Y. Wang, “Seamless and multi-resolution energy forecasting,” IEEE Trans. Smart Grid, vol. 16, no. 1, pp. 383–395, 2025.
[2] Z. Zhang and M. Wu, “Predicting real-time locational marginal prices: A GAN-based approach,” IEEE Trans. Power Syst., vol. 37, no. 2, pp. 1286–1296, 2022.
[3] S. You et al., “Non-invasive identification of inertia distribution change in high renewable systems using distribution level pmu,” IEEE Transactions on Power Systems, vol. 33, no. 1, pp. 1110–1112, 2017.
[4] J. J. Q. Yu, A. Y. S. Lam, D. J. Hill, Y. Hou, and V. O. K. Li, “Delay aware power system synchrophasor recovery and prediction framework,” IEEE Trans. Smart Grid, vol. 10, no. 4, pp. 3732–3742, 2019.
[5] J. Pei, J. Wang, Z. Wang, and D. Shi, “Precise recovery of corrupted synchrophasors based on autoregressive Bayesian low-rank factorization and adaptive K-medoids clustering,” IEEE Trans. Power Syst., vol. 38, no. 6, pp. 5834–5848, 2023.
[6] D. Salinas, V. Flunkert, J. Gasthaus, and T. Januschowski, “DeepAR: Probabilistic forecasting with autoregressive recurrent networks,” Int. J. Forecasting, vol. 36, no. 3, pp. 1181–1191, 2020.
[7] Y. Chang et al., “A survey on evaluation of large language models,” ACM transactions on intelligent systems and technology, vol. 15, no. 3, pp. 1–45, 2024.
[8] A. F. Ansari et al., “Chronos-2: From univariate to universal forecasting,” arXiv preprint arXiv:2510.15821, 2025. [Online]. Available: https://arxiv.org/abs/2510.15821
[9] Google Research. (2025) TimesFM 2.5-200M PyTorch model card. Accessed: Sep. 11, 2026. [Online]. Available: https://huggingface.co/google/timesfm-2.5-200m-pytorch
[10] ____. TimesFM 3.0 (PyTorch) model card. Accessed: Oct. 21, 2026. [Online]. Available: https://huggingface.co/google/timesfm-3.0-pytorch
[11] Mistral AI. (2026) Introducing Timestral. Accessed: Oct. 21, 2026. [Online]. Available: https://mistral.ai/news/timestral/