An AI-based power grid remote command and operation terminal

By establishing a time synchronization consistency perception model in the power grid remote command and operation and maintenance terminal and using blockchain technology to synchronize node timestamps, the problem of inconsistent time synchronization between power grid nodes is solved, the security and stability of the power grid are improved, and the Accuracy and reliability of grid operation.

CN118157331BActive Publication Date: 2024-09-24STATE GRID FUJIAN ELECTRIC POWER CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410582530.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-11
Publication Date
2024-09-24
Estimated Expiration
2044-05-11

Smart Images

  • Figure CN118157331B
    Figure CN118157331B
Patent Text Reader

Abstract

The present invention discloses an AI-based power grid remote command and operation terminal, which relates to the technical field of power grid remote command and operation, including a data collection and processing module, a time series alignment module, a node hidden danger perception module, a hidden danger analysis module and a time synchronization module; the data collection and processing module collects the time series data of each node of the power grid, pre-processes the data, and ensures the data quality; the time series alignment module aligns the time series data of each node, that is, unifies the timestamps of each node into the same time interval, and ensures that the data of different nodes are consistent in time. The present invention can identify nodes with hidden dangers of inconsistent time synchronization by intelligently perceiving and evaluating the time synchronization of nodes, and divides them into normal nodes and hidden danger nodes. Further analysis of hidden danger nodes can identify accidental hidden dangers and non-accidental hidden dangers, providing guidance for subsequent processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of remote command and operation and maintenance of power grids, and in particular to an AI-based remote command and operation and maintenance terminal for power grids. Background Art

[0002] The AI-based power grid remote command and operation terminal is a device that uses artificial intelligence technology to achieve remote monitoring, command and operation of the power system. The terminal collects data from various nodes of the power grid, such as current, voltage, load and other information, and uses AI algorithms to analyze and process these data in real time, thereby achieving accurate evaluation and prediction of the power grid operation status. In addition, it can also automatically dispatch, diagnose and handle faults of power grid equipment according to pre-set rules and strategies, thereby improving the stability and reliability of power grid operation.

[0003] The terminal's main functions include remote monitoring of the grid's operating status, intelligent operation and maintenance decision-making, automatic fault identification and emergency response, etc. It can perceive the actual situation of the grid in real time, analyze the data based on AI algorithms, and provide timely and accurate decision-making support to operation and maintenance personnel, helping them to quickly respond to various abnormal situations and fault events. In addition, the AI-based grid remote command and operation and maintenance terminal also has self-learning and optimization capabilities. Over time, it can continuously accumulate experience and optimize algorithms to improve operation and maintenance efficiency and the overall performance of the grid.

[0004] Existing technologies cannot intelligently perceive the inconsistency of time synchronization between various nodes in the power grid. The inconsistency of time synchronization between various nodes in the power grid will have a serious impact on the accurate assessment and prediction of the power grid operation status. The inconsistency of time synchronization will cause the data to be misaligned in time, making it impossible for the power grid remote command and operation terminal to correctly compare and integrate the data of various nodes, thereby affecting the accurate grasp of the overall status of the power grid;

[0005] For example, some node data may be mistakenly interpreted as simultaneous events, or the time sequence of some events may be reversed, which may lead to incorrect fault diagnosis and inaccurate predictions. In serious cases, it may even cause false alarms or miss timely responses to abnormal conditions in the power grid, thus affecting the safe and stable operation of the power grid.

[0006] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention

[0007] The purpose of the present invention is to provide an AI-based power grid remote command and operation and maintenance terminal. By intelligently perceiving and evaluating the time synchronization of nodes and establishing a time synchronization consistency perception model, nodes with hidden dangers of time synchronization inconsistency can be identified and divided into normal nodes and hidden danger nodes. Further analysis of the hidden danger nodes can identify accidental hidden dangers and non-accidental hidden dangers, providing guidance for subsequent processing to solve the problems in the above-mentioned background technology.

[0008] In order to achieve the above-mentioned purpose, the present invention provides the following technical solutions: an AI-based power grid remote command and operation and maintenance terminal, comprising a data collection and processing module, a time series alignment module, a node hidden danger perception module, a hidden danger analysis module and a time synchronization module;

[0009] The data collection and processing module collects time series data from each node of the power grid and pre-processes the data to ensure data quality;

[0010] The time series alignment module aligns the time series data of each node, that is, unifies the timestamps of each node to the same time interval to ensure that the data of different nodes are consistent in time;

