Power data tampering detection method and device, equipment, storage medium and product

By using the tampering detection model and alliance blockchain in power data detection, power data is quickly and accurately detected, which solves the problem of insufficient efficiency and accuracy of power data tampering detection in the existing technology, and achieves effective detection of malicious users. and avoidance of economic losses.

CN118690362APending Publication Date: 2024-09-24GUIZHOU POWER GRID INFORMATION & TELECOMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410755100.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing technology cannot quickly and accurately detect tampering of power data, resulting in power supply units being unable to correctly obtain power usage, which may lead to abnormal power supply and economic losses.

Method used

By obtaining the encrypted user information and historical power data of the target user, input it into the tamper detection model for detection. If there is tampering, the data will be decrypted and processed, and shared to the alliance blockchain for secondary detection, using the tamper detection model and alliance block. The chain improves detection efficiency and accuracy.

Benefits of technology

On the premise of avoiding leaking user privacy, the accuracy and efficiency of power data tampering detection are improved to ensure effective detection of malicious users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690362A
    Figure CN118690362A
Patent Text Reader

Abstract

The invention discloses an electric power data tampering detection method and device, equipment, a storage medium and a product, and relates to the technical field of data detection, and the method comprises the steps: obtaining encrypted user information and historical electric power data of a target user; the historical power data are input into a tampering detection model, whether the target user has a tampering behavior or not is judged according to a model output result, and the tampering detection model is used for detecting whether the power data are tampered or not; if yes, decrypting the encrypted user information and then carrying out data processing to obtain key user information; and sharing the key user information to the alliance block chain, and judging whether to perform secondary detection on the target user based on the shared information in the alliance block chain. According to the method, whether the user has the tampering behavior or not is judged through the tampering detection model, and meanwhile, the malicious user with the tampering behavior is subjected to secondary detection through the alliance block chain, so that detection is performed on the premise of avoiding leakage of user privacy, and the detection efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data detection technology, and in particular to a method, device, equipment, storage medium and product for detecting power data tampering. Background Art

[0002] As one of the necessities of people, electricity is everywhere in our daily life. However, in some areas where power facilities are not yet intelligent or not fully intelligent, tampering detection of power data is usually achieved through manual detection, and its accuracy and efficiency cannot be guaranteed.

[0003] Some malicious users use this to tamper with power data through illegal operations, so that the power supply unit cannot correctly obtain the power consumption in the current area, and therefore cannot correctly upgrade the power facilities to match the power demand in the current area. Under this premise, when the power consumption in the current area reaches a peak period, it is very likely that these mismatched power facilities will cause power supply anomalies in the current area, resulting in direct or indirect economic losses.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide a method, device, equipment, storage medium and product for detecting power data tampering, aiming to solve the technical problem that the prior art cannot quickly and accurately detect tampering of power data.

[0006] To achieve the above object, the present application provides a method for detecting power data tampering, the method comprising the following steps:

[0007] Obtaining encrypted user information and historical power data of a target user, wherein the target user is a user of a power terminal;

[0008] Inputting the historical power data into a tampering detection model, and judging whether the target user has tampered with the data according to the output result of the model, wherein the tampering detection model is used to detect whether the power data has been tampered with;

[0009] If it exists, the encrypted user information is decrypted and then data processed to obtain key user information;

[0010] The key user information is shared in the alliance blockchain, and based on the shared information in the alliance blockchain, it is determined whether to perform a secondary detection on the target user.

[0011] In one embodiment, the step of inputting the historical power data into a tampering detection model and judging whether the target user has tampered with the data according to the model output result includes:

[0012] Inputting the historical power data into a tampering detection model, and outputting a predicted tampering probability corresponding to the historical power data;

[0013] If the predicted tampering probability is greater than a preset threshold, it is determined that the target user has tampered;

[0014] If the predicted tampering probability is less than or equal to a preset threshold, it is determined that the target user has not engaged in tampering behavior.

[0015] In one embodiment, if the encrypted user information exists, the step of decrypting the encrypted user information and then performing data processing to obtain the key user information includes:

[0016] If the target user has tampered with the information, determine the encryption algorithm corresponding to the encrypted user information when it is encrypted;

[0017] Determine a decryption algorithm corresponding to the encryption algorithm, and decrypt the encrypted user information based on the decryption algorithm to obtain target user information;

[0018] Data processing is performed on the target user information to obtain key user information.

