Anti-electricity-stealing electronic data extraction fixing method and system for end-to-end verification
Through end-to-end verification and blockchain technology, the problem of data unreliability in the existing anti-power theft model is solved, the accuracy and security of electronic data are achieved, and the quality of legal evidence in anti-power theft cases is improved.
Patent Information
- Application Number
- CN202410960718.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-11
AI Technical Summary
The existing anti-electricity theft model cannot guarantee the accuracy, objectivity, non-tamperability and traceability of electronic data, which has led to judicial authorities and litigation targets questioning the electronic data, affecting the application of anti-electricity theft electronic data in electricity theft cases. .
Adopt anti-electricity theft electronic data extraction fixed methods and systems based on end-to-end verification, ensure the non-modification of data sources through write protection and blockchain technology, perform full-process inspection, supervision and verification, and use hash values, etc. Integrity verification means ensures the accuracy, security, timeliness, consistency and traceability of data.
It improves the effectiveness and reliability of anti-electricity theft electronic data, enhances data security and integrity, supports legal proceedings and case processing of anti-electricity theft cases, and effectively prevents and combats electricity theft.
Smart Images

Figure CN118760694A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of data extraction, and in particular to an end-to-end verified anti-electricity theft electronic data extraction and fixing method and system. Background Art
[0002] In recent years, the traditional anti-electricity theft model that mainly relies on human resources has been unable to adapt to the current anti-electricity theft work needs. With the rapid promotion and application of smart meters and the continuous improvement of marketing informationization and automation levels, power grid companies have accelerated the construction of a digital anti-electricity theft work system.
[0003] The application of electronic data of electric energy metering against electricity theft in the investigation and handling of illegal electricity theft cases is becoming more and more extensive and its role is becoming more and more important. The existing power information system focuses on internal applications in the power industry. In judicial cases such as electricity theft, abnormal metering, and electricity use in violation of regulations, the accuracy, objectivity, non-tamperability, and traceability of electronic data against electricity theft are difficult to guarantee, and judicial organs or litigation objects have questioned the electronic data.
[0004] The fixed method and system for extracting electronic data against electricity theft based on end-to-end verification can not only help improve the reliability of electronic data during the digital transformation and upgrading of the anti-electricity theft business, but also improve the effectiveness of electronic data in the judicial evidence process. Summary of the invention
[0005] The purpose of the present invention is to propose a method and system for extracting and fixing electronic data for anti-electricity theft based on end-to-end verification, realize data integration by using write protection, control the data source from the source end, ensure that the source is clear and the original data cannot be modified, perform full-process inspection, supervision, confirmation, and verification, and use an on-chain and off-chain data collaboration mechanism based on smart contracts. While storing data on the blockchain, the collaborative database also stores corresponding data backups, and meets the needs of digital verification through integrity verification methods such as hash values, ensuring data accuracy, security, timeliness, consistency, integrity, and traceability, further improving the effectiveness of anti-electricity theft electronic data, serving the legal proceedings and case handling of anti-electricity theft cases, and effectively preventing and combating electricity theft.
[0006] To achieve the above object, the technical solution of the present invention is: In a first aspect, the present invention provides a method for extracting and fixing electronic data for anti-electricity theft based on end-to-end verification, which specifically includes the following steps: Step 1: Start the whole process of electronic data forensics solidification record: The solidification record is realized by means of log generation technology, screen recording, screenshot, and electronic signature based on the automatic recording of common computer system operation steps; Step 2: Comprehensive inspection of the system environment: including the execution of the security check of the evidence collection environment, the cleanliness test of the evidence collection environment, and the consistency check of the evidence collection time; and finally generate a list of inspection records, generate an initial hash value, and upload it to the system database and the online blockchain system; the system database is a fixed supporting database for the extraction of anti-electricity theft electronic data based on end-to-end verification in this application, which is composed of an IPFS distributed file system and a MySQL relational database, or is a special database of anti-electricity theft electronic data of the data center of the State Grid affiliated unit; the online blockchain system refers to the State Grid chain and its slave chains; Step 3: Execute multi-source heterogeneous data integration of on-site imaging equipment and power information systems, and simultaneously integrate the timing center system, the State Grid chain, and the judicial evidence preservation system. Generate a data collection list for the power information system and on-site imaging equipment, generate an initial hash value, and upload it to the system database and online blockchain system; the power information system includes a marketing business system, a power consumption information collection system, an integrated line loss management system, and an anti-electricity theft inspection and monitoring system. The judicial evidence preservation system reserves a data transmission interface, which can be connected to the Tianping Chain and the People's Court Electronic Evidence Platform according to business needs; Step 4: Based on the data collection list generated in step 3, identify the electronic data of electricity theft, as well as the original data and analysis data, to determine the data to be extracted and generate an identification list of electricity theft data, generate an initial hash value, and package and upload it to the system database and online blockchain system; the data to be extracted is divided into static data or dynamic data to select the data extraction method; the electronic data of electricity theft is divided into data recorded by on-site inspection and data recorded by the power information system that can reflect the fact of electricity theft according to its source; Step 5: Perform secondary fixation of electronic data forensics: After using intelligent labeling technology to automatically generate regular file names and descriptive labels for the anti-electricity theft electronic data, perform secondary fixation and upload it to the system database and online blockchain system; the anti-electricity theft electronic data includes an inspection record list, a data collection list, an electricity theft data identification list, a target data package, and screen recordings, screenshots, and log files; Step 6: Based on the electricity theft data identification list, use bit-for-bit one-way copy technology to make lossless copies of the target data packets, upload the anti-electricity theft electronic data synchronously through multiple channels and store them in parallel on multiple blockchain nodes to achieve timeliness and integrity of data transmission, and use verification technology to compare and verify the integrity and consistency of the process lists, record files, and target data packets generated by steps one to five, to complete the automated anti-electricity theft electronic data in the online blockchain system or judicial evidence preservation system. Trustworthy evidence storage and preservation.
[0007] Preferably, the initial hash values in step 2, step 3 and step 4 are generated using any one of the hash algorithms including MD5, SHA1 and CRC32.
[0008] Preferably, the log generation technology is used to automatically record the steps of performing forensic operations on the forensic computer operating system, and to identify abnormal states or key events in the log by converting the generated log data into a standardized log format, wherein the abnormal states or key events include abnormal web page jumps and abnormal interruptions in data transmission; The screen recording is used to completely record the entire process of the forensic computer from the start of forensics to the storage and archiving of forensics in the system database and online blockchain; The screenshot supports manual screenshots and automatic screenshots of important nodes, including the initial state of the forensic environment, the data integration interface, and the hash value calculation page; The electronic signature is used to authenticate the identity of the evidence collection operator, and to perform an electronic signature with a timestamp on the anti-electricity theft electronic data in the evidence collection process through a predefined signature format.
[0009] Preferably, the security check of the evidence collection environment includes checking the version of the evidence collection computer operating system, virus detection, programs and processes, hosts files, local area network settings, and proxy settings; The cleanliness detection of the forensic environment is specifically to detect whether the forensic computer browser and the power information system client cache have been cleaned, including Internet browsing history, temporary files, domain name mapping, cookies, and form data; The forensic time consistency check includes checking whether the computer operating system time, browser and power information system client page display time, system time, and screen recording and video recording watermark time are consistent; The inspection record list includes the inspector, inspection time, inspection items, and inspection result information.
[0010] Preferably, the multi-source heterogeneous data integration is implemented through a write protection device interface and a write protection standard interface, and only supports data query, browsing, copy and extraction operations, and cannot add, modify, or delete operations on the source data content; wherein, the field imaging equipment is integrated through a write protection device interface; the power information system is integrated through a write protection standard interface; the write protection standard interface is a set of protocols or specifications for controlling write permissions to specific data or resources at the software or hardware level, which can be applied to operating systems, file systems, hardware devices and other scenarios, and only supports data query, browsing, copy and extraction operations, and cannot add, modify, or delete operations on the source data content; The data collection list includes integrated power information system information, source tables, intermediate tables, fields, data items, data dictionary information, audio and video and information recorded by on-site imaging equipment. The power information system information includes the system name, source department, domain name, IP corresponding to the domain name, MAC address, and database.
[0011] Preferably, the electronic data on electricity theft is derived from data recorded during on-site inspections and data recorded in the power information system, and the types of electricity theft are identified by referring to the power supply business rules, the State Grid Corporation of China's anti-electricity theft management measures, and the standards and specifications for extracting and fixing electronic data on anti-electricity theft; The raw data includes current and voltage data, curve data, and event record data; The analysis data is a data set obtained after statistical analysis or model calculation analysis, including line loss in the substation area, power consumption, deviation of power consumption behavior, list of suspected power theft customers, time of power theft, and amount of power theft data. The identified analysis data is automatically drilled to obtain information including data calculation principle or algorithm model principle, original data source and composition, and corresponding data dictionary; The electronic data of electricity theft and the drilled information are taken as the data to be extracted, and an electricity theft data identification list is generated. The electricity theft data identification list includes a list of electricity theft suspects, archival information of electricity theft personnel, original data related to on-site inspection information, analysis data related to electricity theft suspicion, electricity theft time, and electricity theft amount, and a data dictionary.
[0012] Preferably, the method of automatically generating regular file names and descriptive tags using intelligent tagging technology is specifically an intelligent tagging technology that generates tags using metadata of data; the metadata includes timestamp, object, and source; The secondary fixation is to calculate the feature summary or hash value using one or more algorithms, and generate a hash sequence in combination with the auxiliary feature attributes read from the pre-configuration file to complete the secondary fixation; the multiple algorithms include MD5, SHA1, and CRC32 algorithms, and the auxiliary feature attributes include generation time, source, location, personnel, and authentication password.
[0013] Preferably, the bit-to-bit unidirectional lossless replication is implemented using technologies including snapshot technology, mirror backup, incremental replication, and differential replication, wherein the snapshot technology is used for static data and the incremental replication is used for dynamic data; The multi-channel synchronous upload and multi-blockchain node parallel storage use Docker / Docker Compose container technology to achieve flexible deployment of nodes in different network environments, including local area networks, wide area networks, and servers, hosts or terminal devices that meet performance requirements. The multi-node structure supports distributed parallel processing. Each node can independently perform data verification, storage and consensus tasks. The Etcdraft consensus algorithm is used to achieve fast sorting and block consensus, and adapt to large-scale multi-node network environments; the data source is divided into a master channel and a slave channel, and multi-master replication or peer-to-peer replication data synchronization technology is used to maintain the consistency of data between different nodes; The data integrity and consistency comparison and verification specifically utilizes verification technologies including smart contracts, digital signatures, and hash verification to perform comparison and verification on multiple aspects of data before and after fixation, transmission, and storage, including time attributes, device attributes, file attributes, operation steps, coding attributes, and hash values.
[0014] In a second aspect, the present invention provides an anti-electricity theft electronic data extraction and fixation system based on end-to-end verification, the system is implemented by the above-mentioned anti-electricity theft electronic data extraction and fixation method based on end-to-end verification, including a data integration module and a data forensics module: The data integration module includes a write protection device interface, a write protection standard interface, a real-time query unit, a query manager, a data extraction unit, and a data block upload unit to realize data query, extraction, and block upload; the field imaging equipment and the power information system are integrated in the write protection mode, and the power information system includes a marketing business system, a power consumption information collection system, an integrated line loss management system, and an anti-theft power inspection and monitoring system; The data evidence collection module includes a data environment inspection unit, a data identification and acquisition unit, a data solidification and recording unit, and a data evidence preservation unit; The data environment inspection unit supports system security and cleanliness inspection and recording, and completes security inspection, cleanliness inspection, and time verification; The data identification and acquisition unit includes intelligent collection function, data classification function, and data identification function, and supports identification and acquisition of electronic data such as power information system, video and audio recording; The data solidification recording unit includes solidification recording tools, log record generation function, verification calculation tools, and automatic naming and labeling functions. It provides solidification functions including screen recording, screenshots, electronic signatures, and log records. It supports the extraction and generation of system logs, metering equipment logs, and application logs. It supports automatic screenshots and signature confirmation reminders for important nodes, and automatic renaming and labeling of files. The data notarization and preservation unit includes data replication, data transmission and data storage functions. It supports the use of mirror replication technology to losslessly replicate and calculate information such as feature summaries or hash values. Through multi-channel parallelism and distributed storage of blockchain nodes, it uses smart contracts to automatically verify the consistency and integrity of data.
[0015] Preferably, the data integration module also integrates the timing center system, the state grid chain, and the judicial evidence preservation system-related data services; so that the data generated by the data integration module, the data forensics module and its affiliated functional units can establish connections with the state grid chain and the third-party judicial chain for real-time data synchronization.
[0016] Compared with the prior art, the present invention has the following beneficial effects: The present invention provides a comprehensive and systematic electronic data forensics solution, which helps to strictly control the three key links of anti-electricity theft electronic data forensics, namely, pre-regulation, in-process recording, and post-event tracking. It can realize the complete full-cycle management of anti-electricity theft electronic data forensics and ensure that each link is trustworthy and cannot be tampered with.
[0017] The present invention realizes integrated innovation in the anti-electricity theft work in the power industry in terms of technical implementation, data management, business application and other aspects, which is helpful to further promote the digital transformation of the anti-electricity theft business in the power industry. The method proposes to use data integration write protection standardized interface and blockchain technology to ensure the clarity of data sources and the unmodifiability of original data, and improve the accuracy and objectivity of electronic data. By integrating multiple information systems, automatic data collection and processing can be realized, reducing dependence on human resources. Strict inspection, supervision, confirmation and multiple verification mechanisms are implemented in the entire process of data collection, generation, transmission and storage to enhance the security and integrity of data. Advanced technical solutions such as multi-channel parallel, multi-node transmission, and distributed storage are adopted to improve the efficiency and reliability of data transmission and storage. Snapshot technology, mirror backup, incremental replication, differential replication and other technologies are used to achieve lossless replication and secure storage of data to ensure data consistency and integrity. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a functional module diagram of an anti-electricity theft electronic data extraction and fixing system based on end-to-end verification in an embodiment of the present invention; Figure 2 A schematic diagram of a forensic process of an anti-electricity theft electronic data extraction and fixation method based on end-to-end verification in an embodiment of the present invention; Figure 3 The present invention is a flow chart of the method for extracting and fixing electronic data against electricity theft based on end-to-end verification. DETAILED DESCRIPTION
[0019] The technical solution of the present invention is described in detail below in conjunction with the accompanying drawings.
[0020] like Figure 3 The present invention proposes a method for extracting and fixing electronic data for anti-electricity theft based on end-to-end verification, comprising the following steps: Step 1: Solidify the records of the entire evidence collection process (1) Use operation logs, screen recording, screenshots and other methods to record the entire process of evidence collection and key steps, ensure that the process is recorded and the nodes are traceable, and help the judicial process prove the compliance of the evidence collection operation; The log generation technology based on the automatic recording of common computer system operation steps is used to automatically record the steps of performing forensic operations in the forensic computer operating system. By converting the generated log data into a standardized log format, identifying abnormal states or key events in the log, such as abnormal web page jumps, abnormal data transmission interruptions, etc., it helps to quickly discover potential problems or violations and provides a basis for subsequent audits and reviews; Provide screen recording and screenshot methods to solidify the forensic operation records, support timed saving, and screen recording needs to fully record the process from the start of forensics to the storage and archiving of forensics in the system database and online blockchain. Support manual screenshots and automatic screenshots of important nodes, such as automatic screenshots of the initial state of the forensic environment, data integration interface, hash value calculation page, etc. (ii) Provide an electronic signature to solidify the evidence collection operation record. The electronic signature uses a predefined signature format to perform a timestamp electronic signature on the anti-electricity theft electronic data in the evidence collection process based on the identity authentication of the evidence collection operator's login account; the anti-electricity theft electronic data includes an inspection record list, a data collection list, an electricity theft data identification list, a target data packet, and screen recordings, screenshots, and log files.
[0021] Step 2: Comprehensive check of system environment: (1) Perform security checks on the evidence collection environment, including checking the version of the computer's operating system, virus detection, programs and processes, hosts files, local area network settings, proxy settings, and other information; (ii) Perform a cleanliness test on the evidence collection environment to check whether the client cache of the power information system such as the browser, marketing business system, power consumption information collection system, integrated line loss management system and anti-electricity theft inspection and monitoring system of the evidence collection computer has been cleared, including Internet access history, temporary files, domain name mapping, cookies, form data, etc.; (III) Perform forensic time consistency check to check whether the computer operating system time, browser and power information system client page display time, system time, and screen recording and video recording watermark time are consistent. A consistent timeline helps to accurately reconstruct the sequence and duration of judicial events. At the same time, in a distributed system, ensuring the time consistency of different devices and systems is the basis for achieving data synchronization; (IV) Generate an inspection record list containing information such as the inspector, inspection time, inspection items, and inspection results, use hash algorithms such as MD5, SHA1, and CRC32 to generate an initial hash value, and upload it to the system database and online blockchain systems such as the State Grid Chain. The system database is a fixed supporting database for anti-electricity theft electronic data extraction based on end-to-end verification in this application, which is composed of an IPFS distributed file system and a MySQL relational database, or is a special database for anti-electricity theft electronic data in the data center of a unit affiliated to the State Grid; the online blockchain system refers to the State Grid Chain and its slave chains.
[0022] Step 3: Multi-source heterogeneous data integration: (1) Integrate power supply service recorders, video cameras and other on-site inspection imaging equipment through write-protected device interfaces to mirror and copy original audio and video electronic data files; (ii) Adopting a write-protected standard interface to integrate power information systems such as marketing business systems, power consumption information collection systems, integrated line loss management systems, and anti-electricity theft inspection and monitoring systems, providing a real-time query unit for establishing connections with various systems and executing query operations, and using a query manager to process query requests and format query results for output, a data extraction unit for extracting stock data in the system on a regular or on-demand basis, and a data block upload unit for dividing the extracted data into multiple data blocks for the convenience of subsequent data identification, acquisition, transmission, and storage; the write-protected standard interface is a set of protocols or specifications for controlling write permissions to specific data or resources at the software or hardware level, which can be applied to operating systems, file systems, hardware devices, and other scenarios, and only supports data query, browsing, copying, and extraction operations, and cannot add, modify, or delete source data content; (III) Synchronous integration of the time service center system, the national grid chain, and the judicial evidence preservation system. The integrated time service center system helps to automatically perform time verification. Ensuring the time consistency of different devices and systems is the basis for data synchronization. At the same time, a consistent timeline helps to accurately reconstruct the sequence and duration of judicial events. The integration of the national grid chain and the judicial evidence preservation system helps to establish a distributed system based on the national grid chain and form a multi-system credible evidence storage system. The judicial evidence preservation system reserves a data transmission interface, which can be connected to the Tianping Chain and the People's Court Electronic Evidence Platform according to business needs; (IV) Generate a data collection list for the power information system and on-site imaging equipment, including integrated system information (system name, source, domain name, IP address, MAC address, database corresponding to the domain name), source tables, intermediate tables, fields, data items, data dictionaries, and other information, as well as audio and video and information recorded by on-site imaging equipment, generate an initial hash value, and upload it to the system database and online blockchain systems such as the State Grid Chain; Step 4: Identification and extraction of electricity theft data: (I) Based on the data collection list generated in step 3, for the types of electricity theft, refer to the power supply business rules, the State Grid Corporation of China's anti-electricity theft management measures, and the relevant standards and specifications for the extraction and fixation of anti-electricity theft electronic data to intelligently identify and obtain the electronic data on electricity theft in the power industry; the electronic data on electricity theft is divided into data recorded in on-site inspections and data recorded in the power information system that can reflect the fact of electricity theft according to its source; (ii) Identify raw data and analytical data. Raw data include but are not limited to current and voltage data, curve data, event record data, etc. Analytical data include but are not limited to statistical analysis of line loss, power consumption, etc. and deviation of electricity consumption behavior, list of suspected electricity theft customers, determination of electricity theft time, calculation of electricity theft amount, etc., and obtain information on automatic matching of analytical data, statistical calculation principles or algorithm model principles of drill data, source and composition of raw data, corresponding data dictionary, etc.; (III) The electronic data of electricity theft and the information drilled are taken as data to be extracted, and the data to be extracted is distinguished as static data or dynamic data. The most appropriate extraction method is automatically selected according to the static or dynamic characteristics of the data, including multiple extraction methods such as creating a complete copy of static data and capturing real-time data streams by setting thresholds. Static data includes but is not limited to data presented on the front end of the power information system, text, tables, pictures and other visual information, recorded audio and video (on-site inspection photos, videos, call recordings) and other data; dynamic data includes but is not limited to data status data, business data, and analysis data from information systems such as marketing business systems, electricity consumption information collection systems, integrated line loss management systems, and anti-electricity theft inspection and monitoring systems; (IV) Generate an electricity theft data identification list based on the electronic data of electricity theft and the information drilled, which includes a list of electricity theft suspects, archival information of electricity theft personnel, original data related to on-site inspection information, analysis data related to the suspicion of electricity theft, time of electricity theft, and amount of electricity theft, a data dictionary, etc. Generate an initial hash value, and upload it to the system database and online blockchain systems such as the State Grid Chain.
[0023] Step 5: Secondary fixation of evidence records: (I) For target data packets, process lists (inspection record lists, data collection lists, electricity theft data identification lists) and record files (screenshots, screenshots, log files), use the metadata of the data (such as timestamp, object, source, etc.) to generate labels using intelligent labeling technology, automatically generate regular file names and descriptive labels, reflect the subject object, business activities, formation time and other keywords, such as "20240101-SGFJFZxxxxxxxxxx" (province and city use the first letter of Chinese pinyin and capitalize), to facilitate index query; then use multi-algorithm technology to calculate feature summary or hash value and other information, where the feature summary is an irreversible compression mapping algorithm, and the algorithms that can be used include but are not limited to MD5, SHA1, CRC32 algorithm and RSA encryption algorithm, etc., and further read the generation time, source, location, personnel, authentication password and other ancillary feature attributes from the pre-configuration file to generate a hash sequence for secondary fixation; (ii) Upload the corresponding hash sequence in step (i) to the system database and online blockchain synchronously; Step 6: Data credible evidence preservation: (1) Using snapshot technology, mirror backup, incremental replication, differential replication and other technologies to achieve bit-for-bit one-way lossless replication of target data packets, of which snapshot technology is usually applicable to static data, incremental replication is applicable to dynamic data, and mirror backup and differential replication are more common. Mirror backup technology is routinely used to create an exact copy of the source data to the backup storage device, including all files, directory structures and metadata; (II) Multi-channel synchronous upload and multi-blockchain node parallel storage are adopted. The anti-electricity theft electronic data is divided into multiple blocks, and data is uploaded simultaneously through multiple channels. Parallel data processing and transmission are supported to improve the overall system performance. At the same time, node IP, security key certificate and other methods are used to ensure safe transmission. Data is stored on multiple blockchain nodes, which increases data redundancy and reduces the risk of data loss. Real-time synchronization, breakpoint resumption, manual retransmission, and file consistency verification are supported to ensure timely and complete data transmission. Docker / Docker Compose container technology is used to achieve flexible deployment of nodes in different network environments, including local area networks, wide area networks, and servers, hosts or terminal devices that meet performance requirements. The multi-node structure supports distributed parallel processing. Each node can independently perform data verification, storage and consensus tasks. The Etcdraft consensus algorithm is used to achieve fast sorting and block consensus, and adapt to large-scale multi-node network environments. The data source is divided into a master channel and a slave channel, and multi-master replication or peer-to-peer replication data synchronization technology is used to maintain data consistency between different nodes. Data segmentation and transmission ,in is the dataset to be transferred after extraction, is the i-th data block; Data synchronization between nodes: = Number of synchronized nodes / Total number of nodes, which measures the frequency and transmission efficiency of data. Number of synchronized nodes refers to the number of synchronized nodes, and Total number of nodes refers to the total number of all nodes participating in the distributed system. Consensus algorithm decision-making basis: =1 / 2*(Total number of nodes + 1), requiring Majority to reach more than half of the number of nodes; Data consistency check: = ), indicating that all nodes have access to the data block The hash value is agreed upon.
[0024] (III) The process lists, target data packages, and record files generated in steps 1 to 5 above shall be compared and verified from aspects such as time attributes, device attributes, file attributes, operation steps, coding attributes, and hash values using verification technologies such as smart contracts, digital signatures, and hash verification to ensure the consistency and integrity of the data.
[0025] like Figure 2 ,The present invention also proposes an anti-electricity theft electronic data extraction and fixation system based on end-to-end verification, including a data integration module and a data forensics module; The data integration module includes a write protection device interface and a write protection standard interface. It integrates on-site imaging equipment, marketing business systems, electricity consumption information collection systems, integrated line loss management systems, and anti-electricity theft inspection and monitoring system modules; it provides a real-time query unit for establishing connections with various systems and executing query operations, a query manager for processing query requests and formatting query results for output, a data extraction unit for extracting stock data from the system periodically or on demand, and a data block upload unit for dividing the extracted data into multiple data blocks to improve data collection efficiency. It also integrates the relevant data services of the time service center system, the State Grid Chain, and the judicial evidence preservation system. The time service center system is used for time verification to ensure time consistency in each link, and the State Grid Chain and the judicial evidence preservation system are used for subsequent trusted storage of multi-party data; The data forensics module includes a data environment inspection unit, a data identification and acquisition unit, a data solidification and recording unit, and a data evidence preservation unit. The details are as follows: Data environment inspection unit: supports the inspection and recording of electronic environment security and cleanliness, including evidence collection, verifies the time consistency of equipment and systems involved in each link through the timing center system, generates inspection record lists simultaneously, and uploads them to blockchain systems such as the State Grid Chain; Data identification and acquisition unit: Based on the data gathered by the data integration module, it identifies and acquires the electronic data of electricity theft in the power industry. The electronic data of electricity theft is divided into data recorded by on-site inspection and data recorded by the power information system according to its source, including data, text, tables, pictures and other visual information presented by the front end of the power information system and the original data of the system stored in the corresponding source database, electronic data recorded by the metering device, and on-site inspection sound, video, and images recorded by electronic recording equipment. Extract the key attributes and characteristics of the data; through the data classification function, it is used to identify the original data and analysis data, automatically match the analysis data, drill down the data calculation principle or algorithm model principle, the source and composition of the original data, the corresponding data dictionary and other information; through the data identification function, it is used to distinguish whether the data to be extracted is static data or dynamic data, and automatically select the most appropriate extraction method according to the static or dynamic characteristics of the data, involving different extraction methods such as creating a complete copy of the static data and capturing the real-time data stream by setting the threshold; Generate an identification list of electricity theft data and upload it to the blockchain system such as the State Grid Chain at the same time; Data solidification recording unit: Support the use of log generation technology based on common computer system operation steps to automatically record forensic operation steps; design solidification recording tools, provide screen recording, screenshots, electronic signatures and other functions, support timed saving, important node screenshots and operator signature confirmation reminders; design verification calculation tools to calculate feature summaries or hash values and other information; design automatic naming labeling function, support data files and data packets obtained based on anti-electricity theft electronic data forensics, and use intelligent labeling technology to automatically generate regular file names and descriptive labels; Data storage and preservation unit: supports the use of snapshot technology, mirror backup, incremental replication, differential replication and other technologies to achieve bit-for-bit one-way lossless replication; based on the data classification function in the data identification acquisition unit, adopts multi-channel synchronous upload and multi-blockchain node parallel storage, and uses node IP, security key certificate and other methods to ensure safe transmission, supports real-time synchronization, breakpoint resumption, manual retransmission, file consistency verification, to ensure timely and complete data transmission; uses smart contracts, digital signatures and other verification technologies to compare and verify the anti-electricity theft electronic data before and after fixation, transmission, and storage from the aspects of time attributes, equipment attributes, file attributes, operation steps, coding attributes, hash values, etc. to ensure data consistency and integrity.
[0026] The data layer described in this example ( Figure 1The system database and online blockchain system are specifically based on the IPFS distributed file system, MySQL relational database, State Grid Chain and its slave chains, which are used to store data items and data packets such as data collection lists, inspection record lists, electricity theft data identification lists, target data and electronic files. The distributed file system is used to store unstructured data such as videos and pictures generated in the process of electronic data forensics, and the relational database is used to store structured data, cached data and related metadata. The immutable and decentralized characteristics of blockchain are used to provide integrity and traceability guarantees for data, and the automated management of data verification and storage access is achieved through smart contracts. The data sharing interface makes full use of distributed hash tables and version control technology to ensure distributed storage and fast retrieval of files. The accessibility and tamper resistance of data are enhanced by content addressing rather than location addressing.
[0027] The data identification and acquisition unit described in this embodiment classifies and grades the electronic data on electricity theft, distinguishes between original data and analysis data, static data and dynamic data, and also classifies them into first-class evidence, second-class evidence, and third-class evidence according to the level of importance. The above data classification and grading are helpful in determining the priority of data block transmission. The target data described in the present invention mainly includes first-class evidence such as information on the parties involved in the electricity theft, electronic data for calculating the amount of electricity theft, time of electricity theft, description of the method of electricity theft, and images of the on-site inspection and investigation process, marketing business systems, electricity consumption information collection systems, integrated line loss management systems, and anti-electricity theft inspection and monitoring systems. Information system data status data, business data, analysis data, etc. provide effective corroborative support for the first-class evidence materials, such as second-class evidence and third-class evidence.
[0028] The original data includes but is not limited to current and voltage data, curve data, event record data, etc. The analysis data includes but is not limited to statistical analysis of line loss in the substation area, electricity consumption, and deviation of electricity consumption behavior, list of suspected electricity theft customers, determination of electricity theft time, calculation of electricity theft amount, etc. The data sets obtained after model analysis or statistical calculation need to be further extracted, including information such as data calculation principles or algorithm model principles, source and composition of original data, and corresponding data dictionary, and support the automatic creation of data dictionary by extracting metadata and data model information.
[0029] The static data includes but is not limited to data presented on the front end of the power information system, text, tables, pictures and other visual information, recorded audio and video (on-site inspection photos, videos, call recordings), electricity theft reports (95598 work order data, etc.), mobile operation electronic work tickets, original data extracted from sealed metering devices, electricity theft equipment, power-consuming equipment and other detection data, etc., which are extracted in the form of complete copies created by snapshot technology and mirror backup; dynamic data includes but is not limited to data status data, business data, and analysis data from information systems such as marketing business systems, electricity consumption information collection systems, integrated line loss management systems, and anti-electricity theft inspection and monitoring systems. Dynamic data extraction is implemented using technologies such as incremental replication and differential replication, and real-time monitoring agents are deployed to continuously monitor the target data source. An event-driven architecture is adopted. When the data source changes, the data capture operation is activated through the event notification mechanism, and an accurate timestamp is recorded for each captured data item to ensure the timing and integrity of the data.
[0030] This embodiment is based on hash value calculation and verification. Each block contains the hash value H of the data and the hash value P of the previous block, which can be expressed as: , where Hash is the hash function and Data is the data set to be transmitted after extraction. Its representation in the blockchain is: ,in is the hash value of the current block, is the hash value of the previous block, Is the data set of the current block. If the stored hash value is equal to the recalculated hash value, the data remains intact.
[0031] like Figure 2,This flow chart is consistent with the above-mentioned data forensics module. When collecting data forensics, it is necessary to enable log extraction and operation records, and use the screen recording tool to record the entire process, and take screenshots of key nodes and pages, perform system environment checks in sequence, and implement data collection for the integrated system. According to the identified and obtained electronic data of electricity theft, the key attributes and characteristics of the data are extracted, and the original data and analysis data are distinguished. For the analysis data, it is necessary to further obtain the calculation principle of the drill data, the corresponding data dictionary and other information, complete the target data confirmation, and then distinguish the data to be extracted as static data or dynamic data. For static data, a complete copy of the static data is created, and for dynamic data, the real-time data stream is captured by setting thresholds to keep the data updated. The feature summary or hash value is calculated for the process list and target data in combination with the attached feature information, and it is automatically renamed and labeled. Utilize snapshot technology, mirror backup, incremental replication, differential replication and other technologies to achieve bit-to-bit one-way lossless replication, use node IP, security key certificates and other methods to ensure secure transmission, complete multi-channel synchronous upload and multi-blockchain node parallel storage, and use hash sequences for integrity and consistency comparison and verification. If it meets the requirements, it will be archived to the IPFS distributed file system and MySQL relational database according to time, file name, label attributes and other characteristics, and simultaneously uploaded to the State Grid Chain, third-party electronic evidence storage system or judicial evidence preservation system. If it does not meet the requirements, check whether there are abnormal states and operations recorded in the logs and screen recordings, and restart evidence collection according to business needs.
[0032] The above are preferred embodiments of the present invention. Any changes made according to the technical solution of the present invention, as long as the resulting functions do not exceed the scope of the technical solution of the present invention, belong to the protection scope of the present invention.
Claims
1. A method for extracting and fixing electronic data for anti-electricity theft based on end-to-end verification, characterized in that: The specific steps include: Step 1: Start the whole process of electronic data forensics solidification record: The solidification record is realized by means of log generation technology, screen recording, screenshot, and electronic signature based on the automatic recording of common computer system operation steps; Step 2: Comprehensive system environment check: including security check of the evidence collection environment, cleanliness check of the evidence collection environment, and consistency check of the evidence collection time; Finally, a checklist of records is generated, an initial hash value is generated, and the package is uploaded to the system database and online blockchain system; Step 3: Execute multi-source heterogeneous data integration of on-site imaging equipment and power information systems, and simultaneously integrate the timing center system, the State Grid chain, and the judicial evidence preservation system, generate a data collection list for the power information system and on-site imaging equipment, and generate an initial hash value, which is packaged and uploaded to the system database and the online blockchain system; the power information system includes a marketing business system, a power consumption information collection system, an integrated line loss management system, and an anti-electricity theft inspection and monitoring system; Step 4: Based on the data collection list generated in step 3, identify the electronic data of electricity theft, as well as the original data and analysis data, to determine the data to be extracted and generate an electricity theft data identification list, generate an initial hash value, and package and upload it to the system database and online blockchain system; The data to be extracted are divided into static data or dynamic data to select a data extraction method; the electronic data on electricity theft are divided into data recorded by on-site inspection and data recorded by the power information system that can reflect the fact of electricity theft according to their sources; Step 5: Perform secondary fixation of electronic data forensics: After using intelligent labeling technology to automatically generate regular file names and descriptive labels for anti-electricity theft electronic data, perform secondary fixation and upload it to the system database and online blockchain system; The anti-electricity theft electronic data includes an inspection record list, a data collection list, an electricity theft data identification list, a target data packet, and files recorded by screen recordings, screenshots, and logs; Step 6: Based on the electricity theft data identification list, use bit-for-bit one-way copy technology to make lossless copies of the target data packets, upload the anti-electricity theft electronic data synchronously through multiple channels and store them in parallel on multiple blockchain nodes to achieve timeliness and integrity of data transmission, and use verification technology to compare and verify the integrity and consistency of the process lists, record files, and target data packets generated by steps one to five, to complete the automated anti-electricity theft electronic data in the online blockchain system or judicial evidence preservation system. Trustworthy evidence storage and preservation.
2. According to the method for extracting and fixing electronic data for anti-electricity theft based on end-to-end verification according to claim 1, it is characterized in that: The initial hash values in step 2, step 3 and step 4 are generated using any one of the hash algorithms including MD5, SHA1 and CRC32.
3. According to the method of extracting and fixing electronic data for anti-electricity theft based on end-to-end verification according to claim 1, it is characterized in that: The log generation technology is used to automatically record the steps of performing forensic operations on the forensic computer operating system, and to identify abnormal states or key events in the log by converting the generated log data into a standardized log format, wherein the abnormal states or key events include abnormal web page jumps and abnormal interruptions in data transmission; The screen recording is used to completely record the entire process of the forensic computer from the start of forensics to the storage and archiving of forensics in the system database and online blockchain; The screenshot supports manual screenshots and automatic screenshots of important nodes, including the initial state of the forensic environment, the data integration interface, and the hash value calculation page; The electronic signature is used to authenticate the identity of the evidence collection operator, and to perform an electronic signature with a timestamp on the anti-electricity theft electronic data in the evidence collection process through a predefined signature format.
4. According to the method for extracting and fixing electronic data for anti-electricity theft based on end-to-end verification according to claim 1, it is characterized in that: The security check of the evidence collection environment includes checking the version of the evidence collection computer's operating system, virus detection, programs and processes, hosts files, local area network settings, and proxy settings; The cleanliness detection of the forensic environment is specifically to detect whether the forensic computer browser and the power information system client cache have been cleaned, including Internet browsing history, temporary files, domain name mapping, cookies, and form data; The forensic time consistency check includes checking whether the computer operating system time, the browser and power information system client page display time, and the screen recording and video recording watermark time are consistent; The inspection record list includes the inspector, inspection time, inspection items, and inspection result information.
5. According to the method of extracting and fixing electronic data for anti-electricity theft based on end-to-end verification according to claim 1, it is characterized in that: The multi-source heterogeneous data integration is realized through the write protection device interface and the write protection standard interface, and only supports data query, browsing, copy and extraction operations, and cannot add, modify or delete the source data content; wherein, the field imaging equipment is integrated through the write protection device interface; the power information system is integrated through the write protection standard interface; The data collection list includes integrated power information system information, source tables, intermediate tables, fields, data items, data dictionary information, audio and video and information recorded by on-site imaging equipment. The power information system information includes the system name, source department, domain name, IP corresponding to the domain name, MAC address, and database.
6. According to the method of extracting and fixing electronic data for anti-electricity theft based on end-to-end verification according to claim 1, it is characterized in that: The electronic data of electricity theft is derived from the data recorded by on-site inspection and the data recorded by the power information system. The types of electricity theft are identified by referring to the power supply business rules, the anti-electricity theft management measures of the State Grid Corporation of China, and the relevant standards and specifications for the extraction and fixation of electronic data of anti-electricity theft; The raw data includes current and voltage data, curve data, and event record data; The analysis data is a data set obtained after statistical analysis or model calculation analysis, including line loss in the substation area, power consumption, deviation of power consumption behavior, list of suspected power theft customers, time of power theft, and amount of power theft data. The identified analysis data is automatically drilled to obtain information including data calculation principle or algorithm model principle, original data source and composition, and corresponding data dictionary; The electronic data of electricity theft and the drilled information are taken as the data to be extracted, and an electricity theft data identification list is generated. The electricity theft data identification list includes a list of electricity theft suspects, archival information of electricity theft personnel, original data related to on-site inspection information, analysis data related to electricity theft suspicion, electricity theft time, and electricity theft amount, and a data dictionary.
7. The method for extracting and fixing electronic data for anti-electricity theft based on end-to-end verification according to claim 1 is characterized in that: The method of automatically generating regular file names and descriptive tags using intelligent tagging technology is specifically an intelligent tagging technology that generates tags using metadata of data; the metadata includes timestamp, object, and source; The secondary fixation is to calculate the feature summary or hash value using one or more algorithms, and generate a hash sequence in combination with the auxiliary feature attributes read from the pre-configuration file to complete the secondary fixation; the multiple algorithms include MD5, SHA1, and CRC32 algorithms, and the auxiliary feature attributes include generation time, source, location, personnel, and authentication password.
8. The method for extracting and fixing electronic data for anti-electricity theft based on end-to-end verification according to claim 1 is characterized in that: The bit-to-bit unidirectional lossless replication is implemented using technologies including snapshot technology, mirror backup, incremental replication, and differential replication, wherein the snapshot technology is used for static data and the incremental replication is used for dynamic data; The multi-channel synchronous upload and multi-blockchain node parallel storage use Docker / Docker Compose container technology to achieve flexible deployment of nodes in different network environments, including local area networks, wide area networks, and servers, hosts or terminal devices that meet performance requirements. The multi-node structure supports distributed parallel processing. Each node can independently perform data verification, storage and consensus tasks. The Etcdraft consensus algorithm is used to achieve fast sorting and block consensus, and adapt to large-scale multi-node network environments; the data source is divided into a master channel and a slave channel, and multi-master replication or peer-to-peer replication data synchronization technology is used to maintain the consistency of data between different nodes; The data integrity and consistency comparison and verification specifically utilizes verification technologies including smart contracts, digital signatures, and hash verification to perform comparison and verification on multiple aspects of data before and after fixation, transmission, and storage, including time attributes, device attributes, file attributes, operation steps, coding attributes, and hash values.
9. An anti-electricity theft electronic data extraction and fixation system based on end-to-end verification, characterized in that: The system is implemented by an anti-electricity theft electronic data extraction and fixation method based on end-to-end verification as described in any one of claims 1-8, including a data integration module and a data forensics module: The data integration module includes a write protection device interface, a write protection standard interface, a real-time query unit, a query manager, a data extraction unit, and a data block upload unit to realize data query, extraction, and block upload; the field imaging equipment and the power information system are integrated in the write protection mode, and the power information system includes a marketing business system, a power consumption information collection system, an integrated line loss management system, and an anti-theft power inspection and monitoring system; The data evidence collection module includes a data environment inspection unit, a data identification and acquisition unit, a data solidification and recording unit, and a data evidence preservation unit; The data environment inspection unit supports system security and cleanliness inspection and recording, and completes security inspection, cleanliness inspection, and time verification; The data identification and acquisition unit includes intelligent collection function, data classification function, and data identification function, and supports identification and acquisition of electronic data such as power information system, video and audio recording; The data solidification recording unit includes solidification recording tools, log record generation function, verification calculation tools, and automatic naming and labeling functions. It provides solidification functions including screen recording, screenshots, electronic signatures, and log records. It supports the extraction and generation of system logs, metering equipment logs, and application logs. It supports automatic screenshots and signature confirmation reminders for important nodes, and automatic renaming and labeling of files. The data notarization and preservation unit includes data replication, data transmission and data storage functions. It supports the use of mirror replication technology to losslessly replicate and calculate information such as feature summaries or hash values. Through multi-channel parallelism and distributed storage of blockchain nodes, it uses smart contracts to automatically verify the consistency and integrity of data.
10. The anti-electricity theft electronic data extraction and fixation system based on end-to-end verification according to claim 9 is characterized in that: The data integration module also integrates the relevant data services of the timing center system, the state grid chain, and the judicial evidence preservation system; so that the data generated by the data integration module, the data forensics module and its affiliated functional units can establish connections with the state grid chain and the third-party judicial chain for real-time data synchronization.
Citation Information
Cited By
Intelligent generation method and device of two tickets, and computer readable storage medium
CN119721966A
Universal chat record backup storage method and system
CN120469857A
