Method and device for detecting energy efficiency of electric vehicle charging pile

By constructing a charging pile energy efficiency detection model and using data analysis and machine learning technology, the problem of low charging pile energy efficiency detection efficiency and poor real-time performance has been solved, efficient fault identification and resource allocation optimization have been achieved, and the quality and reliability of charging services have been improved.

CN118733968APending Publication Date: 2024-10-01STATE GRID ZHEJIANG ELECTRIC POWER CO MARKETING SERVICE CENT
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410953447.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-10-01

Smart Images

  • Figure CN118733968A_ABST
    Figure CN118733968A_ABST
Patent Text Reader

Abstract

The invention discloses an electric vehicle charging pile energy efficiency detection method and device. The method comprises the following steps: acquiring related historical data and fault records of the charging pile; marking historical data of the charging pile according to the fault record to obtain a fault type; constructing a training set and a test set according to the related historical data and the fault type of the charging pile; constructing a charging pile energy efficiency detection model; the charging pile energy efficiency detection model comprises a data cleaning module, a feature mapping module, an importance evaluation module, a feature selection module and a full connection layer. And training and testing the charging pile energy efficiency detection model according to the training set, the test set and a pre-constructed loss function, and inputting related data of the to-be-detected charging pile into the tested charging pile energy efficiency detection model to obtain an energy efficiency detection result. According to the invention, detection efficiency and real-time performance can be improved, and detection manpower resources can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data processing, and in particular to a method and a device for detecting the energy efficiency of an electric vehicle charging pile. Background Art

[0002] Charging pile technology is constantly innovating to improve charging efficiency, charging speed and user experience. For example, the advancement of fast charging technology has greatly shortened the charging time of electric vehicles, while the development of wireless charging technology has made it unnecessary for users to worry about charging sockets. At the same time, charging piles are becoming more and more intelligent, with functions such as remote monitoring, remote payment, data collection and analysis. These intelligent functions improve the management efficiency of charging piles and provide users with a more convenient charging experience. The degree of networking of charging piles has gradually increased, forming a charging network covering a wider area. This networked architecture enables users to find charging piles more conveniently and achieve a seamless charging experience across regions. Testing the energy efficiency of charging piles can ensure that the charging piles can provide power stably and reliably during use, avoid safety hazards of electric vehicle charging caused by charging pile energy efficiency problems, and ensure the safety of users. As the main charging facility for electric vehicles, the energy efficiency of charging piles directly affects the user's charging experience and service quality. By testing the energy efficiency of charging piles, the quality and reliability of charging services can be ensured, and user satisfaction can be improved.

[0003] However, the current charging pile energy efficiency testing process generally involves testing the parameters of the charging pile itself. However, the energy efficiency reduction of the charging pile is often closely related to the user's usage habits and power grid fluctuations. Testing the charging pile itself only has problems such as low testing efficiency, waste of human resources, and poor real-time performance. Summary of the invention

[0004] Based on this, it is necessary to provide a method and device for energy efficiency detection of electric vehicle charging piles that can improve detection efficiency and real-time performance and reduce detection human resources in response to the above technical problems.

[0005] To this end, the present invention adopts the following technical solution:

[0006] In a first aspect, the present invention provides a method for detecting energy efficiency of an electric vehicle charging pile, the method comprising:

[0007] Obtain historical data and fault records related to charging piles; perform data analysis on charging pile related data to obtain charging pile parameters, user operation data, and power grid data; fault records include equipment fault logs, user feedback, and power grid abnormality reports; annotate charging pile historical data based on fault records to obtain fault types; fault types include user operation errors, power grid fluctuations, and equipment failures; construct training sets and test sets based on charging pile related historical data and fault types;

[0008] Construct a charging pile energy efficiency detection model; the charging pile energy efficiency detection model includes a data cleaning module, a feature mapping module, an importance assessment module, a feature selection module and a fully connected layer;

[0009] The data cleaning module is used to clean and normalize the training set to obtain normalized data;

[0010] The feature mapping module is used to perform feature mapping on the normalized data according to the time series analysis method and the Fourier transform method to obtain time domain features and frequency domain features;

[0011] The importance evaluation module is used to evaluate the importance of time domain features and frequency domain features to obtain multiple important features;

[0012] The feature selection module is used to select multiple important features according to feature iteration and feature dimension reduction to obtain selected features;

[0013] The selected features are input into the fully connected layer and decoded by the decoder to output the fault type;

[0014] The charging pile energy efficiency detection model is trained and tested according to the training set, test set and pre-constructed loss function, and the relevant data of the charging pile to be tested is input into the tested charging pile energy efficiency detection model to obtain the energy efficiency detection result.

[0015] Furthermore, the normalized data is feature mapped according to the time series analysis method and the Fourier transform method to obtain time domain features and frequency domain features, which specifically include:

[0016] The normalized data is sorted after setting a timestamp in a unified format to obtain data with a time series; the missing values ​​in the data with a time series are filled according to the forward filling method to obtain a filled time series;

