Intelligent energy management method and system based on block chain

Through the blockchain-based intelligent energy management method, energy data is collected and encrypted by IoT devices, consensus verification and smart contract scheduling are solved, single point failure and data centering problems of traditional energy management systems are achieved, and the security and efficient utilization of energy data are achieved, and transaction costs are reduced.

CN119862591APending Publication Date: 2025-04-22STATE GRID SIJI FEITIAN (LANZHOU) CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411849843.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

Traditional energy management systems have problems such as single point failure, data centering, low energy utilization efficiency, high transaction costs and poor data security, making it difficult to effectively collect, process and utilize massive amounts of energy data.

Method used

Adopt a blockchain-based intelligent energy management method, collect energy data through IoT devices, perform encrypted storage and consensus verification, use smart contracts to automatically schedule energy, record energy transaction information, and dynamically adjust consensus mechanisms to improve system efficiency.

Benefits of technology

It realizes the security and privacy of energy data, reduces the cost of energy transactions, improves energy usage efficiency, reduces waste, and enhances the robustness of the system and user participation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0005190267510000022
    Figure BDA0005190267510000022
  • Figure BDA0005190267510000031
    Figure BDA0005190267510000031
  • Figure BDA0005190267510000051
    Figure BDA0005190267510000051
Patent Text Reader

Abstract

The invention discloses an intelligent energy management method and system based on a block chain, and belongs to the technical field of data systems. The method is realized through six steps of energy data acquisition, energy data encryption and storage, block chain consensus verification, intelligent contract energy scheduling, energy transaction recording and dynamic consensus mechanism adjustment. According to the method, the security and privacy of the energy data are ensured by using an encryption technology, and data tampering and unauthorized access are prevented. The characteristics of the block chain provide transaction records which cannot be tampered, so that the energy transaction information can be transparently recorded and traced, and the credibility is improved. Through intelligent contract automatic energy scheduling, supply and demand changes can be responded in real time, the energy use efficiency is improved, and waste is reduced. Through the decentralized block chain network, the participation of an intermediary agent is reduced, so that the cost of energy transaction is reduced. The dynamically adjusted consensus mechanism can be adjusted according to the network load condition, and the efficiency and expandability of the block chain are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data systems, and specifically relates to a blockchain-based intelligent energy management method and system. Background Art

[0002] With the continuous growth of global energy demand and the increasing severity of environmental problems, the importance of energy management has become increasingly prominent. Traditional energy management systems usually rely on centralized control and management methods, which are prone to single point failures and data centralization, leading to challenges such as low energy utilization efficiency, high transaction costs and poor data security. In addition, with the popularization of IoT devices, massive amounts of energy data continue to emerge, and how to effectively collect, process and utilize this data has become an urgent problem to be solved.

[0003] In recent years, blockchain technology has gradually become an important tool in the field of energy management due to its decentralization, immutability and transparency. Blockchain can effectively solve the data security and privacy issues existing in traditional energy management systems, record and trace energy transactions through distributed ledger technology, and improve the transparency and credibility of transactions. In addition, smart contract technology can realize automated energy scheduling and transactions, reduce human intervention, and improve system efficiency.

[0004] In energy management, the introduction of a dynamic consensus mechanism can flexibly adjust the consensus algorithm according to the load of the network, improving the efficiency and scalability of the blockchain system. In addition, the automatic scheduling of supply and demand and the optimization of transaction timing can help improve energy efficiency and economic benefits and reduce transaction costs. The development of visualization tools enables users to understand energy use and transactions more intuitively, improving the user-friendliness and participation of the system.

[0005] Therefore, combining advanced technologies such as blockchain technology, smart contracts, IoT devices, and data visualization to develop a blockchain-based intelligent energy management system can not only improve the efficiency and safety of energy management, but also increase user participation and provide solutions for achieving a sustainable energy system. Summary of the invention

[0006] 1. Technical problems to be solved