[0011] The node hidden danger perception module analyzes the periodic characteristics of each node data, calculates the data correlation coefficient between each node, and compares the data differences between different nodes, comprehensively judges the time synchronization between each node, and divides the nodes into normal nodes and hidden danger nodes;

[0012] The hidden danger analysis module screens out hidden danger nodes, conducts further hidden danger analysis, and divides hidden dangers into accidental hidden dangers and non-accidental hidden dangers;

[0013] The time synchronization module uses blockchain technology to record the node timestamp on the blockchain for nodes with non-accidental hidden dangers, and realizes time synchronization through the blockchain network.

[0014] Preferably, the steps of aligning the time series data of each node of the power grid are as follows:

[0015] Determine a uniform time interval as a benchmark for alignment;

[0016] Preprocess the time series data of each node;

[0017] Select a starting time point as the alignment starting point, which is the initial timestamp in all node data;

[0018] According to the uniform time interval, the data of each node is interpolated or truncated so that the data points of each node are evenly distributed within the uniform time interval;

[0019] Generate a unified time series for each node based on the unified time interval and aligned data.

[0020] Preferably, the periodic characteristics of the data of each node are analyzed to generate a node data periodicity index, the data correlation coefficient between each node is calculated to generate a node data correlation coefficient, and the data difference between different nodes is compared to generate a node data difference index.

[0021] Preferably, the logic for obtaining the node data periodicity index is as follows:

[0022] Perform Fourier transform on the node data to convert the time domain data into frequency domain data. Assume that the node data is , whose Fourier transform is: ,in, is the complex number representation in the frequency domain, f is the frequency, is an imaginary unit;

[0023] Calculate the power spectral density of frequency domain data based on the frequency domain data obtained by Fourier transform , power spectral density Indicates the frequency f The signal energy at The calculation formula is: ;

[0024] The average value of the power spectrum density within a certain frequency range is selected as the node data periodicity index. Let the selected frequency range be , then the calculation formula of the node data periodicity index is: ,in, and are the lower and upper limits of the frequency range, is the node data periodicity index.

[0025] Preferably, the logic for obtaining the node data correlation coefficient is as follows:

[0026] First, calculate the mean of each node data, assuming that the node X The data is ,node Y The data is , then the node X and nodes Y The means are: , ,in, and Respectively represent nodes X and nodes Y In the i The data value at a time point;

[0027] Calculate the covariance of node data to indicate whether the changing trend of node data is consistent. The calculation formula is: ;

[0028] Calculate the standard deviation of node data to measure the degree of data fluctuation. X and nodes Y The standard deviations are: , ;

[0029] The node data correlation coefficient is expressed by the Pearson correlation coefficient of the node data calculated using the covariance and standard deviation. The calculation formula of the node data correlation coefficient is: , where is the node data correlation coefficient.

[0030] Preferably, the logic for obtaining the node data difference index is as follows:

[0031] Step 1. Select k Mean clustering algorithm, based on clustering characteristics, represents node data as feature vectors;

[0032] Step 2: Random Selection k nodes as the initial cluster centers, k is the preset number of clusters;

[0033] Step 3: For each node, calculate the distance between each node and each cluster center using the Euclidean distance expression;

[0034] Step 4: Assign each node to the cluster to which the nearest cluster center belongs;

[0035] Step 5: For each node in each cluster, recalculate the cluster center of the cluster;

[0036] Step 6: Iterate the node allocation and cluster center update until the cluster center no longer changes or reaches a preset number of iterations;

[0037] Step 7: Calculate the node data difference index. Use the average value of the average distance between each node in the cluster and its corresponding cluster center to represent the node data difference index. The specific calculation formula is: ,in, is the node data difference index, k is the number of clusters, It is j Clusters, It is a cluster The number of nodes in It is a cluster The cluster center of Is a node m With cluster center The distance between.

[0038] Preferably, the node data periodicity index generated when each node is running , node data correlation coefficient And the node data difference index Then, through the node data periodicity index , node data correlation coefficient And the node data difference index Establish a node time synchronization consistency perception model and generate a time synchronization evaluation index , by time synchronization evaluation index Intelligently perceive the time synchronization consistency risks of nodes.

