All-fiber current transformer measurement error prediction method and system

By constructing a dual-branch network based on multi-source physical state variables, the nonlinear and time-varying prediction problem of measurement error of all-fiber current transformer was solved, achieving accurate prediction and stable operation, and improving prediction accuracy and model robustness.

CN123136504APending Publication Date: 2026-11-20HEFEI UNIV OF TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611284199.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-24
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies struggle to accurately predict the nonlinear and time-varying measurement errors of all-fiber current transformers without relying on reference current and actual historical errors. Furthermore, existing methods lack the coupling characteristics of multi-source physical state quantities in their input features, resulting in insufficient prediction accuracy.

Method used

By acquiring the multi-source physical state quantities of the all-fiber current transformer, thermal state, optical path state, mechanical state and environmental state characteristics are constructed. XGBoost branch is used to extract nonlinear interaction features and MLP branch is used to extract historical time series features. The two branches are then fused through an attention mechanism to construct a dual-branch network for error prediction.

Benefits of technology

It enables accurate prediction of measurement errors of all-fiber current transformers in actual operating scenarios, improves prediction accuracy and model robustness, supports real-time error correction and long-term trend early warning, and ensures the long-term stable operation of FOCT.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123136504A_ABST
    Figure CN123136504A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of electric power, and discloses a full-fiber current transformer measurement error prediction method and system, which comprises the following steps: acquiring multi-source physical state quantities in the operation of a full-fiber current transformer; according to the error formation mechanism of the full-fiber current transformer, characteristic construction is performed on the multi-source physical state quantities to generate thermal state characteristics, optical path state characteristics, mechanical state characteristics and environmental state characteristics; based on the multi-source physical state quantities and the constructed characteristics at the current moment and several moments before the current moment, a historical time window input sample is constructed; the historical time window input sample is input into a double-branch network; the XGBoost branch extracts nonlinear interaction features among state parameters in the input sample, and the MLP branch extracts historical time sequence features of measurement errors; after the nonlinear interaction features and the historical time sequence features are fused through an attention mechanism, the measurement error prediction value of the full-fiber current transformer at one or more future time periods is output. Precise prediction of the measurement error of the full-fiber current transformer is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power technology, and in particular to a method and system for predicting measurement errors of an all-fiber current transformer. Background Technology

[0002] Fiber optic current transformers (FOCTs) are increasingly widely used in ultra-high voltage (UHV) transmission systems due to their advantages such as no magnetic saturation, wide dynamic range, and good insulation performance. However, the measurement error of FOCTs is affected by a combination of factors, including temperature, optical power drift, mechanical vibration, stray magnetic fields, and ambient humidity, exhibiting nonlinear, time-varying, and hysteretic characteristics. In actual operation, FOCTs often lack the conditions for real-time comparison with standard transformers, making it difficult to obtain a reference current as a benchmark for error calculation; furthermore, the historical true value of the error cannot be continuously obtained online. Therefore, how to accurately predict future measurement errors using only online measurable physical state quantities without relying on reference current and real-time input of historical errors has become a key technical challenge restricting the long-term stable operation of FOCTs.

[0003] To address the aforementioned issues, existing research has attempted to use deep learning and other methods for FOCT error prediction and compensation.

[0004] Chinese invention patent application CN117405959A proposes a method for predicting FOCT measurement errors based on an HPO algorithm-optimized LSTM network. However, the influencing factors it considers are mainly temperature and several electrical parameters, failing to fully cover the coupled effects of multiple physical state quantities such as optical power drift, mechanical vibration, stray magnetic field, and humidity on the error. Furthermore, its LSTM network structure has limited ability to capture long-range dependencies and nonlinear interactions in the error time series, making it difficult to meet engineering requirements in terms of prediction accuracy.

[0005] Although the Chinese invention patent application with announcement number CN116720622A introduces multi-source parameters such as temperature, humidity, vibration, and magnetic field for current transformer error prediction, it is aimed at general electromagnetic current transformers and does not specifically construct error characteristics for the optical path transmission characteristics and thermal drift mechanism unique to FOCT.

[0006] Furthermore, the aforementioned existing methods and other known solutions in this field generally share the following common problems: 1. The input features are mostly raw sensor readings or single physical quantities, lacking coupled features constructed based on the physical error formation mechanism of FOCT (such as thermal state distribution, optical path transmission efficiency, vibration stress birefringence, stray magnetic field disturbance, etc.), making it difficult for the model to perceive the deep state information of error formation.

[0007] 2. Most prediction models are single LSTM or BP neural network structures, which make it difficult to simultaneously take into account the nonlinear interaction effects between state parameters and the extraction of error time series evolution laws, thus limiting the further improvement of prediction accuracy.

[0008] 3. Most existing methods rely on standard reference sources or real error values ​​as input, which makes deployment difficult in online operation scenarios where reference standards are lacking.

[0009] In summary, how to accurately predict the nonlinear and time-varying measurement errors of all-fiber current transformers by utilizing online measurable multi-source physical state quantities without relying on reference current and real historical errors as online input remains a pressing problem that needs to be solved. Summary of the Invention

[0010] The technical problem that this invention aims to solve is: how to accurately predict the nonlinear and time-varying measurement errors of all-fiber current transformers by utilizing online measurable multi-source physical state quantities without relying on reference current and real historical errors as online inputs.

[0011] In a first aspect, to solve the above-mentioned technical problems, a method for predicting measurement errors of an all-fiber current transformer is provided, the method comprising: The multi-source physical state quantities during the operation of the all-fiber current transformer are acquired; the multi-source physical state quantities include optical module temperature, sensor head temperature, ambient humidity, stray magnetic field around the equipment, mechanical vibration, and optical power. Based on the error formation mechanism of the all-fiber current transformer, the multi-source physical state quantities are characterized to generate thermal state characteristics, optical path state characteristics, mechanical state characteristics and environmental state characteristics. Based on the multi-source physical state quantities and their construction characteristics at the current moment and several moments before, a historical time window input sample is constructed. The historical time window input samples are input into a dual-branch network; the dual-branch network includes an XGBoost branch and an MLP branch; the XGBoost branch extracts the nonlinear interaction features between state parameters in the input samples, and the MLP branch extracts the historical time-series features of measurement errors; After fusing the nonlinear interaction features and the historical time series features through an attention mechanism, the predicted measurement error value of the all-fiber current transformer is output for one or more future time periods.

