Charging pile prediction optimization method and device based on KANs
Through the charging pile prediction and optimization method based on KANs, phase space reconstruction and Min-Max normalization technology are used to solve the prediction problem of the randomness and spatiotemporal distribution characteristics of electric vehicle charging behavior, improve the prediction accuracy and adaptability, and support Stable operation and optimal management of power systems.
Patent Information
- Application Number
- CN202410799914.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-20
AI Technical Summary
Existing charging pile prediction methods have limitations in dealing with the randomness, uncertainty, and spatiotemporal distribution characteristics of electric vehicle charging behavior, resulting in insufficient prediction accuracy and adaptability.
A charging pile prediction and optimization method based on KANs is used to deeply explore the dynamic characteristics of the electric vehicle charging pile time series through phase space reconstruction technology, build a KANs prediction model, and train through optimization algorithms and loss functions, combined with Min-Max normalization Strategies and evaluation metrics optimize model performance.
It improves the accuracy and robustness of the prediction model, maintains high interpretability, and can better support the stable operation and optimal management of the power system. Compared with traditional methods, it shows significant advantages in charging pile prediction.
Smart Images

Figure CN118674110A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of charging pile data prediction, and in particular to a method and device for charging pile prediction optimization based on KANs. Background Art
[0002] With the rapid growth of the electric vehicle market, the prediction of electric vehicle charging piles has become an important issue in power system operation and planning. Accurate prediction of charging piles is crucial for the supply and demand balance of the power system, grid stability, power quality, and optimal configuration of charging facilities. However, the uncertainty and randomness of electric vehicle charging behavior, as well as the spatiotemporal distribution characteristics of charging demand, make charging pile prediction very challenging.
[0003] At present, in order to solve this problem, researchers have proposed a variety of charging pile prediction methods, such as physical methods, statistical methods and artificial intelligence methods.
[0004] Physical methods: rely on detailed vehicle driving and charging behavior data, which are often difficult to obtain or not accurate enough. In addition, physical methods have difficulty simulating the randomness and uncertainty of user behavior, so there may be large errors in predicting charging piles.
[0005] Statistical methods: rely on historical charging data to predict future loads. However, the rapid development of the electric vehicle market and changes in user behavior may cause historical patterns to no longer apply in the future. In addition, statistical methods have difficulty dealing with the spatiotemporal distribution characteristics of charging piles, so there may be limitations in predicting charging piles.
[0006] Artificial intelligence methods: Although they can handle complex data and patterns, they require a large amount of training data and the model has poor interpretability. In addition, existing artificial intelligence models may not be flexible and adaptable enough to the rapidly changing charging needs and emerging charging technologies. Therefore, there may be a certain degree of inaccuracy in predicting charging piles.
[0007] Existing charging pile prediction methods have limitations in dealing with the randomness, uncertainty and spatiotemporal distribution characteristics of electric vehicle charging behavior.
[0008] Therefore, in order to improve the accuracy and adaptability of predictions, new prediction methods need to be developed to overcome these defects and shortcomings. Summary of the invention
[0009] To this end, the present invention provides a method and device for predicting and optimizing charging piles based on KANs, which can deeply explore the dynamic characteristics of the time series of electric vehicle charging piles through phase space reconstruction technology, revealing its long-term dependence and potential peak and valley value change trends. By reconstructing data, this technology can improve the accuracy and robustness of the prediction model, and maintain a high level of interpretability, providing support for the stable operation and optimized management of the power system.
[0010] In order to achieve the above object, the present invention provides the following technical solution: a method for predicting and optimizing charging piles based on KANs, comprising:
[0011] The charging pile data is obtained by setting a data center; the charging pile data is recorded at a set frequency to form a time series including a number of data points;
[0012] Preprocessing the charging pile data by using a phase space reconstruction strategy and a Min-Max normalization strategy to obtain processed charging pile data;
[0013] Constructing a KANs prediction model; training the KANs prediction model through a set optimization algorithm and a set loss function to obtain a trained KANs prediction model;
[0014] Inputting the processed charging pile data into the trained KANs prediction model for prediction processing to obtain the prediction value of the charging pile;
[0015] The performance of the KANs prediction model is evaluated by using set evaluation indicators; the structure and parameters of the KANs prediction model are optimized according to the evaluation results to improve the prediction performance of the KANs prediction model.
[0016] As a preferred method for predicting and optimizing charging piles based on KANs, in the process of preprocessing the charging pile data through the phase space reconstruction strategy, the data expression after phase space reconstruction is:
[0017]
[0018] Where d is the reconstruction matrix; m is the embedding dimension; τ is the time delay; p i is the charging pile value at the i-th moment, i=1, 2, ..., n.
[0019] As a preferred solution of a method for predicting and optimizing charging piles based on KANs, in the process of preprocessing the charging pile data by using the Min-Max normalization strategy, the difference between each data point and the minimum and maximum values of the data set where the data point is located is obtained by calculation, and the difference is scaled to a set interval; the Min-Max normalization expression is:
[0020]
[0021] In the formula, x′ is the normalized data point; x is the original data point; x min is the minimum value of the data set; x max is the maximum value of the data set.
[0022] As a preferred solution of a method for predicting and optimizing charging piles based on KANs, in the process of training the KANs prediction model through a set optimization algorithm and a set loss function, the set optimization algorithm includes a gradient descent algorithm and an Adam algorithm; the set loss function includes a mean square error loss function and a cross entropy loss function.
[0023] As a preferred solution of a method for predicting and optimizing charging piles based on KANs, in the process of evaluating the performance of the KANs prediction model through set evaluation indicators, the set evaluation indicators include: mean square error, root mean square error, mean absolute error and mean absolute percentage error.
[0024] The present invention also provides a device for predicting and optimizing charging piles based on KANs, based on the above method for predicting and optimizing charging piles based on KANs, comprising:
[0025] A charging pile data acquisition module is used to obtain charging pile data by setting a data center; the charging pile data is recorded at a set frequency to form a time series containing a number of data points;
[0026] A charging pile data preprocessing module, used to preprocess the charging pile data through a phase space reconstruction strategy and a Min-Max normalization strategy to obtain processed charging pile data;
[0027] A KANs prediction model construction and training module is used to construct a KANs prediction model; the KANs prediction model is trained by a set optimization algorithm and a set loss function to obtain a trained KANs prediction model;
[0028] A charging pile prediction value acquisition module, used for inputting the processed charging pile data into the trained KANs prediction model for prediction processing to obtain the prediction value of the charging pile;
[0029] The KANs prediction model performance evaluation module is used to evaluate the performance of the KANs prediction model through set evaluation indicators; optimize the structure and parameters of the KANs prediction model according to the evaluation results to improve the prediction performance of the KANs prediction model.
[0030] As a preferred solution of a device for predicting and optimizing charging piles based on KANs, in the charging pile data preprocessing module, in the process of preprocessing the charging pile data by using the phase space reconstruction strategy, the data expression after phase space reconstruction is:
[0031]
[0032] Where d is the reconstruction matrix; m is the embedding dimension; τ is the time delay; p i is the charging pile value at the i-th moment, i=1, 2, ..., n.
[0033] As a preferred solution of a device for predicting and optimizing charging piles based on KANs, in the charging pile data preprocessing module, in the process of preprocessing the charging pile data by using the Min-Max normalization strategy, the difference between each data point and the minimum and maximum values of the data set where the data point is located is obtained by calculation, and the difference is scaled to a set interval; the Min-Max normalization expression is:
[0034]
[0035] In the formula, x′ is the normalized data point; x is the original data point; x min is the minimum value of the data set; x max is the maximum value of the data set.
[0036] As a preferred solution for a device for predicting and optimizing charging piles based on KANs, in the KANs prediction model construction and training module, in the process of training the KANs prediction model through a set optimization algorithm and a set loss function, the set optimization algorithm includes a gradient descent algorithm and an Adam algorithm; the set loss function includes a mean square error loss function and a cross entropy loss function.
[0037] As a preferred solution for a KANs-based charging pile prediction and optimization device, in the KANs prediction model performance evaluation module, in the process of evaluating the performance of the KANs prediction model through set evaluation indicators, the set evaluation indicators include: mean square error, root mean square error, mean absolute error and mean absolute percentage error.
[0038] The present invention has the following advantages: obtaining charging pile data by setting a data center; recording the charging pile data at a set frequency to form a time series containing several data points; preprocessing the charging pile data by a phase space reconstruction strategy and a Min-Max normalization strategy to obtain processed charging pile data; constructing a KANs prediction model; training the KANs prediction model by a set optimization algorithm and a set loss function to obtain a trained KANs prediction model; inputting the processed charging pile data into the trained KANs prediction model for prediction processing to obtain a predicted value of the charging pile; evaluating the performance of the KANs prediction model by a set evaluation index; optimizing the structure and parameters of the KANs prediction model according to the evaluation result to improve the prediction performance of the KANs prediction model. The present invention can deeply explore the dynamic characteristics of the time series of electric vehicle charging piles through phase space reconstruction technology, revealing its long-term dependence and potential peak-to-valley value change trend. By reconstructing data, the technology can improve the accuracy and robustness of the prediction model, and maintain a high degree of interpretability, providing support for the stable operation and optimized management of the power system. At the same time, KANs, with its unique characteristics, shows significant advantages in charging pile prediction compared to traditional multi-layer perceptrons (MLPs). First, KANs have learnable activation functions on the edges ("weights") of the network. This design enables the network to better capture the nonlinear characteristics of time series. Secondly, KANs completely remove linear weights, and each weight parameter is replaced by a univariate function parameterized as a spline. This nonlinear representation ability gives KANs higher accuracy and flexibility in data fitting and prediction. In addition, KANs exhibit faster neural scaling laws than MLPs, which means that smaller KANs models can achieve comparable or better accuracy than larger MLPs, thereby improving computational efficiency. Most importantly, the visualization characteristics of KANs make it an intuitive interpretation tool that can easily interact with human users. This interpretability helps scientists better understand and trust the prediction results of the model, thereby providing strong technical support for the stable operation and optimized management of the power system. The charging pile prediction method based on KANs proposed in this invention not only improves the accuracy and efficiency of prediction, but also provides a new technical approach for the sustainable development of the power system. By accurately predicting the data value of charging piles, the present invention can help power system operators to better perform power dispatch and resource optimization configuration, ensuring the supply and demand balance of the power system and the stability of the power grid. At the same time, accurate charging pile prediction can also provide a basis for the planning and management of charging piles, promoting the popularization and sustainable development of electric vehicles. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0040] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.
[0041] Figure 1 A schematic diagram of a method flow for predicting and optimizing charging piles based on KANs provided in Example 1 of the present invention;
[0042] Figure 2 A schematic diagram of the operation flow of a method flow for predicting and optimizing charging piles based on KANs provided in Example 1 of the present invention;
[0043] Figure 3 A schematic diagram of the device architecture for predicting and optimizing charging piles based on KANs provided in Example 2 of the present invention. DETAILED DESCRIPTION
[0044] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] Example 1
[0046] See also Figure 1 and Figure 2 Embodiment 1 of the present invention provides a method for predicting and optimizing charging piles based on KANs, comprising the following steps:
[0047] S1. Obtain charging pile data by setting a data center; the charging pile data is recorded at a set frequency to form a time series containing a number of data points;
[0048] S2. Preprocessing the charging pile data by using a phase space reconstruction strategy and a Min-Max normalization strategy to obtain processed charging pile data;
[0049] S3, constructing a KANs prediction model; training the KANs prediction model through a set optimization algorithm and a set loss function to obtain a trained KANs prediction model;
[0050] S4, inputting the processed charging pile data into the trained KANs prediction model for prediction processing to obtain the prediction value of the charging pile;
[0051] S5. Evaluate the performance of the KANs prediction model using the set evaluation index; optimize the structure and parameters of the KANs prediction model according to the evaluation result to improve the prediction performance of the KANs prediction model.
[0052] In this embodiment, in step S1, charging pile data is obtained by setting a data center; the charging pile data is recorded at a set frequency to form a time series including a number of data points.
[0053] Specifically, the charging pile data is recorded every 15 minutes, forming a detailed time series of 96 data points in one day. These high-resolution charging pile data can better capture the intraday changes and peak characteristics of the charging piles, providing a detailed information basis for subsequent prediction and analysis.
[0054] In this embodiment, in step S2, the charging pile data is preprocessed by using a phase space reconstruction strategy and a Min-Max normalization strategy to obtain processed charging pile data.
[0055] Specifically, this step involves data reorganization, which combines historical data with future features through phase space reconstruction strategies, and can more accurately capture the long-term dependencies of time series and potential peak and valley value change trends. At the same time, this reconstruction not only considers the load value at a single time point, but also the overall shape of the time series, thereby improving the ability to predict the dynamic changes of charging piles.
[0056] The present invention adopts a phase space reconstruction strategy and converts the charging pile time series data into a high-dimensional phase space based on the embedding theorem in chaos theory. This technology was proposed by Takens in 1981 and allows one-dimensional time series data to be converted into a high-dimensional phase space, where each point represents the state of the time series at a certain moment, and the trajectory of the entire point set reveals the dynamic behavior of the system.
[0057] In the phase space reconstruction of the charging pile time series, the load value at each time point is determined by the load values at other time points in the entire series. This strategy captures the inherent relationship between the data points in the time series and reveals the inherent law of load change.
[0058] Assuming there is an original charging pile power time series n of length p, it can be converted into a one-dimensional phase space by selecting a suitable embedding dimension m and time delay τ. In this phase space, each phase space point consists of consecutive points in the time series, which reflect the evolution of the system state under different time delays. This phase space reconstruction provides us with a strategy to analyze the nonlinear dynamic behavior of the system and can be used for the prediction and modeling of charging piles. The formula is:
[0059] p=(p1,p2,……p n ) T
[0060] In the formula, p i is the charging pile value at the i-th moment, i = 1, 2, ..., n; when the embedding dimension m and the time delay τ are determined, the reconstruction matrix d is obtained, and the data expression after phase space reconstruction is:
[0061]
[0062] This strategy can not only reveal the dynamic characteristics of charging piles, but also be used for accurate prediction of charging piles.
[0063] In the process of preprocessing the charging pile data by using the Min-Max normalization strategy, the original charging pile data is adjusted to the range of [0,1], which is done to retain the intrinsic connection between the data and ensure that the distribution characteristics of the data are not affected.
[0064] Specifically, Min-Max normalization calculates the difference between each data point and the minimum and maximum values of its data set, and then scales the difference to the specified interval. The Min-Max normalization expression is:
[0065]
[0066] In the formula, x′ is the normalized data point; x is the original data point; x m i n is the minimum value of the data set; x max is the maximum value of the data set.
[0067] This normalization process enables deep learning models to process time series data more efficiently, thereby improving the accuracy of predictions.
[0068] In this embodiment, in step S3, a KANs prediction model is constructed; the KANs prediction model is trained by a set optimization algorithm and a set loss function to obtain a trained KANs prediction model.
[0069] Specifically, Kolmogorov-Arnold Network (KANs) is based on the Kolmogorov-Arnold representation theorem, which states that any continuous function f(x) can be represented as the sum and composite form of a series of simpler functions. This representation method provides a theoretical basis for KANs, enabling it to effectively approximate any continuous function. In the KANs model, the activation function is learnable, which means that these activation functions are automatically adjusted according to the data during training, thereby improving the expressive power of the model.
[0070] As an emerging neural network architecture, KANs has the following characteristics:
[0071] Learnable activation functions: Unlike traditional multi-layer perceptrons (MLPs), KANs have learnable activation functions on the edges (“weights”) of the network, not just on the nodes (“neurons”). This design allows the network to better capture the nonlinear characteristics of the charging station time series.
[0072] Nonlinear weight representation: KANs completely removes linear weights, and each weight parameter is replaced by a univariate function parameterized as a spline. This nonlinear representation capability gives KANs greater accuracy and flexibility in data fitting and prediction.
[0073] Efficient network scaling: KANs exhibit faster neural scaling than MLPs, meaning that smaller KANs models can achieve comparable or better accuracy than larger MLPs, thus improving computational efficiency.
[0074] Interpretability: The visual nature of KANs makes them intuitive explanation tools that can be easily interacted with by human users. This interpretability helps scientists better understand and trust the model’s predictions.
[0075] The KANs model has different structural characteristics from the traditional multi-layer perceptron (MLPs):
[0076] Learnable activation function: In MLPs, the activation function at each node is usually predefined, such as ReLU, Sigmoid, or Tanh. In the KANs model, the activation function at each node is learnable, which means that the network can dynamically adjust the parameters of these functions during training to adapt to the complexity and changes of the data. This design enables the KANs model to better capture the nonlinear relationships in the data, thereby improving the accuracy of predictions and the robustness of the model.
[0077] Summation operation on nodes: In MLPs, summation operation is usually performed between layers, that is, the output of each node is a linear combination of the nodes in the previous layer. In the KANs model, the summation operation is performed inside the node, that is, the output of each node is the weighted sum of the input data, where the weight is determined by a learnable activation function. This structural design enables the KANs model to represent complex functions more flexibly and better capture dynamic changes in the data.
[0078] Specifically, the expression of the shallow KANs model is:
[0079]
[0080] In the formula, φ q and is a learnable activation function; x p is the pth feature in the input data. Assuming that the input data has n features, then x can be represented as a vector containing n features [x1, x2, x3, ..., x n ].
[0081] The expression of the deep KANs model is:
[0082]
[0083] In the formula, φ1, φ2, φ3 are multi-layer nonlinear, learnable functions; x is the entire feature vector of the input data. x contains all the feature information of the input. In the KANs model, the input data x will go through a series of activation functions and nonlinear transformations to finally get the output of the model.
[0084] In this way, the KANs model is able to construct a more flexible and powerful function representation, thereby showing superior performance when processing complex data.
[0085] According to the phase space reconstruction result of step S2, a KANs model is constructed. In the process of constructing the KANs prediction model, a suitable model structure is selected, including parameters such as the number of nodes, the number of layers, and the activation function.
[0086] In the process of training the KANs prediction model through the set optimization algorithm and the set loss function, the set optimization algorithm includes a gradient descent algorithm and an Adam algorithm; the set loss function includes a mean square error loss function and a cross entropy loss function.
[0087] Specifically, the KANs model is trained using charging pile data. During the training process, appropriate optimization algorithms (such as gradient descent, Adam, etc.) and loss functions (such as mean square error, cross entropy, etc.) are used to minimize the prediction error. At the same time, the KANs model is used for training, and dynamic parameter adjustment strategies and hyperparameter limits are set to improve the stability and learning efficiency of the model.
[0088] In this embodiment, in step S4, after the KANs model training is completed, the KANs model is used to predict the charging pile of the charging pile. The prediction process is based on the reconstructed data, and the predicted value of the charging pile is calculated by the KANs model. The prediction results can be used for the scheduling and resource optimization configuration of the power system to ensure the supply and demand balance of the power system and the stability of the power grid.
[0089] In this embodiment, in step S5, in the process of evaluating the performance of the KANs prediction model by using set evaluation indicators, the set evaluation indicators include: mean square error, root mean square error, mean absolute error and mean absolute percentage error.
[0090] Specifically, Mean Squared Error (MSE): Calculates the average squared error between the predicted value and the actual value, which is used to evaluate the overall error of the prediction. The calculation formula is:
[0091]
[0092] Where N is the total number of data points; is the predicted value; i is the actual value.
[0093] Root Mean Squared Error (RMSE): RMSE is the square root of MSE and is often used to evaluate the accuracy of prediction results, especially when the predicted values are widely distributed. The calculation formula is:
[0094]
[0095] Where N is the total number of data points; is the predicted value; i is the actual value.
[0096] Mean Absolute Error (MAE): Calculates the average value of the absolute error between the predicted value and the actual value, reflecting the absolute error of the predicted result. The calculation formula is:
[0097]
[0098] Where N is the total number of data points; is the predicted value; i is the actual value.
[0099] Mean Absolute Percentage Error (MAPE) is another important metric for evaluating forecast accuracy, especially useful when predicting percentage changes. The calculation formula is:
[0100]
[0101] Where N is the total number of data points; is the predicted value; i is the actual value.
[0102] Through the above evaluation indicators, the present invention can comprehensively evaluate the performance of the KANs model in charging pile prediction. According to the evaluation results, the model structure and parameters can be further optimized to improve the prediction performance.
[0103] In summary, the present invention obtains charging pile data by setting a data center; the charging pile data is recorded at a set frequency to form a time series containing several data points; the charging pile data is preprocessed by a phase space reconstruction strategy and a Min-Max normalization strategy to obtain processed charging pile data; a KANs prediction model is constructed; the KANs prediction model is trained by a set optimization algorithm and a set loss function to obtain a trained KANs prediction model; the processed charging pile data is input into the trained KANs prediction model for prediction processing to obtain the predicted value of the charging pile; the performance of the KANs prediction model is evaluated by a set evaluation index; the structure and parameters of the KANs prediction model are optimized according to the evaluation results to improve the prediction performance of the KANs prediction model. The present invention can deeply explore the dynamic characteristics of the time series of electric vehicle charging piles through phase space reconstruction technology, revealing its long-term dependence and potential peak and valley value change trends. By reconstructing data, the technology can improve the accuracy and robustness of the prediction model, and maintain a high degree of interpretability, providing support for the stable operation and optimized management of the power system. At the same time, KANs, with its unique characteristics, shows significant advantages in charging pile prediction compared to traditional multi-layer perceptrons (MLPs). First, KANs have learnable activation functions on the edges ("weights") of the network. This design enables the network to better capture the nonlinear characteristics of time series. Secondly, KANs completely remove linear weights, and each weight parameter is replaced by a univariate function parameterized as a spline. This nonlinear representation ability gives KANs higher accuracy and flexibility in data fitting and prediction. In addition, KANs exhibit faster neural scaling laws than MLPs, which means that smaller KANs models can achieve comparable or better accuracy than larger MLPs, thereby improving computational efficiency. Most importantly, the visualization characteristics of KANs make it an intuitive interpretation tool that can easily interact with human users. This interpretability helps scientists better understand and trust the prediction results of the model, thereby providing strong technical support for the stable operation and optimized management of the power system. The charging pile prediction method based on KANs proposed in this invention not only improves the accuracy and efficiency of prediction, but also provides a new technical approach for the sustainable development of the power system. By accurately predicting the data value of charging piles, the present invention can help power system operators to better perform power dispatch and resource optimization configuration, ensuring the supply and demand balance of the power system and the stability of the power grid. At the same time, accurate charging pile prediction can also provide a basis for the planning and management of charging piles, promoting the popularization and sustainable development of electric vehicles.
[0104] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.
[0105] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0106] Example 2
[0107] See also Figure 3 Embodiment 2 of the present invention further provides a device for predicting and optimizing charging piles based on KANs, comprising:
[0108] The charging pile data acquisition module 001 is used to obtain the charging pile data by setting a data center; the charging pile data is recorded at a set frequency to form a time series containing a number of data points;
[0109] The charging pile data preprocessing module 002 is used to preprocess the charging pile data through a phase space reconstruction strategy and a Min-Max normalization strategy to obtain processed charging pile data;
[0110] The KANs prediction model construction and training module 003 is used to construct a KANs prediction model; train the KANs prediction model through a set optimization algorithm and a set loss function to obtain a trained KANs prediction model;
[0111] The charging pile prediction value acquisition module 004 is used to input the processed charging pile data into the trained KANs prediction model for prediction processing to obtain the prediction value of the charging pile;
[0112] The KANs prediction model performance evaluation module 005 is used to evaluate the performance of the KANs prediction model through set evaluation indicators; optimize the structure and parameters of the KANs prediction model according to the evaluation results to improve the prediction performance of the KANs prediction model.
[0113] In this embodiment, in the charging pile data preprocessing module 002, in the process of preprocessing the charging pile data by using the phase space reconstruction strategy, the data expression after phase space reconstruction is:
[0114]
[0115] Where d is the reconstruction matrix; m is the embedding dimension; τ is the time delay; p i is the charging pile value at the i-th moment, i=1, 2, ..., n.
[0116] In this embodiment, in the charging pile data preprocessing module 002, in the process of preprocessing the charging pile data by using the Min-Max normalization strategy, the difference between each data point and the minimum and maximum values of the data set where the data point is located is obtained by calculation, and the difference is scaled to a set interval; the Min-Max normalization expression is:
[0117]
[0118] In the formula, x′ is the normalized data point; x is the original data point; x m i n is the minimum value of the data set; x max is the maximum value of the data set.
[0119] In this embodiment, in the KANs prediction model construction and training module 003, in the process of training the KANs prediction model through the set optimization algorithm and the set loss function, the set optimization algorithm includes the gradient descent algorithm and the Adam algorithm; the set loss function includes the mean square error loss function and the cross entropy loss function.
[0120] In this embodiment, in the KANs prediction model performance evaluation module 005, in the process of evaluating the performance of the KANs prediction model by using set evaluation indicators, the set evaluation indicators include: mean square error, root mean square error, mean absolute error and mean absolute percentage error.
[0121] It should be noted that the information interaction, execution process and other contents between the modules of the above-mentioned system are based on the same concept as the method embodiment in Example 1 of the present application, and the technical effects they bring are the same as those of the method embodiment of the present application. For specific contents, please refer to the description in the method embodiment shown above in the present application, and will not be repeated here.
[0122] Example 3
[0123] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium, in which a program code for a method for predicting and optimizing charging piles based on KANs is stored. The program code includes instructions for executing the method for predicting and optimizing charging piles based on KANs of embodiment 1 or any possible implementation thereof.
[0124] The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0125] Example 4
[0126] Embodiment 4 of the present invention provides an electronic device, including: a memory and a processor;
[0127] The processor and the memory communicate with each other via a bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute a method for predicting and optimizing charging piles based on KANs according to Example 1 or any possible implementation thereof.
[0128] Specifically, the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor implemented by reading software codes stored in a memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.
[0129] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable systems. The computer instructions can be stored in a computer-readable storage medium, or transmitted from a computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center.
[0130] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing system, they can be concentrated on a single computing system, or distributed on a network composed of multiple computing systems, and optionally, they can be implemented by a program code executable by a computing system, so that they can be stored in a storage system and executed by the computing system, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0131] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.
Claims
1. A method for predicting and optimizing charging piles based on KANs. It is characterized in that include: The charging pile data is obtained by setting a data center; the charging pile data is recorded at a set frequency to form a time series including a number of data points; Preprocessing the charging pile data by using a phase space reconstruction strategy and a Min-Max normalization strategy to obtain processed charging pile data; Constructing a KANs prediction model; training the KANs prediction model through a set optimization algorithm and a set loss function to obtain a trained KANs prediction model; Inputting the processed charging pile data into the trained KANs prediction model for prediction processing to obtain the prediction value of the charging pile; The performance of the KANs prediction model is evaluated by using set evaluation indicators; the structure and parameters of the KANs prediction model are optimized according to the evaluation results to improve the prediction performance of the KANs prediction model.
2. According to claim 1, a method for predicting and optimizing charging piles based on KANs, It is characterized in that In the process of preprocessing the charging pile data by the phase space reconstruction strategy, the data expression after phase space reconstruction is: Where d is the reconstruction matrix; m is the embedding dimension; τ is the time delay; p i is the charging pile value at the i-th moment, i=1, 1, ..., n.
3. According to claim 2, a method for predicting and optimizing charging piles based on KANs, It is characterized in that In the process of preprocessing the charging pile data by the Min-Max normalization strategy, the difference between each data point and the minimum and maximum values of the data set where the data point is located is obtained by calculation, and the difference is scaled to a set interval; the Min-Max normalization expression is: In the formula, x′ is the normalized data point; x is the original data point; x min is the minimum value of the data set; x max is the maximum value of the data set.
4. According to claim 3, a method for predicting and optimizing charging piles based on KANs, It is characterized in that In the process of training the KANs prediction model through the set optimization algorithm and the set loss function, the set optimization algorithm includes a gradient descent algorithm and an Adam algorithm; the set loss function includes a mean square error loss function and a cross entropy loss function.
5. According to claim 4, a method for predicting and optimizing charging piles based on KANs, It is characterized in that In the process of evaluating the performance of the KANs prediction model by using the set evaluation indicators, the set evaluation indicators include: mean square error, root mean square error, mean absolute error and mean absolute percentage error.
6. A device for predicting and optimizing charging piles based on KANs, using any one of the methods for predicting and optimizing charging piles based on KANs of claims 1-5, It is characterized in that include: A charging pile data acquisition module is used to obtain charging pile data by setting a data center; the charging pile data is recorded at a set frequency to form a time series containing a number of data points; A charging pile data preprocessing module, used to preprocess the charging pile data through a phase space reconstruction strategy and a Min-Max normalization strategy to obtain processed charging pile data; A KANs prediction model construction and training module is used to construct a KANs prediction model; the KANs prediction model is trained by a set optimization algorithm and a set loss function to obtain a trained KANs prediction model; A charging pile prediction value acquisition module, used for inputting the processed charging pile data into the trained KANs prediction model for prediction processing to obtain the prediction value of the charging pile; The KANs prediction model performance evaluation module is used to evaluate the performance of the KANs prediction model through set evaluation indicators; optimize the structure and parameters of the KANs prediction model according to the evaluation results to improve the prediction performance of the KANs prediction model.
7. The device for predicting and optimizing charging piles based on KANs according to claim 6, It is characterized in that In the charging pile data preprocessing module, in the process of preprocessing the charging pile data by using the phase space reconstruction strategy, the data expression after phase space reconstruction is: Where d is the reconstruction matrix; m is the embedding dimension; τ is the time delay; p i is the charging pile value at the i-th moment, i=1, 2, ..., n.
8. The device for predicting and optimizing charging piles based on KANs according to claim 7, It is characterized in that In the charging pile data preprocessing module, in the process of preprocessing the charging pile data by using the Min-Max normalization strategy, the difference between each data point and the minimum and maximum values of the data set where the data point is located is obtained by calculation, and the difference is scaled to a set interval; the Min-Max normalization expression is: In the formula, x′ is the normalized data point; x is the original data point; x min is the minimum value of the data set; x max is the maximum value of the data set.
9. The device for predicting and optimizing charging piles based on KANs according to claim 8, It is characterized in that In the KANs prediction model construction and training module, in the process of training the KANs prediction model through the set optimization algorithm and the set loss function, the set optimization algorithm includes the gradient descent algorithm and the Adam algorithm; the set loss function includes the mean square error loss function and the cross entropy loss function.
10. A device for predicting and optimizing charging piles based on KANs according to claim 9, It is characterized in that In the KANs prediction model performance evaluation module, in the process of evaluating the performance of the KANs prediction model by using set evaluation indicators, the set evaluation indicators include: mean square error, root mean square error, mean absolute error and mean absolute percentage error.
Citation Information
Patent Citations
Prediction method of indexes of influence of electric card charging on power distribution network active loss
CN106712065A
Load prediction model training method and device, storage medium and equipment
CN112200373A
Method for monitoring steady state of battery pack of new energy vehicle
CN115312895A
Wireless charging automatic control method and system based on artificial intelligence
CN117565727A
Electric vehicle charging load prediction method and system based on neural network, and storage medium
CN117668644A
Cited By
Charging pile operation state monitoring system supporting danger prediction feedback
CN120704127A
Training and using method of chaotic sequence prediction network, interference system and medium
CN121262101A