[0039] Preferably, the time synchronization evaluation index generated during the operation of each node is compared and analyzed with a pre-set time synchronization evaluation index reference threshold. If the time synchronization evaluation index is greater than or equal to the time synchronization evaluation index reference threshold, the corresponding node is marked as a normal node. If the time synchronization evaluation index is less than the time synchronization evaluation index reference threshold, the corresponding node is marked as a potential danger node.

[0040] Preferably, several time synchronization evaluation indexes subsequently generated by the hidden danger node are obtained to establish an analysis set, and the time synchronization evaluation mean value and the time synchronization evaluation standard deviation are calculated by analyzing the time synchronization evaluation indexes in the set, and the time synchronization evaluation mean value and the time synchronization evaluation standard deviation are respectively compared and analyzed with the pre-set time synchronization evaluation reference threshold and the standard deviation reference threshold. If the time synchronization evaluation mean value is greater than or equal to the time synchronization evaluation reference threshold and the time synchronization evaluation standard deviation is less than the standard deviation reference threshold, the hidden danger is classified as an accidental hidden danger, and no treatment is performed on the accidental hidden danger. If the time synchronization evaluation mean value is not greater than or equal to the time synchronization evaluation reference threshold and the time synchronization evaluation standard deviation is less than the standard deviation reference threshold, the hidden danger is classified as a non-accidental hidden danger, and the blockchain technology is used to perform the next step of analysis on the non-accidental hidden danger.

[0041] Preferably, the process of realizing node time synchronization using blockchain technology is achieved through the following steps:

[0042] Create a decentralized blockchain network;

[0043] When each grid node collects data, it records the timestamp of data collection together with the data, encapsulates it into a transaction, and submits it to the blockchain network;

[0044] The node broadcasts the generated transaction to other nodes in the blockchain network;

[0045] After receiving the transaction, the nodes in the blockchain network verify the transaction to ensure its validity and correctness;

[0046] Pack verified transactions into blocks and add them to the blockchain, so that each block contains multiple transactions, and each transaction is recorded on the blockchain, forming an immutable data record;

[0047] The nodes in the blockchain network reach recognition of new blocks through a consensus mechanism to ensure that all nodes reach a consistent data state;

[0048] If the time of a certain node deviates from the time on the blockchain, time synchronization can be achieved by updating the local time or adjusting the timestamp to ensure that the node time is consistent with the time in the blockchain network.

[0049] In the above technical solution, the technical effects and advantages provided by the present invention are:

[0050] The present invention establishes a time synchronization consistency perception model through intelligent perception and evaluation of node time synchronization, which can identify nodes with hidden dangers of time synchronization inconsistency and divide them into normal nodes and hidden danger nodes. Further analysis of the hidden danger nodes can identify accidental hidden dangers and non-accidental hidden dangers, providing guidance for subsequent processing.

[0051] The present invention utilizes an intelligent time synchronization evaluation index to classify and process nodes, evaluates and classifies the time synchronization of each node according to a preset time synchronization evaluation reference threshold, and then takes corresponding processing measures. This intelligent processing method can more effectively identify nodes with hidden dangers of time synchronization inconsistency, and take targeted measures to improve the safety and stability of the power grid.

[0052] The present invention uses blockchain technology to record the timestamp of the node to the blockchain, which can ensure the time synchronization between the nodes. As a decentralized distributed ledger, the blockchain has the characteristics of being tamper-proof and distributed consensus, which can effectively prevent the time data from being tampered with or forged. The timestamp of the node is recorded on the blockchain, which can provide a common time standard for each node in the power grid, thereby solving the problem of inconsistent node time synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0054] Figure 1 This is a module schematic diagram of an AI-based power grid remote command and operation and maintenance terminal of the present invention. DETAILED DESCRIPTION

[0055] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that the description of the present disclosure will be more comprehensive and complete, and the concept of the example embodiments will be fully conveyed to those skilled in the art.

[0056] The present invention provides Figure 1 An AI-based power grid remote command and operation terminal is shown, comprising a data collection and processing module, a time series alignment module, a node hidden danger perception module, a hidden danger analysis module and a time synchronization module;

[0057] The data collection and processing module collects time series data from each node of the power grid and pre-processes the data to ensure data quality;

[0058] The time series data of each node in the power grid includes parameters such as current, voltage, and frequency. Data preprocessing includes missing value filling and outlier processing. This method can ensure the accuracy and completeness of the data, thereby ensuring data quality.

[0059] The time series alignment module aligns the time series data of each node, that is, unifies the timestamps of each node to the same time interval to ensure that the data of different nodes are consistent in time;