[0017] The trend analysis of the filled time series is performed according to the exponential smoothing method to obtain the time domain characteristics; the time domain characteristics are the characteristics of the trend changes of the historical data related to the charging piles over time;

[0018] The time domain features are converted using the fast Fourier transform method to obtain frequency domain features; the frequency domain features are the periodic characteristics of the historical data related to the charging piles.

[0019] Furthermore, the importance of time domain features and frequency domain features is evaluated to obtain multiple important features, including:

[0020] The time domain features and frequency domain features are modeled and multiple decision trees are constructed. In the process of node splitting in each decision tree, the time domain features and frequency domain features are selected as the contribution of the maximized node. The importance of the time domain features and frequency domain features is evaluated according to the accumulated contribution of the features, and the features with importance higher than the preset threshold are regarded as important features.

[0021] Furthermore, the importance of time domain features and frequency domain features is evaluated based on the cumulative contribution of the features, including:

[0022] The importance of time domain features and frequency domain features is evaluated based on the cumulative contribution of features:

[0023]

[0024] Among them, N trees represents the total number of decision trees, t represents the sequence number of the decision tree, n represents the node, ∑ n∈t represents the cumulative operation of all nodes in decision tree t that select feature X as the maximizing node for splitting, D(d) represents the contribution of the parent node in a single decision tree to select X as the maximizing node for splitting, N left represents the number of samples in the left child node and the right child node, N represents the total number of parent nodes, D(left) represents the contribution of the left child node to select X as the maximizing node for splitting, and N right represents the number of samples in the right child node, and D(right) represents the contribution of the right child node to select X as the maximizing node for splitting.

[0025] Furthermore, multiple important features are selected according to feature iteration and feature dimension reduction to obtain selected features, including:

[0026] Construct an empty feature set, gradually add important features to the empty feature set, evaluate the model performance after adding each important feature based on cross-validation, iteratively select the important features that improve the model performance the most and add them to the feature set until the model performance no longer changes or the feature set reaches the preset number of features, then output the final feature set.

[0027] Furthermore, the feature dimension of the final feature set is reduced, the intra-class scatter matrix and the inter-class scatter matrix of the features in the final feature set are calculated, and the eigenvalues ​​of the features in the feature set are calculated based on the intra-class scatter matrix and the inter-class scatter matrix; the eigenvalue is the direction in which the feature is mapped to the low-dimensional space; the largest eigenvalue is selected to map the final feature set to the low-dimensional space to obtain the features after dimensionality reduction; the features after dimensionality reduction are the selected features.

[0028] Furthermore, the pre-built loss function is:

[0029]

[0030] Among them, β1, β2, and β3 represent the weight coefficients of the contribution of different parts in the balance loss function according to the characteristics of the charging pile related data and the focus of the prediction task, m represents the total number of samples, and w i and v i represents different weights dynamically adjusted according to specific features in the charging pile related data, including charging period and charging type, i Indicates the actual energy efficiency test results, y i ′ represents the predicted energy efficiency test result, and p represents the response function to the prediction error.

[0031] In a second aspect, the present invention provides a device for detecting energy efficiency of an electric vehicle charging pile, comprising:

[0032] The data acquisition module is used to obtain the historical data and fault records related to the charging pile; perform data analysis on the data related to the charging pile to obtain the charging pile parameters, user operation data and power grid data; the fault records include equipment fault logs, user feedback and power grid abnormality reports; annotate the historical data of the charging pile according to the fault records to obtain the fault type; the fault type includes user operation errors, power grid fluctuations and equipment failures; construct training sets and test sets based on the historical data related to the charging pile and the fault type;

[0033] The charging pile energy efficiency detection model construction module is used to construct the charging pile energy efficiency detection model; the charging pile energy efficiency detection model includes a data cleaning module, a feature mapping module, an importance evaluation module, a feature selection module and a fully connected layer; the data cleaning module is used to perform data cleaning and normalization processing on the training set to obtain normalized data; the feature mapping module is used to perform feature mapping on the normalized data according to the time series analysis method and the Fourier transform method to obtain time domain features and frequency domain features; the importance evaluation module is used to perform importance evaluation on time domain features and frequency domain features to obtain multiple important features; the feature selection module is used to select multiple important features according to feature iteration and feature dimension reduction to obtain selected features; the selected features are input into the fully connected layer for decoding by the decoder, and the fault type is output;

[0034] The model training and energy efficiency detection module is used to train and test the charging pile energy efficiency detection model according to the training set, test set and pre-built loss function, input the relevant data of the charging pile to be tested into the tested charging pile energy efficiency detection model to obtain the energy efficiency detection result.

[0035] In a third aspect, the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0036] Obtain historical data and fault records related to charging piles; perform data analysis on charging pile related data to obtain charging pile parameters, user operation data, and power grid data; fault records include equipment fault logs, user feedback, and power grid abnormality reports; annotate charging pile historical data based on fault records to obtain fault types; fault types include user operation errors, power grid fluctuations, and equipment failures; construct training sets and test sets based on charging pile related historical data and fault types;