[0007] In view of the problems existing in the prior art, the purpose of the present invention is to provide a blockchain-based intelligent energy management method and system, which can respond to changes in supply and demand in real time, improve energy efficiency, and reduce waste. The decentralized blockchain network reduces the participation of intermediaries, thereby reducing the cost of energy transactions.

[0008] 2. Technical solution

[0009] To solve the above problems, the present invention adopts the following technical solutions.

[0010] A smart energy management method based on blockchain, comprising the following steps:

[0011] 1) Energy data collection: Energy data is collected through IoT devices to form an energy data set D, where: D = {d1, d2, ..., d n}, where d i represents the i-th energy data, and n is the total number of data entries;

[0012] 2) Energy data encryption and storage: The collected energy data D is encrypted and stored in the blockchain network. The data encryption formula is as follows:

[0013] Among them, Enc is the encryption function, k is the encryption key, E(d i ) is the encrypted energy data;

[0014] 3) Blockchain consensus verification: Through the dynamic consensus mechanism, the encrypted data E(d i ) to verify the legitimacy and integrity of the data. The verification formula is as follows:

[0015]

[0016] 4) Smart contract energy dispatch: Based on energy supply and demand data, the smart contract SC is triggered to automatically dispatch energy. The dispatch rules are as follows:

[0017] SC:If S(t)<D(t)then A(t)=D(t)-S(t)

[0018] Among them, S(t) is the energy supply at time t, D(t) is the energy demand at time t, and A(t) is the required additional energy scheduling;

[0019] 5) Energy transaction records: record energy transaction information in the blockchain. The transaction record formula is as follows:

[0020] T=(P,Q,E,T s ), where P is the energy supplier, Q is the energy demander, E is the energy transaction volume, and Ts is the transaction timestamp;

[0021] 6) Dynamic consensus mechanism adjustment: The consensus algorithm C is adjusted according to the load of the energy network. The dynamic consensus adjustment formula is as follows:

[0022]

[0023] Where L(t) is the network load at time t, L threshold is the load threshold.

[0024] Furthermore, the energy data is encrypted using a symmetric encryption algorithm, and the encryption formula is:

[0025] E(d i )=AES k (di), where AES k It is the AES symmetric encryption algorithm based on the key k.

[0026] A blockchain-based intelligent energy management system includes the following steps:

[0027] 1) Blockchain network layer: responsible for storing encrypted energy data E(D) and performing consensus verification;

[0028] 2) Smart contract layer: automatically dispatch energy according to supply and demand, and execute smart contracts SC;

[0029] 3) Data collection layer: It consists of sensors and smart meters to collect energy data D;

[0030] 4) The user interface layer provides visual query functions to display transaction records T and energy usage reports;

[0031] 5) Privacy protection module: protect the privacy of energy data through encryption technology. The encryption formula used is: E(d i )=Enc(d i ,k).

[0032] Furthermore, the smart contract can automatically optimize the timing of energy transactions based on energy price fluctuations. The formula for optimizing the timing of energy transactions is as follows:

[0033] Among them, T opt is the optimal energy trading opportunity, and C(t) is the energy trading cost at time t.

[0034] Furthermore, the system records the source of energy through on-chain traceability technology to ensure the traceability and transparency of energy supply. The energy traceability record formula is as follows:

[0035] R=(S,T,L)

[0036] Among them, S is the energy supplier identifier, T is the supply timestamp, and L is the geographical location of the energy source.

[0037] Furthermore, the user interface layer includes a data visualization module for generating energy usage trend graphs and transaction statistics reports. The trend graph generation formula is as follows:

[0038] F={(t,U(t i ))|i=1,2,...,n}

[0039] Among them, t is the time point, U(t i ) is the energy usage at time t, and F is the energy usage trend dataset.

[0040] 3. Beneficial effects

[0041] Compared with the prior art, the advantages of the present invention are:

[0042] 1) The present invention ensures the security and privacy of energy data by using encryption technology to prevent data tampering and unauthorized access. The characteristics of blockchain itself provide unalterable transaction records, so that energy transaction information can be transparently recorded and traced, increasing trust.