[0060] The timestamps of each node are unified into the same time interval to facilitate subsequent comparison and analysis.

[0061] The steps to align the time series data of each node in the power grid are as follows:

[0062] Determine a uniform time interval as a benchmark for alignment;

[0063] This time interval should be the minimum time interval for all nodes to collect data to ensure data integrity and consistency. For example, 1 minute, 5 minutes or 10 minutes can be selected as a unified time interval.

[0064] Preprocess the time series data of each node;

[0065] Preprocessing includes filling missing values, processing outliers, etc., to ensure that the data of each node is complete and accurate before alignment.

[0066] Select a starting time point as the alignment starting point, which is the initial timestamp in all node data;

[0067] This ensures that data from all nodes are included in the aligned time series.

[0068] According to the uniform time interval, the data of each node is interpolated or truncated so that the data points of each node are evenly distributed within the uniform time interval;

[0069] If the data collection time interval of a node is greater than the uniform time interval, linear interpolation is performed to fill in the missing data points; if the data collection time interval is less than the uniform time interval, truncation is performed to retain the data points closest to the uniform time interval.

[0070] Interpolation processing refers to estimating the data value between two known data points through mathematical methods based on the relationship between known data points. In the case of time series data alignment, if the data collection time interval of a node is greater than the uniform time interval, interpolation processing can be used to fill in the missing data points. Common interpolation methods include linear interpolation, polynomial interpolation, spline interpolation, etc. These methods can be used to infer the data point values ​​within the uniform time interval based on the trend of known data points to achieve uniform distribution of data.

[0071] Truncation processing means that in the process of aligning time series data, if the data collection time interval of a node is less than the unified time interval, the data of the node needs to be truncated. Specifically, the data points closest to the unified time interval are retained, and the data of other time points are discarded. This ensures that the data points of each node are evenly distributed within the unified time interval to meet the needs of subsequent analysis and processing.

[0072] Generate a unified time series for each node based on the unified time interval and aligned data;

[0073] This ensures that the data of each node is aligned in time for subsequent comparison and analysis.

[0074] The node hidden danger perception module analyzes the periodic characteristics of each node data, calculates the data correlation coefficient between each node, and compares the data differences between different nodes, comprehensively judges the time synchronization between each node, and divides the nodes into normal nodes and hidden danger nodes;

[0075] Analyze the periodic characteristics of each node data to generate the node data periodicity index, calculate the data correlation coefficient between each node to generate the node data correlation coefficient, compare the data differences between different nodes to generate the node data difference index;

[0076] If the periodic characteristics of node data in the power grid become weaker, it usually indicates that there is a hidden danger of inconsistent time synchronization between nodes. The weakening of the periodic characteristics means that the temporal change pattern of the node data is no longer obvious, which may be caused by the asynchronous data collection time. Inconsistent time synchronization will cause the misalignment of data collection time, making the data collected by different nodes no longer aligned in time, which in turn causes the periodic characteristics between the data to weaken. Therefore, when the periodic characteristics of node data become weaker, it may be caused by inconsistent time synchronization.

[0077] The logic for obtaining the node data periodicity index is as follows:

[0078] Perform Fourier transform on the node data to convert the time domain data into frequency domain data. Assume that the node data is , whose Fourier transform is: ,in, is the complex number representation in the frequency domain, f is the frequency, is an imaginary unit;

[0079] Calculate the power spectral density of frequency domain data based on the frequency domain data obtained by Fourier transform , power spectral density Indicates the frequency f The signal energy at The calculation formula is: ;

[0080] The average value of the power spectrum density within a certain frequency range is selected as the node data periodicity index. Let the selected frequency range be , then the calculation formula of the node data periodicity index is: ,in, and are the lower and upper limits of the frequency range, is the node data periodicity index.

[0081] It should be noted that the cyclical index It can reflect the degree of periodicity of the node data within the selected frequency range. If the node data periodicity index is large, it means that the node data has a strong periodic feature within the frequency range; conversely, if the node data periodicity index is small, it means that the node data has a weak periodic feature within the frequency range.

[0082] If there is a weak linear correlation between node data in the power grid, it usually implies that there is a hidden danger of inconsistent time synchronization between nodes. A weak linear correlation means that the data change trends between nodes are not consistent, which may be caused by the asynchronous data collection time, so no obvious linear correlation can be formed. Inconsistent time synchronization will cause the data collection time to be misaligned, so that the data collected by different nodes are no longer aligned in time, which in turn affects the correlation between the data. Therefore, when there is a weak linear correlation between node data, it may be caused by inconsistent time synchronization.