[0037] Construct a charging pile energy efficiency detection model; the charging pile energy efficiency detection model includes a data cleaning module, a feature mapping module, an importance assessment module, a feature selection module and a fully connected layer;

[0038] The data cleaning module is used to clean and normalize the training set to obtain normalized data;

[0039] The feature mapping module is used to perform feature mapping on the normalized data according to the time series analysis method and the Fourier transform method to obtain time domain features and frequency domain features;

[0040] The importance evaluation module is used to evaluate the importance of time domain features and frequency domain features to obtain multiple important features;

[0041] The feature selection module is used to select multiple important features according to feature iteration and feature dimension reduction to obtain selected features;

[0042] The selected features are input into the fully connected layer and decoded by the decoder to output the fault type;

[0043] The charging pile energy efficiency detection model is trained and tested according to the training set, test set and pre-constructed loss function, and the relevant data of the charging pile to be tested is input into the tested charging pile energy efficiency detection model to obtain the energy efficiency detection result.

[0044] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0045] Obtain historical data and fault records related to charging piles; perform data analysis on charging pile related data to obtain charging pile parameters, user operation data, and power grid data; fault records include equipment fault logs, user feedback, and power grid abnormality reports; annotate charging pile historical data based on fault records to obtain fault types; fault types include user operation errors, power grid fluctuations, and equipment failures; construct training sets and test sets based on charging pile related historical data and fault types;

[0046] Construct a charging pile energy efficiency detection model; the charging pile energy efficiency detection model includes a data cleaning module, a feature mapping module, an importance assessment module, a feature selection module and a fully connected layer;

[0047] The data cleaning module is used to clean and normalize the training set to obtain normalized data;

[0048] The feature mapping module is used to perform feature mapping on the normalized data according to the time series analysis method and the Fourier transform method to obtain time domain features and frequency domain features;

[0049] The importance evaluation module is used to evaluate the importance of time domain features and frequency domain features to obtain multiple important features;

[0050] The feature selection module is used to select multiple important features according to feature iteration and feature dimension reduction to obtain selected features;

[0051] The selected features are input into the fully connected layer and decoded by the decoder to output the fault type;

[0052] The charging pile energy efficiency detection model is trained and tested according to the training set, test set and pre-constructed loss function, and the relevant data of the charging pile to be tested is input into the tested charging pile energy efficiency detection model to obtain the energy efficiency detection result.

[0053] The above-mentioned method and device for energy efficiency detection of electric vehicle charging piles, the present invention analyzes the charging pile related data, divides the charging pile related data into charging pile parameters, user operation data and power grid data, and classifies the data to facilitate the implementation of targeted data preprocessing and cleaning strategies. At the same time, time domain feature extraction and frequency domain feature extraction can be carried out in a targeted manner according to the data category. This classification helps to extract features more efficiently, and dividing the charging pile related data into charging pile parameters, user operation data and power grid data can quickly locate the specific source of the problem. According to the fault detection results, maintenance and repair plans can be formulated more targetedly, resource allocation can be optimized, and unnecessary cost expenditures can be reduced. In addition, by utilizing features from different data sources, a more complex and comprehensive prediction model can be established, which can not only detect current faults, but also achieve early warning of potential faults by monitoring and analyzing the impact of grid fluctuations on charging pile performance or abnormal patterns in user operations, and take preventive measures in advance. At the same time, the constructed charging pile detection model can quickly identify the type of charging pile fault through automated data processing and analysis, reducing the time consumption of traditional manual detection methods, improving the efficiency of energy efficiency detection, and realizing real-time monitoring and early warning. At the same time, the automated energy efficiency detection model reduces the need for manual inspection and intervention, reduces labor resources, improves the efficiency of daily maintenance of charging piles, and greatly improves the quality and reliability of charging services. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 This is an application scenario diagram of a method for detecting energy efficiency of an electric vehicle charging pile in one embodiment of the present invention;

[0055] Figure 2 This is a structural block diagram of a device for detecting energy efficiency of an electric vehicle charging pile in one embodiment of the present invention;

[0056] Figure 3 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0058] In one embodiment, Figure 1 As shown, a method for detecting energy efficiency of an electric vehicle charging pile is provided, comprising the following steps:

[0059] Step 102, obtain historical data and fault records related to the charging pile; perform data analysis on the data related to the charging pile to obtain charging pile parameters, user operation data and power grid data; the fault records include equipment fault logs, user feedback and power grid abnormality reports; label the historical data of the charging pile according to the fault records to obtain the fault type; the fault type includes user operation errors, power grid fluctuations and equipment failures; construct a training set and a test set based on the historical data related to the charging pile and the fault type.

[0060] Charging pile parameters include charging power, charging current, charging voltage, charging time, charging amount, temperature, status information, number of connections and other data of the charging pile itself. By analyzing the charging pile parameters, the performance and energy efficiency of the charging pile can be comprehensively evaluated, and optimized and maintained accordingly.