[0012] Furthermore: The thermal characteristics include the temperature change of the optical module. Temperature change of sensor head and temperature gradient characteristics Their construction formulas are as follows: ; ; ;in, for The temperature of the optical module at any given time. for The temperature of the optical module at any given time. for The temperature of the sensor head at all times, for Temperature of the sensor head at any given time; The optical path state characteristics include the change in optical power at the receiver. and optical path transmission efficiency characteristics; the The construction formula is as follows: ;in, for The optical power at the receiver at any given time. for The optical power at the receiver at any given time; The mechanical state characteristics include the root mean square value of vibration. Its construction formula is: ;in, For the first time window in history One mechanical vibration acceleration sample value, This represents the number of sampling points; The environmental state characteristics include ambient humidity. Changes in ambient humidity Stray magnetic fields around the equipment and stray magnetic field change Their construction formulas are as follows: ; ;in, for The ambient humidity at all times, for The ambient humidity at all times, for Stray magnetic fields around the device at any given time for Stray magnetic fields around the device at any given time.

[0013] Furthermore, the input samples of the historical time window satisfy the expression:

[0014] In the formula, for The eigenvector composed of the multi-source physical state quantities at time t and their construction characteristics; This is the length of the history window.

[0015] Furthermore, the XGBoost branch extracts nonlinear interaction features between state parameters in the input sample, including: For input samples Get the leaf node index of each tree in the XGBoost model:

[0016] In the formula, Indicates sample In the Leaf node indexes on the tree This represents the maximum number of leaf nodes in a single tree. The total number of trees; Divide all trees into G Groups, each group contains The tree, the first The leaf index of a group is represented as:

[0017] Establish a trainable embedding matrix for the th... within the group A tree is created, and leaf indices are mapped to embedding vectors and then summed and aggregated.

[0018] In the formula, For embedding operations, For the first The aggregated embedding vector of the group; The nonlinear interaction features are obtained by mapping the aggregation results of each group through a fully connected layer and refining them nonlinearly.

[0019] Furthermore, the XGBoost branch introduces an additional loss function for training:

[0020] In the formula, This is the loss balance coefficient; To regress the loss of the main task, this is applied throughout the entire model; This is the auxiliary loss between the predicted output and the true value of the XGBoost branch.

[0021] Furthermore, the MLP branch only takes the historical time-series data of the measurement error as input to extract the time-series features of the measurement error.

[0022] Furthermore, the attention mechanism fusion includes: The nonlinear interaction features and the historical time-series features are concatenated to obtain the total attention features:

[0023] In the formula, This refers to the total characteristics of attention; This refers to the nonlinear interaction feature; The aforementioned historical time sequence characteristics; The total attention features are normalized by linear mapping and Softmax to obtain the attention weights and fusion features of each branch; The measurement error prediction value is obtained by linearly mapping the fused features.

[0024] Furthermore, the predicted measurement error of the output all-fiber current transformer for one or more future time periods includes: When predicting step size When =1, output the predicted measurement error value for the next time period: ; When predicting step size When the value is greater than 1, output the measurement error prediction sequence for multiple future time periods: ;in, This refers to the dual-branch network model.

[0025] Furthermore, it also includes: The historical time window input samples are used as model inputs, and the corresponding future measurement error true values ​​are used as labels to perform supervised training on the dual-branch network until the preset accuracy requirements are met.

[0026] Furthermore, it also includes: The current measurement output of the all-fiber current transformer is corrected based on the predicted measurement error value. And / or, An early warning signal is issued when the predicted measurement error exceeds a preset threshold.

[0027] A second aspect of the present invention provides a measurement error prediction system for an all-fiber optic current transformer, comprising: The data acquisition module is used to acquire multi-source physical state quantities during the operation of the all-fiber current transformer; the multi-source physical state quantities include optical module temperature, sensor head temperature, ambient humidity, stray magnetic field around the equipment, mechanical vibration, and optical power; The feature construction module is used to construct features for the multi-source physical state quantities based on the error formation mechanism of the all-fiber current transformer, generating thermal state features, optical path state features, mechanical state features and environmental state features. The sample construction module is used to construct historical time window input samples based on the multi-source physical state quantities and their construction characteristics at the current time and several times before it; The dual-branch prediction module includes an improved XGBoost branch and an MLP branch; wherein the XGBoost branch is used to extract the nonlinear interaction features between state parameters in the input sample; the MLP branch is used to extract the historical time-series features of the measurement error; the dual-branch prediction module fuses the nonlinear interaction features and the historical time-series features through an attention mechanism, and outputs the predicted measurement error value of the all-fiber current transformer in one or more future time periods.

[0028] Furthermore, the outputs of the XGBoost branch and the MLP branch are fused by an attention mechanism; the attention mechanism is used to adaptively determine the weights of the nonlinear interaction features and the historical time-series features in the final prediction.

[0029] Compared with the prior art, the present invention has at least the following beneficial effects: On the one hand, by comprehensively collecting six types of online measurable physical state quantities, namely optical module temperature, sensor head temperature, ambient humidity, stray magnetic field, mechanical vibration and optical power, and constructing them into four types of coupled characteristics based on the FOCT error physical mechanism, the model input is no longer an isolated sensor reading but a state representation closely related to the cause of error, thus solving the problem that existing methods have a single input factor and cannot fully reflect the dynamic changes of error.

[0030] On the other hand, by constructing historical time window input samples and combining them with the XGBoost-MLP dual-branch network architecture, the XGBoost branch extracts the nonlinear interaction features between state parameters, and the MLP branch extracts the historical time series features of errors. These features are then adaptively fused through an attention mechanism, enabling the model to simultaneously capture the coupling effects of multiple factors and the time series evolution of errors. This overcomes the limitation that a single LSTM or BP network cannot take both types of features into account, thus improving prediction accuracy and model robustness.