[0083] The logic for obtaining the node data correlation coefficient is as follows:

[0084] First, calculate the mean of each node data, assuming that the node X The data is ,node Y The data is , then the node X and nodes Y The means are: , ,in, and Respectively represent nodes X and nodes Y In the i The data value at a time point;

[0085] Calculate the covariance of node data to indicate whether the changing trend of node data is consistent. The calculation formula is: ;

[0086] Calculate the standard deviation of node data to measure the degree of data fluctuation. X and nodes Y The standard deviations are: , ;

[0087] The node data correlation coefficient is expressed by the Pearson correlation coefficient of the node data calculated using the covariance and standard deviation. The calculation formula of the node data correlation coefficient is: , where is the node data correlation coefficient.

[0088] here, Representation Node X and nodes Y The correlation coefficient ranges from -1 to 1. Close to 1, that is, the node data correlation coefficient If it is close to 1, it means the node X and nodes YThere is a strong positive correlation between them. If it is close to -1, the node data correlation coefficient If it is close to -1, it means there is a strong negative correlation. If it is close to 0, it means the node data correlation coefficient If it is close to 0, it means there is no linear correlation between the two.

[0089] If there is a large difference or heterogeneity in the data between different nodes in the power grid, it usually indicates that there is a hidden danger of inconsistent time synchronization between the nodes. This is because inconsistent time synchronization will cause the misalignment of data collection time, making the data collected by different nodes no longer aligned in time, which in turn affects the consistency and comparability of the data. Therefore, when there is a large difference or heterogeneity between node data, it is likely caused by inconsistent time synchronization between nodes.

[0090] The logic for obtaining the node data difference index is as follows:

[0091] Step 1. Select k Mean clustering algorithm, based on clustering characteristics, represents node data as feature vectors;

[0092] The clustering features can be various attributes of power grid node data, such as current, voltage, load, etc.

[0093] Step 2: Random Selection k nodes as the initial cluster centers, k is the preset number of clusters;

[0094] Step 3: For each node, calculate the distance between each node and each cluster center using the Euclidean distance expression;

[0095] Step 4: Assign each node to the cluster to which the nearest cluster center belongs;

[0096] Step 5: For each node in each cluster, recalculate the cluster center of the cluster;

[0097] The cluster center is usually the average of all nodes in the cluster.

[0098] Step 6: Iterate node allocation and cluster center update (i.e., repeat steps 3-5) until the cluster center no longer changes or reaches a preset number of iterations;

[0099] Step 7: Calculate the node data difference index. Use the average value of the average distance between each node in the cluster and its corresponding cluster center to represent the node data difference index. The specific calculation formula is: ,in, is the node data difference index, k is the number of clusters, It is j Clusters, It is a cluster The number of nodes in It is a cluster The cluster center of Is a node m With cluster center The distance between.

[0100] It should be noted that when the node data difference index is small, it means that the data between the nodes are relatively consistent or similar. This means that in the power grid, there is a high similarity between the data patterns, change trends or characteristics of each node, and the data differences between nodes are small. A small difference index may imply that the power grid operation state is relatively stable, and the power load, current, voltage and other data of each node do not change much or the change patterns are similar, which has a positive impact on the stability and operation efficiency of the power grid;

[0101] When the node data difference index is large, it means that there is a large difference or heterogeneity in the data between different nodes. This means that there are large differences between the nodes in the power grid, and the change patterns or trends of their power load, current, voltage and other data are quite different. A large difference index may imply different operating states, uneven load distribution, different equipment conditions, etc. in the power grid.

[0102] The node data periodicity index generated by each node when it is running , node data correlation coefficient And the node data difference index Then, through the node data periodicity index , node data correlation coefficient And the node data difference index Establish a node time synchronization consistency perception model and generate a time synchronization evaluation index , by time synchronization evaluation index Intelligently perceive the time synchronization consistency risks of nodes.

[0103] The above node time synchronization consistency perception model is not specifically limited here, and can realize the node data periodicity index , node data correlation coefficient And the node data difference index Conduct comprehensive analysis and generate a time synchronization assessment index In order to realize the technical solution of the present invention, the present invention provides a specific implementation method;