[0019] In one embodiment, the step of performing data processing on the target user information to obtain key user information includes:

[0020] Performing data cleaning and data screening on the target user information, and performing distributed identity mapping on the processed target user information to obtain the identity of the target user;

[0021] The identity identification is fuzzified to obtain key user information.

[0022] In one embodiment, the step of sharing the key user information in the alliance blockchain and determining whether to perform secondary detection on the target user based on the shared information in the alliance blockchain includes:

[0023] The key user information is shared in the alliance blockchain, and based on the key user information, it is inquired whether there are other power terminals under the name of the target user in the shared information of the alliance blockchain;

[0024] If so, a secondary detection is performed on the target user based on other historical power data of the other power terminals.

[0025] In addition, the present application also provides a method for constructing a tampering detection model, the method comprising the following steps:

[0026] Acquire sample power data, and assign data labels to the sample power data, wherein the data labels include tampered data and normal data;

[0027] Preprocessing the sample power data and then classifying them to obtain a training set, a validation set, and a test set;

[0028] The preset model is trained and tested based on the training set, the validation set, the test set and the data labels to obtain an electricity theft behavior detection model, wherein the preset model is constructed based on a convolutional neural network and automated machine learning.

[0029] In addition, to achieve the above-mentioned purpose, the present application also proposes a power data tampering detection device, the power data tampering detection device comprising:

[0030] A data acquisition module, used to acquire encrypted user information and historical power data of a target user, wherein the target user is a user of the power terminal;

[0031] A first detection module, used to input the historical power data into a tampering detection model, and determine whether the target user has tampered with the data according to the model output result, wherein the tampering detection model is used to detect whether the power data has been tampered with;

[0032] A data processing module, used for decrypting the encrypted user information and then performing data processing to obtain key user information if it exists;

[0033] The second detection module is used to share the key user information in the alliance blockchain, and determine whether to perform a secondary detection on the target user based on the shared information in the alliance blockchain.

