Intelligent electric power marketing system based on block chain
Through the intelligent power marketing system based on the blockchain, power transaction data is extracted and encrypted, data is segmented and distributed, the problem of data security risks in traditional systems is solved, and the security of data in the transmission and storage process is achieved. performance and reliability.
Patent Information
- Application Number
- CN202410613733.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional power marketing systems have security risks such as data tampering, leakage, and single points of failure, and cannot effectively ensure the security of power transaction data, especially during data transmission and storage.
An intelligent electric power marketing system based on blockchain is used to extract sensitive data segments through the data collection module. The data encryption module desensitizes and encrypts the data. The data merging module performs data segmentation and merging. Finally, the data is divided into shards for distributed storage. Based on multiple blockchain servers to ensure the security of data during transmission and storage.
It effectively prevents the tampering or theft of power transaction data during transmission, reduces storage costs and storage resources, while avoiding data loss caused by storage node failures and improving data security and reliability.
Smart Images

Figure CN118569899A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power marketing technology, and more specifically, to an intelligent power marketing system based on blockchain. Background Art
[0002] With the continuous development of the energy industry and the gradual opening of the power market, the power marketing field is facing increasing data security challenges; traditional power marketing systems have many security risks, including data tampering, leakage and single point failures, which seriously threaten the stable operation of the power market and the protection of users' interests; current power marketing systems usually adopt centralized data storage methods, and data security is highly dependent on centralized storage nodes; however, this method has the risk of single point failure. Once a storage node fails or is attacked, it may lead to irreversible loss of data, which in turn affects the normal progress of power trading; in addition, data security in traditional systems cannot be fully guaranteed. Once the system is invaded, it may lead to the leakage or tampering of power trading data, posing serious security risks to the power market.
[0003] At present, there is a lack of systems that can ensure the security of power marketing data. Although there are some improved intelligent technical solutions, for example, the patent with authorization announcement number CN110555783B discloses a blockchain-based power marketing data protection method and system; the above method realizes disaster recovery backup by taking blockchain technology as the core, but research and practical application of the above method and existing technology have found that the above method and existing technology have at least the following defects:
[0004] (1) It is impossible to encrypt power transaction data before data transmission, making it difficult to prevent power transaction data from being tampered with or stolen during data transmission;
[0005] (2) Storage reliability is low. Once a storage node fails, it is easy to cause irreversible loss of power trading data. It is impossible to ensure the security of power marketing data on the basis of reducing storage costs and storage resources, and it is difficult to effectively ensure the security of power trading data. Summary of the invention
[0006] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides an intelligent power marketing system based on blockchain.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] An intelligent power marketing system based on blockchain, the system comprising:
[0009] A data acquisition module, used to collect the original power transaction data generated by the power marketing business, and extract M sensitive data segments from the original power transaction data, where M is an integer greater than zero;
[0010] A data encryption module, used to desensitize each sensitive data segment to obtain W desensitized data segments, and use the W desensitized data segments to replace the content of the original power transaction data to obtain encrypted power transaction data, where W is an integer greater than zero;
[0011] A data merging module is used to segment the encrypted power trading data to obtain K data shards, and partially merge the data shards to obtain Q merged shard combination data, where Q is an integer greater than zero;
[0012] The data storage module is used to distribute the combined data of each merged shard to multiple blockchain servers for distributed storage.
[0013] Furthermore, the extracting of M sensitive data segments from the original power transaction data includes:
[0014] a1: segment the original power transaction data, remove repeated words, stop words, onomatopoeia and onomatopoeia, and obtain a field set, which contains R phrases, where R is an integer greater than zero;
[0015] a2: extract the rth phrase in the field set, put the rth phrase into the pre-configured starting keyword library for traversal, and obtain return data, wherein the return data includes one of empty data or starting keywords, and r is an integer greater than zero;
[0016] a3: extracting the mapping relationship of the pre-configured starting keyword, and determining the ending keyword mapped to the corresponding starting keyword according to the corresponding starting keyword and the mapping relationship;
[0017] a4: Extract the r+1th phrase in the field set;
[0018] a5: Match the r+1th phrase with the ending keyword. If the match is inconsistent, set r=r+1 and return to step a4. If the match is consistent, obtain all phrases between the r+1th phrase and the rth phrase, take all phrases between the r+1th phrase and the rth phrase as sensitive data segments, set r=r+1, and return to step a2.
[0019] a6: Repeat steps a4 to a5 until a match is found. Then the loop ends and a sensitive data segment is obtained.
[0020] a7: Repeat a2 to a5 above until R=r, then end the loop and obtain M sensitive data segments.
[0021] Furthermore, when the return data outputs empty data, r=r+1 is set and step a2 is executed again.
[0022] Furthermore, desensitizing each sensitive data segment includes:
[0023] b1: Get the starting keyword and the ending keyword in the i-th sensitive data segment, and mark the phrase between the starting keyword and the ending keyword as a desensitized segment;
[0024] b2: inputting the desensitized segment into a preconfigured text detection model to determine the type of the desensitized segment;
[0025] b3: according to the desensitized phrase type, retrieve the preset relationship between the corresponding desensitized phrase type and the desensitization rule, perform data desensitization on the desensitized phrase according to the desensitization rule in the preset relationship, take the i-th sensitive data segment after desensitization as the desensitized data segment, set i=i+1, and return to step b1;
[0026] b4: Repeat b1 to b3 above until i=M, then end the loop and obtain W desensitized data segments.
[0027] Furthermore, the generation logic of the preconfigured text detection model is as follows:
[0028] Obtain historical desensitized segment type training data, and divide the historical desensitized segment type training data into a desensitized segment type training set and a desensitized segment type test set; the desensitized segment type training includes multiple desensitized segments and their corresponding type annotation labels;
[0029] Construct a classifier, use the desensitized segments in the desensitized segment type training set as input data of the classifier, and use the type annotation labels in the desensitized segment type training set as output data of the classifier, train the classifier, and obtain an initial text detection network;
[0030] The initial text detection network is model verified using the desensitized segment type test set, and the initial text detection network with a test accuracy greater than or equal to the preset test accuracy is output as the preconfigured text detection model.
[0031] Furthermore, the classifier is one of naive Bayes classification, support vector machine classification, recurrent neural network or convolutional neural network.
[0032] Furthermore, the partially merging the data fragments includes:
[0033] c1: remove the jth data shard from the K data shards to obtain a remaining shard set, where the remaining shard set includes K-1 remaining data shards;
[0034] c2: Merge the jth data shard with each remaining data shard in the remaining shard set in pairs to obtain G shard combination data to be verified, where G is an integer greater than zero;
[0035] c3: Determine whether there are unmerged data shards based on the G shard combination data to be verified. If so, set j=j+1 and return to step c1; if not, jump to step c4;
[0036] c4: Determine whether there is duplicate shard combination data in the shard combination data to be verified. If so, only one duplicate shard combination data is retained, and all non-duplicate shard combination data are obtained. The only retained duplicate shard combination data and all non-duplicate shard combination data are used as merged shard combination data, and j=j+1 is set, and the process returns to step c1; if not, the G shard combination data to be verified are used as merged shard combination data;
[0037] C5: Repeat the above steps c1 to c4 until j=K, then end the loop and obtain Q merged fragment combination data.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] The present application discloses an intelligent power marketing system based on blockchain, comprising: collecting original power transaction data generated by the power marketing business, and extracting M sensitive data segments from the original power transaction data; performing data desensitization on each sensitive data segment to obtain W desensitized data segments, and using the W desensitized data segments to replace the content of the original power transaction data to obtain encrypted power transaction data; performing data segmentation on the encrypted power transaction data to obtain K data shards, and partially merging the data shards to obtain Q merged shard combination data; distributing each merged shard combination data to multiple blockchain servers for distributed storage; based on the above content, the present invention can avoid the irreversible loss of power transaction data due to the failure of a storage node, and is conducive to ensuring the security of power marketing data on the basis of reducing storage costs and reducing storage resources, and effectively ensuring the security of power transaction data; in addition, by encrypting the power transaction data before data transmission, it is conducive to preventing the power transaction data from being tampered with or stolen during the data transmission process. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A module structure diagram of a blockchain-based intelligent power marketing system provided by the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] Example 1
[0043] See also Figure 1 As shown, this embodiment discloses a blockchain-based intelligent power marketing system, the system comprising:
[0044] The data collection module 110 is used to collect the original power transaction data generated by the power marketing business and extract M sensitive data segments from the original power transaction data, where M is an integer greater than zero;
[0045] It should be understood that: power marketing business refers to the process in which power companies or other relevant institutions provide power to end users through various sales channels. In the power marketing business, a large amount of original power transaction data will be generated, including but not limited to customer information (including personal or organizational information such as customer's name, address, contact information, etc.), transaction price (price information related to power transactions, including purchase and sale prices), transaction volume (quantity information involved in power transactions, such as the amount of electricity purchased or sold), transaction time (the date and time when the power transaction occurs) and payment information (including payment methods, bank account information, etc.)
[0046] In implementation, the extraction of M sensitive data segments from the original power transaction data includes:
[0047] a1: segment the original power transaction data, remove repeated words, stop words, onomatopoeia and onomatopoeia, and obtain a field set, which contains R phrases, where R is an integer greater than zero;
[0048] It should be noted that the word segmentation of the original power transaction data is implemented based on the existing word segmentation technology, and the existing word segmentation technology includes but is not limited to dictionary-based word segmentation, rule-based word segmentation, statistical model-based word segmentation, or hybrid method-based word segmentation;
[0049] a2: extract the rth phrase in the field set, put the rth phrase into the pre-configured starting keyword library for traversal, and obtain return data, wherein the return data includes one of empty data or starting keywords, and r is an integer greater than zero;
[0050] It should be noted that: the pre-configured starting keyword library includes multiple starting keywords, each of which is selected and entered in advance by a technician;
[0051] Specifically, when the returned data outputs empty data, r=r+1 is set, and step a2 is executed again;
[0052] It can be understood that: when the rth phrase is placed into the pre-configured starting keyword library for traversal, if the returned data is empty data, it means that the corresponding rth phrase is not the starting keyword; correspondingly, when the returned data is the starting keyword, it means that the corresponding rth phrase is a certain starting keyword;
[0053] a3: extracting the mapping relationship of the pre-configured starting keyword, and determining the ending keyword mapped to the corresponding starting keyword according to the corresponding starting keyword and the mapping relationship;
[0054] It should be noted that: there are multiple mapping relationships, and the multiple mapping relationships are pre-stored in the system database. The multiple mapping relationships are generated by the technicians manually associating and binding the starting keyword and the ending keyword in advance. Each mapping relationship includes a starting keyword and an ending keyword associated with it. There is at least one ending keyword associated with each starting keyword.
[0055] a4: Extract the r+1th phrase in the field set;
[0056] a5: Match the r+1th phrase with the ending keyword. If the match is inconsistent, set r=r+1 and return to step a4. If the match is consistent, obtain all phrases between the r+1th phrase and the rth phrase, take all phrases between the r+1th phrase and the rth phrase as sensitive data segments, set r=r+1, and return to step a2.
[0057] a6: Repeat steps a4 to a5 until a match is found. Then the loop ends and a sensitive data segment is obtained.
[0058] a7: Repeat a2 to a5 above until R = r, then end the loop and obtain M sensitive data segments;
[0059] For example: suppose there is original electricity transaction data such as "XXXX transaction amount is XX million yuan". After the original electricity transaction data is segmented, the field set is "XX / XX / transaction / amount / is / XX / million yuan". At this time, if "amount" is assumed to be the starting keyword, and according to the mapping relationship of the pre-configured starting keywords, the ending keyword corresponding to the word "amount" is "million yuan", and the word "amount" is the 4th phrase in the field set, and the word "million yuan" is the 7th phrase in the field set, therefore, all phrases between the 4th phrase and the 7th phrase (including the 4th phrase and the 7th phrase) are obtained, and all phrases between the 4th phrase and the 7th phrase are taken as sensitive data segments, then a sensitive data segment is obtained.
[0060] The data encryption module 120 is used to desensitize each sensitive data segment to obtain W desensitized data segments, and use the W desensitized data segments to replace the content of the original power transaction data to obtain encrypted power transaction data, where W is an integer greater than zero;
[0061] In implementation, desensitizing each sensitive data segment includes:
[0062] b1: Get the starting keyword and the ending keyword in the i-th sensitive data segment, and mark the phrase between the starting keyword and the ending keyword as a desensitized segment;
[0063] It should be understood that there are M sensitive data segments in the original power transaction data. If the sensitive data segments are directly desensitized, the data processing efficiency and cost will be greatly increased due to the amount of data processing. The phrases between the starting keyword and the ending keyword are usually core phrases, so desensitizing this part can significantly improve the efficiency of data encryption.
[0064] b2: inputting the desensitized segment into a preconfigured text detection model to determine the type of the desensitized segment;
[0065] Specifically, the generation logic of the preconfigured text detection model is as follows:
[0066] Obtain historical desensitized segment type training data, and divide the historical desensitized segment type training data into a desensitized segment type training set and a desensitized segment type test set; the desensitized segment type training includes multiple desensitized segments and their corresponding type annotation labels;
[0067] It should be noted that: the desensitized segments in the historical desensitized segment type training data are obtained by technicians processing records in advance, and the details of the desensitized segment generation logic refer to the above description; the type annotation labels include but are not limited to the transaction company name, telephone number, bank card number, transaction price and transaction time, etc.; the type annotation labels are manually generated by technicians by annotating each desensitized segment;
[0068] Construct a classifier, use the desensitized segments in the desensitized segment type training set as input data of the classifier, and use the type annotation labels in the desensitized segment type training set as output data of the classifier, train the classifier, and obtain an initial text detection network;
[0069] The initial text detection network is model verified using the desensitized segment type test set, and the initial text detection network with a test accuracy greater than or equal to the preset test accuracy is output as the preconfigured text detection model;
[0070] It should be noted that: the classifier is one of the algorithm models such as naive Bayes classification, support vector machine classification, recurrent neural network or convolutional neural network;
[0071] b3: according to the desensitized phrase type, retrieve the preset relationship between the corresponding desensitized phrase type and the desensitization rule, perform data desensitization on the desensitized phrase according to the desensitization rule in the preset relationship, take the i-th sensitive data segment after desensitization as the desensitized data segment, set i=i+1, and return to step b1;
[0072] It should be noted that: in the system database, there are pre-stored preset relationships between multiple desensitized phrase types and desensitized rules, and in each preset relationship there is a desensitized phrase type and a desensitized rule associated with it; the desensitized rule is set in advance by humans, for example, when the desensitized segment is detected as a telephone number, some numbers are hidden, the first three digits and the last four digits are displayed, and the middle is replaced by an asterisk; for another example, when the desensitized segment is detected as a trading company name, the characters of the company name are partially hidden, only the first few characters or the last few characters are displayed, and the middle part is hidden; such as desensitizing "East China Technology Co., Ltd." to "East China **** Company"; this embodiment does not make any limitation to this, and any desensitization rule can be used as an application means of the present invention;
[0073] b4: Repeat the above steps b1 to b3 until i=M, then end the loop and obtain W desensitized data segments; it should be noted that before using the W desensitized data segments to replace the content of the original power trading data, it is necessary to know in advance the original position of each desensitized data segment in the original power trading data, in other words, the position of each sensitive data segment in the original power trading data. According to the position information, replace the sensitive data segment at the corresponding position in the original power trading data with each desensitized data segment to obtain the encrypted power trading data;
[0074] It is understandable that screening and selecting sensitive data and desensitizing the sensitive data after screening and selection is conducive to encrypting power transaction data before data transmission, which in turn helps prevent the power transaction data from being tampered with or stolen during the data transmission process.
[0075] The data merging module 130 is used to segment the encrypted power trading data to obtain K data fragments, and partially merge the data fragments to obtain Q merged fragment combination data, where Q is an integer greater than zero;
[0076] Data segmentation, also known as data sharding, is a common strategy in distributed systems to split data into multiple parts for storage and processing on different nodes;
[0077] It should be noted that: data segmentation of the encrypted power trading data is achieved through an existing data segmentation method, and the existing data segmentation method includes but is not limited to one of horizontal segmentation (horizontal segmentation), vertical segmentation (vertical segmentation), hash segmentation or range segmentation;
[0078] Specifically, the partial merging of data shards includes:
[0079] c1: remove the jth data shard from the K data shards to obtain a remaining shard set, where the remaining shard set includes K-1 remaining data shards;
[0080] c2: Merge the jth data shard with each remaining data shard in the remaining shard set in pairs to obtain G shard combination data to be verified, where G is an integer greater than zero;
[0081] c3: Determine whether there are unmerged data shards based on the G shard combination data to be verified. If so, set j=j+1 and return to step c1; if not, jump to step c4;
[0082] It should be noted that: when one of the K data shards does not appear in the G shard combination data to be verified, it is determined that there are unmerged data shards; otherwise, it is determined that there are no unmerged data shards;
[0083] For example, it is assumed that there is an encrypted power trading data. After the encrypted power trading data is segmented, three data shards are obtained, namely U1, U2 and U3; if U1 is taken as the jth data shard, then U2 and U3 are the remaining data shards. Therefore, when the jth data shard is merged with each of the remaining data shards in the remaining shard set, the shard combination data U1U2 to be verified and the shard combination data U1U3 to be verified are obtained; however, in the shard combination data U1U2 to be verified and the shard combination data U1U3 to be verified, U2 of the three data shards does not appear, so it is determined that there is an unmerged data shard, that is, U2;
[0084] c4: Determine whether there is duplicate shard combination data in the shard combination data to be verified. If so, only one duplicate shard combination data is retained, and all non-duplicate shard combination data are obtained. The only retained duplicate shard combination data and all non-duplicate shard combination data are used as merged shard combination data, and j=j+1 is set, and the process returns to step c1; if not, the G shard combination data to be verified are used as merged shard combination data;
[0085] It should be noted that: when the same shard combination data to be verified appears, it is determined that there are duplicate shard combination data in the shard combination data to be verified; otherwise, it is determined that there are no duplicate shard combination data in the shard combination data to be verified;
[0086] Continuing with the above example, since U2 has not been merged, after setting j=j+1, U2 will be used as the jth data shard, and U2 and U3 will be the remaining data shards. Therefore, when the jth data shard is merged with each remaining data shard in the remaining shard set, new shard combination data U1U2 and shard combination data U2U3 to be verified will be obtained. At this time, it can be seen that all data shards have been merged, and there are no unmerged data shards. However, a duplicate shard combination data appears, which is the shard combination data U1U2 to be verified. Therefore, after eliminating a duplicate shard combination data U1U2, three merged shard combination data are obtained, namely U1U2, U1U3 and U2U3''.
[0087] C5: Repeat the above steps c1 to c4 until j=K, then end the loop and obtain Q merged fragment combination data.
[0088] The data storage module 140 is used to distribute each merged shard combination data to multiple blockchain servers for distributed storage;
[0089] It can be understood that: after the encrypted power transaction data is segmented, the shards are merged to obtain multiple merged shard combination data, and finally the merged shard combination data is distributedly combined using multiple blockchain servers. Compared with the prior art, the present invention can ensure the security of power marketing data on the basis of reducing storage costs and storage resources, and can cope with irreversible data loss caused by failure of a storage node; at the same time, it ensures high reliability and high reproducibility during data query;
[0090] To continue the above example, the current way to ensure the security of power marketing data is mostly achieved through multiple data backup or single data sharding. Further, assuming that there is an encrypted power trading data, the multiple data backup method will back up and copy the encrypted power trading data to obtain multiple complete backup data, and then store the multiple complete backup data. This method is prone to waste of resources to a great extent. At the same time, an intruder only needs to obtain any backup file to obtain the content of the power marketing data, and the security is relatively low; while the single data sharding method will shard the encrypted power trading data. For example: after the encrypted power trading data is split, three data shards are obtained, namely U1, U2 and U3, and then U1, U2 and U3 are stored in a server node respectively. Once a server node is damaged, it will cause irreversible loss of the power marketing data. At the same time, when querying the data, it is also necessary to know the storage index of each server node to obtain complete data, and the query response time is relatively long;
[0091] When querying, the present invention only needs to obtain the data stored in any few (at least two) blockchain servers to restore the complete power marketing data, which can prevent the irreversible data loss caused by damage to any server node; in addition, since the data stored in the blockchain server only contains partial data, this not only reduces the storage resources of the server, but also ensures that even if an intrusion occurs, the intruder cannot obtain the complete power transaction data, which greatly ensures the security of the power transaction data;
[0092] It should be noted that the data acquisition module 110 , the data encryption module 120 , the data merging module 130 and the data storage module 140 are connected via wired or wireless means.
[0093] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center through a wired network or a wireless network. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD) or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0094] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0095] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0096] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only one, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0097] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0098] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0099] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0100] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An intelligent power marketing system based on blockchain, characterized in that: The system comprises: A data acquisition module, used to collect the original power transaction data generated by the power marketing business, and extract M sensitive data segments from the original power transaction data, where M is an integer greater than zero; A data encryption module, used to desensitize each sensitive data segment to obtain W desensitized data segments, and use the W desensitized data segments to replace the content of the original power transaction data to obtain encrypted power transaction data, where W is an integer greater than zero; A data merging module is used to segment the encrypted power trading data to obtain K data shards, and partially merge the data shards to obtain Q merged shard combination data, where Q is an integer greater than zero; The data storage module is used to distribute the combined data of each merged shard to multiple blockchain servers for distributed storage.
2. The blockchain-based intelligent power marketing system according to claim 1 is characterized in that: The extracting of M sensitive data segments from the original power transaction data includes: a1: segment the original power transaction data, remove repeated words, stop words, onomatopoeia and onomatopoeia, and obtain a field set, which contains R phrases, where R is an integer greater than zero; a2: extract the rth phrase in the field set, put the rth phrase into the pre-configured starting keyword library for traversal, and obtain return data, wherein the return data includes one of empty data or starting keywords, and r is an integer greater than zero; a3: extracting the mapping relationship of the pre-configured starting keyword, and determining the ending keyword mapped to the corresponding starting keyword according to the corresponding starting keyword and the mapping relationship; a4: Extract the r+1th phrase in the field set; a5: Match the r+1th phrase with the ending keyword. If the match is inconsistent, set r=r+1 and return to step a4. If the match is consistent, obtain all phrases between the r+1th phrase and the rth phrase, take all phrases between the r+1th phrase and the rth phrase as sensitive data segments, set r=r+1, and return to step a2. a6: Repeat steps a4 to a5 until a match is found. Then the loop ends and a sensitive data segment is obtained. a7: Repeat a2 to a5 above until R=r, then end the loop and obtain M sensitive data segments.
3. The blockchain-based intelligent power marketing system according to claim 2 is characterized in that: When the return data outputs empty data, r=r+1 is set and step a2 is executed again.
4. The blockchain-based intelligent power marketing system according to claim 3 is characterized in that: Desensitizing each sensitive data segment includes: b1: Get the starting keyword and the ending keyword in the i-th sensitive data segment, and mark the phrase between the starting keyword and the ending keyword as a desensitized segment; b2: inputting the desensitized segment into a preconfigured text detection model to determine the type of the desensitized segment; b3: according to the desensitized phrase type, retrieve the preset relationship between the corresponding desensitized phrase type and the desensitization rule, perform data desensitization on the desensitized phrase according to the desensitization rule in the preset relationship, take the i-th sensitive data segment after desensitization as the desensitized data segment, set i=i+1, and return to step b1; b4: Repeat b1 to b3 above until i=M, then end the loop and obtain W desensitized data segments.
5. The blockchain-based intelligent power marketing system according to claim 4 is characterized in that: The generation logic of the preconfigured text detection model is as follows: Obtain historical desensitized segment type training data, and divide the historical desensitized segment type training data into a desensitized segment type training set and a desensitized segment type test set; the desensitized segment type training includes multiple desensitized segments and their corresponding type annotation labels; Construct a classifier, use the desensitized segments in the desensitized segment type training set as input data of the classifier, and use the type annotation labels in the desensitized segment type training set as output data of the classifier, train the classifier, and obtain an initial text detection network; The initial text detection network is model verified using the desensitized segment type test set, and the initial text detection network with a test accuracy greater than or equal to the preset test accuracy is output as the preconfigured text detection model.
6. The blockchain-based intelligent power marketing system according to claim 5 is characterized in that: The classifier is one of naive Bayes classification, support vector machine classification, recurrent neural network or convolutional neural network.
7. The blockchain-based intelligent power marketing system according to claim 6 is characterized in that: The partial merging of the data fragments includes: c1: remove the jth data shard from the K data shards to obtain a remaining shard set, where the remaining shard set includes K-1 remaining data shards; c2: Merge the jth data shard with each remaining data shard in the remaining shard set in pairs to obtain G shard combination data to be verified, where G is an integer greater than zero; c3: Determine whether there are unmerged data shards based on the G shard combination data to be verified. If so, set j=j+1 and return to step c1; if not, jump to step c4; c4: Determine whether there is duplicate shard combination data in the shard combination data to be verified. If so, only one duplicate shard combination data is retained, and all non-duplicate shard combination data are obtained. The only retained duplicate shard combination data and all non-duplicate shard combination data are used as merged shard combination data, and j=j+1 is set, and the process returns to step c1; if not, the G shard combination data to be verified are used as merged shard combination data; C5: Repeat the above steps c1 to c4 until j=K, then end the loop and obtain Q merged fragment combination data.
Citation Information
Patent Citations
Electric power marketing data protection method and system based on block chain
CN110555783A
Data processing method and device based on block chain, medium, equipment and application
CN111711611A
Data desensitization method and device for online shopping mall, equipment and storage medium
CN116432243A
Data processing method and device, equipment and storage medium
CN116719907A
Classification model-based field extraction method and apparatus, electronic device, and medium
WO2021217931A1
Cited By
Electric power marketing sensitive data behavior tracing method and system based on block chain
CN122760063A