[0104] Time Synchronization Evaluation Index The resulting calculation formula is: , where , , They are the node data periodicity index , node data correlation coefficient , Node data difference index The preset scaling factor of , , Both are greater than 0.

[0105] It can be seen from the calculation formula that the larger the node data periodicity index generated when the node is running, the larger the node data correlation coefficient, and the smaller the node data difference index, that is, the larger the performance value of the time synchronization evaluation index generated when the node is running, the smaller the hidden danger of time synchronization inconsistency when the node is running, and vice versa, it indicates that the hidden danger of time synchronization inconsistency when the node is running is greater.

[0106] The time synchronization evaluation index generated by each node during operation is compared and analyzed with the pre-set time synchronization evaluation index reference threshold. If the time synchronization evaluation index is greater than or equal to the time synchronization evaluation index reference threshold, the corresponding node is marked as a normal node. If the time synchronization evaluation index is less than the time synchronization evaluation index reference threshold, the corresponding node is marked as a potential danger node.

[0107] The hidden danger analysis module screens out hidden danger nodes, conducts further hidden danger analysis, and divides hidden dangers into accidental hidden dangers and non-accidental hidden dangers;

[0108] Obtain several time synchronization evaluation indexes subsequently generated by the hidden danger node to establish an analysis set, and calculate the time synchronization evaluation mean value and the time synchronization evaluation standard deviation through the analysis of the time synchronization evaluation index in the set, and compare and analyze the time synchronization evaluation mean value and the time synchronization evaluation standard deviation with the pre-set time synchronization evaluation reference threshold and the standard deviation reference threshold respectively. If the time synchronization evaluation mean value is greater than or equal to the time synchronization evaluation reference threshold and the time synchronization evaluation standard deviation is less than the standard deviation reference threshold, the hidden danger is classified as an accidental hidden danger, and no treatment is performed on the accidental hidden danger. If the time synchronization evaluation mean value is not greater than or equal to the time synchronization evaluation reference threshold and the time synchronization evaluation standard deviation is less than the standard deviation reference threshold, the hidden danger is classified as a non-accidental hidden danger, and the blockchain technology is used to perform the next step of analysis on the non-accidental hidden danger.

[0109] The time synchronization module uses blockchain technology to record the timestamp of the node on the blockchain for nodes with non-accidental hidden dangers, and realizes time synchronization through the blockchain network;

[0110] The process of achieving node time synchronization using blockchain technology is achieved through the following steps:

[0111] Create a decentralized blockchain network;

[0112] A decentralized blockchain network can be a public chain, a private chain, or a consortium chain. Secondly, the decentralized blockchain network created ensures that the blockchain network has a sufficient number of nodes and decentralization to improve the security and stability of the network.

[0113] When each grid node collects data, it records the timestamp of data collection together with the data, encapsulates it into a transaction, and submits it to the blockchain network;

[0114] The node broadcasts the generated transaction to other nodes in the blockchain network;

[0115] These transactions contain the node's timestamp and related data information.

[0116] After receiving the transaction, the nodes in the blockchain network verify the transaction to ensure its validity and correctness;

[0117] Transaction verification may involve verifying node identity, verifying data integrity, etc. The purpose of transaction verification is to ensure that transactions in the blockchain network are valid and correct, thereby maintaining the security and stability of the entire network. Verifying transactions involves verifying node identity and verifying data integrity, which helps prevent malicious nodes or malicious behavior from damaging the network while ensuring the credibility of transactions. Through verification, it can be ensured that only authorized nodes can submit valid transactions, while ensuring that the content of the transaction has not been tampered with during the transmission process, thereby maintaining the reliability and trust of the blockchain network.

[0118] Pack verified transactions into blocks and add them to the blockchain, so that each block contains multiple transactions, and each transaction is recorded on the blockchain, forming an immutable data record;

[0119] The nodes in the blockchain network reach recognition of new blocks through a consensus mechanism to ensure that all nodes reach a consistent data state;

[0120] Common consensus mechanisms include proof of work (PoW), proof of stake (PoS), etc.

[0121] If the time of a certain node deviates from the time on the blockchain, time synchronization can be achieved by updating the local time or adjusting the timestamp to ensure that the node time is consistent with the time in the blockchain network.

[0122] Updating the local time means that the node will actively obtain the latest time information from an external time server or other reliable time source, and apply it to the node's local clock to keep the local time consistent with the time in the blockchain network. This usually involves the node software adjusting or synchronizing the system time to ensure that the time used by the node when performing operations such as transaction verification and data recording is consistent with the time in the entire blockchain network, thereby maintaining the consistency and accuracy of the network.