[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a power data tampering detection device, which includes: a memory, a processor, and a power data tampering detection program stored on the memory and executable on the processor, wherein the power data tampering detection program is configured to implement the steps of the power data tampering detection method as described above.

[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a power data tampering detection program is stored on the storage medium. When the power data tampering detection program is executed by the processor, the steps of the power data tampering detection method described above are implemented.

[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer program product, which includes a power data tampering detection program, and when the power data tampering detection program is executed by a processor, it implements the steps of the power data tampering detection method described above.

[0037] This application obtains the encrypted user information and historical power data of the target user, the target user is the user of the power terminal; inputs the historical power data into the tampering detection model, and judges whether the target user has tampered with the data according to the output result of the model. The tampering detection model is used to detect whether the power data has been tampered with; if so, the encrypted user information is decrypted and then processed to obtain key user information; the key user information is shared in the alliance blockchain, and based on the shared information in the alliance blockchain, it is judged whether to perform a secondary detection on the target user. Compared with the traditional power data tampering detection method, the above method of this application detects the historical power data through the tampering detection model to determine whether the user has tampered with the data, and at the same time, the key user information of the malicious user who has tampered with the data is shared through the alliance blockchain to achieve secondary detection of the malicious user, thereby realizing the detection of malicious users without leaking user privacy, and improving the detection efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of the structure of a power data tampering detection device in a hardware operating environment involved in an embodiment of the present application;

[0039] Figure 2 This is a flow chart of the first embodiment of the power data tampering detection method of the present application;

[0040] Figure 3 This is a flow chart of a second embodiment of the power data tampering detection method of the present application;

[0041] Figure 4 This is a flow chart of a third embodiment of the power data tampering detection method of the present application;

[0042] Figure 5 This is a structural block diagram of the first embodiment of the power data tampering detection device of the present application.

[0043] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0045] Reference Figure 1 , Figure 1 This is a schematic diagram of the structure of the power data tampering detection device in the hardware operating environment involved in the embodiment of the present application.

[0046] like Figure 1As shown, the power data tampering detection device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0047] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the power data tampering detection device, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.

[0048] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a power data tampering detection program.

[0049] exist Figure 1 In the power data tampering detection device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the power data tampering detection device of the present application can be set in the power data tampering detection device, and the power data tampering detection device calls the power data tampering detection program stored in the memory 1005 through the processor 1001, and executes the power data tampering detection method provided in the embodiment of the present application.

[0050] The present application provides a method for detecting power data tampering. Figure 2 , Figure 2 This is a flow chart of the first embodiment of the power data tampering detection method of the present application.

[0051] In this embodiment, the power data tampering detection method includes the following steps:

[0052] Step S10: Obtaining encrypted user information and historical power data of a target user, where the target user is a user of a power terminal.

[0053] It should be noted that the execution subject of the method of this embodiment can be a terminal device with data acquisition, data processing and program running functions, such as a smart phone, a computer, etc., or an electronic device with the same or similar functions, such as the above-mentioned power data tampering detection device. The following takes the power data tampering detection device (hereinafter referred to as the detection device) as an example to illustrate this embodiment and the following embodiments.

[0054] It is understandable that the above-mentioned target users may be users of power terminals, which may include measuring terminals and control terminals. Among them, the measuring terminal is used for electric energy metering and data collection, measures the electric power parameters such as the amount of electricity, voltage, and current in the power system, and transmits the collected data to the upper system to support power grid monitoring and power quality analysis, such as electric energy meters, power data monitoring meters, etc.; the control terminal is used to receive instructions from the upper system, convert them into control commands for power equipment, and realize the control and management of the equipment.

[0055] It should be understood that the encrypted user information can be obtained from the user registration information of the power terminal. The historical power data can include power grid data (such as voltage, current, frequency, etc.), power consumption data (such as data of peak and trough periods of power consumption, etc.), user behavior data (such as user's power consumption habits, power consumption time periods, power consumption patterns, etc.), etc., and this embodiment does not limit this. The historical power data can be obtained from the power supply system of the power supply unit.

[0056] Step S20: input the historical power data into a tampering detection model, and determine whether the target user has tampered with the data based on the model output result. The tampering detection model is used to detect whether the power data has been tampered with.

[0057] It should be understood that the tampering detection model can detect the historical power data according to the detection process built into the model, so as to determine whether the historical power data has been tampered with, and further determine whether the target user has tampered with the data.

[0058] Step S30: If it exists, the encrypted user information is decrypted and then data processed to obtain key user information.

[0059] In a specific implementation, since the decrypted data obtained after decrypting the above-mentioned encrypted user information may contain some data that is useless to the power data tampering detection process of this embodiment, in order to improve the detection efficiency, these data can be processed (such as data cleaning, data screening, data deduplication, etc.).

[0060] Step S40: Share the key user information in the alliance blockchain, and determine whether to perform secondary detection on the target user based on the shared information in the alliance blockchain.

[0061] It should be understood that the above-mentioned alliance blockchain is a blockchain network jointly formed by multiple organizations or institutions (in this embodiment, it can be the above-mentioned power supply units, power supply systems, etc.). Participants of the alliance blockchain need to undergo specific identity verification before joining, which ensures the high privacy of the data on the chain. Only participants who have passed identity verification can view and share data, thereby enhancing the security of the data in the alliance blockchain and protecting the user privacy of the target users.

[0062] This embodiment obtains the encrypted user information and historical power data of the target user, the target user is the user of the power terminal; inputs the historical power data into the tampering detection model, and judges whether the target user has tampered according to the model output result. The tampering detection model is used to detect whether the power data has been tampered; if so, the encrypted user information is decrypted and then processed to obtain key user information; the key user information is shared in the alliance blockchain, and based on the shared information in the alliance blockchain, it is judged whether to perform secondary detection on the target user. Compared with the traditional power data tampering detection method, the above method of this embodiment detects the historical power data through the tampering detection model to determine whether the user has tampered, and at the same time, the key user information of the malicious user who has tampered is shared through the alliance blockchain to realize secondary detection of the malicious user, thereby realizing detection of malicious users without leaking user privacy, and improving detection efficiency and accuracy.

[0063] refer to Figure 3 , Figure 3 This is a flow chart of the second embodiment of the power data tampering detection method of the present application.

[0064] In a feasible implementation manner, the step S20 may include:

[0065] Step S201: inputting the historical power data into a tampering detection model, and outputting a predicted tampering probability corresponding to the historical power data.

[0066] Step S202: If the predicted tampering probability is greater than a preset threshold, it is determined that the target user has tampered.

[0067] Step S203: If the predicted tampering probability is less than or equal to a preset threshold, it is determined that the target user has no tampering behavior.

[0068] In a feasible implementation manner, the step S30 may include:

[0069] Step S301: If the target user has tampered with the information, the encryption algorithm corresponding to the encrypted user information is determined.

[0070] It should be noted that the above encryption algorithms may include symmetric encryption algorithms and asymmetric encryption algorithms. Symmetric encryption algorithms may include DES (Data Encryption Standard) algorithm, AES (Advanced Encryption Standard) algorithm, 3DES (Triple Data Encryption Standard) algorithm, etc., which are not limited in this embodiment. The above asymmetric encryption algorithms may include RSA (Rivest-Shamir-Adleman) algorithm, DSA algorithm (Digital Signature Algorithm), ECC (Elliptic Curve Cryptography) algorithm, etc., which are not limited in this embodiment.

[0071] Step S302: Determine a decryption algorithm that matches the encryption algorithm, and decrypt the encrypted user information based on the decryption algorithm to obtain target user information.

[0072] In the specific implementation, for encrypted user information encrypted using a symmetric encryption algorithm, the same key as used for encryption can be used for decryption to obtain the target user information; and for encrypted user information encrypted using an asymmetric encryption algorithm, a private key matching the public key used for encryption can be used for decryption to obtain the target user information.

[0073] Step S303: Process the target user information to obtain key user information.

[0074] In a feasible implementation manner, the step S303 may include:

[0075] Step S3031: performing data cleaning and data screening on the target user information, and performing distributed identity mapping on the processed target user information to obtain the identity identifier of the target user.

[0076] It is understandable that the above data cleaning may include processing missing values, deduplication, data conversion, etc. The above distributed identity mapping can be implemented based on distributed digital identity (Decentralized Identifier, DID) technology. Distributed digital identity technology refers to the use of distributed systems and encryption technology to achieve digital identity management and authentication. It can help individuals or entities manage and verify their identity information in different network environments to ensure the uniqueness, security and credibility of the identity. The above target user's identity identification can be a string composed of the target user's registration ID, ID number, power terminal identification code and other information, arranged according to preset rules.

[0077] Step S3032: performing a fuzzy operation on the identity identifier to obtain key user information.

[0078] In a specific implementation, the above-mentioned identity identification can be obfuscated based on the following steps. The first step is to replace some of the characters of names, ID numbers, phone numbers, etc. with wildcards or random characters through data desensitization technology to reduce the sensitivity of the information. The second step is to encrypt identity information such as user names and email addresses using a hash function and convert them into a hash value of a fixed length to protect the original information. The third step is to encrypt identity information that needs to be protected using an encryption algorithm to ensure that only specific users or systems can decrypt and obtain the original information. The fourth step is to partially delete or hide unnecessary identity information to avoid the leakage of sensitive information. The fifth step is to generate a temporary anonymous identifier to replace the real identity for identity identification that needs to be anonymized to protect personal privacy. The sixth step is to use random processing for some identity information that needs to be blurred, such as adding random numbers to the phone number to protect the privacy of the information.

[0079] In a feasible implementation manner, the step S40 may include:

[0080] Step S401: Share the key user information in the alliance blockchain, and query whether there are other power terminals under the target user name in the shared information of the alliance blockchain based on the key user information.

[0081] Step S402: If so, a secondary detection is performed on the target user according to other historical power data of the other power terminals.

[0082] In this embodiment, the historical power data is input into a tampering detection model, and a predicted tampering probability corresponding to the historical power data is output; if the predicted tampering probability is greater than a preset threshold, it is determined that the target user has tampered; if the predicted tampering probability is less than or equal to the preset threshold, it is determined that the target user has not tampered; if the target user has tampered, the encryption algorithm corresponding to the encrypted user information when it is encrypted is determined; a decryption algorithm corresponding to the encryption algorithm is determined, and the encrypted user information is decrypted based on the decryption algorithm to obtain the target user information; data cleaning and data screening are performed on the target user information, and distributed identity mapping is performed on the processed target user information to obtain the identity of the target user; a fuzzification operation is performed on the identity to obtain key user information; the key user information is shared in a consortium blockchain, and based on the key user information, it is queried in the shared information of the consortium blockchain whether there are other power terminals under the name of the target user; if so, a secondary detection is performed on the target user according to other historical power data of the other power terminals. Compared with the traditional power data tampering detection method, the above method of this embodiment detects historical power data through a tampering detection model to determine whether the user has tampered with the data. At the same time, the key user information of malicious users who have tampered with the data is shared through the alliance blockchain to achieve secondary detection of malicious users, thereby achieving detection of malicious users without leaking user privacy, thereby improving detection efficiency and accuracy.

[0083] The present application embodiment provides a method for constructing a tampering detection model. Figure 4 , Figure 4 This is a flow chart of the first embodiment of the tamper detection model construction method of the present application.

[0084] In this embodiment, the tamper detection model construction method includes the following steps:

[0085] Step S1: Acquire sample power data and assign data labels to the sample power data, wherein the data labels include tampered data and normal data.

[0086] Step S2: pre-process the sample power data and then classify them to obtain a training set, a validation set and a test set.

[0087] Step S3: training and testing a preset model based on the training set, the validation set, the test set and the data labels to obtain an electricity theft behavior detection model, wherein the preset model is constructed based on a convolutional neural network and automated machine learning.

[0088] This embodiment obtains sample power data and assigns data labels to the sample power data, wherein the data labels include tampered data and normal data; performs data preprocessing on the sample power data and then classifies it to obtain a training set, a validation set, and a test set; trains and tests a preset model based on the training set, the validation set, the test set, and the data labels to obtain a power theft behavior detection model, wherein the preset model is constructed based on a convolutional neural network and automated machine learning. Compared with the traditional detection model construction method, since the above method of this embodiment assigns labels of tampered data and normal data to the sample power data, the model is more targeted during training, and thus a tampering detection model with stronger detection accuracy can be constructed.

[0089] In addition, an embodiment of the present application further proposes a storage medium, on which a power data tampering detection program is stored. When the power data tampering detection program is executed by a processor, the steps of the power data tampering detection method described above are implemented.

[0090] Reference Figure 5 , Figure 5 This is a structural block diagram of the first embodiment of the power data tampering detection device of the present application.

[0091] like Figure 5 As shown, the power data tampering detection device proposed in the embodiment of the present application includes:

[0092] The data acquisition module 501 is used to acquire the encrypted user information and historical power data of the target user, where the target user is a user of the power terminal;

[0093] A first detection module 502, used to input the historical power data into a tampering detection model, and determine whether the target user has tampered with the data according to the model output result, wherein the tampering detection model is used to detect whether the power data has been tampered with;

[0094] The data processing module 503 is used to decrypt the encrypted user information and then perform data processing to obtain key user information if it exists;

[0095] The second detection module 504 is used to share the key user information in the alliance blockchain, and determine whether to perform a secondary detection on the target user based on the shared information in the alliance blockchain.

[0096] This embodiment obtains the encrypted user information and historical power data of the target user, the target user is the user of the power terminal; inputs the historical power data into the tampering detection model, and judges whether the target user has tampered according to the model output result. The tampering detection model is used to detect whether the power data has been tampered; if so, the encrypted user information is decrypted and then processed to obtain key user information; the key user information is shared in the alliance blockchain, and based on the shared information in the alliance blockchain, it is judged whether to perform secondary detection on the target user. Compared with the traditional power data tampering detection method, the above method of this embodiment detects the historical power data through the tampering detection model to determine whether the user has tampered, and at the same time, the key user information of the malicious user who has tampered is shared through the alliance blockchain to realize secondary detection of the malicious user, thereby realizing detection of malicious users without leaking user privacy, and improving detection efficiency and accuracy.

[0097] Based on the first embodiment of the power data tampering detection device of the present application, a second embodiment of the power data tampering detection device of the present application is proposed.

[0098] In this embodiment, the first detection module 502 is also used to input the historical power data into a tampering detection model, and output a predicted tampering probability corresponding to the historical power data; if the predicted tampering probability is greater than a preset threshold, it is judged that the target user has tampered; if the predicted tampering probability is less than or equal to the preset threshold, it is judged that the target user has not tampered.

[0099] Furthermore, the data processing module 503 is also used to determine the encryption algorithm corresponding to the encrypted user information when it is encrypted if the target user has tampered with the information; determine the decryption algorithm corresponding to the encryption algorithm, and decrypt the encrypted user information based on the decryption algorithm to obtain the target user information; and perform data processing on the target user information to obtain key user information.

[0100] Furthermore, the data processing module 503 is also used to perform data cleaning and data screening on the target user information, and perform distributed identity mapping on the processed target user information to obtain the identity of the target user; and perform fuzzification operation on the identity to obtain key user information.

[0101] Furthermore, the second detection module 504 is also used to share the key user information to the alliance blockchain, and based on the key user information, query whether there are other power terminals under the name of the target user in the shared information of the alliance blockchain; if so, the target user is subjected to secondary detection based on other historical power data of the other power terminals.

[0102] Furthermore, the data processing module 503 is also used to obtain sample power data and assign data labels to the sample power data, wherein the data labels include tampered data and normal data; the sample power data is preprocessed and then classified to obtain a training set, a validation set and a test set; a preset model is trained and tested based on the training set, the validation set, the test set and the data labels to obtain a power theft detection model, wherein the preset model is constructed based on a convolutional neural network and automated machine learning.

[0103] Other embodiments or specific implementation methods of the power data tampering detection device of the present application can refer to the above-mentioned method embodiments and will not be repeated here.

[0104] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0105] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0106] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0107] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for detecting power data tampering, characterized in that: The method comprises the following steps: Obtaining encrypted user information and historical power data of a target user, wherein the target user is a user of a power terminal; Inputting the historical power data into a tampering detection model, and judging whether the target user has tampered with the data according to the output result of the model, wherein the tampering detection model is used to detect whether the power data has been tampered with; If it exists, the encrypted user information is decrypted and then data processed to obtain key user information; The key user information is shared in the alliance blockchain, and based on the shared information in the alliance blockchain, it is determined whether to perform a secondary detection on the target user.

