Power supply reliability information checking method based on block chain
By comparing the power supply reliability data in the preliminary checksum hash value, and using a distributed timestamp network to generate verification hash value during the data rolling process, the problem that data may be tampered with before rolling is solved, and effective monitoring and marking of integrity and consistency during the data transmission process is achieved.
Patent Information
- Application Number
- CN202510038531.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2045-01-10
AI Technical Summary
When using blockchain technology to verify data, the prior art cannot effectively prevent data from being maliciously tampered before being put on the chain, and the delayed transmission of data may lead to the inability to guarantee data integrity and accuracy.
By splitting the power supply reliability data into four data segments and performing preliminary verification before the data is on the chain, a preliminary verification hash value is generated. If there is a delay in the data rolling process, the verification hash value is regenerated using the distributed timestamp network, and the preliminary verification hash value is compared with the verification hash value, mark the data segment as "suspicious" and generate a list of doubtful data.
Effectively identify and mark data segments that have been tampered with or damaged during transmission, reducing the risk of tampering or damage caused by delays in data rolling, and providing a reliable basis for subsequent data review and problem tracking.
Smart Images

Figure CN120067611A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information verification, and particularly to a method for verifying power supply reliability information based on blockchain. Background Art
[0002] According to the requirements of power reliability data management, the reporting and submission of power supply reliability data must be "timely, accurate, and complete". In the processes of collecting, reporting, and checking power supply reliability-related data, problems such as data leakage, tampering, and lack of integrity are likely to occur. The province-side power outage information data is automatically judged by the system to generate power outage event data, and then after manual confirmation or supplementation, reliability data is formed. The power outage events and reliability data are reported to the headquarters power quality online monitoring system by the province-side power grid resource business middle platform every day. In the current business confirmation process, manual participation is required and there are problems such as a large number of times of supplementary collection of business data. The headquarters needs to invest a lot of energy in confirmation and verification, and the management process needs to be optimized.
[0003] In the prior art, blockchain technology is often used to solve the problem of preventing data tampering. However, blockchain technology can only ensure that the data cannot be tampered with after it is uploaded to the blockchain. However, there may be a delay in the process before the data is uploaded to the blockchain. Then, during this delay process, the data may be maliciously tampered with, and there is still a risk of being maliciously modified before the data is uploaded to other business platforms. Summary of the Invention
[0004] The purpose of the present invention is to provide a method for verifying power supply reliability information based on blockchain to solve the problems raised in the above background art.
[0005] The present invention is realized through the following technical solutions:
[0006] A method for verifying power supply reliability information based on blockchain, the method comprising:
[0007] Step 1: Obtain multiple power supply reliability data in real time, and split the power supply reliability data into four data segments, including 95598 power outage information, line segment integrity information, real-time power outage event information, and switch position change information respectively. Before the power supply reliability data is sent to the blockchain, first perform a preliminary verification on the content integrity and accuracy of the four data segments.
[0008] After the preliminary verification is passed, generate corresponding preliminary verification hash values respectively, and upload the power supply reliability data to the blockchain to detect whether there is a delay in the process of uploading the data.
[0009] Step 3: Construct a distributed timestamp network. If there is a delay, regenerate a verification hash value for each data segment according to the distributed timestamp network. Compare the respectively generated preliminary verification hash values with the respectively generated verification hash values. If the hash value of a certain data segment does not match, mark this data segment as "suspicious" and generate a list report of suspicious data.
[0010] Specifically, the specific process of the preliminary verification of the power supply reliability data in Step 1 includes:
[0011] Content integrity verification: Ensure that all necessary data fields have been collected completely and there are no omissions.
[0012] Accuracy verification:
[0013] Preliminary verification of 95598 power outage information: Conduct a logical check on the collected data to verify the rationality of the data, including that the time of the power outage event cannot be earlier than the timestamp of data collection. By comparing user feedback with system records, ensure the consistency and accuracy of the information.
[0014] Preliminary verification of line segment integrity: Conduct a detailed check on the integrity data provided by the line monitoring equipment to ensure that there is no missing fault information, and compare it with historical data to confirm whether the change in the line state meets expectations.
[0015] Preliminary verification of real-time power outage events: Analyze the real-time power outage event data to determine whether there are abnormal situations, including multiple power outage events occurring within a short period of time or abnormal expansion of the power outage scope.
[0016] Preliminary verification of switch position changes: Analyze the switch position change information to ensure that the change in the switch state conforms to the predetermined operation specifications, and compare it with historical data to confirm the normal operation state of the equipment.
[0017] Specifically, the specific process of whether there is a delay in the process of uploading the detection data in Step 2 includes:
[0018] Use the random forest algorithm to train the historical delay data and establish a delay prediction model. The delay prediction model takes multi-dimensional monitoring indicators as input features to predict the future delay trend. The multi-dimensional monitoring indicators include the timestamp before uploading, network bandwidth, packet loss rate, and network delay.
[0019] Set a benchmark delay threshold in the delay prediction model. According to the prediction results, dynamically adjust the delay threshold to reduce false alarms. At the same time, calculate the data upload time. When the data upload time is greater than the delay threshold, this data is marked as "delayed data".
[0020] Specifically, the dynamic adjustment of the delay threshold specifically includes:
[0021] Increasing the delay threshold: If the predicted delay of the model exceeds the benchmark delay threshold three times consecutively within a certain time period, the threshold is increased by 10% or 20% to adapt to the current network condition;
[0022] Decreasing the delay threshold: If the predicted delay of the model is lower than the benchmark delay threshold three times consecutively within a certain time period, the threshold is decreased by 10% or 20% to adapt to the current network condition.
[0023] Specifically, the calculation of the data upload time is specifically the difference between the timestamp when the data is stored in the blockchain after preliminary verification and the timestamp when the data upload is completed. When this difference is greater than the delay threshold, the data is marked with a delay.
[0024] Specifically, the construction of the distributed timestamp network includes:
[0025] A timestamp generation module, which is used to generate unique timestamps for four data segments during the delay period. The generated timestamps will be transmitted to the time verification module for verification to ensure the validity and accuracy of the timestamps;
[0026] A time verification module, which is used to verify the generated timestamps to ensure that they are within a reasonable range and consistent with the data content. After successful verification, the timestamps and data will be transmitted to the time series chain module for recording. If the verification fails, the data will be marked as invalid and prevented from entering the subsequent process;
[0027] A time series chain module, which is used to organize all the verified timestamps and data segments into a time series chain, and generate corresponding verification hash values according to the received data segments and their corresponding timestamp information. When generating the verification hash values, an encryption hash algorithm is used to encrypt the verification hash values generated for each data segment;
[0028] A temporary storage module; which is used to temporarily store the data segments in a dedicated blockchain network during the upload process. This network adopts a hierarchical storage mechanism to perform multiple encryption and sharding storage on the data;
[0029] An anomaly detection module: which is used to compare the preliminary verification hash values of the four data segments with the corresponding verification hash values in the time series chain respectively. If there is a mismatch in the hash value of a certain data segment, the data segment is marked as "suspicious", and a list report of suspicious data is generated.
[0030] Specifically, the content of the list of suspicious data specifically includes: the upload delay time, the content of the suspicious data segment, and the timestamp information.
[0031] Compared with the prior art, the beneficial effects achieved by the present invention are as follows:
[0032] A power supply reliability information verification method based on blockchain provided by the present invention divides power supply reliability data into four data segments, compares the preliminary verification hash value of the data segment with a delayed blockchain upload with the verification hash value. If the hash values do not match, the data segment is marked as "suspicious", and a list report of suspicious data is generated, providing a basis for subsequent data review and problem tracking. This verification method avoids the risk that data is tampered with or damaged without being detected after a delay occurs during the process of uploading data to the blockchain. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only the preferred embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0034] Figure 1 It is a flowchart of a power supply reliability information verification method based on blockchain provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0035] In order to make the objectives, technical solutions, and advantages of the present invention more obvious, the exemplary embodiments according to the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments of the present invention. It should be understood that the present invention is not limited to the exemplary embodiments described herein. Based on the embodiments of the present invention described herein, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.
[0036] In the following description, numerous specific details are given to provide a more thorough understanding of the present invention. However, it is obvious to those skilled in the art that the present invention can be implemented without one or more of these details. In other examples, some technical features well known to those skilled in the art are not described to avoid confusion with the present invention.
[0037] It should be understood that the present invention can be implemented in different forms and should not be construed as limited to the embodiments presented herein. On the contrary, providing these embodiments will make the disclosure thorough and complete, and will fully convey the scope of the present invention to those skilled in the art.
[0038] The purpose of the terms used herein is only to describe specific embodiments and is not a limitation of the present invention. As used herein, the singular forms "a", "an" and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms "comprising" and / or "including", when used in this specification, identify the presence of the stated features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups. As used herein, the term "and / or" includes any and all combinations of the related listed items.
[0039] To thoroughly understand the present invention, detailed structures will be presented in the following description to illustrate the technical solutions proposed by the present invention. The alternative embodiments of the present invention are described in detail below. However, in addition to these detailed descriptions, the present invention may also have other embodiments.
[0040] See Figure 1 , a method for verifying power supply reliability information based on blockchain, the method comprising:
[0041] Step 1: Obtain multiple power supply reliability data in real time, and split the power supply reliability data into four data segments, including 95598 power outage information, line segment integrity information, real-time power outage event information, and switch position change information respectively. Before the power supply reliability data is sent to the blockchain, preliminarily verify the content integrity and accuracy of the four data segments.
[0042] Step 2: After the preliminary verification passes, generate corresponding preliminary verification hash values respectively, and upload the power supply reliability data to the blockchain to detect whether there is any delay during the uploading process.
[0043] Step 3: Construct a distributed timestamp network. If there is a delay, regenerate a verification hash value for each data segment according to the distributed timestamp network, and compare the respectively generated preliminary verification hash values with the respectively generated preliminary verification hash values. If the hash values of a certain data segment do not match, mark the data segment as "suspicious" and generate a list report of suspicious data.
[0044] Exemplarily, a power supply reliability information verification method based on blockchain provided by the present invention collects power supply reliability data in real time through step 1, and splits it into four data segments: 95598 power outage information, line segment integrity information, real-time power outage event information, and switch position change information. These data segments represent different power supply reliability indicators respectively, ensuring multi-dimensional coverage of the data; perform preliminary verification on them to identify potential errors or inconsistencies, and avoid unqualified data from being uploaded to the blockchain. Through step 2, the power supply reliability data and its preliminary verification hash value are uploaded to the blockchain to form an immutable record, ensuring the traceability of the data. The characteristics of the blockchain make it impossible to modify or delete the data once it is uploaded to the blockchain. Monitor the delay of data transmission during the uploading process, and upload the data segments for evidence preservation regardless of whether there is a delay; if a delay is detected, extract the power supply reliability data and send it to the distributed timestamp network. Through step 3, compare the verification hash value generated by the distributed timestamp network with the preliminary verification hash value. If the hash values do not match, mark the data segment as "suspicious". It can effectively identify changes or damages in the data during transmission. Once a data segment mismatch is found, a list report of suspicious data will be generated, providing detailed records of suspicious data. It provides a basis for subsequent data review and problem tracking, ensuring the transparency and traceability of power supply reliability data.
[0045] Specifically, the specific process of performing preliminary verification on the power supply reliability data in step 1 includes:
[0046] Content integrity verification: Ensure that all necessary data fields have been collected completely and there are no omissions;
[0047] Accuracy verification:
[0048] Preliminary verification of 95598 power outage information: Conduct a logical check on the collected data to verify the rationality of the data, including that the time of the power outage event cannot be earlier than the timestamp of data collection, and ensure the consistency and accuracy of the information by comparing user feedback with system records;
[0049] Preliminary verification of line segment integrity: Conduct a detailed check on the integrity data provided by the line monitoring equipment to ensure that there is no missing fault information, and compare it with historical data to confirm whether the change in the line state meets expectations;
[0050] Preliminary verification of real-time power outage events: Analyze the real-time power outage event data to determine whether there are abnormal situations, including multiple power outage events occurring within a short period of time or abnormal expansion of the power outage scope;
[0051] Preliminary verification of switch position changes: Analyze the switch position change information to ensure that the change in the switch state conforms to the predetermined operation specifications, and compare it with historical data to confirm the normal operation state of the equipment.
[0052] Exemplarily, for each data segment, ensure its consistent format and complete structure, and preprocess the data, such as removing null values, formatting date and time fields, etc., to ensure the accuracy of subsequent hash calculations.
[0053] Example of the structure of the data segment:
[0054] Power outage information for 95598: {"Power outage time": "2024-11-14T03:00:00Z", "Power outage reason": "Equipment failure", "Power outage duration": "2 hours"}
[0055] Line integrity information: {"Line number": "001", "Integrity status": "Normal"}
[0056] Real-time power outage event information: {"Event number": "E001", "Event time": "2024-11-14T03:10:00Z", "Number of affected users": 150}
[0057] Switch position change information: {"Switch number": "SW001", "Position change time": "2024-11-14T03:15:00Z", "Operation status": "Closed"}
[0058] Specifically, the specific process of detecting whether there is a delay in the data during the process of uploading to the blockchain in step 2 includes:
[0059] Use the random forest algorithm to train historical delay data to establish a delay prediction model. The delay prediction model takes multi-dimensional monitoring indicators as input features to predict future delay trends. The multi-dimensional monitoring indicators include the timestamp before uploading to the blockchain, network bandwidth, packet loss rate, and network delay;
[0060] Set a benchmark delay threshold in the delay prediction model. According to the prediction results, dynamically adjust the delay threshold to reduce false alarms. At the same time, calculate the data upload time to the blockchain. When the data upload time is greater than the delay threshold, the data is marked as "delayed data".
[0061] Exemplarily, based on historical data analysis, set an initial benchmark delay threshold, which can be determined based on the mean or median of historical delay data to ensure that alarms are not triggered under normal circumstances.
[0062] For example, if the mean of historical delay data is 100ms and the standard deviation is 20ms, the benchmark threshold can be set to 120ms (the mean plus one standard deviation).
[0063] Specifically, the dynamic adjustment of the delay threshold specifically includes:
[0064] Increase the delay threshold: If the predicted delay by the model exceeds the baseline delay threshold three consecutive times within a certain time period, the threshold will be increased by 10% or 20% to adapt to the current network conditions;
[0065] Decrease the delay threshold: If the predicted delay by the model is lower than the baseline delay threshold three consecutive times within a certain time period, the threshold will be decreased by 10% or 20% to adapt to the current network conditions.
[0066] Exemplarily, during peak periods (such as specific time periods on weekdays) and off-peak periods (such as weekends or holidays), different delay thresholds are set for these two scenarios respectively.
[0067] During peak periods, the threshold can be appropriately increased to reduce false alarms; while during off-peak periods, the threshold can be decreased to ensure timely identification of potential delay problems.
[0068] Specifically, the calculation of the data upload time is specifically the difference between the timestamp when the data is stored in the blockchain after preliminary verification and the timestamp when the data upload is completed. When this difference is greater than the delay threshold, the data is marked as delayed.
[0069] Specifically, the construction of the distributed timestamp network includes:
[0070] A timestamp generation module, which is used to generate unique timestamps for four data segments during the delay period. The generated timestamps will be passed to the time verification module for verification to ensure the validity and accuracy of the timestamps;
[0071] Exemplarily, in the case of detecting a delay, the timestamp generation module generates unique timestamps for four data segments (95598 power outage information, line integrity information, real-time power outage event information, switch position change information). A timestamp is a mark indicating the time when the data is generated or received, ensuring that each data segment has a unique time identifier;
[0072] A time verification module, which is used to verify the generated timestamps to ensure that they are within a reasonable range and consistent with the data content. After successful verification, the timestamps and data will be passed to the time series chain module for recording. If the verification fails, the data will be marked as invalid and prevented from entering the subsequent process;
[0073] A time series chain module, which is used to organize all the verified timestamps and data segments into a time series chain, and generate corresponding verification hash values respectively according to the received data segments and their corresponding timestamp information. When generating the verification hash values, an encryption hash algorithm is used to encrypt the verification hash values generated for each data segment; by organizing the data and timestamps into a time series chain, the order and traceability of the data are ensured. The generated verification hash values provide a basis for subsequent anomaly detection, ensuring the integrity and consistency of the data during transmission.
[0074] A temporary storage module; it is used to temporarily store data segments in a dedicated blockchain network during the process of uploading to the chain. This network adopts a hierarchical storage mechanism to perform multiple encryption and sharding storage on the data;
[0075] Exemplarily, the temporary storage module is used to temporarily store data segments in a dedicated blockchain network during the process of uploading data to the chain. This network adopts a hierarchical storage mechanism to perform multiple encryption and sharding storage on the data to improve the security and access efficiency of the data.
[0076] Anomaly detection module: It is used to compare the preliminary verification hash values of four data segments with the corresponding verification hash values in the time series chain respectively. If there is a mismatch in the hash value of a certain data segment, mark this data segment as "suspicious" and generate a list report of suspicious data, providing a basis for subsequent data review and problem tracking.
[0077] Specifically, the content of the list of suspicious data specifically includes: the time delay for uploading to the chain, the content of the suspicious data segment, and timestamp information.
[0078] Exemplarily, the content of the list of suspicious data is shown as follows:
[0079] The list of suspicious data is shown as follows:
[0080] Data identifier: 95598 Power outage information - 001
[0081] Data content: {"Power outage time": "2024-11-14T03:00:00Z", "Power outage reason": "Equipment failure", "Power outage duration": "2 hours"}
[0082] Timestamp: 2024-11-14T03:45:00Z
[0083] Data source: Power monitoring system
[0084] Preliminary verification hash value: abcdef1234567890
[0085] Hash value in the time series chain: rtcdef1234567890
[0086] Detection Time: 2024-11-14T04:00:00Z
[0087] Data Upload Time to the Chain: 2024-11-14T03:50:00Z
[0088] Network Status: Bandwidth 100Mbps, Latency 50ms, Packet Loss Rate 0.5%
[0089] System Status: Load 75%, Error Log: None
[0090] Exception Type: Hash Value Mismatch
[0091] Analysis of Exception Causes: The data may have been tampered with or damaged during the process of uploading to the chain.
[0092] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.
Claims
1. A power supply reliability information verification method based on blockchain, characterized in that: The method comprises: Step 1: Acquire multiple power supply reliability data in real time, and split the power supply reliability data into four data segments, including 95598 power outage information, line segment integrity information, real-time power outage event information, and switch position information. Before the power supply reliability data is sent to the blockchain, perform a preliminary check on the integrity and accuracy of the content of the four data segments; Step 2: After the preliminary verification is passed, the corresponding preliminary verification hash values are generated respectively, and the power supply reliability data is uploaded to the chain to detect whether there is any delay in the data upload process; Step 3: Build a distributed timestamp network. If there is a delay, regenerate a verification hash value for each data segment based on the distributed timestamp network. Compare the corresponding preliminary verification hash values with the corresponding verification hash values. If the hash values of a data segment do not match, mark the data segment as "suspicious" and generate a suspicious data list report.
2. According to a blockchain-based power supply reliability information verification method according to claim 1, it is characterized in that: The specific process of performing preliminary verification of power supply reliability data in step 1 includes: Content integrity check: Ensure that all required data fields have been fully collected and nothing is missing; Accuracy check: Preliminary verification of 95598 power outage information: Perform logical checks on the collected data to verify the rationality of the data, including that the time of the power outage event must not be earlier than the timestamp of data collection, and ensure the consistency and accuracy of the information by comparing user feedback with system records; Preliminary verification of line segment integrity: Conduct a detailed check on the integrity data provided by the line monitoring equipment to ensure that no fault information is missed, and compare it with historical data to confirm whether the change in line status is in line with expectations; Preliminary verification of real-time power outage events: Analyze real-time power outage event data to determine whether there are any abnormal conditions, including multiple power outage events in a short period of time or abnormal expansion of the power outage range; Preliminary verification of switch position change: Analyze the switch position information to ensure that the change in switch status meets the predetermined operating specifications, and compare it with historical data to confirm the normal operating status of the equipment.
3. According to a blockchain-based power supply reliability information verification method according to claim 2, it is characterized in that: The specific process of detecting whether there is a delay in the data uplink process in step 2 includes: The random forest algorithm is used to train historical delay data and establish a delay prediction model. The delay prediction model uses multi-dimensional monitoring indicators as input features to predict future delay trends. The multi-dimensional monitoring indicators include the timestamp before uploading to the chain, network bandwidth, packet loss rate, and network delay. A benchmark delay threshold is set in the delay prediction model. According to the prediction result, the delay threshold is dynamically adjusted to reduce false alarms. At the same time, the data link time is calculated. When the data link time is greater than the delay threshold, the data is marked as "delayed data".
4. According to a blockchain-based power supply reliability information verification method according to claim 3, it is characterized in that: The dynamically adjusting delay threshold specifically includes: Increase the latency threshold: If the latency predicted by the model exceeds the baseline latency threshold for three consecutive times within a certain period of time, the threshold will be increased by 10% or 20% to adapt to the current network conditions; Lower the latency threshold: If the latency predicted by the model is lower than the baseline latency threshold for three consecutive times within a certain period of time, the threshold will be lowered by 10% or 20% to adapt to the current network conditions.
5. According to a blockchain-based power supply reliability information verification method according to claim 4, it is characterized in that: The time when the data is uploaded to the blockchain is calculated as the difference between the timestamp when the data is stored in the blockchain after preliminary verification and the timestamp when the data is uploaded to the blockchain. When the difference is greater than the delay threshold, the data is marked as delayed.
6. A power supply reliability information verification method based on blockchain according to claim 5, characterized in that: The construction of the distributed timestamp network includes: A timestamp generation module is used to generate unique timestamps for each of the four data segments in the delay period. The generated timestamps will be passed to the time verification module for verification to ensure the validity and accuracy of the timestamps. The time verification module is used to verify the generated timestamp to ensure that it is within a reasonable range and consistent with the data content. After successful verification, the timestamp and data will be passed to the time series chain module for recording. If the verification fails, the data will be marked as invalid, preventing it from entering the subsequent process; The time series chain module is used to organize all verified timestamps and data segments into a time series chain, and generate corresponding verification hash values according to the received data segments and their corresponding timestamp information. When generating the verification hash values, the encrypted hash algorithm is used to encrypt the verification hash values generated for each data segment; Temporary storage module: used to temporarily store data segments in a dedicated blockchain network during the on-chain process. The network adopts a layered storage mechanism to perform multiple encryption and shard storage on the data. Anomaly detection module: used to compare the preliminary verification hash values of the four data segments with the corresponding verification hash values in the time series chain. If the hash value of a data segment does not match, the data segment is marked as "suspicious" and a suspicious data list report is generated.
7. According to a blockchain-based power supply reliability information verification method according to claim 6, it is characterized in that: The content of the suspicious data list specifically includes: chain delay time, suspicious data segment content, and timestamp information.
Citation Information
Patent Citations
Power distribution network power-out and power-recovery supervision method based on multi-source data
CN106992520A
Electric energy metering data processing method and device, computer equipment and storage medium
CN112487042A
Data management method and system based on block chain
CN115391832A
Power transmission line situation awareness method based on digital twinning
CN117590130A
Quadruple Petri network-based block chain data uplink efficiency improvement method
CN117896120A
Cited By
Block chain security verification system and method for data element circulation
CN120257262A
Commercial housing resource information credible evidence storage and management system based on block chain
CN121151039A
Blockchain-based Trusted Storage and Management System for Commercial Housing Information
CN121151039B