[0123] Adjusting the timestamp means adjusting the timestamps in transactions or blocks submitted by nodes in the blockchain network to correct possible time deviations. This may be done by coordinating the time between nodes through a consensus algorithm or protocol, or by using a unified time standard when generating transactions or blocks to ensure data consistency. By adjusting the timestamp, the time information recorded in the network can be kept consistent with the actual time, thereby maintaining the time synchronization and accuracy of the blockchain network.

[0124] The present invention establishes a time synchronization consistency perception model through intelligent perception and evaluation of node time synchronization, which can identify nodes with hidden dangers of time synchronization inconsistency and divide them into normal nodes and hidden danger nodes. Further analysis of the hidden danger nodes can identify accidental hidden dangers and non-accidental hidden dangers, providing guidance for subsequent processing.

[0125] The present invention utilizes an intelligent time synchronization evaluation index to classify and process nodes, evaluates and classifies the time synchronization of each node according to a preset time synchronization evaluation reference threshold, and then takes corresponding processing measures. This intelligent processing method can more effectively identify nodes with hidden dangers of time synchronization inconsistency, and take targeted measures to improve the safety and stability of the power grid.

[0126] The present invention uses blockchain technology to record the timestamp of the node to the blockchain, which can ensure the time synchronization between the nodes. As a decentralized distributed ledger, the blockchain has the characteristics of being tamper-proof and distributed consensus, which can effectively prevent the time data from being tampered with or forged. The timestamp of the node is recorded on the blockchain, which can provide a common time standard for each node in the power grid, thereby solving the problem of inconsistent node time synchronization.

[0127] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0128] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0129] The above description is only by way of illustration of certain exemplary embodiments of the present invention. It is undoubted that those skilled in the art can modify the described embodiments in various ways without departing from the spirit and scope of the present invention. Therefore, the above drawings and descriptions are illustrative in nature and should not be construed as limiting the scope of protection of the claims of the present invention.

Claims

1. An AI-based power grid remote command and operation terminal, characterized in that: It includes data collection and processing module, time series alignment module, node hidden danger perception module, hidden danger analysis module and time synchronization module; The data collection and processing module collects time series data from each node of the power grid and pre-processes the data to ensure data quality; The time series alignment module aligns the time series data of each node, that is, unifies the timestamps of each node to the same time interval to ensure that the data of different nodes are consistent in time; The node hidden danger perception module analyzes the periodic characteristics of each node data, calculates the data correlation coefficient between each node, and compares the data differences between different nodes, comprehensively judges the time synchronization between each node, and divides the nodes into normal nodes and hidden danger nodes; Analyze the periodic characteristics of each node data to generate the node data periodicity index, calculate the data correlation coefficient between each node to generate the node data correlation coefficient, compare the data differences between different nodes to generate the node data difference index; The logic for obtaining the node data periodicity index is as follows: Perform Fourier transform on the node data to convert the time domain data into frequency domain data. Assume that the node data is , whose Fourier transform is: ,in, is the complex number representation in the frequency domain, f is the frequency, is an imaginary unit; Calculate the power spectral density of frequency domain data based on the frequency domain data obtained by Fourier transform , power spectral density Indicates the frequency f The signal energy at The calculation formula is: ; The average value of the power spectrum density within a certain frequency range is selected as the node data periodicity index. Let the selected frequency range be , then the calculation formula of the node data periodicity index is: ,in, and are the lower and upper limits of the frequency range, is the node data periodicity index; The logic for obtaining the node data correlation coefficient is as follows: First, calculate the mean of each node data, assuming that the node X The data is ,node Y The data is , then the node X and nodes Y The means are: , ,in, and Respectively represent nodes X and nodes Y In the i The data value at a time point; Calculate the covariance of node data to indicate whether the changing trend of node data is consistent. The calculation formula is: ; Calculate the standard deviation of node data to measure the degree of data fluctuation. X and nodes Y The standard deviations are: , ; The node data correlation coefficient is expressed by the Pearson correlation coefficient of the node data calculated using the covariance and standard deviation. The calculation formula of the node data correlation coefficient is: , where is the node data correlation coefficient; The logic for obtaining the node data difference index is as follows: Step 1. Select k Mean clustering algorithm, based on clustering characteristics, represents node data as feature vectors; Step 2: Random Selection k nodes as the initial cluster centers, k is the preset number of clusters; Step 3: For each node, calculate the distance between each node and each cluster center using the Euclidean distance expression; Step 4: Assign each node to the cluster to which the nearest cluster center belongs; Step 5: For each node in each cluster, recalculate the cluster center of the cluster; Step 6: Iterate the node allocation and cluster center update until the cluster center no longer changes or reaches a preset number of iterations; Step 7: Calculate the node data difference index. Use the average value of the average distance between each node in the cluster and its corresponding cluster center to represent the node data difference index. The specific calculation formula is: ,in, is the node data difference index, k is the number of clusters, It is j Clusters, It is a cluster The number of nodes in It is a cluster The cluster center of Is a node m With cluster center The distance between The hidden danger analysis module screens out hidden danger nodes, conducts further hidden danger analysis, and divides hidden dangers into accidental hidden dangers and non-accidental hidden dangers; The time synchronization module uses blockchain technology to record the node timestamp on the blockchain for nodes with non-accidental hidden dangers, and realizes time synchronization through the blockchain network.