2. The power data tampering detection method according to claim 1, characterized in that: The step of inputting the historical power data into the tampering detection model and judging whether the target user has tampering behavior according to the model output result includes: Inputting the historical power data into a tampering detection model, and outputting a predicted tampering probability corresponding to the historical power data; If the predicted tampering probability is greater than a preset threshold, it is determined that the target user has tampered; If the predicted tampering probability is less than or equal to a preset threshold, it is determined that the target user has not engaged in tampering behavior.

3. The method for detecting power data tampering according to claim 1, wherein: If the encrypted user information exists, the step of decrypting the encrypted user information and then performing data processing to obtain the key user information includes: If the target user has tampered with the information, determine the encryption algorithm corresponding to the encrypted user information when it is encrypted; Determine a decryption algorithm corresponding to the encryption algorithm, and decrypt the encrypted user information based on the decryption algorithm to obtain target user information; Data processing is performed on the target user information to obtain key user information.

4. The method for detecting power data tampering according to claim 3, characterized in that: The step of performing data processing on the target user information to obtain key user information includes: Performing data cleaning and data screening on the target user information, and performing distributed identity mapping on the processed target user information to obtain the identity of the target user; The identity identification is fuzzified to obtain key user information.

5. The method for detecting power data tampering according to claim 1, wherein: The step of sharing the key user information to the alliance blockchain, and determining whether to perform secondary detection on the target user based on the shared information in the alliance blockchain, includes: The key user information is shared in the alliance blockchain, and based on the key user information, it is inquired whether there are other power terminals under the name of the target user in the shared information of the alliance blockchain; If so, a secondary detection is performed on the target user based on other historical power data of the other power terminals.