[0061] User operation data includes charging mode selection, connection and disconnection time, charging plan settings, frequency and cycle of user use of charging piles, and charging demand. By analyzing these user operation parameters, charging station operators can obtain valuable user experience information to improve services, increase the utilization and energy efficiency of charging piles, and optimize users' charging experience. For example, by analyzing charging mode selection and charging demand, the energy supply strategy of charging piles can be adjusted; through user feedback and ratings, problem points in charging services can be identified and improved.

[0062] Grid data includes grid voltage fluctuation, grid frequency fluctuation, instantaneous overvoltage and instantaneous undervoltage, harmonic pollution, grid power outage, grid power supply capacity, grid recovery time, etc. Among them, grid voltage fluctuation is used to record the real-time value of grid voltage. Analyzing its fluctuation range and frequency can help evaluate grid stability and its impact on charging piles. Grid frequency fluctuation is also an important indicator of grid stability. Frequency deviation from standard value (such as 50Hz / 60Hz) may affect the normal operation of charging piles. Instantaneous voltage surge or sag events. These instantaneous fluctuations may cause damage to the electronic equipment of charging piles. Harmonic pollution in the grid is generated by nonlinear loads and may increase heat loss of equipment inside the charging pile, affecting equipment life and charging efficiency. Recording the occurrence time, duration and frequency of grid power outage events can help analyze the reliability of the grid. The maximum power supply capacity of the grid may change according to the overall load and time. At peak demand, insufficient grid power supply may limit the charging capacity of charging piles. Rapid changes in the total load of the grid, especially during peak hours, may increase the pressure on the grid, thereby affecting the charging efficiency of charging piles. The time required for the grid to recover from a power outage or other fault state to a normal state. Fast grid recovery time is very important to ensure the continuous operation of charging piles. By monitoring and analyzing the above grid fluctuation data, charging pile operators can better understand the impact of grid conditions on the energy efficiency of charging piles and take appropriate measures to prevent or respond to the impact of grid fluctuations in advance, thereby improving the reliability of charging piles and user satisfaction.

[0063] By marking the charging pile historical data according to the pre-set fault records, it is possible to obtain which data corresponds to which fault type. The present invention analyzes the charging pile related data and divides the charging pile related data into charging pile parameters, user operation data and power grid data. By classifying the data, different categories can not only manage and store data and extract features more effectively, but also facilitate the implementation of targeted data preprocessing and cleaning strategies, such as noise filtering for power grid data and outlier processing for user operation data. At the same time, different categories of data may require different feature extraction and conversion methods. For example, charging pile parameters may be more suitable for time domain analysis, while power grid data may be more informative in frequency domain analysis. This classification helps to extract features more efficiently, and dividing the charging pile related data into charging pile parameters, user operation data and power grid data can quickly locate the specific source of the problem, such as distinguishing whether it is caused by the charging pile's own parameter problems, improper user operation, or power grid fluctuations. According to the fault detection results, maintenance and repair plans can be formulated more specifically, resource allocation can be optimized, and unnecessary cost expenditures can be reduced. For example, if the cause of the fault is user operation, by analyzing common problems and misoperation modes in user operation data, improvements can be made in the user interface and operation process to reduce faults caused by improper operation. In addition, using features from different data sources can build more complex and comprehensive prediction models, which can not only detect current faults, but also provide early warning of potential faults and take preventive measures in advance by monitoring and analyzing the impact of grid fluctuations on charging pile performance or abnormal patterns in user operations. Energy efficiency testing of charging piles from three aspects can quickly improve detection efficiency, and corresponding maintenance and repair plans can be adopted according to the identified fault types, greatly improving the quality and reliability of charging services.

[0064] Step 104, constructing a charging pile energy efficiency detection model; the charging pile energy efficiency detection model includes a data cleaning module, a feature mapping module, an importance evaluation module, a feature selection module and a fully connected layer; the data cleaning module is used to perform data cleaning and normalization processing on the training set to obtain normalized data; the feature mapping module is used to perform feature mapping on the normalized data according to the time series analysis method and the Fourier transform method to obtain time domain features and frequency domain features; the importance evaluation module is used to perform importance evaluation on the time domain features and the frequency domain features to obtain multiple important features; the feature selection module is used to select multiple important features according to feature iteration and feature dimension reduction to obtain selected features; the selected features are input into the fully connected layer for decoding by the decoder, and the fault type is output.

