Disclosure of Invention
In order to improve the above technical problems in the related art, the present disclosure provides a data testing method, a data testing device and a computer terminal.
A data testing method applied to a computer terminal in communication with a substation, the method comprising:
after the substation operation data stored in real time by the substation are collected, extracting a data tag sequence of the substation operation data, and carrying out data segmentation processing on the substation operation data based on the data tag sequence to obtain a plurality of groups of operation parameter segments; the data tag sequence is a sequence formed by equipment tags related to target electric equipment in the substation operation data;
comparing each group of operation parameter segments of the substation operation data with each reference parameter segment in a preset parameter set; the preset parameter set stores a plurality of groups of reference parameter segments and parameter weights corresponding to the reference parameter segments, wherein the reference parameter segments are state parameter sets of a power grid area where the target electric equipment is located; wherein if each set of operating parameter segments of the extracted substation operating data comprises a plurality of parameter weights, the comparison is made by: performing multi-level comparison according to priorities configured for the weights of the parameters in advance; in each level of comparison, only one parameter weight in each group of operation parameter segments is used for comparison, and the operation parameter segments meeting the preset conditions are input into a next level of comparison thread so as to be compared based on the next parameter weight;
Determining a data state track of the substation operation data according to the parameter characteristics corresponding to the target operation parameter segment, the comparison result of which accords with the substation state stability condition, of the substation operation data;
testing the equipment loss data of the transformer substation based on the transformer substation operation data and the determined data state track of the transformer substation operation data to obtain a test result; the test result is used for representing the probability of faults of the transformer substation in a set period.
Optionally, extracting a data tag sequence of the substation operation data, and performing data segmentation processing on the substation operation data based on the data tag sequence to obtain a plurality of groups of operation parameter segments, including:
listing data tags in the substation operation data, determining tag weights of the data tags, and sequencing the data tags according to the sequence of the tag weights from high to low to obtain the data tag sequence;
acquiring a sequence track of the data tag sequence and a plurality of data sets of the substation operation data; under the condition that the substation operation data contains redundant data groups according to the sequence track, determining authority contrast between each data set of the substation operation data under the effective data groups and each data set of the substation operation data under the redundant data groups according to the data sets of the substation operation data under the redundant data groups and authority information thereof; adjusting a data set with the minimum authority contrast of the substation operation data under the effective data packet and the data set under the redundant data packet to be under the redundant data packet;
Under the condition that a plurality of data sets are contained in the effective data packet corresponding to the substation operation data, determining authority contrast between the data sets of the substation operation data under the effective data packet according to the data sets of the substation operation data under the redundant data packet and authority information thereof, and splicing the data sets under the effective data packet based on the authority contrast between the data sets; setting adjustment priority for the target data set obtained by splicing according to the data set of the substation operation data under the redundant data packet and the authority information thereof, and adjusting the target data set to a set position of the redundant data packet corresponding to the adjustment priority;
and carrying out segmentation processing on the data set under the effective data packet based on the node attribute of the target node with the segmentation mark corresponding to the sequence track in the data tag sequence to obtain a plurality of groups of operation parameter segments.
Optionally, determining the data state track of the substation operation data according to the parameter characteristics corresponding to the target operation parameter segment, the comparison result of the substation operation data meets the substation state stability condition, includes:
Extracting a state evaluation coefficient of the comparison result, and determining a target operation parameter section corresponding to the state evaluation coefficient when the state evaluation coefficient reaches a preset state coefficient of the transformer substation;
extracting time sequence characteristics of the target operation parameter section according to a set time step;
generating a time sequence form corresponding to the time sequence feature and a parameter form corresponding to a target operation parameter segment, wherein the time sequence form and the parameter form respectively comprise a plurality of table objects with different form weights;
extracting object attribute information of the time sequence feature in one of the table objects of the time sequence table, and determining the table object with the minimum table weight in the parameter table as a reference table object;
mapping the object attribute information into the reference table object to obtain mapping attribute information in the reference table object, and then generating a state switching list between the time sequence feature and the target operation parameter segment based on the object attribute information and the mapping attribute information;
acquiring object track information in the reference table object by taking the mapping attribute information as an information template, mapping the object track information into the table object where the object attribute information is located according to the logic information corresponding to the state switching list, and obtaining mapping track information corresponding to the object track information in the table object where the object attribute information is located;
And listing the track nodes and the connection information in the mapping track information, and generating a data state track of the substation operation data according to the track nodes and the connection information.
Optionally, testing the equipment loss data of the substation based on the substation operation data and the determined data state track of the substation operation data to obtain a test result, including:
determining loss coefficients corresponding to the equipment loss data, which are determined based on the substation operation data and the data state track, and weighting the equipment loss data by adopting the loss coefficients to obtain target loss data;
determining an update weight value of the current loss data in a preset time period based on a first update frequency of the current loss data in the preset time period and a second update frequency of each target loss data in the preset time period aiming at the current loss data in the target loss data;
and determining an updated risk coefficient of the current loss data between two adjacent set time periods according to updated weight values of the current loss data in two adjacent preset time period intervals, and carrying out normalization processing on the updated risk coefficient to obtain the test result.
A data testing device for use with a computer terminal in communication with a substation, the device comprising:
the data segmentation module is used for extracting a data tag sequence of the substation operation data after the substation operation data stored in real time by the substation is acquired, and carrying out data segmentation processing on the substation operation data based on the data tag sequence to obtain a plurality of groups of operation parameter segments; the data tag sequence is a sequence formed by equipment tags related to target electric equipment in the substation operation data;
the parameter comparison module is used for comparing each group of operation parameter segments of the substation operation data with each reference parameter segment in a preset parameter set; the preset parameter set stores a plurality of groups of reference parameter segments and parameter weights corresponding to the reference parameter segments, wherein the reference parameter segments are state parameter sets of a power grid area where the target electric equipment is located; wherein if each set of operating parameter segments of the extracted substation operating data comprises a plurality of parameter weights, the comparison is made by: performing multi-level comparison according to priorities configured for the weights of the parameters in advance; in each level of comparison, only one parameter weight in each group of operation parameter segments is used for comparison, and the operation parameter segments meeting the preset conditions are input into a next level of comparison thread so as to be compared based on the next parameter weight;
The track determining module is used for determining a data state track of the substation operation data according to the parameter characteristics corresponding to the target operation parameter section, which accords with the substation state stability condition, of the comparison result of the substation operation data;
the data testing module is used for testing the equipment loss data of the transformer substation based on the transformer substation operation data and the determined data state track of the transformer substation operation data to obtain a testing result; the test result is used for representing the probability of faults of the transformer substation in a set period.
Optionally, the data segmentation module is configured to:
listing data tags in the substation operation data, determining tag weights of the data tags, and sequencing the data tags according to the sequence of the tag weights from high to low to obtain the data tag sequence;
acquiring a sequence track of the data tag sequence and a plurality of data sets of the substation operation data; under the condition that the substation operation data contains redundant data groups according to the sequence track, determining authority contrast between each data set of the substation operation data under the effective data groups and each data set of the substation operation data under the redundant data groups according to the data sets of the substation operation data under the redundant data groups and authority information thereof; adjusting a data set with the minimum authority contrast of the substation operation data under the effective data packet and the data set under the redundant data packet to be under the redundant data packet;
Under the condition that a plurality of data sets are contained in the effective data packet corresponding to the substation operation data, determining authority contrast between the data sets of the substation operation data under the effective data packet according to the data sets of the substation operation data under the redundant data packet and authority information thereof, and splicing the data sets under the effective data packet based on the authority contrast between the data sets; setting adjustment priority for the target data set obtained by splicing according to the data set of the substation operation data under the redundant data packet and the authority information thereof, and adjusting the target data set to a set position of the redundant data packet corresponding to the adjustment priority;
and carrying out segmentation processing on the data set under the effective data packet based on the node attribute of the target node with the segmentation mark corresponding to the sequence track in the data tag sequence to obtain a plurality of groups of operation parameter segments.
Optionally, the track determining module is configured to:
extracting a state evaluation coefficient of the comparison result, and determining a target operation parameter section corresponding to the state evaluation coefficient when the state evaluation coefficient reaches a preset state coefficient of the transformer substation;
Extracting time sequence characteristics of the target operation parameter section according to a set time step;
generating a time sequence form corresponding to the time sequence feature and a parameter form corresponding to a target operation parameter segment, wherein the time sequence form and the parameter form respectively comprise a plurality of table objects with different form weights;
extracting object attribute information of the time sequence feature in one of the table objects of the time sequence table, and determining the table object with the minimum table weight in the parameter table as a reference table object;
mapping the object attribute information into the reference table object to obtain mapping attribute information in the reference table object, and then generating a state switching list between the time sequence feature and the target operation parameter segment based on the object attribute information and the mapping attribute information;
acquiring object track information in the reference table object by taking the mapping attribute information as an information template, mapping the object track information into the table object where the object attribute information is located according to the logic information corresponding to the state switching list, and obtaining mapping track information corresponding to the object track information in the table object where the object attribute information is located;
And listing the track nodes and the connection information in the mapping track information, and generating a data state track of the substation operation data according to the track nodes and the connection information.
Optionally, the data testing module is configured to:
determining loss coefficients corresponding to the equipment loss data, which are determined based on the substation operation data and the data state track, and weighting the equipment loss data by adopting the loss coefficients to obtain target loss data;
determining an update weight value of the current loss data in a preset time period based on a first update frequency of the current loss data in the preset time period and a second update frequency of each target loss data in the preset time period aiming at the current loss data in the target loss data;
and determining an updated risk coefficient of the current loss data between two adjacent set time periods according to updated weight values of the current loss data in two adjacent preset time period intervals, and carrying out normalization processing on the updated risk coefficient to obtain the test result.
A computer terminal comprising a processor and a memory in communication with each other, said processor being adapted to retrieve a computer program from said memory, said computer program being executed to implement the method as described above.
A computer readable storage medium having stored thereon a computer program which, when run, implements the method described above.
According to the technical scheme provided by the embodiment of the disclosure, firstly, a data tag sequence of the substation operation data is extracted after the substation operation data is acquired, a plurality of groups of operation parameter sections are determined, secondly, each group of operation parameter sections of the substation operation data is compared with each reference parameter section in a preset parameter set to obtain a comparison result, then, a data state track of the substation operation data is determined according to the comparison result which accords with the parameter characteristics corresponding to the target operation parameter sections of the substation state stable condition, and finally, the equipment loss data of the substation is tested based on the substation operation data and the determined data state track of the substation operation data to obtain a test result. Therefore, the accuracy and the reliability of the operation data test of the transformer substation can be improved, and whether the transformer substation fails or not can be accurately and reliably detected.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
In order to solve the technical problems of poor accuracy and reliability of a method for testing data of a transformer substation in the prior art, the embodiment of the application provides a data testing method, a data testing device and a computer terminal.
Referring first to fig. 1, a block diagram of a data testing system 100 according to an embodiment of the present application is provided, where the data testing system 100 may include a computer terminal 200 and a transformer substation 300, the computer terminal is in communication with the transformer substation 300, the transformer substation 300 is connected to a power grid transmission line in a target area, and the transformer substation 300 is configured to perform power interaction with electric equipment in the target area through the power grid transmission line.
Referring to fig. 2 in combination, a flowchart of a data testing method according to an embodiment of the present invention may be applied to the computer terminal 200 in fig. 1, and may specifically include the device tags described in the following steps.
Step 210, after collecting substation operation data stored in real time by the substation, extracting a data tag sequence of the substation operation data, and performing data segmentation processing on the substation operation data based on the data tag sequence to obtain a plurality of groups of operation parameter segments; the data tag sequence is a sequence formed by device tags related to target electric equipment in the substation operation data.
Step 220, comparing each group of operation parameter segments of the substation operation data with each reference parameter segment in a preset parameter set; the preset parameter set stores a plurality of groups of reference parameter segments and parameter weights corresponding to the reference parameter segments, wherein the reference parameter segments are state parameter sets of a power grid area where the target electric equipment is located; wherein if each set of operating parameter segments of the extracted substation operating data comprises a plurality of parameter weights, the comparison is made by: performing multi-level comparison according to priorities configured for the weights of the parameters in advance; in each stage of comparison, only one parameter weight in each group of operation parameter segments is used for comparison, and the operation parameter segments meeting the preset conditions are input into a next stage of comparison thread so as to perform comparison based on the next parameter weight.
And 230, determining a data state track of the substation operation data according to the parameter characteristics corresponding to the target operation parameter segment, which accords with the substation state stability condition, of the comparison result of the substation operation data.
Step 240, testing the equipment loss data of the transformer substation based on the transformer substation operation data and the determined data state track of the transformer substation operation data to obtain a test result; the test result is used for representing the probability of faults of the transformer substation in a set period.
When the method described in the step S210-step S240 is applied, firstly, after the substation operation data is collected, a data tag sequence of the substation operation data is extracted, a plurality of groups of operation parameter segments are determined, secondly, each group of operation parameter segments of the substation operation data is compared with each reference parameter segment in a preset parameter set to obtain a comparison result, then, a data state track of the substation operation data is determined according to the comparison result, which corresponds to a parameter feature corresponding to a target operation parameter segment of the substation state stability condition, and finally, the equipment loss data of the substation is tested based on the substation operation data and the determined data state track of the substation operation data to obtain a test result. Therefore, the accuracy and the reliability of the operation data test of the transformer substation can be improved, and whether the transformer substation fails or not can be accurately and reliably detected.
In an alternative embodiment, in order to accurately segment the substation operation data, in step S210, a data tag sequence of the substation operation data is extracted, and based on the data tag sequence, the substation operation data is subjected to data segmentation processing to obtain multiple sets of operation parameter segments, which may specifically include what is described in the following steps.
Step S211, listing the data tags in the substation operation data, determining the tag weight of each data tag, and sequencing the data tags according to the sequence of the tag weights from large to small to obtain the data tag sequence.
Step S212, acquiring a sequence track of the data tag sequence and a plurality of data sets of the substation operation data; under the condition that the substation operation data contains redundant data groups according to the sequence track, determining authority contrast between each data set of the substation operation data under the effective data groups and each data set of the substation operation data under the redundant data groups according to the data sets of the substation operation data under the redundant data groups and authority information thereof; and adjusting a data set with the minimum authority contrast of the substation operation data under the effective data packet and the data set under the redundant data packet to be under the redundant data packet.
Step S213, when a plurality of data sets are included in the valid data packet corresponding to the substation operation data, determining authority contrast between each data set of the substation operation data under the valid data packet according to the data set of the substation operation data under the redundant data packet and authority information thereof, and splicing each data set under the valid data packet based on the authority contrast between each data set; and setting adjustment priority for the target data set obtained by splicing according to the data set of the substation operation data under the redundant data packet and the authority information thereof, and adjusting the target data set to a set position of the redundant data packet corresponding to the adjustment priority.
Step S214, performing segment processing on the data set under the valid data packet based on the node attribute of the target node with the segment identifier corresponding to the sequence track in the data tag sequence to obtain multiple groups of operation parameter segments.
It can be understood that, through the steps S211 to S214, the valid data packet of the substation operation data and the data set under the redundant data packet can be adjusted and updated, so that the data set under the valid data packet can be segmented based on the node attribute of the target node with the segment identifier corresponding to the sequence track in the data tag sequence to obtain multiple groups of operation parameter segments, thereby accurately segmenting the substation operation data.
In an alternative embodiment, to ensure continuity of the data state track and avoid occurrence of faults in the data state track, in step S230, the data state track of the substation operation data is determined according to the parameter characteristics corresponding to the target operation parameter segment of the substation state stability condition according to the comparison result of the substation operation data, which may specifically include what is described in the following steps.
Step S231, extracting a state evaluation coefficient of the comparison result, and determining a target operation parameter segment corresponding to the state evaluation coefficient when the state evaluation coefficient reaches a preset state coefficient of the transformer substation.
Step S232, extracting the time sequence characteristics of the target operation parameter segment according to the set time step.
Step S233, generating a time sequence form corresponding to the time sequence feature and a parameter form corresponding to the target operation parameter segment, wherein the time sequence form and the parameter form respectively comprise a plurality of table objects with different form weights.
Step S234, extracting object attribute information of the time sequence feature in one of the table objects of the time sequence table and determining the table object with the minimum table weight in the parameter table as a reference table object.
Step S235, mapping the object attribute information into the reference table object to obtain mapping attribute information in the reference table object, and then generating a state switching list between the timing feature and the target operation parameter segment based on the object attribute information and the mapping attribute information.
Step S236, using the mapping attribute information as an information template to obtain object track information in the reference table object, mapping the object track information to the table object where the object attribute information is located according to the logic information corresponding to the state switching list, and obtaining the mapping track information corresponding to the object track information in the table object where the object attribute information is located.
And step S237, the track nodes and the connection information in the mapping track information are listed, and the data state track of the substation operation data is generated according to the track nodes and the connection information.
It will be appreciated that, by the description of the above steps S231 to S237, continuity of the data state track can be ensured, and occurrence of faults in the data state track can be avoided.
In the implementation, in order to ensure the accuracy and reliability of the test result, in step S240, the device loss data of the substation is tested to obtain the test result based on the substation operation data and the determined data state track of the substation operation data, which may specifically include the following steps.
And step S241, determining loss coefficients corresponding to the equipment loss data, which are determined based on the substation operation data and the data state track, and weighting the equipment loss data by adopting the loss coefficients to obtain target loss data.
Step S242, for the current loss data in the target loss data, determines an update weight value of the current loss data in the preset period based on a first update frequency of the current loss data in the preset period and a second update frequency of each target loss data in the preset period.
Step S243, determining an updated risk coefficient of the current loss data between two adjacent set time periods according to the updated weight values of the current loss data in the two adjacent preset time period intervals, and carrying out normalization processing on the updated risk coefficient to obtain the test result.
By the above-described contents of step S241 to step S243, the accuracy and reliability of the test result can be ensured.
Referring to fig. 3 in combination, there is provided a data testing apparatus 210 applied to a computer terminal in communication with a substation, the apparatus 210 including:
The data segmentation module 211 is configured to extract a data tag sequence of the substation operation data after collecting the substation operation data stored in real time in the substation, and perform data segmentation processing on the substation operation data based on the data tag sequence to obtain multiple groups of operation parameter segments; the data tag sequence is a sequence formed by equipment tags related to target electric equipment in the substation operation data;
the parameter comparison module 212 is configured to compare each set of operation parameter segments of the substation operation data with each reference parameter segment in a preset parameter set; the preset parameter set stores a plurality of groups of reference parameter segments and parameter weights corresponding to the reference parameter segments, wherein the reference parameter segments are state parameter sets of a power grid area where the target electric equipment is located; wherein if each set of operating parameter segments of the extracted substation operating data comprises a plurality of parameter weights, the comparison is made by: performing multi-level comparison according to priorities configured for the weights of the parameters in advance; in each level of comparison, only one parameter weight in each group of operation parameter segments is used for comparison, and the operation parameter segments meeting the preset conditions are input into a next level of comparison thread so as to be compared based on the next parameter weight;
The track determining module 213 is configured to determine a data state track of the substation operation data according to a parameter feature corresponding to a target operation parameter segment of the substation state stability condition according to a comparison result of the substation operation data;
the data testing module 214 is configured to test the equipment loss data of the substation based on the substation operation data and the determined data state track of the substation operation data to obtain a test result; the test result is used for representing the probability of faults of the transformer substation in a set period.
Optionally, the data segmentation module 211 is configured to:
listing data tags in the substation operation data, determining tag weights of the data tags, and sequencing the data tags according to the sequence of the tag weights from high to low to obtain the data tag sequence;
acquiring a sequence track of the data tag sequence and a plurality of data sets of the substation operation data; under the condition that the substation operation data contains redundant data groups according to the sequence track, determining authority contrast between each data set of the substation operation data under the effective data groups and each data set of the substation operation data under the redundant data groups according to the data sets of the substation operation data under the redundant data groups and authority information thereof; adjusting a data set with the minimum authority contrast of the substation operation data under the effective data packet and the data set under the redundant data packet to be under the redundant data packet;
Under the condition that a plurality of data sets are contained in the effective data packet corresponding to the substation operation data, determining authority contrast between the data sets of the substation operation data under the effective data packet according to the data sets of the substation operation data under the redundant data packet and authority information thereof, and splicing the data sets under the effective data packet based on the authority contrast between the data sets; setting adjustment priority for the target data set obtained by splicing according to the data set of the substation operation data under the redundant data packet and the authority information thereof, and adjusting the target data set to a set position of the redundant data packet corresponding to the adjustment priority;
and carrying out segmentation processing on the data set under the effective data packet based on the node attribute of the target node with the segmentation mark corresponding to the sequence track in the data tag sequence to obtain a plurality of groups of operation parameter segments.
Optionally, the track determining module 213 is configured to:
extracting a state evaluation coefficient of the comparison result, and determining a target operation parameter section corresponding to the state evaluation coefficient when the state evaluation coefficient reaches a preset state coefficient of the transformer substation;
Extracting time sequence characteristics of the target operation parameter section according to a set time step;
generating a time sequence form corresponding to the time sequence feature and a parameter form corresponding to a target operation parameter segment, wherein the time sequence form and the parameter form respectively comprise a plurality of table objects with different form weights;
extracting object attribute information of the time sequence feature in one of the table objects of the time sequence table, and determining the table object with the minimum table weight in the parameter table as a reference table object;
mapping the object attribute information into the reference table object to obtain mapping attribute information in the reference table object, and then generating a state switching list between the time sequence feature and the target operation parameter segment based on the object attribute information and the mapping attribute information;
acquiring object track information in the reference table object by taking the mapping attribute information as an information template, mapping the object track information into the table object where the object attribute information is located according to the logic information corresponding to the state switching list, and obtaining mapping track information corresponding to the object track information in the table object where the object attribute information is located;
And listing the track nodes and the connection information in the mapping track information, and generating a data state track of the substation operation data according to the track nodes and the connection information.
Optionally, the data testing module 214 is configured to:
determining loss coefficients corresponding to the equipment loss data, which are determined based on the substation operation data and the data state track, and weighting the equipment loss data by adopting the loss coefficients to obtain target loss data;
determining an update weight value of the current loss data in a preset time period based on a first update frequency of the current loss data in the preset time period and a second update frequency of each target loss data in the preset time period aiming at the current loss data in the target loss data;
and determining an updated risk coefficient of the current loss data between two adjacent set time periods according to updated weight values of the current loss data in two adjacent preset time period intervals, and carrying out normalization processing on the updated risk coefficient to obtain the test result.
On the basis of the above, there is also provided a computer terminal comprising a processor and a memory in communication with each other, the processor being adapted to retrieve a computer program from the memory, the computer program being executed to implement the method as described above.
Further, a computer readable storage medium is provided, on which a computer program is stored, which computer program, when run, implements the above-mentioned method.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.