2. According to claim 1, the AI-based power grid remote command and operation terminal is characterized in that: The steps to align the time series data of each node in the power grid are as follows: Determine a uniform time interval as a benchmark for alignment; Preprocess the time series data of each node; Select a starting time point as the alignment starting point, which is the initial timestamp in all node data; According to the uniform time interval, the data of each node is interpolated or truncated so that the data points of each node are evenly distributed within the uniform time interval; Generate a unified time series for each node based on the unified time interval and aligned data.

3. The AI-based power grid remote command and operation terminal according to claim 1 is characterized in that: The node data periodicity index generated by each node when it is running , node data correlation coefficient And the node data difference index Then, through the node data periodicity index , node data correlation coefficient And the node data difference index Establish a node time synchronization consistency perception model and generate a time synchronization evaluation index , by time synchronization evaluation index Intelligently perceive the time synchronization consistency risks of nodes.

4. The AI-based power grid remote command and operation terminal according to claim 3 is characterized in that: The time synchronization evaluation index generated by each node during operation is compared and analyzed with the pre-set time synchronization evaluation index reference threshold. If the time synchronization evaluation index is greater than or equal to the time synchronization evaluation index reference threshold, the corresponding node is marked as a normal node. If the time synchronization evaluation index is less than the time synchronization evaluation index reference threshold, the corresponding node is marked as a potential danger node.

5. The AI-based power grid remote command and operation terminal according to claim 3 is characterized in that: Obtain several time synchronization evaluation indexes subsequently generated by the hidden danger node to establish an analysis set, and calculate the time synchronization evaluation mean value and the time synchronization evaluation standard deviation through the analysis of the time synchronization evaluation index in the set, and compare and analyze the time synchronization evaluation mean value and the time synchronization evaluation standard deviation with the pre-set time synchronization evaluation reference threshold and the standard deviation reference threshold respectively. If the time synchronization evaluation mean value is greater than or equal to the time synchronization evaluation reference threshold and the time synchronization evaluation standard deviation is less than the standard deviation reference threshold, the hidden danger is classified as an accidental hidden danger, and no treatment is performed on the accidental hidden danger. If the time synchronization evaluation mean value is not greater than or equal to the time synchronization evaluation reference threshold and the time synchronization evaluation standard deviation is less than the standard deviation reference threshold, the hidden danger is classified as a non-accidental hidden danger, and the blockchain technology is used to perform the next step of analysis on the non-accidental hidden danger.

6. The AI-based power grid remote command and operation terminal according to claim 1, characterized in that: The process of achieving node time synchronization using blockchain technology is achieved through the following steps: Create a decentralized blockchain network; When each grid node collects data, it records the timestamp of data collection together with the data, encapsulates it into a transaction, and submits it to the blockchain network; The node broadcasts the generated transaction to other nodes in the blockchain network; After receiving the transaction, the nodes in the blockchain network verify the transaction to ensure its validity and correctness; Pack verified transactions into blocks and add them to the blockchain, so that each block contains multiple transactions, and each transaction is recorded on the blockchain, forming an immutable data record; The nodes in the blockchain network reach recognition of new blocks through a consensus mechanism to ensure that all nodes reach a consistent data state; If the time of a certain node deviates from the time on the blockchain, time synchronization can be achieved by updating the local time or adjusting the timestamp to ensure that the node time is consistent with the time in the blockchain network.