[0043] 2) Automated energy dispatching through smart contracts can respond to changes in supply and demand in real time, improve energy efficiency and reduce waste. The decentralized blockchain network reduces the involvement of intermediaries, thereby reducing the cost of energy transactions.

[0044] 3) The dynamically adjusted consensus mechanism can be adjusted according to the network load to improve the efficiency and scalability of the blockchain. Smart contracts can automatically optimize transaction timing based on energy price fluctuations, allowing buyers and sellers to trade at the most appropriate time, reducing costs and improving economic benefits.

[0045] 4) Due to the decentralized nature of blockchain technology, the robustness of the system is improved, making it less susceptible to single point failures. By providing a visual user interface, users can easily query transaction records and energy usage, improving user participation and satisfaction. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present invention will be described clearly and completely below; obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments, and all other embodiments obtained by ordinary technicians in this field without making creative work based on the embodiments of the present invention are within the scope of protection of the present invention.

[0047] Embodiment 1:

[0048] A smart energy management method based on blockchain, comprising the following steps:

[0049] 1) Energy data collection: Energy data is collected through IoT devices to form an energy data set D, where: D = {d1, d2, ..., d n}, where d i represents the i-th energy data, and n is the total number of data entries;

[0050] 2) Energy data encryption and storage: The collected energy data D is encrypted and stored in the blockchain network. The data encryption formula is as follows:

[0051] Among them, Enc is the encryption function, k is the encryption key, E(d i ) is the encrypted energy data;

[0052] 3) Blockchain consensus verification: Through the dynamic consensus mechanism, the encrypted data E(d i ) to verify the legitimacy and integrity of the data. The verification formula is as follows:

[0053]

[0054] 4) Smart contract energy dispatch: Based on energy supply and demand data, the smart contract SC is triggered to automatically dispatch energy. The dispatch rules are as follows:

[0055] SC:If S(t)<D(t)then A(t)=D(t)-S(t)

[0056] Among them, S(t) is the energy supply at time t, D(t) is the energy demand at time t, and A(t) is the required additional energy scheduling;

[0057] 5) Energy transaction records: record energy transaction information in the blockchain. The transaction record formula is as follows:

[0058] T=(P,Q,E,T s ), where P is the energy supplier, Q is the energy demander, E is the energy transaction volume, and Ts is the transaction timestamp;

[0059] 6) Dynamic consensus mechanism adjustment: The consensus algorithm C is adjusted according to the load of the energy network. The dynamic consensus adjustment formula is as follows:

[0060]

[0061] Where L(t) is the network load at time t, L threshold is the load threshold.

[0062] The encryption of energy data adopts a symmetric encryption algorithm, and the encryption formula is:

[0063] E(d i )=AES k (di), where AES k It is the AES symmetric encryption algorithm based on the key k.

[0064] A blockchain-based intelligent energy management system includes the following steps:

[0065] 1) Blockchain network layer: responsible for storing encrypted energy data E(D) and performing consensus verification;

[0066] 2) Smart contract layer: automatically dispatch energy according to supply and demand, and execute smart contracts SC;

[0067] Smart contracts can automatically optimize energy trading opportunities based on energy price fluctuations. The formula for optimizing energy trading opportunities is as follows:

[0068] Among them, T opt is the optimal energy trading opportunity, and C(t) is the energy trading cost at time t.

[0069] 3) Data collection layer: It consists of sensors and smart meters to collect energy data D;

[0070] 4) The user interface layer provides visual query functions to display transaction records T and energy usage reports;

[0071] The user interface layer includes a data visualization module, which is used to generate energy usage trend graphs and transaction statistics reports. The trend graph generation formula is as follows:

[0072] F={(t,U(t i ))|i=1,2,...,n}

[0073] Among them, t is the time point, U(t i ) is the energy usage at time t, and F is the energy usage trend dataset.

[0074] 5) Privacy protection module: protect the privacy of energy data through encryption technology. The encryption formula used is: E(d i )=Enc(d i ,k).