[0065] In the process of building the charging energy efficiency detection model, the data cleaning module is designed to clean the data and normalize the data so that the data is suitable for the input of the neural network model. The feature mapping module is designed to convert the cleaned data into time domain features and frequency domain features. The time domain features and frequency domain features describe the data from different angles and provide more comprehensive information. The time domain features capture the original form and change trend of the data, while the frequency domain features reveal the periodicity and frequency distribution of the data. During the charging process, sudden changes in charging power and current may indicate a fault type, such as a poor cable connection or an internal fault in the charging pile. By monitoring the abnormal fluctuations of these time domain features, the model can predict potential faults, so that maintenance measures can be taken in advance to avoid the occurrence of faults. The changing trend of charging power can also reflect the user's charging behavior, such as the time when charging starts and ends, the charging mode selected by the user, etc. The frequency domain analysis of the grid frequency and voltage can reveal the characteristics of grid fluctuations, such as harmonic pollution or frequency offset. This is crucial for evaluating the impact of the grid on the charging pile and the possible decrease in charging efficiency or equipment damage caused by it. Faults in the internal components of the charging pile (such as transformers and rectifiers) often leave specific fingerprints in the frequency domain, such as an increase in harmonics at a specific frequency. Through frequency domain analysis, the health status of these devices can be accurately diagnosed and predictive maintenance can be achieved. Combining time domain and frequency domain features, the fault type in the charging process can be more comprehensively evaluated. For example, by analyzing the time series changes of charging power and the frequency components of grid fluctuations, it can be known whether the fault type is grid fluctuation or equipment fault model, and the appropriate charging period can be given in time or the charging power can be adjusted to avoid high load periods of the grid, improve charging efficiency and reduce costs. By extracting and analyzing the time domain and frequency domain features of charging pile related data, the charging pile energy efficiency detection model can improve the accuracy of fault detection, optimize charging strategies, and improve charging efficiency and service reliability. The importance evaluation module is designed to evaluate the importance of time domain features and frequency domain features. By evaluating the importance of features, the features that contribute most to the model's predicted energy efficiency can be identified, the feature set can be optimized, unimportant features can be removed, the model complexity can be reduced, and overfitting can be avoided, thereby improving the accuracy and generalization ability of the model. By identifying and selecting important features, the computing resources and time required for training the model can be significantly reduced. This is especially important for charging energy efficiency detection models that need to process large amounts of data in real time or near real time. At the same time, in the frequency domain features, certain specific frequency components may be closely related to the abnormality or fault type of the charging equipment. By evaluating the importance of these features, it is easier to identify early warning signs that indicate faults, and achieve early diagnosis and preventive maintenance of faults. In addition, different charging stations may face different challenges and operating conditions. By evaluating the importance of features, customized models can be developed for specific scenarios, such as optimizing models for specific types of grid fluctuations or charging behavior patterns.Assessing the importance of time domain features and frequency domain features in charging energy efficiency detection helps to build a more accurate, efficient and interpretable model, and improve the accuracy and efficiency of charging pile energy efficiency detection.

[0066] The feature selection module is designed to select multiple important features based on feature iteration and feature dimension reduction. By reducing the number of features from the perspective of feature iteration and feature dimension, the model training speed can be accelerated and the possibility of overfitting can be reduced. At the same time, the fewer features the model is based on, the easier it is to explain the model's behavior. By taking the feature perspective from the perspective of feature iteration and feature dimension, it helps to eliminate interference factors in the model decision-making process, making the model's prediction logic clearer and improving prediction accuracy.

[0067] Step 106, training and testing the charging pile energy efficiency detection model according to the training set and the test set and the pre-constructed loss function, inputting the relevant data of the charging pile to be detected into the tested charging pile energy efficiency detection model to obtain the energy efficiency detection result.

[0068] Build and train a charging pile energy efficiency detection model. Through automated data processing and analysis, the model can quickly identify the fault type of the charging pile, reduce the time consumption of traditional manual detection methods, and improve the efficiency of energy efficiency detection. The charging pile energy efficiency detection model can analyze real-time data and promptly discover the fault type, thereby achieving real-time monitoring and early warning. At the same time, the automated energy efficiency detection model reduces the need for manual inspection and intervention, reduces labor resources, and improves the daily maintenance efficiency of charging piles.

[0069] In the above-mentioned method for detecting the energy efficiency of an electric vehicle charging pile, the present invention analyzes the charging pile-related data and divides the charging pile-related data into charging pile parameters, user operation data and power grid data. By classifying the data, it is convenient to implement targeted data preprocessing and cleaning strategies. At the same time, time domain feature extraction and frequency domain feature extraction can be carried out in a targeted manner according to the data category. This classification helps to extract features more efficiently. Moreover, dividing the charging pile-related data into charging pile parameters, user operation data and power grid data can quickly locate the specific source of the problem. According to the fault detection results, maintenance and repair plans can be formulated more specifically, resource allocation can be optimized, and unnecessary cost expenditures can be reduced. In addition, by utilizing features from different data sources, a more complex and comprehensive prediction model can be established, which can not only detect current faults, but also achieve early warning of potential faults by monitoring and analyzing the impact of grid fluctuations on charging pile performance or abnormal patterns in user operations, and take preventive measures in advance. At the same time, the constructed charging pile detection model can quickly identify the type of charging pile fault through automated data processing and analysis, reducing the time consumption of traditional manual detection methods, improving the efficiency of energy efficiency detection, and realizing real-time monitoring and early warning. At the same time, the automated energy efficiency detection model reduces the need for manual inspection and intervention, reduces labor resources, improves the efficiency of daily maintenance of charging piles, and greatly improves the quality and reliability of charging services.