6. A method for constructing a tampering detection model, characterized in that: The method comprises the following steps: Acquire sample power data, and assign data labels to the sample power data, wherein the data labels include tampered data and normal data; Preprocessing the sample power data and then classifying them to obtain a training set, a validation set, and a test set; The preset model is trained and tested based on the training set, the validation set, the test set and the data labels to obtain an electricity theft behavior detection model, wherein the preset model is constructed based on a convolutional neural network and automated machine learning.

7. A power data tampering detection device, characterized in that: The power data tampering detection device comprises: A data acquisition module, used to acquire encrypted user information and historical power data of a target user, wherein the target user is a user of the power terminal; A first detection module, used to input the historical power data into a tampering detection model, and determine whether the target user has tampered with the data according to the model output result, wherein the tampering detection model is used to detect whether the power data has been tampered with; A data processing module, used for decrypting the encrypted user information and then performing data processing to obtain key user information if it exists; The second detection module is used to share the key user information in the alliance blockchain, and determine whether to perform a secondary detection on the target user based on the shared information in the alliance blockchain.

8. A power data tampering detection device, characterized in that: The device comprises: a memory, a processor, and a power data tampering detection program stored in the memory and executable on the processor, wherein the power data tampering detection program is configured to implement the steps of the power data tampering detection method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a power data tampering detection program is stored on the storage medium. When the power data tampering detection program is executed by a processor, the steps of the power data tampering detection method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a power data tampering detection program, and when the power data tampering detection program is executed by a processor, the steps of the power data tampering detection method according to any one of claims 1 to 6 are implemented.