[0031] Meanwhile, this method relies solely on online measurable physical quantities without depending on reference current and real historical errors as online inputs. It can be easily deployed in actual operating scenarios and outputs error prediction values ​​for one or more future time periods. It can support both real-time error correction and long-term trend early warning, providing reliable technical support for the long-term stable operation of FOCT and power grid security. Attached Figure Description

[0032] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0033] Figure 1 This is a schematic diagram illustrating the basic steps of the FOCT measurement error prediction method disclosed in an embodiment of the present invention.

[0034] Figure 2 This is a schematic diagram of the feature construction module disclosed in an embodiment of the present invention.

[0035] Figure 3 The diagram shows the various modules of the FOCT measurement error prediction system disclosed in the embodiments of the present invention. Detailed Implementation

[0036] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0037] This invention aims to provide a method for predicting measurement errors in all-fiber current transformers. The following is a combination of... Figures 1 to 3 The specific implementation steps of this method are described in detail.

[0038] Step 1: Obtaining multi-source physical state variables.

[0039] In this embodiment, step 1 obtains the multi-source physical state quantities during the operation of the all-fiber current transformer. These multi-source physical state quantities include optical module temperature, sensor head temperature, ambient humidity, stray magnetic field around the equipment, mechanical vibration, and optical power.

[0040] Specifically: The temperature of the optical module is collected by thermistor sensors attached to the surfaces of the internal light source, photodetector, modulator, and demodulation module. The optical module temperature characterizes the thermal drift state of these optical and electrical components. The center wavelength of the light source drifts with temperature changes, causing a shift in the operating point of the interference signal. The responsivity of the photodetector changes with temperature, affecting the photoelectric conversion coefficient. The half-wave voltage of the modulator changes with temperature, affecting the phase modulation. The combined effect of these three factors constitutes a significant source of FOCT measurement error.

[0041] The temperature of the sensing head is acquired by a thermistor sensor attached to the inside of the sensing head housing near the sensing fiber loop, optical waveplate, and polarization-maintaining device. The sensing head temperature characterizes the thermal drift state of the aforementioned optical components and the sensing head structure. The Verdet constant of the sensing fiber is a function of temperature; temperature changes alter the proportionality between the Faraday rotation angle and the current. The phase delay of the optical waveplate changes with temperature, affecting the conversion accuracy between linearly polarized and circularly polarized light. The polarization-maintaining capability of the polarization-maintaining device is affected by temperature, leading to increased crosstalk between orthogonal polarization modes in the optical path.

[0042] Ambient humidity is collected by a capacitive humidity sensor installed inside the equipment cabinet. Ambient humidity characterizes the environmental conditions inside the equipment cabinet, at optical connection points, and in the electronic modules. Excessive humidity can cause condensation on optical connection interfaces, altering light refraction and coupling efficiency. Humidity variations also affect the insulation performance of electronic modules and the noise level of signal processing circuits.

[0043] Stray magnetic fields around the equipment are collected by a triaxial fluxgate sensor mounted on the outside of the FOCT equipment housing. These stray magnetic fields characterize magnetic field disturbances caused by nearby equipment, adjacent phase conductors, or the external electromagnetic environment. It is important to note that this stray magnetic field does not include the main magnetic field generated by the measured main current and used for normal measurements by the all-fiber current transformer. The stray magnetic field, superimposed on the Faraday magneto-optical effect magnetic field generated by the measured current, directly interferes with the measurement of the magneto-optical phase shift and is a significant external source of error for FOCT.

[0044] Mechanical vibration is collected by piezoelectric accelerometers mounted on the sensor head mounting base and the equipment housing. Mechanical vibration characterizes the mechanical disturbances experienced by the equipment mounting structure, sensor head, or fiber optic path. Mechanical vibration affects measurement accuracy through two physical mechanisms: first, vibration causes micro-bending deformation of the fiber, resulting in additional optical path loss and polarization state changes; second, vibration is transmitted to the sensor head through the mechanical structure, altering the stress state of the sensing fiber, changing the birefringence distribution of the fiber, and thus perturbing the accurate detection of the Faraday rotation angle.

[0045] The optical power at the receiver is collected by a photodetector at the optical path receiver. Optical power characterizes the stability of the light source output, optical path transmission loss, connector status, and receiver signal quality. A decrease in optical power reduces the signal-to-noise ratio of the interference signal, leading to a deterioration in the accuracy of phase demodulation. Fluctuations in optical power reflect instability in the light source driving circuit or changes in the contact status of connectors in the optical path.

[0046] The physical state quantities of the above six dimensions are synchronously collected by their respective sensors according to a preset sampling period. The sampling period of each sensor should be consistent to ensure strict temporal alignment of the multi-source data. In this embodiment, the sampling period is set to 1 second.

[0047] Step 2: Characteristic construction of multi-source physical state quantities.

[0048] To avoid directly stacking raw sensor readings into the model, this embodiment constructs features for multi-source physical state variables based on the error physics formation mechanism of FOCT, generating thermal state features, optical path state features, mechanical state features, and environmental state features.

[0049] Specifically: 2.1 Construction of Thermal State Characteristics Thermal characteristics include the temperature change of the optical module. Temperature change of the sensor head and temperature gradient characteristics .

[0050] Those skilled in the art will understand that the thermally induced error in FOCT stems from the different response rates of various components to temperature changes. When the ambient temperature changes, the optical module and the sensing head exhibit different rates and magnitudes of temperature change due to differences in heat capacity, heat conduction paths, and thermal radiation conditions. This inconsistency in thermal state leads to a mismatch between light source parameters, optical device parameters, and sensing parameters, resulting in a ratio drift.

[0051] The optical module temperature change rate characterizes the rate of temperature change of the optical module within one second. This feature reflects the rate of change in the center wavelength of the light source and the half-wave voltage of the modulator. The construction formula is: ,in, for The temperature of the optical module at any given time. for Temperature of the optical module at any given time.

[0052] The sensor head temperature change characterizes the rate of temperature change of the sensor head within one second. This feature reflects the rate of drift of the Verdet constant and the waveplate phase delay. The construction formula is: ,in, for The temperature of the sensor head at all times, for Temperature of the sensor head at any given time.