[0070] In one embodiment, feature mapping is performed on the normalized data according to a time series analysis method and a Fourier transform method to obtain time domain features and frequency domain features, including:

[0071] The normalized data is sorted after setting a timestamp in a unified format to obtain data with a time series; the missing values ​​in the data with a time series are filled according to the forward filling method to obtain a filled time series;

[0072] The trend analysis of the filled time series is performed according to the exponential smoothing method to obtain the time domain characteristics; the time domain characteristics are the characteristics of the trend changes of the historical data related to the charging piles over time;

[0073] The time domain features are converted using the fast Fourier transform method to obtain frequency domain features; the frequency domain features are the periodic characteristics of the historical data related to the charging piles.

[0074] In one embodiment, the importance of the time domain features and the frequency domain features is evaluated to obtain multiple important features, including:

[0075] The time domain features and frequency domain features are modeled and multiple decision trees are constructed. In the process of node splitting in each decision tree, the time domain features and frequency domain features are selected as the contribution of the maximized node. The importance of the time domain features and frequency domain features is evaluated according to the accumulated contribution of the features, and the features with importance higher than the preset threshold are regarded as important features.

[0076] In one embodiment, the importance of the time domain features and the frequency domain features is evaluated according to the cumulative contribution of the features, including:

[0077] The importance of time domain features and frequency domain features is evaluated based on the cumulative contribution of features:

[0078]

[0079] Among them, N trees represents the total number of decision trees, t represents the sequence number of the decision tree, n represents the node, ∑ n∈t represents the cumulative operation of all nodes in decision tree t that select feature X as the maximizing node for splitting, D(d) represents the contribution of the parent node in a single decision tree to select X as the maximizing node for splitting, N left represents the number of samples in the left child node and the right child node, N represents the total number of parent nodes, D(left) represents the contribution of the left child node to select X as the maximizing node for splitting, and N right represents the number of samples in the right child node, and D(right) represents the contribution of the right child node to select X as the maximizing node for splitting.

[0080] In a specific embodiment, in the detection of charging pile energy efficiency, some features may have repeated or similar information in the time domain or frequency domain. By modeling the time domain features and frequency domain features, multiple decision trees are constructed. In the process of node splitting in each decision tree, the time domain features and frequency domain features are selected as the contribution of the maximized node. The importance of the time domain features and frequency domain features is evaluated according to the cumulative contribution of the features. Compared with the existing importance calculation method, the time domain and frequency domain features in the charging pile data show different importance under different operating conditions. The cumulative contribution evaluation method can capture these differences and provide customized feature selection guidance for specific prediction tasks. At the same time, by evaluating the cumulative contribution of the features, these redundant features can be identified and removed, the model structure can be optimized, and the training efficiency and prediction accuracy can be improved. In addition, by giving priority to features with high cumulative contributions, the number of features that need to be processed in the model training and prediction stages can be reduced, thereby reducing the computational burden, especially in resource-constrained environments. Selecting features with high cumulative contributions helps to build a more generalized model because these features can better represent the basic working principles and states of the charging piles and reduce the model's over-reliance on noise or non-representative features in the data.

[0081] In one embodiment, multiple important features are selected according to feature iteration and feature dimension reduction to obtain selected features, including:

[0082] Construct an empty feature set, gradually add important features to the empty feature set, evaluate the model performance after adding each important feature based on cross-validation, iteratively select the important features that improve the model performance the most and add them to the feature set until the model performance no longer changes or the feature set reaches the preset number of features, then output the final feature set.

[0083] In one of the embodiments, the feature dimension of the final feature set is reduced, the intra-class scatter matrix and the inter-class scatter matrix of the features in the final feature set are calculated, and the eigenvalues ​​of the features in the feature set are calculated based on the intra-class scatter matrix and the inter-class scatter matrix; the eigenvalue is the direction in which the feature is mapped to the low-dimensional space; the largest eigenvalue is selected to map the final feature set to the low-dimensional space to obtain the features after dimensionality reduction; the features after dimensionality reduction are the selected features.

[0084] In a specific embodiment, feature selection is achieved from the perspective of feature iteration and feature dimension. Compared with existing feature selection techniques, the present invention is more dynamic, flexible and may be more suitable for complex data sets. The present invention can optimize the feature space to achieve better model performance. For example, through an iterative process, the feature set is dynamically adjusted according to the performance of the model on the current feature set, which can more flexibly cope with the complexity and variability in the data. For data that changes over time, iterative methods can adapt to these changes and maintain or improve model performance by regularly updating the feature set. At the same time, feature iteration can evaluate the impact of adding or removing features on model performance at each step, providing more refined control over the feature space. In addition, by adjusting the feature dimension, the complexity and performance of the model can be better balanced to prevent overfitting while maintaining sufficient information to support accurate predictions. Selecting the most relevant features can reduce the computing resources and time required for model training and prediction, especially when processing large-scale data sets and charging pile energy efficiency detection where data and demand change rapidly.