[0075] The system records the source of energy through on-chain traceability technology to ensure the traceability and transparency of energy supply. The energy traceability record formula is as follows:

[0076] R=(S,T,L)

[0077] Where S is the energy supplier identifier, T is the supply timestamp, and L is the geographic location of the energy source. In the present invention, the implementation code of the blockchain energy management system is as follows:

[0078]

[0079]

[0080]

[0081]

[0082]

[0083] Smart contract: Energy scheduling and trading, the code is as follows:

[0084]

[0085]

[0086] Blockchain network interaction example (Python+Web3), using Python and Web3 to interact with smart contracts to upload energy data to the chain and record transactions;

[0087]

[0088]

[0089]

[0090] The above is only a preferred specific implementation of the present invention; however, the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solution and its improved conception within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A smart energy management method based on blockchain, characterized in that The steps include: 1) Energy data collection: Energy data is collected through IoT devices to form an energy data set D, where: D = {d1, d2, ..., d n }, where d i represents the i-th energy data, and n is the total number of data entries; 2) Energy data encryption and storage: The collected energy data D is encrypted and stored in the blockchain network. The data encryption formula is as follows: Among them, Enc is the encryption function, k is the encryption key, E(d i ) is the encrypted energy data; 3) Blockchain consensus verification: Through the dynamic consensus mechanism, the encrypted data E(d i ) to verify the legitimacy and integrity of the data. The verification formula is as follows: 4) Smart contract energy dispatch: Based on energy supply and demand data, the smart contract SC is triggered to automatically dispatch energy. The dispatch rules are as follows: SC:If S(t)<D(t)then A(t)=D(t)-S(t) Among them, S(t) is the energy supply at time t, D(t) is the energy demand at time t, and A(t) is the required additional energy scheduling; 5) Energy transaction records: record energy transaction information in the blockchain. The transaction record formula is as follows: T=(P,Q,E,T s ), where P is the energy supplier, Q is the energy demander, E is the energy transaction volume, and Ts is the transaction timestamp; 6) Dynamic consensus mechanism adjustment: The consensus algorithm C is adjusted according to the load of the energy network. The dynamic consensus adjustment formula is as follows: Where L(t) is the network load at time t, L threshold is the load threshold.

2. According to claim 1, a blockchain-based intelligent energy management method is characterized in that The energy data is encrypted using a symmetric encryption algorithm, and the encryption formula is: E(d i )=AES k (di), where AES k It is the AES symmetric encryption algorithm based on the key k.

3. According to claim 1, a blockchain-based intelligent energy management system is characterized by: 1) Blockchain network layer: responsible for storing encrypted energy data E(D) and performing consensus verification; 2) Smart contract layer: automatically dispatch energy according to supply and demand, and execute smart contracts SC; 3) Data collection layer: It consists of sensors and smart meters to collect energy data D; 4) The user interface layer provides visual query functions to display transaction records T and energy usage reports; 5) Privacy protection module: protect the privacy of energy data through encryption technology. The encryption formula used is: E(d i )=Enc(d i ,k).

4. According to claim 3, a blockchain-based intelligent energy management system is characterized in that: The smart contract can automatically optimize the timing of energy transactions based on energy price fluctuations. The formula for optimizing the timing of energy transactions is as follows: Among them, T opt is the optimal energy trading opportunity, and C(t) is the energy trading cost at time t.

5. The blockchain-based smart energy management method according to claim 1, characterized in that: The system records the source of energy through on-chain traceability technology to ensure the traceability and transparency of energy supply. The energy traceability record formula is as follows: R=(S,T,L) Among them, S is the energy supplier identifier, T is the supply timestamp, and L is the geographical location of the energy source.

6. According to claim 3, a blockchain-based intelligent energy management system is characterized in that: The user interface layer includes a data visualization module for generating energy usage trend graphs and transaction statistics reports. The trend graph generation formula is as follows: F={(t,U(t i ))|i=1,2,...,n} Among them, t is the time point, U(t i ) is the energy usage at time t, and F is the energy usage trend dataset.