[0053] The temperature gradient characteristic represents the steady-state temperature difference between the sensing end and the photoelectric processing end. When the sensor head temperature is higher than the photoelectric module temperature, this characteristic value is positive; otherwise, it is negative. A larger temperature difference indicates a different thermal equilibrium state between the sensing end and the photoelectric processing end, increasing the mismatch in optical parameters between the two ends and directly contributing to measurement error. Temperature gradient characteristic The construction formula is: .

[0054] This embodiment simultaneously employs three thermal state features: the temperature change of the optical module, the temperature change of the sensor head, and the temperature gradient, rather than solely using the absolute temperature value at a single point for compensation. Its advantage lies in the fact that the temperature change reflects the dynamic trend of the error, while the temperature gradient reflects the static imbalance state of the error. The combination of these two features enables the model to comprehensively perceive the generation mechanism of thermally induced errors.

[0055] 2.2 Construction of Optical Path State Characteristics Optical path state characteristics include the change in optical power at the receiver. And optical path transmission efficiency characteristics.

[0056] Those skilled in the art should understand that changes in the optical path state affect the accuracy of FOCT measurements by influencing the contrast and signal-to-noise ratio of the interference signal. When the optical power is too low, the output signal-to-noise ratio of the photodetector decreases, and the accuracy of the demodulation algorithm deteriorates. When the optical power fluctuates excessively, the DC drift of the interference signal affects the linearity of the phase demodulation.

[0057] The change in optical power at the receiver characterizes the amplitude and direction of optical power fluctuations within one second. This feature is used to reflect the transient instability of the light source output and the transient changes in optical path loss. The construction formula is: ,in, for The optical power at the receiver at any given time. for The optical power at the receiving end at any given time.

[0058] The optical path transmission efficiency characteristics are constructed as follows: The ratio of the optical power at the receiving end to the optical power at the transmitting end of the light source at a given time. The optical power at the transmitting end of the light source is obtained by collecting data using a spectrometer at the output end of the light source.

[0059] In this embodiment, the optical path transmission efficiency feature normalizes the received optical power to the transmitted optical power, eliminating the influence of the light source's own output fluctuations and simply reflecting the change in optical path transmission loss. The difference between this feature and the change in received optical power is that the change in received optical power reflects transient power fluctuations, while the optical path transmission efficiency reflects the steady-state level of optical path loss. The combination of the two allows the model to distinguish three different abnormal optical path states: first, when the received optical power decreases but the optical path transmission efficiency remains unchanged, it indicates that the power decrease is due to light source output fluctuations rather than optical path loss; second, when both decrease simultaneously, it indicates an increase in loss in the optical path (such as connector contamination or fiber micro-bending); third, when the change in received optical power is positive and the optical path transmission efficiency is negative, it indicates that the light source output is increasing, but the optical path loss is also increasing.

[0060] 2.3 Construction of Mechanical State Characteristics Mechanical condition characteristics include the root mean square value of vibration. .

[0061] Those skilled in the art should know that the effect of vibration on FOCT is cumulative, meaning that the overall effect of continuous vibration disturbance depends on the energy level of the vibration rather than a single instantaneous peak acceleration.

[0062] The root mean square (RMS) value of vibration represents the average level of vibration energy within a historical time window. The construction formula is: ;in, For the first time window in history One mechanical vibration acceleration sample value, This represents the number of sampling points.

[0063] Compared to the original vibration acceleration time series data or instantaneous peak values, this statistical feature has better stability and anti-interference ability, avoids false correlations caused by single-point outliers, and can truly reflect the intensity of the continuous impact of mechanical vibration.

[0064] 2.4 Construction of Environmental State Characteristics Ambient humidity and stray magnetic fields are external environmental disturbances, and their impact on FOCT error depends on both the current state value and the trend of state change. Environmental state characteristics include ambient humidity. Changes in ambient humidity Stray magnetic fields around the equipment and stray magnetic field change .

[0065] The change in ambient humidity characterizes the rate of change of humidity inside the equipment cabinet within one second. When humidity changes too rapidly, transient processes of condensation or decondensation may occur at the optical connection interface, causing abrupt changes in optical path coupling efficiency. The construction formula is: ,in, for The ambient humidity at all times, for The ambient humidity at any given time.

[0066] The stray magnetic field variation characterizes the rate of change of the external magnetic field within one second. The rate of change of the stray magnetic field reflects the severity of the disturbance more effectively than its absolute value. When the stray magnetic field is stable, even if the absolute value is large, the system may have already adaptively adjusted; however, when the stray magnetic field changes rapidly, the system's dynamic response lag will produce a large instantaneous error. (Stray magnetic field variation) The construction formula is: ;, for Stray magnetic fields around the device at any given time for Stray magnetic fields around the device at any given time.

[0067] In summary, the feature vector finally generated in step 2 of this embodiment includes the following components: original multi-source physical state quantities (optical module temperature, sensor head temperature, ambient humidity, stray magnetic field, vibration acceleration, receiver optical power), thermal state characteristics (optical module temperature change, sensor head temperature change, temperature gradient characteristics), optical path state characteristics (receiver optical power change, optical path transmission efficiency), mechanical state characteristics (root mean square value of vibration), and environmental state characteristics (ambient humidity, ambient humidity change, stray magnetic field, stray magnetic field change). These features together constitute... Feature vector at time step This is used as input for subsequent steps.

[0068] Step 3: Construct input samples for historical time windows.

[0069] FOCT measurement errors exhibit significant temporal correlation and hysteresis response characteristics. Temperature transfer takes time, and the impact of thermal drift on measurement accuracy is delayed. Fluctuations in optical power reach the receiver only after passing through the filtering effect of the optical path. Stress transmission from mechanical vibrations requires the elastic deformation process of the mechanical structure. Therefore, the measurement error at the current moment depends not only on the current state quantity but also on the state change history over a past period. Based on these physical mechanisms, this embodiment does not employ single-point input but instead constructs input samples based on historical time windows.

[0070] Let the length of the history window be... ,but Input sample of historical time window at any moment Satisfying the expression:

[0071] In the formula, for The L eigenvectors are composed of the multi-source physical state variables and their structural features at each time step. These L eigenvectors are concatenated in chronological order to form a two-dimensional matrix. Each row of the matrix corresponds to all the features at a given time step. The matrix has L rows and the number of columns is the dimension of the eigenvectors at each time step.

