Disclosure of Invention
The invention provides a digital differential traceability system and a method of an electronic transformer calibrator aiming at the technical problems in the prior art, wherein a common power source is adopted as a voltage output source, the requirement on hardware is reduced, and the requirement on a digital differential algorithm is improved; a digital differential algorithm based on Hilbert-Huang transformation is provided, high-precision addition of digital differentials is realized, and the performance requirement on a power source is reduced; aiming at the system random error caused by the digital differential algorithm, the optimal standard signal is selected by multiple channels to be output, so that the system random error is reduced, and the reliability of tracing is improved; and representing the error of the electronic transformer calibrator according to the difference value of the superposed standard deviation and the indication error of the electronic transformer calibrator, thereby realizing the traceability of the electronic transformer calibrator.
According to a first aspect of the present invention, there is provided an electronic transformer calibrator digital differential traceability system, comprising: the device comprises a power source, a multi-path signal conversion module, a digital differential input module and an optimal message selection module; the multi-channel signal conversion module comprises n channels of signal conversion modules;
the power source outputs two paths of same analog signals and comparison signals, the analog signals are output to an analog input port of the electronic transformer calibrator, and the comparison signals are output to input ends of n signal conversion modules of the multi-path signal conversion module;
the n signal conversion modules respectively convert the comparison signals to obtain n standard digital signals in a message form;
the digital differential input module respectively superposes the n standard digital signals by adopting a Hilbert-yellowing conversion algorithm to obtain n standard digital differential signals, and outputs the n standard digital differential signals to the optimal message selection module;
the standard digital differential signal with the highest matching degree with the selected type of message is selected as the optimal standard digital differential signal for the optimal message to be output to a digital input port of the electronic transformer calibrator;
and calculating the difference value between the optimal standard digital micro-difference signal and the indication error of the electronic transformer calibrator as the error of the electronic transformer calibrator.
On the basis of the technical scheme, the invention can be improved as follows.
Optionally, the signal conversion module includes a standard a/D unit, a waveform calibration unit, and a protocol conversion unit.
Optionally, the digital differential input module includes: the device comprises an RBF neural network model building unit, an RBF neural network model prior calibration unit, a signal continuation unit and a signal windowing unit;
the RBF neural network model building unit builds an RBF neural network model, the input of the RBF neural network model is the standard digital signal, and the output of the RBF neural network model is the continuation signal of the standard digital signal;
the RBF neural network model prior calibration unit calculates error data of the continuation data and the real data output by the RBF neural network model, and calibrates the RBF neural network model by using the error data;
the signal continuation unit inputs the standard digital signals to be superposed and the corresponding error data into a calibrated improved RBF neural network model, and the improved RBF neural network model outputs continuation signals of the standard digital signals to be superposed;
and the signal windowing unit is used for windowing the continuation signal of the standard digital signal to be superposed and then discarding a continuation part to obtain the standard digital differential signal.
Optionally, the RBF neural network model is a three-layer forward neural network model, including: an input layer, a hidden layer and an output layer;
the data input by the input layer is
;
、
、
And
respectively representing the local maximum, the local minimum, the zero crossing point and the sampling point slope of the standard digital signal;
output of the hidden layer
(ii) a H is hidden layer output, b is the width of a Gaussian base function, and b is more than 0;
is a implicit function neuron center vector; exp () is an activation function with nonlinear approximation capability;
the continuation signal output by the output layer is
(ii) a Y (k) is an output continuation signal of the RBF neural network model,
、
、
and
the weight values of the output layer are obtained;
、
、
and
are the outputs of different hidden layers.
Optionally, the prior calibration unit of the RBF neural network model calculates an error between the continuation data and the real data output by the RBF neural network model, weights average output error data, and calibrates the RBF neural network model by using the error data.
Optionally, the data of the improved RBF neural network model after calibration input by the signal continuation unit is:
;
、
、
、
and
the standard digital signals to be superposed are respectively local maximum values, local minimum values, zero crossing points, sampling point slopes and corresponding error data.
Optionally, the window added by the signal windowing unit is a 4-order 3-term Nuttall window.
According to a second aspect of the present invention, there is provided an electronic transformer calibrator digital differential traceability system, comprising: the tracing method comprises the following steps:
step 1, outputting two paths of same analog signals and comparison signals by a power source, and outputting the analog signals to an analog input port of an electronic transformer calibrator;
step 2, respectively converting the comparison signals to obtain n standard digital signals in a message form;
step 3, respectively superposing the n standard digital signals by adopting a Hilbert-Huang transform algorithm to obtain n standard digital differential signals, and selecting the standard digital differential signal with the highest matching degree with the selected type of messages as an optimal standard digital differential signal to be output to a digital input port of the electronic transformer calibrator;
and 4, calculating the difference value of the optimal standard digital micro-difference signal and the indication error of the electronic transformer calibrator as the error of the electronic transformer calibrator.
According to a third aspect of the present invention, an electronic device is provided, which includes a memory and a processor, where the processor is configured to implement the steps of the electronic transformer calibrator digital differential tracing method when executing a computer management class program stored in the memory.
According to a fourth aspect of the present invention, there is provided a computer-readable storage medium, on which a computer management class program is stored, where the computer management class program, when executed by a processor, implements the steps of the digital differential traceability method for an electronic transformer calibrator.
The invention provides a digital differential traceability system, a method, electronic equipment and a storage medium for an electronic transformer calibrator, and provides a digital differential algorithm based on Hilbert-Huang transform, so that high-precision addition of digital differentials is realized, and the performance requirement on a power source is reduced; aiming at the problem of 'end effect' of the digital differential, the signals at two ends are extended by utilizing a combined algorithm, so that the end effect is effectively inhibited, and the precision of the digital differential is improved; aiming at the system random error caused by the digital differential algorithm, a multi-channel standard signal is output, so that the reliability of the tracing result is improved; and the RBF model is corrected by using the error between the extension data and the real data, so that the precision of the extension data is improved.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
Fig. 1 is a schematic structural diagram of a connection between an embodiment of a digital differential traceability system of an electronic transformer calibrator provided by the present invention and the electronic transformer calibrator, as shown in fig. 1, the traceability system includes: the device comprises a power source, a multi-path signal conversion module, a digital differential input module and an optimal message selection module; the multi-channel signal conversion module comprises n channels of signal conversion modules, and n is a natural number.
The power source outputs two paths of same analog signals and comparison signals, the analog signals are output to an analog input port of the electronic transformer calibrator, and the comparison signals are output to input ends of n signal conversion modules of the multi-path signal conversion module.
The n signal conversion modules respectively convert the comparison signals to obtain n standard digital signals in a message form;
the digital differential input module respectively superposes the n standard digital signals by adopting a Hilbert-yellowing conversion algorithm to obtain n standard digital differential signals, and outputs the n standard digital differential signals to the optimal message selection module.
And the optimal message selection module selects the standard digital differential signal with the highest matching degree with the selected type of message from the n standard digital differential signals as an optimal standard digital differential signal and outputs the optimal standard digital differential signal to a digital input port of the electronic transformer calibrator.
Specifically, the optimal standard digital differential signal selection method is as follows:
the selected type of message is the message of the main message information of the protocol conversion: an example of the IEC61850-9-2 message, 9-2 SV message frame classification is shown in Table 1:
table 1: SV message frame classification example table
In the invention, "A-phase measuring current, B-phase measuring current, C-phase measuring current, A-phase voltage AD1, A-phase voltage AD2, B-phase voltage AD1, B-phase voltage AD2, C-phase voltage AD1 and C-phase voltage AD 2" in a 9-2 SV message are selected as key fields, a machine learning method is adopted to carry out key field fuzzy matching on message information converted by different channel protocols, and a message with the highest matching similarity of the key fields is selected as an optimal message, namely an optimal standard signal.
Because the precision error existing in sampling, the phase shift error of the algorithm added with the digital differential and the like can bring a certain degree of system error to the tracing, in order to reduce the system error and improve the reliability of the tracing, the invention adopts multi-channel output standard signals and selects the optimal standard signal from a plurality of standard signals.
And calculating the difference value between the optimal standard digital micro-difference signal and the indication error of the electronic transformer calibrator as the error of the electronic transformer calibrator, thereby realizing the tracing.
In specific implementation, the voltage output of a common power source is used as a source, one path of the voltage output is input to an analog input port of an electronic transformer calibrator, specifically, an a/D module of the electronic transformer calibrator shown in the figure, and the other path of the voltage output is output to a digital input port of the electronic transformer calibrator as a standard signal after passing through a multi-path signal conversion module and an optimal message selection module.
According to the digital differential traceability system of the electronic transformer calibrator, a common power source is adopted as a voltage output source, the requirement on hardware is reduced, and the requirement on a digital differential algorithm is improved; a digital differential algorithm based on Hilbert-Huang transformation is provided, high-precision addition of digital differentials is realized, and the performance requirement on a power source is reduced; aiming at the system random error caused by the digital differential algorithm, the optimal standard signal is selected by multiple channels to be output, so that the system random error is reduced, and the reliability of tracing is improved; and representing the error of the electronic transformer calibrator according to the difference value of the superposed standard deviation and the indication error of the electronic transformer calibrator, thereby realizing the traceability of the electronic transformer calibrator.
Example 1
Embodiment 1 of the present invention is an embodiment of a digital differential traceability system of an electronic transformer calibrator, and as can be seen from fig. 1, the embodiment of the traceability system includes: the device comprises a power source, a multi-path signal conversion module, a digital differential input module and an optimal message selection module; the multi-channel signal conversion module comprises n channels of signal conversion modules.
The power source outputs two paths of same analog signals and comparison signals, the analog signals are output to an analog input port of the electronic transformer calibrator, and the comparison signals are output to input ends of n signal conversion modules of the multi-path signal conversion module.
The n signal conversion modules respectively convert the comparison signals to obtain n standard digital signals in a message form;
in one possible embodiment mode, the signal conversion module comprises a standard A/D unit, a waveform calibration unit and a protocol conversion unit.
In specific implementation, the comparison signal can be a digital signal converted into an IEC61850-9-2 message through a standard a/D and a protocol, and the digital signal is sent to a digital input port of the electronic transformer calibrator as a standard signal.
The digital differential input module respectively superposes the n standard digital signals by adopting a Hilbert-yellowing conversion algorithm to obtain n standard digital differential signals, and outputs the n standard digital differential signals to the optimal message selection module.
The HHT (Hilbert-Huang transform) algorithm can be used to reduce the requirements on the signal power source, but has the adverse effect of "end-point effect". The HHT algorithm includes 2 core steps: (1) EMD (Empirical mode decomposition), (2) HT (Hilbert transform ). Firstly, decomposing a given signal into a plurality of Intrinsic Mode Functions (IMFs) by using an EMD method, wherein the IMFs are components meeting certain conditions; then, Hilbert transformation is carried out on each IMF to obtain a corresponding Hilbert spectrum, namely each IMF is represented in a combined time-frequency domain; finally, summing the Hilbert spectra of all IMFs results in the Hilbert spectrum of the original signal. In the EMD process, when the extreme points are used as nodes to perform sample interpolation to construct an envelope, it cannot be ensured that the left and right end points of the data sequence are exactly the extreme points, so that the interpolation precision of the sample curve at the end points is poor, an "overshoot" or "undershoot" phenomenon (as shown in fig. 2) is easy to occur, and the whole data sequence may be "polluted" by the adverse effect through loop iteration, and finally the IMF is seriously distorted. On the other hand, when IMF is subjected to HT, since the digital implementation process involves constructing a conjugate signal with a phase difference of pi/2 from the original signal, and the conjugate signal is solved by "Fourier transform-bilateral spectrum doubling as unilateral spectrum-inverse Fourier transform", when periodic signal is subjected to incomplete periodic sampling, Fourier transform causes the so-called "Gibbs phenomenon", and frequency leakage occurs (as shown in fig. 3).
In a possible embodiment, in order to reduce the end-point effect, the invention provides a combined algorithm, as shown in fig. 4, which is a flowchart of an end-point effect suppression scheme provided in an embodiment of the invention, and as can be seen from fig. 4, the end-point suppression scheme may specifically be:
the digital differential input module comprises: the device comprises an RBF neural network model building unit, an RBF neural network model prior calibration unit, a signal continuation unit and a signal windowing unit.
The RBF neural network model building unit builds the RBF neural network model, the input of the RBF neural network model is a standard digital signal, and the output is a continuation signal of the standard digital signal.
In a possible embodiment, as shown in fig. 5, which is a schematic view of a topology structure of an RBF neural network model provided in an embodiment of the present invention, it can be known from fig. 5 that the RBF neural network model is a three-layer forward neural network model, and includes: an input layer, a hidden layer, and an output layer.
The input layer inputs data of
;
、
、
And
the local maximum, the local minimum, the zero crossing point and the sampling point slope of the standard digital signal are respectively.
Due to the continuation signal Y (k) and the local maximum
Local minimum value of
Zero crossing point
Slope of the sampling point
About, therefore, is fixed in the input data
。
Output of hidden layer
(ii) a H is hidden layer output, b is the width of a Gaussian base function, and b is more than 0;
is a implicit function neuron center vector; exp () is an activation function with nonlinear approximation capability.
The continuation signal output by the output layer is
(ii) a Y (k) is the continuation signal of the output of the RBF neural network model,
、
、
and
each weight value of the output layer;
、
、
and
are the outputs of different hidden layers.
And the RBF neural network model prior calibration unit calculates error data of extension data and real data output by the RBF neural network model, and calibrates the RBF neural network model by using the error data.
After the signal is extended by directly utilizing the RBF neural network, the extended signal is closer to a real signal. However, there is a certain difference from the real IMF component, and when the IMF and the real data have a large error, the decomposition cannot completely reflect the real data, so the error between the estimated data and the real data needs to be calculated, the BP model is calibrated a priori by using the error data, and then the calibrated RBF is used for signal continuation.
In a possible embodiment, the prior calibration unit of the RBF neural network model calculates an error between continuation data and real data output by the RBF neural network model, weights average output error data, and calibrates the RBF neural network model by using the error data.
In specific implementation, data of partial original standard digital signals are processed through RBF neural network
Estimating, extending the data outside the end point of the standard digital signal, and outputting the estimated extended data
Selecting error data of different original standard digital signal outputs
:
Weighted average output error data value
Comprises the following steps:
fig. 6 is a schematic diagram of a topology structure of an improved RBF neural network model according to an embodiment of the present invention. And the signal continuation unit inputs the standard digital signals to be superposed and the corresponding error data into the calibrated improved RBF neural network model, and the improved RBF neural network model outputs the continuation signals of the standard digital signals to be superposed.
And (4) utilizing the error data and the trained RBF model to respectively extend the two sections of the signal forwards and backwards.
In a possible embodiment, the data input by the signal continuation unit into the calibrated improved RBF neural network model is:
。
、
、
、
and
the local maximum value, the local minimum value, the zero crossing point, the sampling point slope and the corresponding error data of the standard digital signal to be superposed are respectively.
And the signal windowing unit is used for windowing the extension signal of the standard digital signal to be superposed and then abandoning the extension part to obtain the standard digital differential signal.
In one possible embodiment, the window applied by the signal windowing unit is a 4-order, 3-term Nuttall window.
And the optimal message selection module selects the standard digital differential signal with the highest matching degree with the selected type of message from the n standard digital differential signals as the optimal standard digital differential signal and outputs the optimal standard digital differential signal to a digital input port of the electronic transformer calibrator.
And calculating the difference value of the optimal standard digital micro-difference signal and the indication error of the electronic transformer calibrator as the error of the electronic transformer calibrator.
Example 2
Embodiment 2 of the present invention is an embodiment of a digital differential traceability method for an electronic transformer calibrator, and fig. 7 is a flowchart of the digital differential traceability method for the electronic transformer calibrator, which is provided by the embodiment of the present invention, and as can be seen from fig. 1 to 7, the embodiment of the traceability method includes:
step 1, outputting two paths of same analog signals and comparison signals by using a power source, and outputting the analog signals to an analog input port of an electronic transformer calibrator.
Step 2, respectively converting the comparison signals to obtain n standard digital signals in a message form;
step 3, respectively superposing the n standard digital signals by adopting a Hilbert-Huang transform algorithm to obtain n standard digital differential signals, and selecting the standard digital differential signal with the highest matching degree with the selected type of message as an optimal standard digital differential signal to be output to a digital input port of the electronic transformer calibrator;
and 4, calculating the difference value between the optimal standard digital micro-difference signal and the indication error of the electronic transformer calibrator as the error of the electronic transformer calibrator, thereby realizing the tracing.
It can be understood that the digital differential traceability method of the electronic transformer calibrator provided by the present invention corresponds to the digital differential traceability systems of the electronic transformer calibrators provided by the foregoing embodiments, and the related technical features of the digital differential traceability method of the electronic transformer calibrator can refer to the related technical features of the digital differential traceability systems of the electronic transformer calibrator, and are not described herein again.
Referring to fig. 8, fig. 8 is a schematic view illustrating an embodiment of an electronic device according to an embodiment of the invention. As shown in fig. 8, an embodiment of the present invention provides an electronic device, which includes a memory 1310, a processor 1320, and a computer program 1311 stored in the memory 1310 and executable on the processor 1320, where the processor 1320 executes the computer program 1311 to implement the following steps: outputting two paths of same analog signals and comparison signals by adopting a power source, and outputting the analog signals to an analog input port of the electronic transformer calibrator; the method comprises the steps of obtaining n standard digital signals in a message form after converting the comparison signals respectively, obtaining n standard digital signals in a message form by superposing the n standard digital signals respectively through a Hilbert-Huang transform algorithm, obtaining n standard digital differential signals, selecting the standard digital differential signal with the highest matching degree with the selected type of messages as an optimal standard digital differential signal to be output to a digital input port of an electronic transformer calibrator, and calculating the difference value of the optimal standard digital differential signal and the indication error of the electronic transformer calibrator as the error of the electronic transformer calibrator.
Referring to fig. 9, fig. 9 is a schematic diagram of an embodiment of a computer-readable storage medium according to the present invention. As shown in fig. 9, the present embodiment provides a computer-readable storage medium 1400, on which a computer program 1411 is stored, which computer program 1411, when executed by a processor, implements the steps of: outputting two paths of same analog signals and comparison signals by adopting a power source, and outputting the analog signals to an analog input port of the electronic transformer calibrator; the method comprises the steps of obtaining n standard digital signals in a message form after converting the comparison signals respectively, obtaining n standard digital signals in a message form by superposing the n standard digital signals respectively through a Hilbert-Huang transform algorithm, obtaining n standard digital differential signals, selecting the standard digital differential signal with the highest matching degree with the selected type of messages as an optimal standard digital differential signal to be output to a digital input port of an electronic transformer calibrator, and calculating the difference value of the optimal standard digital differential signal and the indication error of the electronic transformer calibrator as the error of the electronic transformer calibrator.
The embodiment of the invention provides a digital differential traceability system, a method, electronic equipment and a storage medium for an electronic transformer calibrator, and provides a digital differential algorithm based on Hilbert-Huang transform, so that high-precision addition of digital differentials is realized, and the performance requirement on a power source is reduced; aiming at the problem of 'end effect' of the digital differential, the signals at two ends are extended by utilizing a combined algorithm, so that the end effect is effectively inhibited, and the precision of the digital differential is improved; aiming at the system random error caused by the digital differential algorithm, a multi-channel standard signal is output, so that the reliability of the tracing result is improved; and the RBF model is corrected by using the error between the extension data and the real data, so that the precision of the extension data is improved.
It should be noted that, in the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to relevant descriptions of other embodiments for parts that are not described in detail in a certain embodiment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.