[0085] In one embodiment, the pre-built loss function is:

[0086]

[0087] Among them, β1, β2, and β3 represent the weight coefficients of the contribution of different parts in the balance loss function according to the characteristics of the charging pile related data and the focus of the prediction task, m represents the total number of samples, and w i and v i represents different weights dynamically adjusted according to specific features in the charging pile related data, including charging period and charging type, i Indicates the actual energy efficiency test results, yi ′ represents the predicted energy efficiency test result, and p represents the response function to the prediction error.

[0088] In a specific embodiment, by setting the above loss function to consider multiple types of errors and abnormal situations at the same time, the robustness to outliers and noise can be increased while maintaining the accuracy of the model. Specifically, the above loss function can dynamically adjust the weights of different loss components, making model training more flexible, and can adjust the focus according to the current training stage and data characteristics, thereby optimizing the overall model performance. At the same time, by assigning different weights to different types of errors, specific problems encountered during the training process can be solved more specifically, such as reducing the sensitivity of the model to outliers or paying more attention to the optimization of small errors. By introducing outlier-sensitive losses in the loss function, the model can pay more attention to generalization performance during the optimization process, thereby reducing the risk of overfitting. Charging pile data may present complex distribution characteristics, and the above loss function can adapt to this complexity. By carefully adjusting the components of the loss function, the specific characteristics of the data can be processed in the best way, thereby improving the accuracy of model training.

[0089] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0090] In one embodiment, Figure 2 As shown, a device for detecting energy efficiency of an electric vehicle charging pile is provided, comprising: a data acquisition module 202, a charging pile energy efficiency detection model construction module 204 and a model training and energy efficiency detection module 206, wherein:

[0091] The data acquisition module is used to obtain the historical data and fault records related to the charging pile; perform data analysis on the data related to the charging pile to obtain the charging pile parameters, user operation data and power grid data; the fault records include equipment fault logs, user feedback and power grid abnormality reports; annotate the historical data of the charging pile according to the fault records to obtain the fault type; the fault type includes user operation errors, power grid fluctuations and equipment failures; construct training sets and test sets based on the historical data related to the charging pile and the fault type;

[0092] The charging pile energy efficiency detection model construction module is used to construct the charging pile energy efficiency detection model; the charging pile energy efficiency detection model includes a data cleaning module, a feature mapping module, an importance evaluation module, a feature selection module and a fully connected layer; the data cleaning module is used to perform data cleaning and normalization processing on the training set to obtain normalized data; the feature mapping module is used to perform feature mapping on the normalized data according to the time series analysis method and the Fourier transform method to obtain time domain features and frequency domain features; the importance evaluation module is used to perform importance evaluation on time domain features and frequency domain features to obtain multiple important features; the feature selection module is used to select multiple important features according to feature iteration and feature dimension reduction to obtain selected features; the selected features are input into the fully connected layer for decoding by the decoder, and the fault type is output;

[0093] The model training and energy efficiency detection module is used to train and test the charging pile energy efficiency detection model according to the training set, test set and pre-built loss function, input the relevant data of the charging pile to be tested into the tested charging pile energy efficiency detection model to obtain the energy efficiency detection result.

[0094] For the specific definition of an electric vehicle charging pile energy efficiency detection device, please refer to the definition of an electric vehicle charging pile energy efficiency detection method mentioned above, which will not be repeated here. Each module in the above-mentioned electric vehicle charging pile energy efficiency detection device can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0095] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for detecting the energy efficiency of an electric vehicle charging pile is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0096] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0097] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0098] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0099] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for detecting energy efficiency of an electric vehicle charging pile, characterized in that: include: Obtain historical data and fault records related to charging piles; Perform data analysis on the charging pile related data to obtain charging pile parameters, user operation data and power grid data; the fault record includes equipment fault log, user feedback and power grid abnormality report; annotate the charging pile historical data according to the fault record to obtain the fault type; the fault type includes user operation error, power grid fluctuation and equipment failure; construct a training set and a test set according to the charging pile related historical data and fault type; Constructing a charging pile energy efficiency detection model; the charging pile energy efficiency detection model includes a data cleaning module, a feature mapping module, an importance assessment module, a feature selection module and a fully connected layer; The data cleaning module is used to perform data cleaning and normalization processing on the training set to obtain normalized data; The feature mapping module is used to perform feature mapping on the normalized data according to a time series analysis method and a Fourier transform method to obtain time domain features and frequency domain features; The importance evaluation module is used to evaluate the importance of the time domain features and the frequency domain features to obtain multiple important features; The feature selection module is used to select the multiple important features according to feature iteration and feature dimension reduction to obtain selected features; Input the selected features into the fully connected layer for decoding by the decoder, and output the fault type; The charging pile energy efficiency detection model is trained and tested according to the training set and the test set and the pre-constructed loss function, and the relevant data of the charging pile to be detected is input into the tested charging pile energy efficiency detection model to obtain the energy efficiency detection result.