[0072] The selection of the historical window length L balances the completeness of temporal information and the computational efficiency of the model. If L is too small, the window cannot cover the lag response time of the error, resulting in the model missing crucial temporal causal relationships. If L is too large, the input dimension increases, the number of model parameters rises, and redundant historical information unrelated to the current prediction may be introduced. In this embodiment, the value of L is determined based on the sensor sampling period and the thermal time constant of FOCT. When the sampling period is 1 second, L is set to 20, meaning each input sample contains all feature information from the past 20 seconds, covering the short- to medium-term cumulative effects of thermal drift and optical power drift.

[0073] This historical time window is used to characterize the temperature change history, optical power drift trajectory, vibration disturbance records, humidity change trends, and stray magnetic field fluctuations over the past L time points. The cumulative effect of this historical information is fully preserved in the input samples through the time window, enabling the model to learn the hysteresis response of the error.

[0074] Step 4: Feature extraction from the dual-branch network.

[0075] In this embodiment, the historical time window input samples constructed in step S3 are input into a dual-branch network. This dual-branch network includes an XGBoost branch and an MLP branch. The XGBoost branch is used to extract the nonlinear interaction features between state parameters in the input samples, while the MLP branch is used to extract the historical time-series features of the measurement error.

[0076] 4.1 Improved Structure of XGBoost Branches Those skilled in the art will know that XGBoost is an ensemble learning model based on a gradient boosting framework. Its basic working principle is to sequentially train multiple decision trees, with each new tree fitting the direction of the predicted residuals from the previous tree, thus gradually approximating the objective function. XGBoost's inherent advantage lies in the fact that the splitting process of the decision trees can automatically learn the nonlinear interactions between features. XGBoost exhibits good fitting ability for the coupling effects between multiple physical quantities in power systems (such as the combined effects of temperature and optical power, and the cross-interference of vibration and magnetic fields).

[0077] However, as a standalone machine learning model, the traditional XGBoost model outputs a single prediction scalar, lacking intermediate feature representations that can be used by downstream neural networks. Furthermore, traditional XGBoost cannot be jointly trained end-to-end with neural networks via gradient backpropagation. To address these issues, this embodiment improves the XGBoost branch, enabling it to output a high-dimensional, refined feature vector.

[0078] The improved XGBoost branch extracts nonlinear interaction features in the following way.

[0079] The first step is to analyze the input samples. To obtain the leaf node index of this sample in each tree of the XGBoost model:

[0080] In the formula, Indicates sample In the Leaf node indexes on the tree This represents the maximum number of leaf nodes in a single tree. This represents the total number of trees.

[0081] Those skilled in the art will understand that the XGBoost model comprises K decision trees. For any input sample, each decision tree determines the splitting condition of the sample at each node, ultimately placing it into a leaf node of that tree. Each leaf node has a unique index number. That is, the sample is in the first... The leaf node number that the tree falls into. The maximum number of leaf nodes in a single tree. Used to control the complexity of each tree. A value that is too large will cause each tree to learn too many local details, increasing the risk of overfitting; a value that is too small will limit the model's fitting ability. In this embodiment, Set it to 16.

[0082] The second step, to avoid dimensional explosion, is to divide all trees into... G The process is handled in groups. Each group contains [number of members]. A tree. The first... The leaf index of a group is represented as:

[0083] In the formula, For the first The leaf index vector of the group; For the sample in the first Group 1 The index of the leaf nodes on the tree.

[0084] When the number of trees K is large (e.g., more than 100 trees), directly concatenating the leaf node indices of all trees will produce a sparse vector of extremely high dimension.

[0085] In this embodiment, the purpose of grouping is to divide the leaf indices of the K trees into... G There are 3 groups, each containing information about S trees, which are then embedded and aggregated to control the computational complexity at each stage.

[0086] The third step is to construct a trainable embedding matrix, mapping discrete leaf node indices to dense embedding vectors. For the... within the group A tree is created, and leaf indices are mapped to embedding vectors and then summed and aggregated.

[0087] In the formula, For embedding operations, leaf indices are mapped to vectors of fixed dimensions; For the first The aggregated embedding vector of the group.

[0088] The embedding matrix is ​​a trainable parameter matrix whose number of rows corresponds to the maximum number of leaf nodes in each tree. Add 1 (considering index 0), the number of columns is the preset embedding dimension. Embedding operation. It means searching for the index in this matrix. The embedding vector of the S trees in the group is summed, and the information of the S vectors is aggregated into a single vector. This summation operation preserves the decision information of each tree while keeping the feature dimension within the preset embedding dimension range.

[0089] The fourth step involves mapping and refining the aggregation results of each group using a fully connected layer to obtain nonlinear interaction features.

[0090] The aggregation results of all G groups are concatenated as follows:

[0091] In the formula, This is the concatenation result of the aggregated embedding vectors for all groups. The concatenation operation links the aggregated vectors of all groups into a longer vector, preserving the distinguishing information between the groups.

[0092] Dimension mapping is performed on the aggregation results of each group using a fully connected layer:

[0093] In the formula, For the first Features of the group after fully connected mapping; This is the weight matrix of the fully connected layer; This is the bias of the fully connected layer. The role of the fully connected layer is to map the aggregated embedding vectors of each group from the embedding dimension to the preset feature dimension.

[0094] Then, sum the features of all G groups again to extract all features of the entire tree:

[0095] In the formula, This is the combined feature vector. The summation operation aggregates the features of all groups into a single vector, which carries the structural information of the entire G-group tree.

[0096] Nonlinear refinement of this comprehensive feature:

[0097] In the formula, Characteristics after refining; This is the weight matrix for the refining layer; For the bias of the refining layer; It is a linear rectified activation function that sets negative numbers to zero and keeps positive numbers unchanged. While introducing nonlinear transformation, it avoids gradient saturation problems and helps stabilize the training of deep networks.

[0098] The fitting layer of the XGBoost branch maps refined features to a prediction scalar:

[0099] In the formula, The predicted scalar output of the XGBoost branch fitting layer; The weight vector of the fitted layer; This is the bias of the fitted layer.

