A safe electric energy meter based on LI-FI communication technology
By using LI-FI communication technology and quantum encryption technology in electric energy meters, the problems of traditional electric energy meter data transmission security and measurement accuracy are solved, safe and efficient electric energy data transmission and measurement are achieved, and the stable operation of the power system and market fairness are ensured. trade.
Patent Information
- Application Number
- CN202410612938.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-17
AI Technical Summary
Traditional electric energy meters have security risks and measurement errors during data transmission, which affect the stable operation of the power system and fair transactions in the power market.
A safe electric energy meter based on LI-FI communication technology is used, combined with quantum encryption technology for data encryption and identity authentication, and temperature detection and compensation algorithms are used to improve metering accuracy. Intelligent metering and anomaly detection modules are integrated to monitor users' power consumption.
It realizes the safe transmission of electric energy usage data, improves data transmission security and measurement accuracy, promptly discovers and prevents potential safety hazards in the power system, and ensures the stable operation of the power system and fair market transactions.
Smart Images

Figure CN118209783B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric energy meters, and in particular to a safety electric energy meter based on LI-FI communication technology. Background Art
[0002] With the rapid development of the global economy and the growth of population, the demand for energy is also rising. As one of the main energy sources in modern society, the efficiency of electricity supply and management is directly related to the country's economic development and people's daily life. As the core metering equipment in the power system, the accuracy and safety of the energy meter are of vital importance to the stable operation of the power system and fair transactions in the power market.
[0003] However, traditional energy meters have many security risks in the data transmission process. Since traditional energy meters mainly use wireless communication to transmit data with power supply companies, data is easily illegally intercepted and tampered during transmission, especially in wireless communication, this risk is more prominent. In addition, environmental factors such as temperature changes will also affect the measurement accuracy of energy meters, resulting in metering errors, thus affecting the stable operation of the power system and fair transactions in the power market.
[0004] In order to solve these problems, scientific researchers and technical development teams are constantly exploring new technologies to improve the safety and accuracy of electricity meters. Against this background, safe electricity meters based on LI-FI communication technology came into being. LI-FI communication technology, that is, optical wireless communication technology, uses visible light as a transmission medium, has a high data transmission rate and security, and can effectively resist illegal attacks and eavesdropping. Compared with traditional wireless communication technology, LI-FI communication technology has a higher transmission rate, a larger transmission capacity and stronger security, and can meet the high standards of modern power systems for electricity meters. Therefore, the present invention proposes a safe electricity meter based on LI-FI communication technology. Summary of the invention
[0005] In view of the problems in the related art, the present invention proposes a safety electric energy meter based on LI-FI communication technology to overcome the above technical problems existing in the existing related art.
[0006] To this end, the specific technical solution adopted by the present invention is as follows:
[0007] A safety electric energy meter based on LI-FI communication technology comprises a housing, a plurality of indicator lights are arranged on the top of the housing surface, a display screen is arranged at the bottom of the indicator lights, a plurality of control buttons are arranged at the bottom of the display screen, and a speaker is arranged at the bottom of the control buttons;
[0008] A control system is provided inside the housing, and the control system includes a microprocessor, a data storage module, a LI-FI communication module, a safety module, an intelligent metering module, a temperature detection module, a power module, a display module and an interaction module, and the microprocessor is sequentially connected with the data storage module, the LI-FI communication module, the safety module, the intelligent metering module, the temperature detection module, the power module, the display module and the interaction module;
[0009] Wherein, the microprocessor is used to perform calculation and logic processing on the data in the control system;
[0010] The data storage module is used to store power usage data, temperature data of the power meter, user settings and system configuration information;
[0011] The LI-FI communication module is used to safely send power usage data to the power supply company, and receive data and instructions from the power supply company;
[0012] The security module is used to encrypt and authenticate the transmitted data through quantum encryption technology;
[0013] The intelligent metering module is used to compensate and correct the power consumption by using the temperature compensation technology to obtain the accurate power consumption of the user, and is also used to detect the abnormal power consumption of the user by using the abnormal detection algorithm;
[0014] The temperature detection module is used to detect and record the ambient temperature inside the electric energy meter in real time;
[0015] The power module is used to provide power to the electric energy meter and all the electronic components inside it;
[0016] The display module is used to display power usage data, warning information and energy-saving suggestions to users;
[0017] The interactive module is used for the user to query the electricity usage information by voice.
[0018] Preferably, the LI-FI communication module includes an optical transmitting module and an optical receiving module;
[0019] Wherein, the optical transmission module is used to convert data into visible light signals for transmission;
[0020] The optical receiving module is used to receive visible light signals and convert them into electrical signals for decoding.
[0021] Preferably, the security module comprises a channel establishment module, a quantum key issuance module, a shared key generation module, an estimation amplification module, a key generation module and an encryption authentication module connected in sequence;
[0022] The channel establishment module is used to establish a quantum channel for transmitting quantum bits and a classical channel for transmitting classical information and encrypted data;
[0023] The quantum key issuance module is used to generate and distribute quantum keys through quantum key distribution technology;
[0024] The shared key generation module is used to generate an original shared key for communication between the sender and the receiver;
[0025] The estimation and amplification module is used to estimate the error rate of the quantum channel and the classical channel, and when the error rate is lower than a preset threshold, reduce potential information leakage through privacy amplification technology;
[0026] The key generation module is used to generate a final shared key by executing an information coordination technology;
[0027] The encryption authentication module is used to encrypt the transmitted data using the final shared key and perform identity authentication on both communicating parties during communication.
[0028] Preferably, the quantum key issuance module comprises, when generating and distributing quantum keys through quantum key distribution technology:
[0029] Establishing communication between the sender and the receiver; the sender encodes each quantum bit by randomly selecting an encoding method for the quantum state;
[0030] The encoded quantum bits are sent to the receiver through the quantum channel; the receiver receives the encoded quantum bits and randomly selects a measurement basis for measurement;
[0031] The sender and receiver exchange the coding and measurement basis information used through the classical channel, select the same measurement basis as part of the key, and generate the quantum key.
[0032] Preferably, the estimation and amplification module estimates the error rate of the quantum channel and the classical channel, and when the error rate is lower than a preset threshold, reduces potential information leakage by using the privacy amplification technology, including:
[0033] The sender and receiver publicly exchange a portion of the key bits generated during the quantum key distribution process through a secure classical channel;
[0034] The sender and the receiver calculate the error rate of the quantum channel by comparing the partially disclosed key bits. If the error rate exceeds a predetermined threshold, the current round of key distribution is abandoned and restarted. If the error rate does not exceed the preset threshold, an error correction protocol is used to correct the errors in the key.
[0035] The sender and receiver generate a new shared key by combining the original shared key through error correction and privacy amplification algorithms.
[0036] Preferably, the intelligent metering module comprises a temperature compensation module, an electric energy calculation module and an abnormality detection module connected in sequence;
[0037] Wherein, the temperature compensation module is used to adjust the measurement parameters of the electric energy meter based on temperature changes using a temperature compensation algorithm;
[0038] The electric energy calculation module is used to measure the user's power consumption according to the adjusted measurement parameters;
[0039] The abnormality detection module is used to detect abnormal power usage of users by using an abnormality detection algorithm.
[0040] Preferably, the temperature compensation module, when adjusting the measurement parameters of the electric energy meter based on temperature changes using a temperature compensation algorithm, includes:
[0041] The temperature detection module detects and records the ambient temperature inside the electric energy meter in real time, and performs filtering and denoising processing;
[0042] Utilize the temperature compensation model to output the corresponding temperature error compensation value according to the current ambient temperature;
[0043] The measurement parameters of the electric energy meter are adjusted according to the calculated temperature error compensation value, wherein the measurement parameters include gain and offset.
[0044] Preferably, the calculation formula of the temperature compensation model is:
[0045]
[0046] In the formula, ΔE(T) Indicates the temperature T The measurement error compensation value under ; T Indicates the reference temperature when calibrating the energy meter; a represents the temperature coefficient; b Represents the bias term.
[0047] Preferably, adjusting the measurement parameters of the electric energy meter according to the calculated temperature error compensation value includes:
[0048] When the measured value is less than the theoretical value, the gain of the current coil is increased based on the temperature error compensation value, and when the measured value is greater than the theoretical value, the gain of the current coil is reduced based on the temperature error compensation value;
[0049] When there is a zero drift, and the measured value is less than the theoretical value, the bias parameter is increased based on the temperature error compensation value, and when the measured value is greater than the theoretical value, the bias parameter is reduced based on the temperature error compensation value.
[0050] Preferably, the abnormality detection module comprises:
[0051] Obtain the user's historical electricity consumption data, perform preprocessing, and build a training set based on the preprocessed electricity consumption data;
[0052] The long short-term memory network model is trained using the training set, and the performance is evaluated using the cross-validation method;
[0053] Obtain the user's current power consumption, input the trained long short-term memory network model, and output the corresponding predicted power consumption based on the trained long short-term memory network model;
[0054] The error between the current power consumption and the predicted power consumption is calculated. When the error result exceeds the preset error range, it is determined to be abnormal power consumption and an alarm is issued.
[0055] The beneficial effects of the present invention are:
[0056] The present invention realizes the safe transmission of electric energy usage data through LI-FI communication technology, improves the security of data transmission, and uses quantum encryption technology to encrypt and authenticate the transmitted data, effectively preventing the data from being stolen and tampered with during the transmission process, thereby ensuring the security of the data during the transmission process. In addition, by integrating the temperature detection module, the internal ambient temperature of the electric energy meter is monitored in real time, and the measurement parameters are automatically adjusted in combination with the temperature compensation algorithm, which reduces the impact of temperature changes on the measurement accuracy and effectively improves the accuracy of electric energy metering; through the abnormal detection algorithm, the detection of abnormal power consumption of users is realized, which is conducive to timely discovery and prevention of safety hazards of the power system. Compared with traditional electric energy meters, the safety electric energy meter of the present invention not only improves the security of data transmission, but also can improve the measurement accuracy through temperature compensation technology, providing a strong guarantee for the stable operation of the power system and fair transactions in the power market. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0058] Figure 1is a structural schematic diagram of a safety electric energy meter based on LI-FI communication technology according to an embodiment of the present invention;
[0059] Figure 2 It is a structural block diagram of a control system in a safety electric energy meter based on LI-FI communication technology according to an embodiment of the present invention.
[0060] In the figure:
[0061] 1. Shell; 2. Indicator light; 3. Display screen; 4. Control button; 5. Speaker; 6. Microprocessor; 7. Data storage module; 8. LI-FI communication module; 81. Light transmitting module; 82. Light receiving module; 9. Security module; 91. Channel establishment module; 92. Quantum key issuance module; 93. Shared key generation module; 94. Estimation amplification module; 95. Key generation module; 96. Encryption authentication module; 10. Intelligent metering module; 101. Temperature compensation module; 102. Electric energy calculation module; 103. Abnormal detection module; 11. Temperature detection module; 12. Power supply module; 13. Display module; 14. Interaction module. DETAILED DESCRIPTION
[0062] To further illustrate each embodiment, the present invention provides drawings, which are part of the disclosure of the present invention and are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, ordinary technicians in the field should be able to understand other possible implementations and advantages of the present invention. The components in the figures are not drawn to scale, and similar component symbols are generally used to represent similar components.
[0063] According to an embodiment of the present invention, a safety electric energy meter based on LI-FI communication technology is provided.
[0064] The present invention is further described with reference to the accompanying drawings and specific embodiments. Figure 1-Figure 2 As shown, the safety electric energy meter based on LI-FI communication technology according to an embodiment of the present invention comprises a housing 1, a plurality of indicator lights 2 are arranged on the top of the surface of the housing 1, a display screen 3 is arranged at the bottom of the indicator lights 2, a plurality of control buttons 4 are arranged at the bottom of the display screen 3, and a speaker 5 is arranged at the bottom of the control buttons 4;
[0065] A control system is provided inside the housing 1, and the control system includes a microprocessor 6, a data storage module 7, a LI-FI communication module 8, a security module 9, an intelligent metering module 10, a temperature detection module 11, a power module 12, a display module 13 and an interaction module 14, and the microprocessor 6 is sequentially connected to the data storage module 7, the LI-FI communication module 8, the security module 9, the intelligent metering module 10, the temperature detection module 11, the power module 12, the display module 13 and the interaction module 14;
[0066] Wherein, the microprocessor 6 is used to perform calculation and logic processing on the data in the control system;
[0067] The data storage module 7 is used to store power usage data, temperature data of the power meter, user settings and system configuration information;
[0068] The LI-FI communication module 8 is used to safely send the power usage data to the power supply company, and receive the data and instructions from the power supply company; specifically, the LI-FI communication module 8 includes an optical transmitting module 81 and an optical receiving module 82;
[0069] Wherein, the optical transmission module 81 is used to convert data into visible light signals for transmission;
[0070] The optical receiving module 82 is used to receive visible light signals and convert them into electrical signals for decoding.
[0071] The security module 9 is used to encrypt and authenticate the transmitted data through quantum encryption technology; specifically, the security module 9 includes a channel establishment module 91, a quantum key issuance module 92, a shared key generation module 93, an estimation amplification module 94, a key generation module 95 and an encryption authentication module 96 which are connected in sequence;
[0072] The channel establishment module 91 is used to establish a quantum channel for transmitting quantum bits and a classical channel for transmitting classical information and encrypted data;
[0073] The quantum key issuance module 92 is used to generate and distribute quantum keys through quantum key distribution technology. When generating and distributing quantum keys through quantum key distribution technology, the quantum key issuance module 92 includes: establishing communication between a sender and a receiver; the sender encodes each quantum bit by randomly selecting a quantum state encoding method; the encoded quantum bit is sent to the receiver through a quantum channel; the receiver receives the encoded quantum bit and randomly selects a measurement basis for measurement; the sender and the receiver exchange the encoding and measurement basis information used through a classical channel, select the same measurement basis as part of the key, and generate a quantum key.
[0074] The shared key generation module 93 is used to generate an original shared key for communication between the sender and the receiver;
[0075] The estimation and amplification module 94 is used to estimate the error rate of the quantum channel and the classical channel, and when the error rate is lower than a preset threshold, reduce potential information leakage through the privacy amplification technology; the estimation and amplification module 94 estimates the error rate of the quantum channel and the classical channel, and when the error rate is lower than the preset threshold, reduces potential information leakage through the privacy amplification technology, including: the sender and the receiver publicly exchange a part of the key bits generated in the quantum key distribution process through a secure classical channel; the sender and the receiver calculate the error rate of the quantum channel by comparing the partially disclosed key bits, if the error rate exceeds the predetermined threshold, abandon this round of key distribution and start again, if the error rate does not exceed the preset threshold, use the error correction protocol to correct the error in the key; the sender and the receiver generate a new shared key by combining the original shared key through the error correction and privacy amplification algorithm.
[0076] The key generation module 95 is used to generate a final shared key by executing information coordination technology;
[0077] Information Reconciliation is a key step in the Quantum Key Distribution (QKD) process, used to ensure that the original shared key generated between the sender (Alice) and the receiver (Bob) is the same.
[0078] Specifically, Alice and Bob use information reconciliation algorithms to process their shared secret key. These algorithms help them correct errors that may occur during transmission without exposing the secret key; information reconciliation algorithms detect and mark potential erroneous bits. These errors are caused by imperfections in the quantum channel or other external interference. Through error correction algorithms, Alice and Bob correct the detected erroneous bits. These algorithms are usually based on error-correcting codes, such as Hamming codes or more complex codes; after the information reconciliation and privacy amplification steps, Alice and Bob obtain a final shared secret key, which is corrected and scaled and can be used to encrypt their communication.
[0079] The information coordination technique is key to ensuring the practicality of QKD because it helps Alice and Bob generate a reliable shared secret key from the original qubit measurements, even in the presence of noise and interference. In this way, QKD provides a secure key exchange mechanism that can be used for a variety of cryptographic applications, including secure communications and digital signatures.
[0080] The encryption authentication module 96 is used to encrypt the transmitted data using the final shared key and perform identity authentication on both communicating parties during communication.
[0081] The smart metering module 10 is used to compensate and correct the power consumption by using the temperature compensation technology to obtain the accurate power consumption of the user, and is also used to detect the abnormal power consumption of the user by using the abnormal detection algorithm; specifically, the smart metering module 10 includes a temperature compensation module 101, an electric energy calculation module 102 and an abnormal detection module 103 connected in sequence;
[0082] The temperature compensation module 101 is used to adjust the measurement parameters of the electric energy meter based on temperature changes using a temperature compensation algorithm; when the temperature compensation module 101 adjusts the measurement parameters of the electric energy meter based on temperature changes using a temperature compensation algorithm, it includes:
[0083] 1) The temperature detection module detects and records the ambient temperature inside the electric energy meter in real time, and performs filtering and denoising processing;
[0084] Integrating a temperature detection module into an electric energy meter is an important function because temperature changes may affect the measurement accuracy of the electric energy meter. The following are the steps on how to use the temperature detection module to detect and record the internal ambient temperature of the electric energy meter in real time, and perform filtering and denoising:
[0085] After the electric energy meter is started, the temperature detection module will continuously read the temperature inside the electric energy meter. The temperature data can be sampled at preset time intervals (for example, every second or every minute); the collected temperature data will be stored in the data storage module inside the electric energy meter for subsequent analysis and processing. The data record should include a timestamp to facilitate tracking and analysis of temperature changes over time; the collected temperature data is filtered to eliminate noise and random fluctuations. Common filtering methods include low-pass filters, sliding average filters, or more complex filtering algorithms (such as Kalman filters); at the same time, the user interface of the electric energy meter displays real-time temperature readings and temperature change trend graphs so that users can understand the working environment of the electric energy meter; regular statistical analysis of temperature data is performed to understand the working environment and potential failure risks of the electric energy meter, and a temperature change report is generated for reference by maintenance personnel or users.
[0086] By integrating the temperature detection module and implementing the above steps, the electric energy meter can measure the electric energy consumption more accurately, while improving the environmental adaptability and reliability of the electric energy meter.
[0087] 2) Using the temperature compensation model to output the temperature error compensation value corresponding to the current ambient temperature; the calculation formula of the temperature compensation model is:
[0088]
[0089] In the formula, ΔE(T) Indicates the temperature T The measurement error compensation value under ; T 0 Indicates the reference temperature when calibrating the energy meter; a represents the temperature coefficient; b Represents the bias term.
[0090] 3) Adjusting the measurement parameters of the electric energy meter according to the calculated temperature error compensation value, wherein the measurement parameters include gain and offset, etc. The adjusting the measurement parameters of the electric energy meter according to the calculated temperature error compensation value includes:
[0091] When the measured value is less than the theoretical value, the gain of the current coil is increased based on the temperature error compensation value; when the measured value is greater than the theoretical value, the gain of the current coil is reduced based on the temperature error compensation value; when there is a zero drift and the measured value is less than the theoretical value, the bias parameter is increased based on the temperature error compensation value; when the measured value is greater than the theoretical value, the bias parameter is reduced based on the temperature error compensation value.
[0092] The power calculation module 102 is used to measure the power consumption of the user according to the adjusted measurement parameters;
[0093] Specifically, measuring the user's power consumption according to the adjusted measurement parameters (including gain and offset, etc.) usually involves the following steps:
[0094] 1) Obtain the adjusted gain and offset measurement parameters. Gain adjustment is usually used to amplify or reduce the size of the electrical signal to accommodate different ranges of power consumption. Offset adjustment is used to change the starting point of the electrical signal to accurately measure power consumption.
[0095] 2) After adjusting the measurement parameters, initialize the energy meter to ensure that all settings are correct and effective.
[0096] 3) The energy meter monitors the user's electricity consumption in real time and records parameters such as current and voltage. Based on the adjusted measurement parameters, the energy meter will calculate and display the electricity consumption in real time.
[0097] 4) The electric energy meter records the measured power consumption data and stores it in the internal data storage module. These data can be recorded in chronological order for subsequent data analysis and processing.
[0098] 5) The measured power consumption data is transmitted to the power supply company’s data center regularly or in real time. During the transmission process, quantum encryption technology is used to protect the privacy and integrity of the data.
[0099] 6) The user interface of the energy meter displays real-time electricity usage readings, allowing users to understand their electricity usage at any time.
[0100] 7) The power supply company regularly conducts statistical analysis on the user's power consumption data to understand the power consumption trends and abnormal situations. If necessary, a power consumption report can be generated for reference by the user or the power supply company.
[0101] Through the above steps, the energy meter can accurately measure the user's electricity consumption according to the adjusted measurement parameters and provide real-time and reliable electricity consumption information. This is of great significance for the stable operation of the power system and fair trading in the power market. At the same time, users can also take corresponding energy-saving measures to reduce energy consumption by understanding their own electricity consumption.
[0102] The anomaly detection module 103 is used to detect abnormal power usage of users by using an anomaly detection algorithm.
[0103] Specifically, the abnormality detection module 103 includes:
[0104] 1) Obtain the user's historical electricity consumption data, perform preprocessing, and build a training set based on the preprocessed electricity consumption data;
[0105] In order to build a training set based on historical electricity consumption data, we first need to obtain the user's historical electricity consumption data and then preprocess the data. The following are the basic steps for obtaining and preprocessing data:
[0106] Extract historical electricity consumption data from the power company's database or the user's electricity meter history records. Ensure the authenticity and integrity of the data, because the reliability of the data is crucial to the training of the model.
[0107] Clean up noise and inconsistencies in the data, such as removing obvious outliers or correcting erroneous records. To handle missing data, you can choose to delete samples with missing values or use methods such as interpolation to fill in missing values.
[0108] Standardize or normalize the data to eliminate the impact of different dimensions and orders of magnitude on model training. Encode the data, such as converting categorical features into numerical features.
[0109] Extract features from raw data that are helpful for model training, such as trends, periodicity, seasonality, etc. of electricity consumption. Meaningful features can be identified and constructed through technical means, such as time series analysis, statistical methods, or machine learning algorithms.
[0110] The cleaned and transformed data is divided into training set, validation set and test set. The training set is used to train the model, the validation set is used to adjust the model parameters, and the test set is used to evaluate the final performance of the model.
[0111] If the amount of data is limited, you can consider using data augmentation techniques, such as synthesizing new samples, adding noise, or applying data transformation methods to increase the diversity of the data and the robustness of the model.
[0112] Store the preprocessed data in an appropriate data storage system, such as a database, file system, or cloud storage service, for subsequent model training and evaluation.
[0113] Through the above steps, a power consumption dataset suitable for model training can be constructed. This dataset will provide basic data support for power load forecasting, energy efficiency analysis or other power system applications.
[0114] 2) Train the LSTM network model using the training set and use the cross-validation method to evaluate its performance;
[0115] Long short-term memory (LSTM) is a special type of recurrent neural network (RNN) that is well suited for processing and predicting time series data, such as electricity consumption data. The following are the steps to train the LSTM model using the training set and evaluate its performance using cross-validation:
[0116] Design the LSTM model architecture, including determining the number of layers, number of neurons in each layer, activation function, etc. Select an appropriate loss function and optimizer, such as mean squared error (MSE) and Adam optimizer.
[0117] Train the LSTM model using the training set. During the training process, monitor the model's loss and performance metrics, such as loss value, accuracy, or recall.
[0118] The cross-validation method is used to evaluate the performance of the model. Cross-validation divides the data set into multiple subsets, uses one of the subsets as the test set and the remaining subsets as the training set in turn, and repeats the training and evaluation process multiple times to obtain more stable and reliable performance evaluation results.
[0119] In each cross-validation iteration, evaluate the performance of the model using the validation set. Record performance metrics such as mean squared error (MSE), mean absolute error (MAE), or R² score.
[0120] Based on the results of cross-validation, adjust the model parameters (such as learning rate, batch size, hidden layer size, etc.) to optimize model performance. Repeat the training and evaluation process until the best parameter combination is found.
[0121] The final model is evaluated using the test set to verify its performance on unseen data. If the test results are satisfactory, the model can be used in practical applications such as power load forecasting.
[0122] Deploy the trained model into practical applications, such as integrating it into anomaly monitoring modules.
[0123] Through the above steps, the LSTM model can be used to train the electricity consumption data, and the cross-validation method can be used to evaluate the performance of the model, thereby obtaining an accurate and reliable power load forecasting model.
[0124] 3) Obtain the user’s current electricity consumption, input the trained long short-term memory network model, and output the corresponding predicted electricity consumption based on the trained long short-term memory network model;
[0125] 4) Calculate the error between the current power consumption and the predicted power consumption. When the error result exceeds the preset error range, it is judged as abnormal power consumption and an alarm is issued.
[0126] To calculate the error between current and predicted electricity usage and send an alarm when the error exceeds a preset range, the following steps can be followed:
[0127] Compare the real-time power consumption data with the predicted power consumption and calculate the error between the two. Various error metrics can be used, such as mean square error (MSE), mean absolute error (MAE), or root mean square error (RMSE).
[0128] According to the actual situation and needs, an error range is set as the standard for determining abnormal power consumption. This range can capture the real abnormal situation and avoid false alarms.
[0129] When the calculated error exceeds the preset error range, the system will determine it as abnormal power usage. Once abnormal power usage is detected, the system will trigger an alarm mechanism.
[0130] Record all abnormal power usage and corresponding response measures. Generate reports regularly for reference by power companies, users or relevant regulatory agencies.
[0131] Through the above steps, electricity consumption can be effectively monitored, abnormal electricity consumption behavior can be discovered in time, and corresponding measures can be taken to ensure the safe and stable operation of the power system.
[0132] The temperature detection module 11 is used to detect and record the ambient temperature inside the electric energy meter in real time;
[0133] Specifically, commonly used temperature sensors include thermistors (such as NTC or PTC), thermocouples, or integrated circuit temperature sensors (such as TMP006).
[0134] The power module 12 is used to provide power to the electric energy meter and all the electronic components inside it;
[0135] The display module 13 is used to display power usage data, warning information and energy-saving suggestions to the user;
[0136] The interaction module 14 is used for the user to query the electricity usage information by voice.
[0137] Specifically, the interaction module is a system component that allows users to query electricity usage information by voice. This module usually includes key technologies such as speech recognition, natural language processing and speech synthesis, so that users can query electricity usage information by voice commands without manual operation. The following are the functions and components included in the interaction module 14:
[0138] Speech Recognition: Converts user voice input into text information. Can be trained using pre-recorded speech samples to recognize specific speech patterns and commands.
[0139] Natural language processing: Parsing the text output by speech recognition to understand the user's query intent. Machine learning algorithms can be used to train models to recognize and respond to specific query types.
[0140] Information retrieval: Retrieve relevant information from a database or knowledge base based on the user's query intent. Technologies such as keyword matching and semantic matching can be used to improve the accuracy of retrieval.
[0141] Speech synthesis: Convert the retrieved information into speech output so that the user can receive the information through hearing. Text-to-speech technology can be used to convert text information into natural and fluent speech.
[0142] Through the interactive module, users can use voice to query electricity consumption information, such as current electricity consumption, electricity consumption history, electricity bills, etc. This interactive method is not only convenient and fast, but also can improve user satisfaction and the service quality of the power company.
[0143] In summary, with the help of the above technical solutions of the present invention, the present invention realizes the safe transmission of electric energy usage data through LI-FI communication technology, improves the security of data transmission, and uses quantum encryption technology to encrypt and authenticate the transmitted data, effectively preventing the data from being stolen and tampered with during the transmission process, and ensuring the security of the data during the transmission process. In addition, by integrating the temperature detection module, the internal ambient temperature of the electric energy meter is monitored in real time, and the measurement parameters are automatically adjusted in combination with the temperature compensation algorithm, which reduces the impact of temperature changes on the measurement accuracy and effectively improves the accuracy of electric energy metering; through the abnormal detection algorithm, the detection of abnormal power consumption of users is realized, which is conducive to timely discovery and prevention of safety hazards of the power system. Compared with traditional electric energy meters, the safety electric energy meter of the present invention not only improves the security of data transmission, but also can improve the measurement accuracy through temperature compensation technology, which provides a strong guarantee for the stable operation of the power system and fair trading in the power market.
[0144] In the present invention, unless otherwise clearly stipulated and limited, the terms such as "installation", "setting", "connection", "fixation" and "screw-on" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral one; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. Unless otherwise clearly defined, ordinary technicians in this field can understand the specific meanings of the above terms in the present invention according to the specific circumstances.
[0145] 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 principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A safety electric energy meter based on LI-FI communication technology, comprising a housing (1), characterized in that: A plurality of indicator lights (2) are arranged at the top of the surface of the housing (1); a display screen (3) is arranged at the bottom of the indicator lights (2); a plurality of control buttons (4) are arranged at the bottom of the display screen (3); and a speaker (5) is arranged at the bottom of the control buttons (4); A control system is arranged inside the housing (1), the control system comprising a microprocessor (6), a data storage module (7), a LI-FI communication module (8), a security module (9), an intelligent metering module (10), a temperature detection module (11), a power module (12), a display module (13) and an interaction module (14), and the microprocessor (6) is sequentially connected to the data storage module (7), the LI-FI communication module (8), the security module (9), the intelligent metering module (10), the temperature detection module (11), the power module (12), the display module (13) and the interaction module (14); Wherein, the microprocessor (6) is used to perform calculation and logic processing on data in the control system; The data storage module (7) is used to store power usage data, temperature data of the power meter, user settings and system configuration information; The LI-FI communication module (8) is used to safely send power usage data to the power supply company, and to receive data and instructions from the power supply company; The security module (9) is used to encrypt and authenticate the transmitted data using quantum encryption technology; The intelligent metering module (10) is used to compensate and correct the power consumption by using the temperature compensation technology to obtain the accurate power consumption of the user, and is also used to detect abnormal power consumption of the user by using an abnormality detection algorithm; The temperature detection module (11) is used to detect and record the ambient temperature inside the electric energy meter in real time; The power module (12) is used to provide power to the electric energy meter and all electronic components therein; The display module (13) is used to display power usage data, warning information and energy-saving suggestions to the user; The interactive module (14) is used for the user to query the electricity usage information by voice; The security module (9) comprises a channel establishment module (91), a quantum key issuance module (92), a shared key generation module (93), an estimation amplification module (94), a key generation module (95) and an encryption authentication module (96) which are connected in sequence; The channel establishment module (91) is used to establish a quantum channel for transmitting quantum bits and a classical channel for transmitting classical information and encrypted data; The quantum key issuance module (92) is used to generate and distribute quantum keys through quantum key distribution technology; The shared key generation module (93) is used to generate an original shared key for communication between the sender and the receiver; The estimation and amplification module (94) is used to estimate the error rate of the quantum channel and the classical channel, and when the error rate is lower than a preset threshold, reduce potential information leakage by using a privacy amplification technology; The key generation module (95) is used to generate a final shared key by executing an information coordination technique; The encryption authentication module (96) is used to encrypt the transmitted data using the final shared key and to perform identity authentication on both parties during communication.
2. A safety electric energy meter based on LI-FI communication technology according to claim 1, characterized in that: The LI-FI communication module (8) comprises a light transmitting module (81) and a light receiving module (82); Wherein, the optical transmission module (81) is used to convert data into visible light signals for transmission; The optical receiving module (82) is used to receive visible light signals and convert them into electrical signals for decoding.
3. A safety electric energy meter based on LI-FI communication technology according to claim 1, characterized in that: The quantum key issuance module (92) comprises, when generating and distributing quantum keys by using quantum key distribution technology: Establishing communication between the sender and the receiver; the sender encodes each quantum bit by randomly selecting an encoding method for the quantum state; The encoded quantum bits are sent to the receiver through the quantum channel; the receiver receives the encoded quantum bits and randomly selects a measurement basis for measurement; The sender and receiver exchange the coding and measurement basis information used through the classical channel, select the same measurement basis as part of the key, and generate the quantum key.
4. The safety electric energy meter based on LI-FI communication technology according to claim 1, characterized in that: The estimation and amplification module (94) estimates the error rate of the quantum channel and the classical channel, and when the error rate is lower than a preset threshold, reduces potential information leakage by using a privacy amplification technology, including: The sender and receiver publicly exchange a portion of the key bits generated during the quantum key distribution process through a secure classical channel; The sender and the receiver calculate the error rate of the quantum channel by comparing the partially disclosed key bits. If the error rate exceeds a predetermined threshold, the current round of key distribution is abandoned and restarted. If the error rate does not exceed the preset threshold, an error correction protocol is used to correct the errors in the key. The sender and receiver generate a new shared key by combining the original shared key through error correction and privacy amplification algorithms.
5. The safety electric energy meter based on LI-FI communication technology according to claim 1, characterized in that: The smart metering module (10) comprises a temperature compensation module (101), an electric energy calculation module (102) and an abnormality detection module (103) which are connected in sequence; Wherein, the temperature compensation module (101) is used to adjust the measurement parameters of the electric energy meter based on temperature changes using a temperature compensation algorithm; The electric energy calculation module (102) is used to measure the user's electric energy consumption according to the adjusted measurement parameters; The abnormality detection module (103) is used to detect abnormal electricity usage of users using an abnormality detection algorithm.
6. A safety electric energy meter based on LI-FI communication technology according to claim 5, characterized in that: The temperature compensation module (101) comprises, when using a temperature compensation algorithm to adjust the measurement parameters of the electric energy meter based on temperature changes: The temperature detection module detects and records the ambient temperature inside the electric energy meter in real time, and performs filtering and denoising processing; Utilize the temperature compensation model to output the corresponding temperature error compensation value according to the current ambient temperature; The measurement parameters of the electric energy meter are adjusted according to the calculated temperature error compensation value, wherein the measurement parameters include gain and offset.
7. A safety electric energy meter based on LI-FI communication technology according to claim 6, characterized in that: The calculation formula of the temperature compensation model is: In the formula, ΔE(T) Indicates the temperature T Temperature error compensation value under ; T 0 Indicates the reference temperature when calibrating the energy meter; a represents the temperature coefficient; b Represents the bias term.
8. The safety electric energy meter based on LI-FI communication technology according to claim 7, characterized in that: The step of adjusting the measurement parameters of the electric energy meter according to the calculated temperature error compensation value comprises: When the measured value is less than the theoretical value, the gain of the current coil is increased based on the temperature error compensation value, and when the measured value is greater than the theoretical value, the gain of the current coil is reduced based on the temperature error compensation value; When there is a zero drift, and the measured value is less than the theoretical value, the bias parameter is increased based on the temperature error compensation value, and when the measured value is greater than the theoretical value, the bias parameter is reduced based on the temperature error compensation value.
9. The safety electric energy meter based on LI-FI communication technology according to claim 5, characterized in that: The abnormality detection module (103) comprises, when using an abnormality detection algorithm to detect abnormal power usage of a user: Obtain the user's historical electricity consumption data, perform preprocessing, and build a training set based on the preprocessed electricity consumption data; The long short-term memory network model is trained using the training set, and the performance is evaluated using the cross-validation method; Obtain the user's current power consumption, input the trained long short-term memory network model, and output the corresponding predicted power consumption based on the trained long short-term memory network model; The error between the current power consumption and the predicted power consumption is calculated. When the error result exceeds the preset error range, it is determined to be abnormal power consumption and an alarm is issued.
Citation Information
Cited By
Safety electric energy meter based on LI-FI communication technology
CN119619579A
