A real-time monitoring system for extended-range electric energy storage and release skid-mounted power stations
By adjusting the number of decision trees and structural feature values in the random forest model, the monitoring accuracy of the skid-mounted power station is optimized, solving the problem that the selection of the number of decision trees in the traditional method affects the monitoring accuracy, and achieving more efficient data classification and power station Status monitoring.
Patent Information
- Application Number
- CN202411029320.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The selection of the number of decision trees in the traditional random forest model affects the accuracy of operating status monitoring of skid-mounted power stations, and the fixed abnormal threshold cannot adapt to changes in working conditions and environmental influences, resulting in low monitoring accuracy.
The historical monitoring feature sequence is obtained through the data acquisition module. The classification model building module obtains the judgment coefficient based on the classification effect of the preset number of decision trees in the random forest algorithm, adjusts the initial number of decision trees, and optimizes the number of decision trees through structural feature values, and finally builds The final random forest model was used for monitoring.
It improves the classification accuracy of the random forest model and the accuracy of power station monitoring, avoids the error in selecting the number of decision trees in the traditional way, and enhances the robustness and adaptability of monitoring.
Smart Images

Figure CN118554647B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data classification, and in particular to a real-time monitoring system for a range-extended electric energy storage skid-mounted power station. Background Art
[0002] The extended-range power storage skid-mounted power station is a device that uses batteries or other energy storage technologies to balance the supply and demand of the power grid. It can store excess power when the power grid load is peak, and release energy when the load is low to maintain the stable operation of the power grid. It is usually used in combination with renewable energy power generation facilities to achieve the sustainability of the power system. The traditional method for monitoring and managing the time series data generated during the operation of the power station is to use corresponding sensors for collection, storage and processing, and set the normal fluctuation range and abnormal threshold warning parameters for various types of data; however, the fixed abnormal threshold warning parameters cannot effectively adapt to changes in working conditions and environmental impacts, and the data may exceed the abnormal threshold but the operating status is normal. In order to accurately monitor abnormalities, the various data that need to be monitored in the skid-mounted power station can be processed using the random forest algorithm in machine learning. The random forest algorithm can process multiple types of data indicators in the scene; for example, multiple data types such as battery status, power output, and environmental parameters in the skid-mounted power station. Random forest can automatically select appropriate features for modeling based on data characteristics; help identify and process abnormal data in the power storage skid-mounted power station, such as sudden abnormal power data fluctuations or other equipment failures.
[0003] However, the number of decision trees in the random forest algorithm is crucial to the performance and generalization ability of the random forest model. Increasing the number of decision trees can improve the performance of the random forest model, but it will also increase the computational cost and even cause the algorithm to overfit; while a smaller number of decision trees will make the processing results of the random forest model inaccurate and less robust. In addition, the traditional cross-validation method has strong limitations in the selection of the number of decision trees, resulting in low accuracy of the constructed random forest model in monitoring the operating status of the skid-mounted power station. Summary of the invention
[0004] In order to solve the technical problem that the selection of the number of decision trees in the above-mentioned random forest model affects the monitoring accuracy of the operating status of the skid-mounted power station, the purpose of the present invention is to provide a real-time monitoring system for an extended-range electric energy storage skid-mounted power station. The technical solution adopted is as follows:
[0005] A data acquisition module, used to acquire at least two-dimensional historical monitoring feature sequences for monitoring the operating status of the skid-mounted power station;
[0006] A classification model building module is used to obtain a judgment coefficient based on the classification effect of a preset number of decision trees in the random forest algorithm on the historical monitoring feature sequence; and obtain the initial number of decision trees and the initial random forest model based on the difference characteristics of the judgment coefficient;
[0007] A classification model optimization module, used to obtain a first structural characteristic value according to the structural depth characteristics of the decision tree in the initial random forest model; obtain a second structural characteristic value according to the structural depth difference characteristics of the decision tree in the initial random forest model; obtain an effect index according to the first structural characteristic value and the second structural characteristic value; and adjust the number of initial decision trees according to the effect index and the first structural characteristic value to obtain a final number of decision trees;
[0008] A monitoring module is run to construct a final random forest model according to the final number of decision trees; a monitoring feature sequence to be detected is classified according to the final random forest model to obtain different monitoring feature sets; and the skid-mounted power station is monitored according to the monitoring feature sets.
[0009] Furthermore, the step of obtaining a judgment coefficient based on the classification effect of a preset number of decision trees in the random forest algorithm on the historical monitoring feature sequence includes:
[0010] The F1 score after classifying the historical monitoring feature sequence when there is a preset number of decision trees in the random forest algorithm is calculated to obtain a judgment coefficient corresponding to the preset number.
[0011] Furthermore, the step of obtaining the initial number of decision trees and the initial random forest model according to the difference characteristics of the judgment coefficient includes:
[0012] Construct a coefficient change curve of the judgment coefficient, with the horizontal axis being the preset number and the vertical axis being the judgment coefficient; use the maximum point in the coefficient change curve as the preliminary point; calculate the slope value between any data point and the adjacent previous data point in the coefficient change curve to obtain the change rate of the arbitrary data point; calculate the average value of the change rate of the data points before the preliminary point in the coefficient change curve to obtain a first change characteristic value; calculate the average value of the change rate of the data points after the preliminary point to obtain a second change characteristic value; calculate the difference between the first change characteristic value and the second change characteristic value to obtain the preliminary degree of the preliminary point; use the preset number corresponding to the maximum value of the preliminary degree as the initial number of decision trees; construct a random forest based on the initial number of decision trees, perform model training based on the historical monitoring feature sequence, and obtain the initial random forest model.
[0013] Furthermore, the step of obtaining a first structural feature value according to the structural depth feature of the decision tree in the initial random forest model includes:
[0014] Calculate the sum of the number of branches and the number of sub-nodes of the decision tree in the initial random forest model to obtain a structural depth feature value of the decision tree; calculate the average value of the structural depth feature value to obtain a structural depth average value; construct a benchmark random forest model based on the preset decision tree structure of the initial number of decision trees, and obtain the evaluation index value of the benchmark random forest model according to the K-fold cross-validation method; select the preset decision tree structure corresponding to the maximum value of the evaluation index value as the benchmark decision tree; calculate the sum of the number of branches and the number of sub-nodes in the benchmark decision tree to obtain a benchmark structural depth feature value; calculate the difference between the structural depth average value and the benchmark structural depth feature value to obtain a first structural feature value of the initial random forest model.
[0015] Furthermore, the step of obtaining a second structural feature value according to the structural depth difference feature of the decision tree in the initial random forest model includes:
[0016] The variance of the structural depth eigenvalue of the decision tree in the initial random forest model is calculated and negatively correlated to obtain a second structural eigenvalue of the initial random forest model.
[0017] Furthermore, the step of obtaining the effect index according to the first structural characteristic value and the second structural characteristic value includes:
[0018] The absolute value of the first structural characteristic value is negatively correlated and mapped to obtain a first structural characterization value; the average value of the first structural characterization value and the second structural characteristic value is calculated to obtain the effect index of the initial random forest model.
[0019] Furthermore, the step of adjusting the number of initial decision trees according to the effect index and the first structural characteristic value to obtain the final number of decision trees includes:
[0020] When the effect index is not less than a preset threshold, the initial number of decision trees is used as the final number of decision trees;
[0021] When the effect index is less than a preset threshold, if the first structural characteristic value is a negative number, the value of the initial number of decision trees in the initial random forest model is increased; if the first structural characteristic value is not a negative number, the value of the initial number of decision trees in the initial random forest model is reduced until the effect index is not less than the preset threshold, and the final number of decision trees is obtained.
[0022] Furthermore, the step of constructing the final random forest model according to the final number of decision trees includes:
[0023] When the final number of decision trees is equal to the initial number of decision trees, the initial random forest model is used as the final random forest model; when the final number of decision trees is not equal to the initial number of decision trees; a random forest is constructed according to the final number of decision trees, and model training is performed according to the historical monitoring feature sequence to obtain the final random forest model.
[0024] The present invention has the following beneficial effects:
[0025] In the present invention, obtaining the judgment coefficient can determine the initial number of decision trees in the random forest, and preliminarily improve the classification accuracy of the random forest model; obtaining the initial number of decision trees and the initial random forest model according to the judgment coefficient can avoid the randomness of the error in selecting the initial number of decision trees in the traditional way, and ensure the classification accuracy of the initial random forest model. Obtaining the first structural characteristic value can analyze the advantages and disadvantages of the depth of the decision tree structure in the initial random forest model, and obtaining the second structural characteristic value can analyze the classification effect according to the structural differences of different decision trees in the initial random forest model. Obtaining the effect index can judge the relationship between the decision tree structure and the classification effect according to the structural characteristics of the decision tree in the initial random forest model; obtaining the final number of decision trees and the final random forest model can improve the accuracy of data classification, and monitoring the skid-mounted power station according to the final random forest model improves the accuracy of power station monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 A block diagram of a real-time monitoring system for an extended-range electric energy storage skid-mounted power station provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a real-time monitoring system for an extended-range electric energy storage skid-mounted power station proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0029] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0030] The specific scheme of the real-time monitoring system for an extended-range electric energy storage skid-mounted power station provided by the present invention is described in detail below with reference to the accompanying drawings.
[0031] See also Figure 1 , which shows a block diagram of a real-time monitoring system for a range-extended electric energy storage skid-mounted power station provided by an embodiment of the present invention, the system comprising the following modules:
[0032] The data acquisition module S1 is used to acquire at least two-dimensional historical monitoring feature sequences for monitoring the operating status of the skid-mounted power station.
[0033] In an embodiment of the present invention, the implementation scenario is to determine the number of decision trees in the random forest model, so as to improve the monitoring accuracy and efficiency of the random forest model in monitoring the operating status of the skid-mounted power station. First, a historical monitoring feature sequence of at least two dimensions is obtained to monitor the operating status of the skid-mounted power station. In an embodiment of the present invention, monitoring data of five dimensions, including battery voltage, current, charge and discharge power, SOC charge state, and temperature, are obtained at each acquisition moment. The monitoring data of each dimension is normalized using the maximum and minimum normalization method to avoid the value of a certain dimension having a greater impact on the weight during the model training process; a five-dimensional historical monitoring feature sequence is constructed based on the normalized data; in this sequence, each acquisition moment corresponds to data of five dimensions. The implementer can determine the type of monitoring data, data acquisition frequency, and sequence length according to the implementation scenario; it should be noted that the historical monitoring feature sequence is used to train the random forest model, so the sequence length of the historical monitoring feature sequence needs to meet the sample quantity requirement during the training process.
[0034] After constructing a random forest model based on the historical monitoring feature sequence, the subsequent monitoring feature sequence can be classified through the random forest model, and the category of data anomaly and the corresponding collection time can be determined according to the classification results, so as to avoid the difficulty of fixed abnormal threshold monitoring to adapt to changes in working conditions and environmental influences, and improve the accuracy of abnormal monitoring. Random forest is an integrated learning method. It is composed of multiple decision trees and each decision tree is trained independently. Random forest can improve the overall performance and stability by integrating multiple decision trees; by integrating the weak learners of each tree to obtain a more powerful and more generalized model, the classification result is more accurate. The number of decision trees in the random forest is crucial to the performance and generalization ability of the random forest model. According to the theory of the algorithm, increasing the number of decision trees can improve the performance of the random forest model, but it will also increase the computational cost and even cause the algorithm to overfit; and a small number of decision trees will make the random forest model processing results inaccurate and less robust. Therefore, determining the appropriate number of decision trees can improve the monitoring accuracy and efficiency in the process of monitoring the operating status of the skid-mounted power station.
[0035] The classification model building module S2 is used to obtain the judgment coefficient according to the classification effect of the preset number of decision trees in the random forest algorithm on the historical monitoring feature sequence; and obtain the initial number of decision trees and the initial random forest model according to the difference characteristics of the judgment coefficient.
[0036] First, determine the initial number of decision trees in the random forest algorithm, and obtain the judgment coefficient according to the classification effect of the preset number of decision trees in the random forest algorithm on the historical monitoring feature sequence; preferably, in an embodiment of the present invention, the step of obtaining the judgment coefficient includes: calculating the F1 score after classifying the historical monitoring feature sequence when there are a preset number of decision trees in the random forest algorithm, and obtaining the judgment coefficient corresponding to the preset number; the larger the judgment coefficient, the better the classification effect of the random forest constructed by the preset number of decision trees. It should be noted that the calculation of the F1 score belongs to the prior art, and the specific calculation steps are no longer repeated. The F1 score is an indicator used in statistics to measure the accuracy of the binary classification model, while taking into account the precision and recall rate of the classification model; before calculating the F1 score, it is necessary to mark the abnormality of each data point in the historical monitoring feature sequence, so as to determine the precision and recall rate according to the classification results and the marking situation. In the embodiment of the present invention, the range of the preset number is 50 to 100, and the implementer can determine the range of the preset number according to the implementation scenario. The more data and features, the larger the range of the preset number.
[0037] In the traditional way, the number of decision trees corresponding to the maximum F1 value is usually selected to construct a random forest. However, directly selecting the number of decision trees corresponding to the maximum judgment coefficient value may result in the classification effect of the random forest model not being optimal; it may appear that the data samples in the historical monitoring feature sequence have a better classification effect in the random forest model corresponding to the maximum F1 value, and the corresponding precision and recall rates are larger; and after using more sample data for classification experiments, the F1 corresponding to the random forest model will decrease. Therefore, in order to avoid the randomness of directly selecting based on the maximum judgment coefficient value, it is necessary to select the initial number of decision trees in combination with the change characteristics of the judgment coefficient; therefore, the initial number of decision trees and the initial random forest model are obtained based on the difference characteristics of the judgment coefficient.
[0038] Preferably, in an embodiment of the present invention, the step of obtaining the initial number of decision trees and the initial random forest model includes: constructing a coefficient change curve of the judgment coefficient, with the horizontal axis being the preset number and the vertical axis being the judgment coefficient; taking the maximum value point in the coefficient change curve as the preliminary selection point; the larger the judgment coefficient, the better the classification effect of the corresponding preset number of decision trees. Calculate the slope value between any data point and the adjacent previous data point in the coefficient change curve to obtain the change rate of any data point; the larger the change rate, the more the judgment coefficient increases, and the smaller the change rate, the more the judgment coefficient decreases. Calculate the average value of the change rate of the data points before the preliminary selection point in the coefficient change curve to obtain the first change characteristic value; the data points before the preliminary selection point refer to the data points whose preset number is less than the preset number of the preliminary selection point. The larger the first change characteristic value, the larger the judgment coefficient becomes before the preliminary selection point as the preset number increases; as the number of decision trees increases, the classification accuracy of the random forest model becomes higher and higher. Calculate the average value of the change rate of the data points after the preliminary selection point to obtain the second change characteristic value; the data points after the preliminary selection point refer to the data points whose preset number is greater than the preset number of the preliminary selection point. The smaller the second change characteristic value, the smaller the judgment coefficient becomes after the preliminary selection point, as the preset number increases, and the decision tree is overfitted, resulting in the classification accuracy of the random forest model becoming lower and lower, and the generalization ability is poor. Calculate the difference between the first change characteristic value and the second change characteristic value to obtain the preliminary selection degree of the preliminary selection point; the larger the preliminary selection degree, the more likely the preliminary selection point is a peak point in the coefficient change curve, and the classification effect is getting better and better before the peak point, and the classification effect is getting worse and worse after the peak point, which is in line with the normal change trend of the increase and decrease of the number of decision trees; if the maximum value of the judgment coefficient is directly selected, the judgment coefficient may increase and decrease at the same time in front of the maximum value, or the judgment coefficient may increase and decrease at the same time after the maximum value. The preset number corresponding to the maximum value of the preliminary selection degree is used as the initial number of decision trees; selecting the initial number of decision trees can maintain the high accuracy of the random forest model classification in more sample data, while avoiding overfitting and underfitting. According to the initial number of decision trees, a random forest is constructed, and the model is trained according to the historical monitoring feature sequence to obtain the initial random forest model; it should be noted that the construction of the random forest model belongs to the prior art, and the specific construction steps are not repeated.
[0039] The classification model optimization module S3 is used to obtain a first structural characteristic value according to the structural depth characteristics of the decision tree in the initial random forest model; obtain a second structural characteristic value according to the structural depth difference characteristics of the decision tree in the initial random forest model; obtain an effect index according to the first structural characteristic value and the second structural characteristic value; and adjust the initial number of decision trees according to the effect index and the first structural characteristic value to obtain the final number of decision trees.
[0040] According to decision tree theory, too many branches and sub-nodes in a decision tree will lead to overfitting of the training data to a single decision tree. Each leaf node will contain fewer training instances, making the model perform better on the training set, but with poor generalization ability. Too few branches and sub-nodes may be more inclined to capture general features and patterns in the data. Although the generalization ability of the model is improved, in this case, a single decision tree may perform poorly on the training set, making the fitting ability limited and unsatisfactory. The appropriate decision tree structure can balance the complexity and generalization ability of the initial random forest model. Therefore, the structural characteristics of the decision tree in the initial random forest model can be analyzed and the number of initial decision trees can be optimized and adjusted. First, the first structural characteristic value is obtained according to the structural depth characteristics of the decision tree in the initial random forest model.
[0041] Preferably, in an embodiment of the present invention, the step of obtaining the first structural characteristic value includes: calculating the sum of the number of branches and the number of child nodes of the decision tree in the initial random forest model, and obtaining the structural depth characteristic value of the decision tree. Calculate the average value of the structural depth characteristic value to obtain the structural depth average value; the structural depth average value characterizes the average structural size of the decision tree in the initial random forest model. According to the initial number of decision trees, a benchmark random forest model is constructed by a preset decision tree structure, and the evaluation index value of the benchmark random forest model is obtained according to the K-fold cross validation method; the preset decision tree structure refers to the depth, branches and number of child nodes of the decision tree that are pre-determined, and the preset decision tree structure can be determined by the implementer according to the amount of data and data type in the implementation scenario. The K-fold cross validation method belongs to the prior art, and the calculation process of the evaluation index value is no longer repeated. The historical monitoring feature sequence is divided into two complementary subsets, one part is training data to train the model, and the other part is verification data to evaluate the model, and finally the evaluation index value is obtained. The larger the evaluation index value, the better the classification effect of the benchmark random forest model, and the better the corresponding preset decision tree structure. Select the preset decision tree structure corresponding to the maximum value of the evaluation index value as the benchmark decision tree; calculate the sum of the number of branches and the number of subnodes in the benchmark decision tree to obtain the benchmark structural depth feature value. Calculate the difference between the average structural depth value and the benchmark structural depth feature value to obtain the first structural feature value of the initial random forest model; when the average structural depth value is more similar to the benchmark structural depth feature value, the first structural feature value is closer to 0, which means that the structure of the decision tree in the initial random forest model is more reasonable, and it can have a certain generalization ability while ensuring classification accuracy; when the average structural depth value is smaller than the benchmark structural depth feature value, it means that the structural depth of the decision tree in the initial random forest model is too small, and the classification accuracy is poor; when the average structural depth value is greater than the benchmark structural depth feature value, it means that the structural depth of the decision tree in the initial random forest model is too large, the overfitting is serious, and the generalization ability is poor.
[0042] Furthermore, when the difference in the structural size of different decision trees in the initial random forest model is greater, it means that the structure between different decision trees is more unstable. Therefore, the second structural characteristic value is obtained according to the structural depth difference characteristics of the decision trees in the initial random forest model. Preferably, in an embodiment of the present invention, the step of obtaining the second structural characteristic value includes: calculating the variance of the structural depth characteristic value of the decision tree in the initial random forest model and negatively mapping it to obtain the second structural characteristic value of the initial random forest model. When the variance is larger, the smaller the second structural characteristic value is, which means that the difference in structural depth between different decision trees is greater, the decision tree structure of the initial random forest model is more unstable, and the easier it is to affect the classification accuracy; the larger the second structural characteristic value is, the smaller the difference in structural depth between different decision trees is, the more stable the decision tree structure of the initial random forest model is, and the higher the classification accuracy is.
[0043] The first structural characteristic value and the second structural characteristic value obtained can both characterize the classification effect of the initial random forest model, so the effect index is obtained according to the first structural characteristic value and the second structural characteristic value. Preferably, in an embodiment of the present invention, the step of obtaining the effect index includes: negatively correlating the absolute value of the first structural characteristic value to obtain the first structural characterization value; the larger the first structural characterization value, the more reasonable the structure of the decision tree in the initial random forest model is, and it can have a certain generalization ability while ensuring the classification accuracy. Calculate the average value of the first structural characterization value and the second structural characteristic value to obtain the effect index of the initial random forest model. The larger the effect index, the more reasonable the number of decision trees in the initial random forest model is, and it has a certain generalization ability while ensuring the classification accuracy; conversely, the smaller the effect index, the more unreasonable the number of decision trees in the initial random forest model is, and the worse the classification accuracy is.
[0044] Further, the number of initial decision trees can be adjusted according to the effect index and the first structural characteristic value to obtain the final number of decision trees. Preferably, in an embodiment of the present invention, the step of obtaining the final number of decision trees includes: when the effect index is not less than the preset threshold, it means that the number of decision trees in the current initial random forest model is set more reasonably and the classification accuracy is higher, so the initial number of decision trees is used as the final number of decision trees; in an embodiment of the present invention, the preset threshold is 0.8, which can be determined by the implementer according to the implementation scenario. When the effect index is less than the preset threshold, if the first structural characteristic value is negative, it means that the average value of the structural depth is less than the benchmark structural depth characteristic value, the structural depth of the decision tree in the initial random forest model is too small, the classification accuracy is poor, and the number of decision trees needs to be increased to improve the classification accuracy, so the value of the initial number of decision trees in the initial random forest model is increased; if the first structural characteristic value is not negative, it means that the average value of the structural depth is greater than the benchmark structural depth characteristic value, the structural depth of the decision tree in the initial random forest model is too large, and the overfitting is serious. In order to avoid overfitting, the number of decision trees needs to be reduced; therefore, the value of the initial number of decision trees in the initial random forest model is reduced until the effect index is not less than the preset threshold to obtain the final number of decision trees. In an embodiment of the present invention, the number of initial random forest models is increased or decreased each time, and a new random forest model judgment effect index is regenerated, and the iteration is stopped when the new effect index is not less than a preset threshold.
[0045] The monitoring module S4 is run to construct a final random forest model according to the final number of decision trees; the monitoring feature sequence to be detected is classified according to the final random forest model to obtain different monitoring feature sets; and the skid-mounted power station is monitored according to the monitoring feature sets.
[0046] After obtaining the final number of decision trees, the final random forest model can be constructed according to the final number of decision trees, including: when the final number of decision trees is equal to the initial number of decision trees, the initial random forest model is used as the final random forest model; this means that the initial random forest model already has good classification effect and generalization ability. When the final number of decision trees is not equal to the initial number of decision trees; a random forest is constructed according to the final number of decision trees, and the model is trained according to the historical monitoring feature sequence to obtain the final random forest model; the final random forest model is more suitable than the number of decision trees in the initial random forest model, and can have a certain generalization ability while ensuring classification accuracy. Then, the monitoring feature sequence to be detected can be classified according to the final random forest model to obtain different monitoring feature sets; the skid-mounted power station is monitored according to the monitoring feature set, and the implementer can determine the abnormal data and the time at which it is located according to different monitoring feature sets, so as to perform abnormal analysis. Different monitoring feature sets are obtained according to the final random forest model to monitor the skid-mounted power station, which improves the accuracy of data classification and monitoring.
[0047] In summary, an embodiment of the present invention provides a real-time monitoring system for an extended-range electric energy storage skid-mounted power station; a judgment coefficient is obtained based on the classification effect of a preset number of decision trees on a historical monitoring feature sequence; an initial number of decision trees and an initial random forest model are obtained based on the difference characteristics of the judgment coefficient; a first structural characteristic value is obtained based on the structural depth characteristics of the decision tree in the initial random forest model; a second structural characteristic value is obtained based on the structural depth difference characteristics of the decision tree in the initial random forest model; an effect index is obtained based on the first structural characteristic value and the second structural characteristic value; a final random forest model is obtained based on the effect index and the first structural characteristic value; the present invention classifies the monitoring feature sequence to be detected and monitors the skid-mounted power station according to the final random forest model, thereby improving the accuracy of data classification and monitoring.
[0048] It should be noted that the sequence of the above embodiments of the present invention is for description only and does not represent the advantages and disadvantages of the embodiments. 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.
[0049] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A real-time monitoring system for extended-range electric energy storage and release skid-mounted power stations, It is characterized in that The system includes the following modules: A data acquisition module, used to acquire at least two-dimensional historical monitoring feature sequences for monitoring the operating status of the skid-mounted power station; A classification model building module is used to obtain a judgment coefficient based on the classification effect of a preset number of decision trees in the random forest algorithm on the historical monitoring feature sequence; and obtain the initial number of decision trees and the initial random forest model based on the difference characteristics of the judgment coefficient; A classification model optimization module, used to obtain a first structural characteristic value according to the structural depth characteristics of the decision tree in the initial random forest model; obtain a second structural characteristic value according to the structural depth difference characteristics of the decision tree in the initial random forest model; obtain an effect index according to the first structural characteristic value and the second structural characteristic value; and adjust the number of initial decision trees according to the effect index and the first structural characteristic value to obtain a final number of decision trees; Running a monitoring module to construct a final random forest model according to the final number of decision trees; classifying the monitoring feature sequence to be detected according to the final random forest model to obtain different monitoring feature sets; and monitoring the skid-mounted power station according to the monitoring feature sets; The step of obtaining a judgment coefficient based on the classification effect of a preset number of decision trees in the random forest algorithm on the historical monitoring feature sequence includes: Calculate the F1 score after classifying the historical monitoring feature sequence when there are a preset number of decision trees in the random forest algorithm, and obtain the judgment coefficient corresponding to the preset number; The step of obtaining the initial number of decision trees and the initial random forest model according to the difference characteristics of the judgment coefficient comprises: Construct a coefficient change curve of the judgment coefficient, with the horizontal axis being the preset number and the vertical axis being the judgment coefficient; use the maximum point in the coefficient change curve as the preliminary selection point; calculate the slope value between any data point and the adjacent previous data point in the coefficient change curve to obtain the change rate of the arbitrary data point; calculate the average value of the change rate of the data points before the preliminary selection point in the coefficient change curve to obtain a first change characteristic value; calculate the average value of the change rate of the data points after the preliminary selection point to obtain a second change characteristic value; calculate the difference between the first change characteristic value and the second change characteristic value to obtain the preliminary selection degree of the preliminary selection point; use the preset number corresponding to the maximum value of the preliminary selection degree as the number of initial decision trees; construct a random forest based on the number of decision trees of the initial decision trees, perform model training based on the historical monitoring feature sequence, and obtain the initial random forest model; The step of obtaining a first structural feature value according to the structural depth feature of the decision tree in the initial random forest model comprises: Calculate the sum of the number of branches and the number of subnodes of the decision tree in the initial random forest model to obtain a structural depth feature value of the decision tree; calculate the average value of the structural depth feature value to obtain a structural depth average value; construct a benchmark random forest model based on the number of preset decision tree structures of the initial decision trees, and obtain the evaluation index value of the benchmark random forest model according to the K-fold cross-validation method; select the preset decision tree structure corresponding to the maximum value of the evaluation index value as the benchmark decision tree; calculate the sum of the number of branches and the number of subnodes in the benchmark decision tree to obtain a benchmark structural depth feature value; calculate the difference between the structural depth average value and the benchmark structural depth feature value to obtain a first structural feature value of the initial random forest model; The step of obtaining a second structural feature value according to the structural depth difference feature of the decision tree in the initial random forest model comprises: Calculate the variance of the structural depth eigenvalue of the decision tree in the initial random forest model and negatively correlate and map it to obtain a second structural eigenvalue of the initial random forest model; The step of obtaining the effect index according to the first structural characteristic value and the second structural characteristic value comprises: Negatively correlate the absolute value of the first structural characteristic value to obtain a first structural characterization value; calculate the average value of the first structural characterization value and the second structural characteristic value to obtain the effect index of the initial random forest model; The step of adjusting the number of initial decision trees according to the effect index and the first structural characteristic value to obtain the final number of decision trees comprises: When the effect index is not less than a preset threshold, the initial number of decision trees is used as the final number of decision trees; When the effect index is less than a preset threshold, if the first structural characteristic value is a negative number, the value of the initial number of decision trees in the initial random forest model is increased; if the first structural characteristic value is not a negative number, the value of the initial number of decision trees in the initial random forest model is reduced until the effect index is not less than the preset threshold, and the final number of decision trees is obtained.
2. A real-time monitoring system for a range-extended electric energy storage skid-mounted power station according to claim 1, It is characterized in that The step of constructing the final random forest model according to the final number of decision trees includes: When the final number of decision trees is equal to the initial number of decision trees, the initial random forest model is used as the final random forest model; when the final number of decision trees is not equal to the initial number of decision trees; a random forest is constructed according to the final number of decision trees, and model training is performed according to the historical monitoring feature sequence to obtain the final random forest model.
Citation Information
Patent Citations
Wheat stripe rust remote sensing monitoring method for analysis of early and middle stages of diseases
CN112528789A
Fault pole selection method and device for high-voltage direct-current power transmission system and computer equipment
CN115577259A