[0100] The above structure extracts the multiple trees in XGBoost into a compact neural network model. This structure sequentially includes an embedding layer (mapping leaf indices to embedding vectors), an aggregation layer (within-group summation and between-group concatenation), a fully connected mapping layer (dimensionality transformation), a comprehensive summation layer (aggregating all features), a non-linear refinement layer (ReLU activation), and a fitting output layer (scalar prediction). It is worth emphasizing that the XGBoost branch does not directly... Instead of using it as downstream input, it uses high-dimensional refined features. The non-linear interactive features are input into the downstream attention mechanism and fused with the MLP branch. Refined features. It retains the non-linear interaction patterns between features learned by the XGBoost model through multiple decision trees, and transforms them into dense vector representations through embedding and refining layers, which can participate in the gradient backpropagation of the subsequent attention mechanism.

[0101] To ensure that the embedding layer, fully connected layer, and refining layer of the XGBoost branch can fully learn the knowledge of the original XGBoost model, this embodiment introduces an additional loss function:

[0102] In the formula, For the sample size, For the true value, This represents the final predicted value of the two-branch network. The predicted scalar is the output of the XGBoost branch fitting layer. These are the predictions from the original XGBoost model under the same input. This is the loss balance coefficient.

[0103] The first term of this additional loss function The regression loss is the final predicted value of the dual-branch network. Compared with the true value The mean squared error between the two branches. This loss is used throughout the training of the dual-branch network, and its gradient simultaneously affects the parameter updates of the XGBoost branch, MLP branch, and attention fusion layer.

[0104] The second term of this additional loss function That is, the intermediate prediction output of the XGBoost branch. Compared with the original XGBoost model predictions The mean squared error between them. This loss is only used to update the parameters of the embedding layer, fully connected layer, and refinement layer within the XGBoost branch, and does not participate in the update of the MLP branch and attention fusion layer.

[0105] Those skilled in the art will understand that the original XGBoost model is a pre-trained ensemble learning model whose predicted values... It contains the fitting results of XGBoost to the input samples. By minimizing and The differences between them force the embedding and refining processes within the XGBoost branch to retain the knowledge learned by the original XGBoost model, thus ensuring the refined features output by that branch. It carries sufficient interaction information. Without this auxiliary loss, the embedding and refining layers may not be able to effectively extract meaningful feature representations from the leaf indices. The value of determines the weight of the auxiliary loss. If the value is too small, the constraint effect of the auxiliary loss is insufficient; If the value is too large, the dominance of the main task loss is weakened, which may affect the final prediction accuracy. In this embodiment, The value ranges from 0.1 to 0.5, with 0.3 being preferred.

[0106] 4.2 Structure of MLP Branches The MLP branch is an auxiliary branch used to extract historical time-series features of measurement errors. The input to the MLP branch differs from that of the XGBoost branch. The input to the XGBoost branch is the complete feature vector. It includes all multi-source physical state quantities and their structural characteristics. The input to the MLP branch is only the historical time-series data of the measurement error, that is, the true error value at each historical moment.

[0107] The MLP branch employs a multilayer perceptron structure, including an input layer, at least one hidden layer, and an output layer. The input layer receives the historical time-series vector of errors. The number of hidden layers is determined based on the complexity of the time-series data; in this embodiment, there are 2 to 3 hidden layers, with the number of neurons in each hidden layer decreasing progressively to achieve feature compression. Each hidden layer uses the ReLU activation function to introduce a nonlinear transformation. The output layer outputs historical time-series features of a fixed dimension.

[0108] The design intent of the MLP branch, which uses only the error history time series as input, is that the error time series itself is independent of the current state variables and contains pure time-delay information about the system's dynamic response. Using the error history time series as an independent input allows the MLP branch to focus on learning the trend, periodicity, and autocorrelation characteristics of the error sequence. This time series feature is complementary to the state variable interaction features of the XGBoost branch, providing a different dimension of feature sources for subsequent attention fusion.

[0109] 4.3 Fusion of Two-Branch Attention Mechanisms Through the aforementioned dual-branch structure, the nonlinear interaction characteristics of the XGBoost branches are obtained respectively. Historical temporal characteristics of MLP branches . Derived from refining characteristics ; The output comes from the output layer of the MLP branch. Then, the two features are fused through an attention mechanism to output the final predicted value.

[0110] In this embodiment, the specific process of attention mechanism fusion is as follows: The first step is to concatenate the two features to obtain the total attention feature:

[0111] In the formula, The overall characteristics of attention; This is a vector concatenation operation that joins two feature vectors end to end to form a longer vector, preserving all the information from both branches.

[0112] The second step involves linearly mapping the total attention features to transform them from the feature space to the weight space. Then, the Softmax function is used to normalize the weights to obtain two-dimensional weight scalars, corresponding to the attention weights of the XGBoost and MLP branches, respectively.

[0113] The third step is to multiply the obtained attention weights by the features of the two branches respectively and then sum them to obtain the fused features.

[0114] The fourth step is to obtain the final measurement error prediction value by applying a linear mapping of the fused features to the output layer:

[0115] In the formula, The weight vector of the output layer; For the bias of the output layer; This represents the final predicted measurement error value for the two-branch network.

[0116] The introduction of the attention mechanism enables the model to adaptively adjust the contribution weights of the two branches to the final prediction based on the specific circumstances of the current input sample. For example, when the temporal autocorrelation of the error is strong, the attention mechanism automatically increases the weight of the MLP branch; when the nonlinear coupling effect between state variables is prominent, the attention mechanism automatically increases the weight of the XGBoost branch. This adaptive weighting mechanism has greater flexibility and generalization ability compared to simple averaging fusion with fixed weights.

[0117] Step 5: Output of the predicted measurement error value In this step, the dual-branch network outputs the predicted measurement error values ​​of the all-fiber current transformer for one or more future time periods.

[0118] This embodiment supports two prediction modes: single-step prediction mode and long-term prediction mode.