2. The method according to claim 1, characterized in that The normalized data is subjected to feature mapping according to a time series analysis method and a Fourier transform method to obtain time domain features and frequency domain features, specifically including: Setting a timestamp in a unified format for the normalized data and then sorting the data to obtain data with a time series; filling missing values ​​in the data with a time series according to a forward filling method to obtain a filled time series; Performing trend analysis on the filled time series according to the exponential smoothing method to obtain time domain features; the time domain features are features of trend changes of charging pile related historical data over time; The time domain features are transformed using a fast Fourier transform method to obtain frequency domain features; the frequency domain features are periodic features of historical data related to charging piles.

3. The method according to claim 1, characterized in that The importance of the time domain features and frequency domain features is evaluated to obtain multiple important features, including: The time domain features and frequency domain features are modeled to construct multiple decision trees. In the process of node splitting in each decision tree, the time domain features and frequency domain features are selected as the contribution of the maximized node. The importance of the time domain features and frequency domain features is evaluated according to the accumulated contribution of the features, and the features with importance higher than a preset threshold are regarded as important features.

4. The method according to claim 3, characterized in that The importance of the time domain features and frequency domain features is evaluated according to the contribution of feature accumulation, specifically including: The importance of the time domain features and frequency domain features is evaluated based on the contribution of feature accumulation: Among them, N trees represents the total number of decision trees, t represents the sequence number of the decision tree, n represents the node, ∑ n∈t represents the cumulative operation of all nodes in decision tree t that select feature X as the maximizing node for splitting, D(d) represents the contribution of the parent node in a single decision tree that selects X as the maximizing node for splitting, N left represents the number of samples in the left child node and the right child node, N represents the total number of parent nodes, D(left) represents the contribution of the left child node to select X as the maximizing node for splitting, N right represents the number of samples in the right child node, and D(right) represents the right child node's contribution to selecting X as the maximizing node for splitting.

5. The method according to any one of claims 1 to 3, characterized in that: The plurality of important features are selected according to feature iteration and feature dimension reduction to obtain selected features, specifically including: Construct an empty feature set, gradually add the important features to the empty feature set, evaluate the model performance after adding each important feature based on cross-validation, iteratively select the important features that have the greatest improvement in model performance and add them to the feature set until the model performance no longer changes or the feature set reaches a preset number of features, then output the final feature set.

6. The method according to claim 5, characterized in that The method further comprises: The feature dimension of the final feature set is reduced, the intra-class scatter matrix and the inter-class scatter matrix of the features in the final feature set are calculated, and the eigenvalues ​​of the features in the feature set are calculated according to the intra-class scatter matrix and the inter-class scatter matrix; the eigenvalues ​​are the directions in which the features are mapped to the low-dimensional space; the largest eigenvalue is selected to map the final feature set to the low-dimensional space to obtain the features after dimensionality reduction; the features after dimensionality reduction are the selected features.

7. The method according to claim 1, characterized in that The pre-built loss function is: Among them, β1, β2, and β3 represent the weight coefficients of the contribution of different parts in the balance loss function according to the characteristics of the charging pile related data and the focus of the prediction task, m represents the total number of samples, and w i and v i represents different weights dynamically adjusted according to specific features in the charging pile related data, the specific features include charging period and charging type, i Indicates the actual energy efficiency test results, y i ′ represents the predicted energy efficiency test result, and p represents the response function to the prediction error.

8. A device for detecting energy efficiency of an electric vehicle charging pile, characterized in that: include: Data acquisition module, used to obtain historical data and fault records related to charging piles; Perform data analysis on the charging pile related data to obtain charging pile parameters, user operation data and power grid data; the fault record includes equipment fault log, user feedback and power grid abnormality report; annotate the charging pile historical data according to the fault record to obtain the fault type; the fault type includes user operation error, power grid fluctuation and equipment failure; construct a training set and a test set according to the charging pile related historical data and fault type; A charging pile energy efficiency detection model construction module is used to construct a charging pile energy efficiency detection model; the charging pile energy efficiency detection model includes a data cleaning module, a feature mapping module, an importance evaluation module, a feature selection module and a fully connected layer; the data cleaning module is used to perform data cleaning and normalization processing on the training set to obtain normalized data; the feature mapping module is used to perform feature mapping on the normalized data according to a time series analysis method and a Fourier transform method to obtain time domain features and frequency domain features; the importance evaluation module is used to perform importance evaluation on the time domain features and frequency domain features to obtain multiple important features; the feature selection module is used to select the multiple important features according to feature iteration and feature dimension reduction to obtain selected features; the selected features are input into the fully connected layer for decoding by a decoder, and the fault type is output; The model training and energy efficiency detection module is used to train and test the charging pile energy efficiency detection model according to the training set and the test set and the pre-constructed loss function, input the relevant data of the charging pile to be detected into the tested charging pile energy efficiency detection model, and obtain the energy efficiency detection result.

Citation Information

Cited By

  • Charging pile abnormal state identification method

    CN119310490A