Method and system capable of capturing and identifying charging waveforms of different devices
By capturing and analyzing the current waveform signal during the charging process of the device, extracting multi-dimensional features and inputting them into the recognition model, it solves the problem of the inability of traditional methods to accurately identify the device, achieves rapid identification and classification of device charging waveforms, and improves the intelligence of the energy management system. level, avoiding the risk of electricity overload and violation of regulations.
Patent Information
- Application Number
- CN202410572953.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-10
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional device identification methods rely on power consumption patterns and cannot accurately distinguish subtle differences between similar devices. They require additional hardware support, increase system complexity and cost, and make it difficult to accurately identify and classify device charging waveforms.
By capturing the current waveform signal during the charging process of the device, extracting multi-dimensional waveform features, inputting the pre-trained waveform recognition model, calculating the similarity score and peak feature index, determining the final recognition result of the device, and realizing rapid identification and classification of device charging waveforms .
It achieves rapid identification and classification of equipment charging waveforms, avoids disasters caused by power overload or violations, significantly improves the intelligence level of the energy management system, and provides strong technical support for refined energy monitoring and equipment maintenance.
Smart Images

Figure CN118606744A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of energy management, and in particular to a method and a system for capturing and identifying charging waveforms of different devices. Background Art
[0002] With the rapid development of smart grid and Internet of Things (IoT) technologies, the demand for intelligent energy management systems has increased significantly, especially in the field of accurately monitoring and identifying charging waveforms of different electronic devices. In environments such as smart homes, smart factories, and electric vehicle charging stations, being able to distinguish and identify the charging behavior of specific devices is crucial for energy efficiency optimization, equipment health management, and safety monitoring.
[0003] Traditional device identification methods mainly rely on power consumption patterns, and the identification accuracy is limited by the identifiability of device power changes. However, many electronic devices exhibit similar power consumption characteristics when charging, resulting in the inability of traditional methods to accurately distinguish subtle differences between similar devices. In addition, traditional methods often require additional hardware support, such as dedicated ammeters or monitoring equipment, which not only increases system complexity but also increases costs. Summary of the invention
[0004] The purpose of the present invention is to provide a method and system for capturing and identifying charging waveforms of different devices, so as to solve the deficiencies in the prior art, realize rapid identification and classification of device charging waveforms, achieve safe use of electricity, avoid disasters caused by power overload or illegal power use, significantly improve the intelligence level of energy management systems, and provide strong technical support for refined energy monitoring and equipment maintenance.
[0005] An embodiment of the present application provides a method for capturing and identifying charging waveforms of different devices, the method comprising:
[0006] Capture a current waveform signal of a certain length during the charging process of the device to be identified;
[0007] Extracting a multidimensional waveform feature from the current waveform signal, wherein the multidimensional waveform feature corresponds one-to-one to a pre-stored multidimensional waveform feature of each known device, and the multidimensional waveform feature includes at least a peak feature;
[0008] Inputting the current waveform signal into a pre-trained waveform recognition model, and outputting a first device recognition result of the current waveform signal;
[0009] Calculating similarity scores of the multidimensional waveform feature and the multidimensional waveform features of each known device respectively;
[0010] determining a second device identification result of the current waveform signal according to the similarity score;
[0011] A final device identification result of the current waveform signal is determined according to the first device identification result and the second device identification result.
[0012] Optionally, the method further includes:
[0013] Calculating a peak characteristic index of the peak characteristic, and calculating an index difference between the peak characteristic index and a pre-stored peak characteristic index of each known device;
[0014] Determining the second device identification result of the current waveform signal according to the similarity score includes:
[0015] A second device identification result of the current waveform signal is determined according to the similarity score and the index difference.
[0016] Optionally, the calculation formula of the peak characteristic index is:
[0017]
[0018] Among them, the PFI is the peak characteristic index, the I_n is the nth peak, the N is the number of peaks, the mu is the average value of the peaks, the sigma is the standard deviation, and the k is the exponential coefficient used to adjust the peak sensitivity.
[0019] Optionally, the similarity score is calculated as follows:
[0020]
[0021] Among them, S_m is the similarity score between the device to be identified and the m-th known device, V_i is the i-th dimensional feature vector in the multidimensional waveform features of the device to be identified, F_{m,i} is the i-th dimensional feature vector in the multidimensional waveform features of the m-th known device, w_i is the weighting factor of the i-th dimensional feature vector, and M is the dimension of the feature vector.
[0022] Optionally, determining the second device identification result of the current waveform signal according to the similarity score and the index difference includes:
[0023] A known device whose similarity score of the multi-dimensional waveform feature exceeds a preset similarity threshold and whose index difference is less than a preset difference threshold is obtained as a second device identification result.
[0024] Optionally, determining a final device identification result of the current waveform signal according to the first device identification result and the second device identification result includes:
[0025] Determine whether there is a consistent known device in the first device identification result and the second device identification result;
[0026] If so, the consistent known device is determined as the final device identification result; otherwise, the known device of the first device identification result and the known device with the largest similarity score in the second device identification result are determined as the parallel final device identification results.
[0027] Another embodiment of the present application provides a system capable of capturing and identifying charging waveforms of different devices, the system comprising:
[0028] A capture module is used to capture a current waveform signal of a certain length during the charging process of the device to be identified;
[0029] An extraction module, configured to extract multidimensional waveform features from the current waveform signal, wherein the multidimensional waveform features correspond one-to-one to pre-stored multidimensional waveform features of each known device, and the multidimensional waveform features at least include peak features;
[0030] An input module, used for inputting the current waveform signal into a pre-trained waveform recognition model, and outputting a first device recognition result of the current waveform signal;
[0031] A first calculation module, used for respectively calculating similarity scores between the multidimensional waveform feature and multidimensional waveform features of each known device;
[0032] A first determination module, configured to determine a second device identification result of the current waveform signal according to the similarity score;
[0033] The second determination module is used to determine a final device identification result of the current waveform signal according to the first device identification result and the second device identification result.
[0034] Yet another embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, wherein the computer program is configured to execute any of the above methods when running.
[0035] Yet another embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any of the methods described above.
[0036] Compared with the prior art, the present invention provides a method for capturing and identifying charging waveforms of different devices, by capturing a current waveform signal of a certain length during the charging process of the device to be identified; extracting multidimensional waveform features from the current waveform signal; inputting the current waveform signal into a pre-trained waveform recognition model, and outputting a first device recognition result of the current waveform signal; respectively calculating similarity scores between the multidimensional waveform features and the multidimensional waveform features of each known device; determining a second device recognition result of the current waveform signal based on the similarity scores; determining a final device recognition result of the current waveform signal based on the first device recognition result and the second device recognition result, thereby enabling rapid recognition and classification of device charging waveforms, achieving safe electricity use, avoiding power overload, or disasters caused by illegal electricity use, significantly improving the intelligence level of the energy management system, and providing strong technical support for refined energy monitoring and equipment maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A hardware structure block diagram of a computer terminal that can capture and identify charging waveforms of different devices provided by an embodiment of the present invention;
[0038] Figure 2 A flowchart of a method for capturing and identifying charging waveforms of different devices provided by an embodiment of the present invention;
[0039] Figure 3 A schematic diagram of the structure of a system capable of capturing and identifying charging waveforms of different devices provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, but should not be construed as limiting the present invention.
[0041] The embodiment of the present invention first provides a method for capturing and identifying charging waveforms of different devices. The method can be applied to electronic devices, such as computer terminals, specifically ordinary computers, etc.
[0042] The following describes it in detail by taking running on a computer terminal as an example. Figure 1 The hardware structure block diagram of a computer terminal that can capture and identify charging waveforms of different devices provided by an embodiment of the present invention. Figure 1 As shown, the computer terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the computer terminal may also include a transmission device 106 for communication functions and an input and output device 108. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0043] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / modules corresponding to the method for capturing and identifying charging waveforms of different devices in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implementing the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0044] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0045] See also Figure 2 , an embodiment of the present invention provides a method for capturing and identifying charging waveforms of different devices, which may include the following steps:
[0046] S201, capturing a current waveform signal of a certain length during the charging process of the device to be identified;
[0047] Specifically, when implementing this step, considering that the current waveform signal may contain noise and other interference, it is necessary to use a high-precision and high-sensitivity current sensor and a high-speed analog-to-digital converter (ADC) to ensure the quality of the collected signal. In the process of signal capture, the key is to select a suitable sampling frequency and sampling time window, which depends on the charging characteristics of the device being tested and the complexity of the current waveform. One implementation method may include:
[0048] 1. Hardware selection and configuration:
[0049] -Choose a current sensor with high resolution and high dynamic range that can sense small current changes while ensuring that it will not saturate under large current shocks.
[0050] -Use a high-speed analog-to-digital converter (ADC) in conjunction with the current sensor to ensure that the analog current signal can be quickly and accurately converted into a digital signal for subsequent processing. The ADC sampling frequency must be higher than twice the highest frequency of the signal to meet the Nyquist sampling theorem and avoid aliasing.
[0051] 2. Signal capture:
[0052] - Set an appropriate sampling time window to cover at least one complete charging cycle or multiple cycles to improve data reliability.
[0053] -Implement real-time data acquisition to continuously record the current waveform signal during the charging process. A trigger mechanism can be used to start the acquisition process, and the recording will automatically start when it is detected that the device starts charging.
[0054] 3. Data preprocessing and optimization:
[0055] -Preprocess the collected current signal, including removing DC bias, filtering high-frequency noise and normalizing the signal to ensure the quality of the waveform signal.
[0056] -Use window function technology to limit the time range of the signal and reduce the impact of boundary effects on signal analysis.
[0057] 4.Signal storage and transmission:
[0058] - Save the processed current waveform data in a cache or storage device for subsequent analysis and processing.
[0059] -If remote processing is required, the data can be sent to a cloud server or central processor via a secure communication protocol.
[0060] Through the above steps, the current waveform signal of the device to be identified during charging can be captured efficiently and reliably, laying a good foundation for the subsequent feature extraction and device identification. Considering the importance and technical requirements of the capture link, the above implementation method focuses on high-quality signal acquisition and preprocessing to ensure the accuracy and stability of the entire identification process.
[0061] S202, extracting a multidimensional waveform feature from the current waveform signal, wherein the multidimensional waveform feature corresponds one-to-one to a pre-stored multidimensional waveform feature of each known device, and the multidimensional waveform feature includes at least a peak feature;
[0062] First, it is important to understand that the current waveform signal contains key information about the device's operating status and characteristics. The goal of extracting multidimensional waveform features is to capture the unique "fingerprint" information of each device, which can be the energy concentration in a specific frequency band of the waveform, or some statistical characteristics of the current. One implementation method may include:
[0063] 1. Peak feature extraction:
[0064] - Apply a peak detection algorithm (such as thresholding or peak detection) to identify all local maxima in the waveform, which constitute the peak feature.
[0065] -Captures characteristics such as peak height, width, and interval, and uses statistics such as average peak value, maximum peak value, and standard deviation of peak values as features.
[0066] 2. Waveform analysis:
[0067] - Apply time-frequency analysis techniques (such as short-time Fourier transform or wavelet transform) to decompose the signal to identify energy distribution patterns in different frequency bands.
[0068] -Extract statistical features of waveform signals, such as mean, variance, skewness, kurtosis, etc.
[0069] 3. Feature selection and dimension reduction:
[0070] - Use feature selection algorithms (such as principal component analysis, independent component analysis, or machine learning-based feature selection methods) to identify and retain those features that are most discriminatory for device identification.
[0071] - Eliminate redundant or highly correlated features to simplify the model and reduce the burden of subsequent calculations.
[0072] 4. Corresponding to the pre-stored features:
[0073] -Standardize the extracted features to ensure that they are dimensionally consistent and comparable to the features in the pre-stored device feature library.
[0074] -Through the feature matching algorithm, the extracted multi-dimensional features are compared with the pre-stored known device features to determine the corresponding relationship.
[0075] Through these steps, the multidimensional features extracted from the current waveform signal not only reflect the current waveform characteristics of the device when charging, but also form a one-to-one correspondence with the pre-stored known device features. These multidimensional features provide the necessary input for the subsequent device identification steps. The entire process requires each step to be executed accurately to ensure the quality of feature extraction and recognition accuracy.
[0076] S203, inputting the current waveform signal into a pre-trained waveform recognition model, and outputting a first device recognition result of the current waveform signal;
[0077] A convolutional neural network (CNN) can be used as a waveform recognition model, which can effectively process the input current waveform image and identify its features. CNN has outstanding performance in the field of image recognition and can overcome the limitations of traditional algorithms through automatic feature extraction. One implementation method may include:
[0078] 1. Data preparation:
[0079] -Construct training and test sets from the captured current waveform signals. The training set is used to train the CNN model, and the test set is used to evaluate the model performance.
[0080] 2. Preprocess current waveform signal:
[0081] -Normalize the captured current waveform signals and scale the amplitudes to the same range, such as between 0 and 1.
[0082] -Convert the current waveform signal into an image form, for example, by using time-frequency analysis or directly converting the time series data of the waveform signal into a two-dimensional matrix form.
[0083] 3.CNN model training:
[0084] -Design CNN architecture, including convolutional layer, pooling layer, fully connected layer and output layer. The convolutional layer is used to extract local features in the current waveform signal, the pooling layer is used to reduce the feature dimension, the fully connected layer aggregates these features, and the output layer is responsible for classification.
[0085] -Train the CNN model using the captured current waveform image training set. Optimize the network weights using the back-propagation algorithm and gradient descent.
[0086] 4. Model testing and optimization:
[0087] -Use the test set to evaluate the performance of the CNN model and calculate evaluation indicators such as classification accuracy and recall.
[0088] -According to the evaluation index results, perform model tuning, which may include adjusting the network structure, optimizing the optimization, and setting the learning rate.
[0089] 5. Current waveform signal classification:
[0090] -Input the current waveform signal image to be identified into the trained CNN model.
[0091] -CNN model processes the input image and outputs the corresponding classification result, which is the first device recognition result of the current waveform signal.
[0092] Through these steps, the CNN model can learn the association between current waveform images and device types, and then automatically and accurately identify devices when new waveform images are input. Due to the hierarchical structure and feature extraction mechanism of CNN, it is an efficient solution to the problem of complex current waveform recognition. In addition, CNN has excellent generalization ability, ensuring that the model can still provide reliable recognition results when facing unseen current waveform signals.
[0093] S204, respectively calculating similarity scores between the multidimensional waveform feature and multidimensional waveform features of each known device;
[0094] Multidimensional waveform feature vectors can be created for the device to be identified and each known device. These multidimensional waveform feature vectors may include peak, time domain, frequency domain, and time-frequency domain features, etc. The multidimensional waveform feature vectors of all devices are standardized to eliminate the impact of dimensions and put different features on the same order of magnitude for easy comparison.
[0095] Specifically, a similarity score calculation formula may be:
[0096]
[0097] Among them, S_m is the similarity score between the device to be identified and the m-th known device, V_i is the i-th dimension feature vector in the multidimensional waveform features of the device to be identified, F_{m,i} is the i-th dimension feature vector in the multidimensional waveform features of the m-th known device, w_i is the weighting factor of the i-th dimension feature vector, M is the dimension of the feature vector, and ||…|| represents the norm of the vector.
[0098] This formula calculates the relative distance between the standardized feature vector of the device to be identified and each known device feature vector, and adjusts it through weighting factors to reflect the importance of different features. By subtracting this relative distance from 1, a similarity score between 0 and 1 can be obtained. The closer the value is to 1, the higher the similarity. The determination of w_i can be based on existing knowledge and experience, or statistical methods such as logistic regression can be used to estimate the contribution of each feature to recognition accuracy, or these weighting factors can be automatically learned through feature importance scoring of machine learning algorithms.
[0099] Through these steps, the similarity between the device to be identified and each known device in terms of multi-dimensional waveform features can be quantified, thereby providing a basis for determining the final device identification result.
[0100] S205, determining a second device identification result of the current waveform signal according to the similarity score;
[0101] Exemplarily, known devices whose similarity scores of multi-dimensional waveform features exceed a preset similarity threshold may be obtained as the second device identification result.
[0102] Furthermore, a peak characteristic index of the peak characteristic may be calculated, and an index difference between the peak characteristic index and a pre-stored peak characteristic index of each known device may be calculated;
[0103] The peak characteristics in the current waveform signal can be quantified by calculating the peak characteristic index (PFI), which is a statistical indicator described by a mathematical formula and comprehensively considers factors such as the peak amplitude, distribution and variability.
[0104] The calculated PFI is compared with the pre-stored known device PFI value, and the index difference is obtained by calculating the difference between them. This step is to evaluate the similarity between the newly captured device waveform PFI and the known device waveform PFI.
[0105] Specifically, a calculation formula for the peak characteristic index may be:
[0106]
[0107] Among them, PFI is the peak characteristic index, which is designed to quantify the distribution characteristics of the peak in the current waveform. This index can capture the extreme behavior of the waveform and is used to distinguish the charging characteristics of different devices. I_n is the nth peak, which is obtained directly from the current waveform signal through the peak detection algorithm. N is the number of peaks, mu is the average value of the peak, and sigma is the standard deviation, which is used to quantify the discreteness of the peak distribution. k is an exponential coefficient used to adjust the peak sensitivity (for example, k = 2), which can be set according to historical experience data and actual needs to improve the performance of overall device identification.
[0108] The calculation of PFI not only captures the intensity of each peak, but also reflects the relative relationship between peaks and their stability by introducing the mean and standard deviation. In the formula, k is an exponential coefficient used to adjust the sensitivity to peak changes, providing a means of custom adjustment to meet the needs of waveform characteristics of different devices.
[0109] Specifically, the second device identification result of the current waveform signal may be determined according to the similarity score and the index difference.
[0110] For example, known devices whose similarity scores of multi-dimensional waveform features exceed a preset similarity threshold and whose index difference is less than a preset difference threshold may be obtained as the second device identification result.
[0111] According to historical data and device identification accuracy requirements, a preset similarity threshold of the similarity score and a preset difference threshold of the index difference are set. For each known device, determine whether its similarity score exceeds the preset similarity threshold, and at the same time determine whether the difference of its peak feature index is less than the preset difference threshold. Collect all known devices that meet the above conditions, and these devices constitute the second device identification result candidate set of the device to be identified.
[0112] Through these steps, known devices with high similarity to the device to be identified and small differences in peak feature index can be effectively screened out, greatly improving the accuracy and reliability of device identification. This method combines the global similarity score and the fine differences in peak features, using comprehensive information to improve the ability to identify devices.
[0113] S206: Determine a final device identification result of the current waveform signal according to the first device identification result and the second device identification result.
[0114] Specifically, it can be determined whether there is a consistent known device in the first device identification result and the second device identification result; if so, the consistent known device is determined as the final device identification result, otherwise, the known device in the first device identification result and the known device with the largest similarity score in the second device identification result are determined as parallel final device identification results.
[0115] Among them, compare the first device identification result and the second device identification result to check whether there is a consistent device. If there is a consistent device, it means that the same identification result is obtained from different feature and model analyses, which increases the credibility of the identification accuracy. If the first and second device identification results show a consistent known device, the device is directly determined as the final device identification result. If there is no consistent device, the known device of the first device identification result and the known device with the highest similarity score in the second device identification result are selected, which represents the device that is closest to the waveform signal of the device to be identified from different angles. If there are multiple devices with the same highest similarity score, these devices are listed as parallel final device identification results. Its significance is:
[0116] 1. Improve recognition accuracy: By combining two independent recognition processes, potential misidentification can be corrected. If the two methods produce consistent results, the credibility of the recognition results is enhanced; if the results are inconsistent, a mechanism is provided to decide the most reliable result.
[0117] 2. Increase decision-making basis: When two recognition results are inconsistent, the similarity scores can be compared and the device with the highest score can be used as the final device recognition result. In this way, even if the two methods give different recognition devices, there is a decision-making process based on statistics and comparison, rather than random or unfounded selection.
[0118] 3. Handling multiple candidate devices: In some cases, the second device identification result may give multiple candidate devices, and the scope can be further narrowed by comparing the similarity scores.
[0119] 4. Flexibility and robustness: It provides a systematic decision-making process that can still work effectively and adapt to new situations when the recognition environment or device status changes.
[0120] 5. Parallel result processing: When a single result cannot be finalized, parallel results can be accepted to provide all possible equipment options to users or downstream systems, allowing further analysis or manual intervention.
[0121] By following the above steps, the possible limitations of a single identification method can be discovered and resolved, providing a more reasonable and scientific device identification result. This is crucial to ensure the correct identification of device charging waveforms in complex electrical systems, especially when the system needs to distinguish between many devices with similar functions or close electrical parameters.
[0122] In actual applications, by capturing data of different power waveforms, analyzing and identifying the type of instrument corresponding to the specific output current, the control center sets up a database to store relevant data to facilitate the center to retrieve data for comparison and make judgments. The center issues instructions to the controller based on the preset judgment mechanism to control the execution of different electrical appliances after connection, whether to power on or off, so as to protect the circuit or adapt to user needs, achieve safe electricity use, and avoid disasters caused by power overload or illegal electricity use.
[0123] It can be seen that by capturing a section of the current waveform signal during the charging process of the device to be identified; extracting multidimensional waveform features from the current waveform signal; inputting the current waveform signal into a pre-trained waveform recognition model, and outputting the first device recognition result of the current waveform signal; respectively calculating the similarity scores between the multidimensional waveform features and the multidimensional waveform features of each known device; determining the second device recognition result of the current waveform signal according to the similarity scores; determining the final device recognition result of the current waveform signal according to the first device recognition result and the second device recognition result, it is possible to realize rapid recognition and classification of the device charging waveform, achieve safe electricity use, avoid power overload, or disasters caused by illegal electricity use, significantly improve the intelligence level of the energy management system, and provide strong technical support for the realization of refined energy monitoring and equipment maintenance.
[0124] Another embodiment of the present invention provides a system for capturing and identifying charging waveforms of different devices. Figure 3 , the system may include:
[0125] Capturing module 301, used to capture a current waveform signal of a certain length during the charging process of the device to be identified;
[0126] An extraction module 302, configured to extract a multi-dimensional waveform feature from the current waveform signal, wherein the multi-dimensional waveform feature corresponds one-to-one to a pre-stored multi-dimensional waveform feature of each known device, and the multi-dimensional waveform feature includes at least a peak feature;
[0127] An input module 303, used for inputting the current waveform signal into a pre-trained waveform recognition model, and outputting a first device recognition result of the current waveform signal;
[0128] A first calculation module 304 is used to respectively calculate similarity scores between the multi-dimensional waveform feature and the multi-dimensional waveform features of each known device;
[0129] A first determination module 305, configured to determine a second device identification result of the current waveform signal according to the similarity score;
[0130] The second determination module 306 is configured to determine a final device identification result of the current waveform signal according to the first device identification result and the second device identification result.
[0131] It can be seen that by capturing a section of the current waveform signal during the charging process of the device to be identified; extracting multidimensional waveform features from the current waveform signal; inputting the current waveform signal into a pre-trained waveform recognition model, and outputting the first device recognition result of the current waveform signal; respectively calculating the similarity scores between the multidimensional waveform features and the multidimensional waveform features of each known device; determining the second device recognition result of the current waveform signal according to the similarity scores; determining the final device recognition result of the current waveform signal according to the first device recognition result and the second device recognition result, it is possible to realize rapid recognition and classification of the device charging waveform, achieve safe electricity use, avoid power overload, or disasters caused by illegal electricity use, significantly improve the intelligence level of the energy management system, and provide strong technical support for the realization of refined energy monitoring and equipment maintenance.
[0132] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0133] Specifically, in this embodiment, the above storage medium may be configured to store a computer program for performing the following steps:
[0134] S201, capturing a current waveform signal of a certain length during the charging process of the device to be identified;
[0135] S202, extracting a multidimensional waveform feature from the current waveform signal, wherein the multidimensional waveform feature corresponds one-to-one to a pre-stored multidimensional waveform feature of each known device, and the multidimensional waveform feature includes at least a peak feature;
[0136] S203, inputting the current waveform signal into a pre-trained waveform recognition model, and outputting a first device recognition result of the current waveform signal;
[0137] S204, respectively calculating similarity scores between the multidimensional waveform feature and multidimensional waveform features of each known device;
[0138] S205, determining a second device identification result of the current waveform signal according to the similarity score;
[0139] S206: Determine a final device identification result of the current waveform signal according to the first device identification result and the second device identification result.
[0140] It can be seen that by capturing a section of the current waveform signal during the charging process of the device to be identified; extracting multidimensional waveform features from the current waveform signal; inputting the current waveform signal into a pre-trained waveform recognition model, and outputting the first device recognition result of the current waveform signal; respectively calculating the similarity scores between the multidimensional waveform features and the multidimensional waveform features of each known device; determining the second device recognition result of the current waveform signal according to the similarity scores; determining the final device recognition result of the current waveform signal according to the first device recognition result and the second device recognition result, it is possible to realize rapid recognition and classification of the device charging waveform, achieve safe electricity use, avoid power overload, or disasters caused by illegal electricity use, significantly improve the intelligence level of the energy management system, and provide strong technical support for the realization of refined energy monitoring and equipment maintenance.
[0141] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0142] Specifically, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0143] Specifically, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0144] S201, capturing a current waveform signal of a certain length during the charging process of the device to be identified;
[0145] S202, extracting a multidimensional waveform feature from the current waveform signal, wherein the multidimensional waveform feature corresponds one-to-one to a pre-stored multidimensional waveform feature of each known device, and the multidimensional waveform feature includes at least a peak feature;
[0146] S203, inputting the current waveform signal into a pre-trained waveform recognition model, and outputting a first device recognition result of the current waveform signal;
[0147] S204, respectively calculating similarity scores between the multidimensional waveform feature and multidimensional waveform features of each known device;
[0148] S205, determining a second device identification result of the current waveform signal according to the similarity score;
[0149] S206: Determine a final device identification result of the current waveform signal according to the first device identification result and the second device identification result.
[0150] It can be seen that by capturing a section of the current waveform signal during the charging process of the device to be identified; extracting multidimensional waveform features from the current waveform signal; inputting the current waveform signal into a pre-trained waveform recognition model, and outputting the first device recognition result of the current waveform signal; respectively calculating the similarity scores between the multidimensional waveform features and the multidimensional waveform features of each known device; determining the second device recognition result of the current waveform signal according to the similarity scores; determining the final device recognition result of the current waveform signal according to the first device recognition result and the second device recognition result, it is possible to realize rapid recognition and classification of the device charging waveform, achieve safe electricity use, avoid power overload, or disasters caused by illegal electricity use, significantly improve the intelligence level of the energy management system, and provide strong technical support for the realization of refined energy monitoring and equipment maintenance.
[0151] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings. The above is only a preferred embodiment of the present invention, but the present invention is not limited to the scope of implementation shown in the drawings. Any changes made according to the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the description and drawings, should be within the protection scope of the present invention.
Claims
1. A method for capturing and identifying charging waveforms of different devices, characterized in that: The method comprises: Capture a current waveform signal of a certain length during the charging process of the device to be identified; Extracting a multidimensional waveform feature from the current waveform signal, wherein the multidimensional waveform feature corresponds one-to-one to a pre-stored multidimensional waveform feature of each known device, and the multidimensional waveform feature includes at least a peak feature; Inputting the current waveform signal into a pre-trained waveform recognition model, and outputting a first device recognition result of the current waveform signal; Calculating similarity scores of the multidimensional waveform feature and the multidimensional waveform features of each known device respectively; determining a second device identification result of the current waveform signal according to the similarity score; A final device identification result of the current waveform signal is determined according to the first device identification result and the second device identification result.
2. The method according to claim 1, characterized in that: The method further comprises: Calculating a peak characteristic index of the peak characteristic, and calculating an index difference between the peak characteristic index and a pre-stored peak characteristic index of each known device; Determining the second device identification result of the current waveform signal according to the similarity score includes: A second device identification result of the current waveform signal is determined according to the similarity score and the index difference.
3. The method according to claim 2, characterized in that The calculation formula of the peak characteristic index is: Wherein, the PFI is a peak characteristic index, I_n is the nth peak, N is the number of peaks, mu is the average value of the peaks, sigma is the standard deviation, and k is an exponential coefficient for adjusting peak sensitivity.
4. The method according to claim 3, characterized in that The calculation formula of the similarity score is: Among them, S_m is the similarity score between the device to be identified and the m-th known device, V_i is the i-th dimensional feature vector in the multidimensional waveform features of the device to be identified, F_{m,i} is the i-th dimensional feature vector in the multidimensional waveform features of the m-th known device, w_i is the weighting factor of the i-th dimensional feature vector, and M is the dimension of the feature vector.
5. The method according to claim 2, characterized in that: The determining, according to the similarity score and the index difference, a second device identification result of the current waveform signal comprises: A known device whose similarity score of the multi-dimensional waveform feature exceeds a preset similarity threshold and whose index difference is less than a preset difference threshold is obtained as a second device identification result.
6. The method according to claim 5, characterized in that The determining, according to the first device identification result and the second device identification result, a final device identification result of the current waveform signal includes: Determine whether there is a consistent known device in the first device identification result and the second device identification result; If so, the consistent known device is determined as the final device identification result; otherwise, the known device of the first device identification result and the known device with the largest similarity score in the second device identification result are determined as the parallel final device identification results.
7. A system capable of capturing and identifying charging waveforms of different devices, characterized in that: The system comprises: A capture module is used to capture a current waveform signal of a certain length during the charging process of the device to be identified; An extraction module, configured to extract multidimensional waveform features from the current waveform signal, wherein the multidimensional waveform features correspond one-to-one to pre-stored multidimensional waveform features of each known device, and the multidimensional waveform features at least include peak features; An input module, used for inputting the current waveform signal into a pre-trained waveform recognition model, and outputting a first device recognition result of the current waveform signal; A first calculation module, used for respectively calculating similarity scores between the multidimensional waveform feature and multidimensional waveform features of each known device; A first determination module, configured to determine a second device identification result of the current waveform signal according to the similarity score; The second determination module is used to determine a final device identification result of the current waveform signal according to the first device identification result and the second device identification result.
8. The system according to claim 7, characterized in that The system further comprises: A second calculation module, used for calculating a peak characteristic index of the peak characteristic, and calculating an index difference between the peak characteristic index and a pre-stored peak characteristic index of each known device; The first determining module is specifically configured to: A second device identification result of the current waveform signal is determined according to the similarity score and the index difference.
9. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 6 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 6.