[0119] When the prediction step size K=1, the dual-branch network outputs the predicted measurement error value for the next time period: ;in, This represents the predicted measurement error value at time t+1. The single-step prediction mode is suitable for real-time error compensation scenarios. After data acquisition and feature construction are completed at each sampling time, the system outputs the predicted error value for the next second, which is then used by the correction module to adjust the current measurement results in real time, thereby achieving error compensation for the current time.

[0120] When predicting step size When the value is greater than 1, output the measurement error prediction sequence for multiple future time periods: ;in, To predict the step size; It is a two-branch network model; This is a predicted sequence of measurement errors for the next K time periods. The long-term prediction model is suitable for error trend analysis and risk warning scenarios. Based on the predicted sequence, maintenance personnel can determine the direction and rate of error evolution and schedule maintenance or calibration in advance when the error is about to exceed a preset threshold, thus avoiding measurement inaccuracies caused by errors exceeding limits.

[0121] The multi-step prediction is implemented as follows: the output layer dimension of the dual-branch network is set to K, meaning the output layer directly outputs a K-dimensional vector, with each dimension corresponding to a predicted value for a future time period. The network learns the end-to-end mapping relationship from historical time window inputs to future multi-step outputs through training.

[0122] Furthermore, it should be noted that the training of the dual-branch network in this embodiment is completed offline. The training process includes the following steps: The first step is to prepare the training dataset. Following the methods in steps 1 to 3, construct a large number of historical time windows as input samples from historical running data. Each sample... A corresponding label value is assigned, which represents the actual measurement error value at the Kth future step from the current time of the sample. The actual measurement error value is calculated by the difference between the reference measurement value and the actual measurement value of FOCT under calibration conditions, and is only used in the training phase.

[0123] The second step is to partition the dataset. All samples are divided into training, validation, and test sets according to a set ratio. The training set is used to update network weights. The validation set is used to monitor overfitting and adjust hyperparameters. The test set is used to evaluate the model's final generalization performance. In this embodiment, the ratio of the training, validation, and test sets is 7:2:1.

[0124] The third step is to train the network. The historical time window input samples from the training set are used as input to the two-branch network, and the corresponding true values ​​of the measurement errors at future times are used as labels. An additional loss function is used to calculate the training error. The gradient of each layer's parameters is calculated using the backpropagation algorithm. An adaptive moment estimation optimizer is used to update the network parameters. During training, the changes in the additional loss function value on the validation set are monitored. Training is terminated early when the additional loss function value on the validation set no longer decreases within a preset number of rounds (e.g., 20 rounds) to prevent overfitting.

[0125] The fourth step is to evaluate the model. After training, the model's prediction accuracy is evaluated using a test set. Metrics such as root mean square error, mean absolute error, and coefficient of determination are calculated between the predicted and actual values. Once the metrics meet the preset requirements, the trained model parameters are fixed for online deployment.

[0126] After model training, it is deployed in FOCT monitoring systems, substation condition monitoring platforms, or edge computing devices. During online operation, the system does not rely on reference current or actual historical errors as input. All calculations are performed independently based on online measurable physical state quantities. This feature enables the method of this embodiment to be deployed in actual substations that do not have standard instrument transformer comparison conditions, thus having broad engineering applicability.

[0127] Based on the predicted measurement error, the system executes corresponding application operations. When the output is a single-step predicted value, the current measurement output of the all-fiber current transformer is corrected: the predicted error value is subtracted from the current measured value to obtain the corrected current output value, thereby improving the measurement accuracy at the current moment. When the output is a multi-step predicted sequence, the system monitors whether there are any points in the predicted sequence that exceed a preset threshold. If so, an early warning signal is generated to notify maintenance personnel so that on-site inspection and calibration can be arranged in advance.

[0128] The present invention also provides a measurement error prediction system for an all-fiber current transformer, used to perform the above-described method. The system includes a data acquisition module, a feature construction module, a sample construction module, and a dual-branch prediction module.

[0129] The data acquisition module is used to acquire multi-source physical state quantities during the operation of the all-fiber current transformer. These multi-source physical state quantities include optical module temperature, sensor head temperature, ambient humidity, stray magnetic field around the equipment, mechanical vibration, and optical power. The data acquisition module collects raw signals through various sensors and converts them into digital time-series data after analog-to-digital conversion.

[0130] The feature construction module is used to construct features of multi-source physical state quantities based on the error formation mechanism of the all-fiber current transformer, generating thermal state features, optical path state features, mechanical state features and environmental state features.

[0131] The sample construction module is used to construct historical time window input samples based on the multi-source physical state variables and their construction characteristics at the current time and several previous time points. The sample construction module includes a caching unit and a concatenation unit. The caching unit stores all feature vectors from the past L time points in a first-in, first-out (FIFO) manner. The concatenation unit reads the feature vectors from the L time points in the caching unit and concatenates them into the input samples.

[0132] The dual-branch prediction module is used to input historical time window input samples into a dual-branch network including XGBoost branch and MLP branch, and after fusing nonlinear interaction features and historical time series features through an attention mechanism, outputs the measurement error prediction value of the all-fiber current transformer in one or more future time periods.

[0133] In the dual-branch prediction module, the outputs of the XGBoost branch and the MLP branch are fused using an attention mechanism. This attention mechanism adaptively determines the weights of nonlinear interaction features and historical temporal features in the final prediction. Attention weights. and The model dynamically calculates based on the current input samples, enabling it to adaptively adjust the contribution ratio of the two branches according to different operating states, achieving better predictive performance than fixed-weight fusion.

[0134] The system in this embodiment may further include an output interface module for outputting the predicted measurement error value to an external device. The external device may be a measurement correction unit of the FOCT, which compensates for the current measured current value in real time based on the error prediction value. Alternatively, the external device may be an online monitoring platform for a substation, which performs trend analysis and early warning judgments based on the error prediction sequence.

[0135] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A method for predicting measurement errors in an all-fiber optic current transformer, characterized in that, The method includes: The multi-source physical state quantities during the operation of the all-fiber current transformer are acquired; the multi-source physical state quantities include optical module temperature, sensor head temperature, ambient humidity, stray magnetic field around the equipment, mechanical vibration, and optical power. Based on the error formation mechanism of the all-fiber current transformer, the multi-source physical state quantities are characterized to generate thermal state characteristics, optical path state characteristics, mechanical state characteristics and environmental state characteristics. Based on the multi-source physical state quantities and their construction characteristics at the current moment and several moments before, a historical time window input sample is constructed. The historical time window input samples are input into a dual-branch network; the dual-branch network includes an XGBoost branch and an MLP branch; the XGBoost branch extracts the nonlinear interaction features between state parameters in the input samples, and the MLP branch extracts the historical time-series features of measurement errors; After fusing the nonlinear interaction features and the historical time series features through an attention mechanism, the predicted measurement error value of the all-fiber current transformer is output for one or more future time periods.

2. The method for predicting measurement errors of an all-fiber current transformer according to claim 1, characterized in that: The thermal characteristics include the temperature change of the optical module. Temperature change of the sensor head and temperature gradient characteristics ; Their construction formulas are as follows: ; ; ;in, for The temperature of the optical module at any given time. for The temperature of the optical module at any given time. for The temperature of the sensor head at all times, for Temperature of the sensor head at any given time; The optical path state characteristics include the change in optical power at the receiver. and optical path transmission efficiency characteristics; the The construction formula is as follows: ;in, for The optical power at the receiver at any given time. for The optical power at the receiver at any given time; The mechanical state characteristics include the root mean square value of vibration. Its construction formula is: ;in, For the first time window in history One mechanical vibration acceleration sample value, This represents the number of sampling points; The environmental state characteristics include ambient humidity. Changes in ambient humidity Stray magnetic fields around the equipment and stray magnetic field change Their construction formulas are as follows: ; ;in, for The ambient humidity at all times, for The ambient humidity at all times, for Stray magnetic fields around the device at any given time for Stray magnetic fields around the device at any given time.

3. The method for predicting measurement errors of an all-fiber current transformer according to claim 1, characterized in that, The input samples for the historical time window satisfy the expression: In the formula, for The eigenvector composed of the multi-source physical state quantities at time t and their construction characteristics; This is the length of the history window.

4. The method for predicting measurement errors of an all-fiber current transformer according to claim 1, characterized in that, The XGBoost branch extracts nonlinear interaction features between state parameters in the input sample, including: For input samples Get the leaf node index of each tree in the XGBoost model: In the formula, Indicates sample In the Leaf node indexes on the tree This represents the maximum number of leaf nodes in a single tree. The total number of trees; Divide all trees into G Groups, each group contains The tree, the first The leaf index of a group is represented as: Establish a trainable embedding matrix for the th... within the group A tree is created, and leaf indices are mapped to embedding vectors and then summed and aggregated. In the formula, For embedding operations, For the first The aggregated embedding vector of the group; The nonlinear interaction features are obtained by mapping the aggregation results of each group through a fully connected layer and refining them nonlinearly.

5. The method for predicting measurement errors of an all-fiber current transformer according to claim 1 or 4, characterized in that, The XGBoost branch also introduces an additional loss function for training: In the formula, This is the loss balance coefficient; To regress the loss of the main task, this is applied throughout the entire model; This is the auxiliary loss between the predicted output and the true value of the XGBoost branch.

6. The method for predicting measurement errors of an all-fiber current transformer according to claim 1, characterized in that, The MLP branch only takes the historical time-series data of the measurement error as input to extract the time-series features of the measurement error.

7. The method for predicting measurement errors of an all-fiber current transformer according to claim 1, characterized in that, The attention mechanism fusion includes: The nonlinear interaction features and the historical time-series features are concatenated to obtain the total attention features: In the formula, This refers to the total characteristics of attention; For the aforementioned nonlinear interaction feature; The aforementioned historical time sequence characteristics; The total attention features are normalized by linear mapping and Softmax to obtain the attention weights and fusion features of each branch; The measurement error prediction value is obtained by linearly mapping the fused features.

8. The method for predicting measurement errors of an all-fiber current transformer according to claim 3, characterized in that, The predicted measurement error values ​​of the output all-fiber current transformer for one or more future time periods include: When predicting step size When =1, output the predicted measurement error value for the next time period: ; When predicting step size When the value is greater than 1, output the measurement error prediction sequence for multiple future time periods: ;in, This refers to the dual-branch network model.

9. The method for predicting measurement errors of an all-fiber current transformer according to claim 1, characterized in that, Also includes: The historical time window input samples are used as model inputs, and the corresponding future measurement error true values ​​are used as labels to perform supervised training on the dual-branch network until the preset accuracy requirements are met.

10. The method for predicting measurement errors of an all-fiber current transformer according to claim 1, characterized in that, Also includes: The current measurement output of the all-fiber current transformer is corrected based on the predicted measurement error value. And / or, An early warning signal is issued when the predicted measurement error exceeds a preset threshold.

11. A measurement error prediction system for an all-fiber optic current transformer, characterized in that, include: The data acquisition module is used to acquire multi-source physical state quantities during the operation of the all-fiber current transformer; the multi-source physical state quantities include optical module temperature, sensor head temperature, ambient humidity, stray magnetic field around the equipment, mechanical vibration, and optical power; The feature construction module is used to construct features for the multi-source physical state quantities based on the error formation mechanism of the all-fiber current transformer, generating thermal state features, optical path state features, mechanical state features and environmental state features. The sample construction module is used to construct historical time window input samples based on the multi-source physical state quantities and their construction characteristics at the current time and several times before it; as well as The dual-branch prediction module includes an improved XGBoost branch and an MLP branch; wherein the XGBoost branch is used to extract the nonlinear interaction features between state parameters in the input sample; and the MLP branch is used to extract the historical time-series features of the measurement error. The dual-branch prediction module fuses the nonlinear interaction features and the historical time series features through an attention mechanism, and outputs the measurement error prediction value of the all-fiber current transformer for one or more future time periods.

12. The all-fiber optic current transformer measurement error prediction system according to claim 11, characterized in that, The outputs of the XGBoost branch and the MLP branch are fused by an attention mechanism; the attention mechanism is used to adaptively determine the weights of the nonlinear interaction features and the historical time series features in the final prediction.

Citation Information

Patent Citations

  • Current transformer metering error value prediction method

    CN116720622A

  • Method and device for improving measurement precision of optical fiber current transformer

    CN117405959A