A digital twin model construction method and system
Screening valuable data through active learning and stochastic configuration network (SCN) solves the problem of excessive data volume in the construction and update of digital twin models, reduces costs and improves efficiency and accuracy.
Patent Information
- Application Number
- CN202410828402.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-25
AI Technical Summary
In the existing technology, the amount of data during the construction, training, and updating of digital twin models is too large, resulting in high data processing costs, data storage costs, and model update costs.
Active learning strategies and stochastic configuration networks (SCN) are used for data screening and model construction, and valuable data are screened through the initial model, reducing the amount of data and improving model update efficiency.
It reduces the amount of data and costs in the process of building and updating digital twin models, improves data processing and reading speed, and improves computing efficiency and modeling accuracy.
Smart Images

Figure CN118378553B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power grid equipment data simulation, and in particular to a digital twin model construction method and system. Background Art
[0002] The existing invention patent application document "A distributed power supply evaluation method and system based on digital twin" with publication number CN117013593A, the existing method includes: constructing the overall framework of the distributed power supply evaluation system, constructing a distributed power supply harmonic model and performing harmonic analysis through the FFT implementation principle, providing a short-circuit current calculation method based on the flow, and calculating the voltage deviation and voltage fluctuation based on the distributed power supply timing flow calculation model. It can be seen from the specific implementation content of the existing scheme that the existing technology performs short-circuit current, harmonic verification, voltage deviation and voltage fluctuation calculation on the basis of flow calculation and electromagnetic transient analysis of the distributed power supply. However, the aforementioned existing technology only models the distributed power supply. The distributed power supply model is simple and the mechanism is easy to analyze, so the simulation model can be fitted by calculating the flow value, but the existing method is only applicable to the construction of simple mechanism models such as distributed power supplies, and the generalization ability is poor. If it involves workpieces with complex mechanisms such as ultra-high voltage DC converter transformers, the modeling effect will decrease.
[0003] The existing invention patent application document "Three-phase permanent magnet synchronous motor parameter estimation method based on digital twin model" with publication number CN116805850A, the existing method includes: establishing a closed-loop mathematical model of a three-phase two-level inverter, a permanent magnet synchronous motor, and a controller; then using the experimental platform sensor data, using an intelligent algorithm to continuously iterate and optimize key parameters, when the output of the established model is consistent with the actual physical circuit output, a closed-loop system digital twin model of the three-phase inverter driving the permanent magnet synchronous motor is constructed; under different working conditions, the digital twin model can simulate the actual circuit operation state; finally, the obtained key parameters of the permanent magnet synchronous motor are estimated multiple times and averaged, and finally the key parameters of the permanent magnet synchronous motor are obtained. The existing public document "Parameter Identification Research of Three-phase Inverter Digital Twin System" in this existing document, first, a digital twin three-phase inverter is constructed, including using the Runge-kutta method to establish a mathematical model of the main circuit of the three-phase inverter and a discrete model of the controller. Then, the adaptive particle swarm optimization algorithm is used to update and optimize the circuit parameters of the digital twin inverter until the corresponding circuit parameters of the digital twin inverter and the physical inverter are the same. Finally, the effectiveness of the proposed parameter identification method is verified by simulation and experiment. In the existing public literature "Photovoltaic Array Fault Diagnosis Based on Digital Twin and Fusion Neural Network", firstly, the overall framework of the digital twin system of the photovoltaic power station including the twin model, data acquisition and transmission module, and service application system is designed and preliminarily implemented; secondly, the digital twin model of the photovoltaic array is established by combining the mechanism modeling method with the particle swarm (PSO) optimization algorithm; thirdly, the fault is detected by evaluating the residual between the output of the digital twin model and the output of the physical entity; finally, the fusion neural network of the temporal convolutional network (TCN) combined with the bidirectional gated recurrent unit (BiGRU) is used to diagnose the photovoltaic array fault.
[0004] The above-mentioned existing three-phase permanent magnet synchronous motor parameter estimation method based on digital twin model, parameter identification research of three-phase inverter digital twin system, photovoltaic array fault diagnosis based on digital twin and fusion neural network, respectively proposed corresponding data feature extraction methods and algorithm construction methods, but these existing solutions still have the following problems:
[0005] 1. Not all data in the data sets produced by the above-mentioned prior art are valid. Some samples are valuable for model construction, while some are worthless. If a large number of worthless samples are used in the model construction process, it will not only increase the processing burden of calculation and reduce processing efficiency, but also may cause the model to overfit and have weak generalization performance;
[0006] 2. The algorithm iteration speed adopted by the above existing solutions is slow, while the digital twin modeling process requires the model to have good real-time performance during the update process.
[0007] In summary, the existing technology has technical problems such as excessive amount of data used in model construction, training, and updating, as well as high data processing cost, data storage cost, and model updating cost of the digital twin model. Summary of the invention
[0008] The technical problem to be solved by the present invention is: how to solve the technical problems of excessive amount of data used in the model construction, training and updating process in the prior art, as well as high data processing cost, data storage cost and model updating cost of the digital twin model.
[0009] The present invention adopts the following technical solutions to solve the above technical problems: A method for constructing a digital twin model includes:
[0010] S1. Collect historical operating data of the equipment to be modeled;
[0011] S2. Obtain the historical working condition data and perform initial modeling on the digital twin model based on the random configuration network SCN according to random samples. The training set is set according to the historical working condition data. The training set includes: feature data and label data corresponding to the feature data. The random configuration network SCN is trained with the training set to obtain the initial model. M ;
[0012] S3. Through active learning operations, using the initial model M , perform value screening on samples not involved in modeling, select and process applicable value samples, and process to obtain valuable data , based on valuable data Update the initial model M , and obtain the applicable twin model ;
[0013] S4. Based on applicable twin model , filter the real-time data stream and save the real-time valuable data in the real-time data stream.
[0014] Compared with the modeling method of conventional digital twin models, the present invention introduces an active learning strategy. By screening out valuable data for data modeling and data preservation, it reduces the amount of data used in the construction, training and subsequent updating of the digital twin model, while reducing the data processing cost, data preservation cost and model updating cost of the digital twin model.
[0015] In a more specific technical solution, in S1, the historical operating data includes: ultra-high voltage signal of the converter transformer, ultra-high frequency signal and single hydrogen information.
[0016] In a more specific technical solution, in S2, the operation of constructing a stochastic configuration network SCN (stochastic configuration network) also includes:
[0017] S21, given the objective function, calculate the current network output result of the random configuration network SCN;
[0018] S22, calculating the current network residual vector;
[0019] S23, obtain residual vector parameters according to the current network residual vector processing, perform a determination operation according to the residual vector parameters, and in the residual vector parameters || e L-1 || 2 The preset error ε is not reached, or the preset maximum number of nodes is not reached L max When the random configuration network SCN is increased L hidden layer nodes, determine the L The input weights and biases of the hidden layer nodes;
[0020] S24, calculating the output weights of the hidden layer nodes;
[0021] S25, recalculate the current network output result;
[0022] S26: According to the training set, execute steps S21 to S25 in a loop to construct the initial model M .
[0023] Since the random configuration network SCN used in the present invention has good approximation properties in various application scenarios, it can ensure that the initial model M That is, the corresponding modeling accuracy can be achieved.
[0024] In a more specific technical solution, in S21, the objective function is expressed using the following logic: f(x) :
[0025] f(x)=y
[0026] in, x Indicates characteristics, y Indicates a label;
[0027] Suppose the hidden layer of the random configuration network SCN is The hidden layer nodes have been generated, and the current network output result is calculated using the following logic:
[0028] (1)
[0029] in, Indicates the structure The function described by the hidden layer nodes, X represents the network input, Represents the hidden layer nodes j The output weight of represents the output weight; represents the activation function, represents the hidden layer j The input weight of each node, represents the hidden layer j The transpose of the input weights of the nodes; represents the hidden layer j The bias of each node; L is the number of nodes constructed, L max is the maximum number of nodes that can be constructed, where j =1, 2, …, L max ; . It means that when the network structure has only 0 layers, the output is 0.
[0030] In a more specific technical solution, in S22, the current network residual vector is calculated using the following logic:
[0031] (2)
[0032] in, is the current network residual vector, Represents the function corresponding to the true label, Indicates the structure L-1 The function described by the hidden layer nodes, Indicates m residual vector, N Indicates the total number of models, m Represents the vector number in the current network residual vector, Indicates a N × m The set of real numbers of dimension .
[0033] In a more specific technical solution, in S23, the following supervision mechanism is used to determine the input weight and bias:
[0034] (3)
[0035] (4)
[0036] in, q is the current network residual vector The number of vectors in , where ; Represents the hidden layer node L The output, express The transpose of Represents the hidden layer node L The candidate input weights of Represents the hidden layer node L Candidate bias of ; r The constraints introduced are satisfied ; represents a sequence of non-negative real numbers, where , the non-negative real number sequence approaches 0 infinitely: ; will satisfy The candidate node parameters are used as the L The parameters of the hidden layer nodes, Represents the constraint value, Represents the constraint value No. q Quantity, represents the summation of the components of the constraint value, Express To activate, Represents the hidden layer nodes L The candidate input weights The transpose of Represents the features of the input x No. N Quantity, Represents the current network residual vector No. q Quantity, Represents the current network residual vector No. q The transpose of the components.
[0037] In a more specific technical solution, in S24, the output weights of the hidden layer nodes are determined using the following logic: ;
[0038] (5)
[0039] in, express H The Moore-Penrose generalized inverse of , H Represents the hidden layer nodes L The output set of Indicates the label corresponding to the input feature, Express Find the absolute value, Indicates fetch order The output weight that takes the minimum value The value of .
[0040] In a more specific technical solution, in S25, the current network output result is calculated again using the following logic: f :
[0041] (6).
[0042] In more specific technical solutions, S3 includes:
[0043] S31. Determine the current initial model M Whether it is a single model;
[0044] S32. If yes, use the following logic to calculate the uncertainty of the sample for a single model :
[0045] (7)
[0046] in, For the collected data Unused data in is the single model corresponding model, For a single model corresponding model For unused data The prediction probability of the model is obtained by screening valuable data of a single model;
[0047] S33. If not, calculate the contribution value of the sample to different models, and screen to obtain multi-model valuable data. The following logic is used to obtain the contribution value of the sample to different models:
[0048] (8)
[0049] in, is the multi-model correspondence model, Multi-model correspondence model For unused data The predicted probability of N is the total number of models, Express Find the logarithm, Express To sum, n Indicates the total number of models;
[0050] S34. Save single model valuable data and multi-model valuable data to form valuable data .
[0051] Since the present invention adopts active learning operation, the model data volume is small, data reading and data processing are fast, and the random configuration network SCN is adopted in the network structure. As an incremental learning, the random configuration network SCN does not need to perform back propagation in traditional deep learning, so the network structure is updated quickly, and only nodes need to be added in the subsequent update process, which can realize data screening of real-time data streams.
[0052] For the multi-model data screening method, the present invention proposes an active learning method suitable for multiple models, which can screen out valuable samples that are commonly recognized by multiple models, thereby reducing the computational burden in the model construction process and improving computational efficiency.
[0053] In a more specific technical solution, a digital twin model building system includes:
[0054] A historical operating condition collection module is used to collect historical operating condition data of the equipment to be modeled;
[0055] The initial model building module is used to obtain random samples from historical working condition data and perform initial modeling on the digital twin model based on the random configuration network SCN. The training set is set according to the historical working condition data. The training set includes: feature data and label data corresponding to the feature data. The training set is used to train the random configuration network SCN to obtain the initial model. M , the initial model building module is connected with the historical operating condition acquisition module;
[0056] Data screening and model updating module, used to use the initial model through active learning operations M , perform value screening on samples not involved in modeling, select and process applicable value samples, and process to obtain valuable data , based on valuable data Update the initial model M , and obtain the applicable twin model ,The data screening module is connected with the initial model building module;
[0057] Twin model data screening and saving module, used to apply twin model , filter the real-time data stream, save the real-time valuable data in the real-time data stream, and connect the twin model data filtering and saving module with the data filtering and model updating module.
[0058] Compared with the prior art, the present invention has the following advantages:
[0059] Compared with the modeling method of conventional digital twin models, the present invention introduces an active learning strategy. By screening out valuable data for data modeling and data preservation, it reduces the amount of data used in the construction, training and subsequent updating of the digital twin model, while reducing the data processing cost, data preservation cost and model updating cost of the digital twin model.
[0060] Since the random configuration network SCN used in the present invention has good approximation properties in various application scenarios, it can ensure that the initial model M That is, the corresponding modeling accuracy can be achieved.
[0061] Since the present invention adopts active learning operation, the model data volume is small, data reading and data processing are fast, and the random configuration network SCN is adopted in the network structure. As an incremental learning, the random configuration network SCN does not need to perform back propagation in traditional deep learning, so the network structure is updated quickly, and only nodes need to be added in the subsequent update process, which can realize data screening of real-time data streams.
[0062] For the multi-model data screening method, the present invention proposes an active learning method suitable for multiple models, which can screen out valuable samples that are commonly recognized by multiple models, thereby reducing the computational burden in the model construction process and improving computational efficiency.
[0063] The present invention solves the technical problems existing in the prior art of excessive amount of data used in the process of model construction, training and updating, as well as high data processing cost, data storage cost and model updating cost of the digital twin model. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 A schematic diagram of basic steps of a method for constructing a digital twin model according to Embodiment 1 of the present invention;
[0065] Figure 2 This is a schematic diagram of a random configuration network structure of Example 1 of the present invention;
[0066] Figure 3 A schematic diagram of specific steps for constructing a random configuration network SCN according to Embodiment 1 of the present invention;
[0067] Figure 4 This is a schematic diagram of specific steps for sample value screening in Example 1 of the present invention;
[0068] Figure 5 This is a schematic diagram of the specific implementation steps of a digital twin model construction method according to Example 2 of the present invention. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described in combination with the embodiments of the present invention. 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.
[0070] Example 1
[0071] like Figure 1 As shown in the figure, a method for building a digital twin model includes the following basic steps:
[0072] Step S1, collecting historical operating data of the equipment to be modeled;
[0073] In this embodiment, the collected data set is recorded as:
[0074] D,D=(D A ,D B ,...,D N )
[0075] in, A,B,…,N Indicates the type of historical operating condition data collected, which is the same as the total number of models; in this embodiment, taking the UHV DC converter transformer as an example, A,B,…,N Parameters corresponding to the same type include but are not limited to: ultra-high voltage signal of converter transformer, ultra-high frequency signal and single hydrogen information.
[0076] Step S2: Obtain random samples from historical operating data and perform initial modeling on the digital twin model based on the random configuration network SCN, wherein a training set is set according to the historical operating data, and the training set includes: feature data, label data corresponding to the feature data, and the random configuration network SCN is trained using the training set to obtain an initial model. M ;
[0077] like Figure 2 As shown, in this embodiment, due to the on-site problems existing in the conventional digital twin model construction process, such as a large amount of data, multiple data types, frequent data fluctuations, and small memory of the embedded device used, the present invention adopts a stochastic configuration network (SCN) to model the digital twin model;
[0078] In this embodiment, given a set of training data sets { X , Y},in, X ={x 1 ,x 2 ,…,x N} represents feature data, Y ={ y 1 ,y 2 ,…,y N}Label data corresponding to feature data;
[0079] like Figure 3 As shown, in this embodiment, the operation of constructing the random configuration network SCN also includes the following specific steps:
[0080] Step S21, given the objective function, calculate the current network output result of the random configuration network SCN;
[0081] In this embodiment, the objective function is as follows:
[0082] f(x)=y
[0083] Assume that the hidden layer of the network SCN is randomly configured The hidden layer nodes have been generated, and the current network output result can be calculated by the following formula (1):
[0084] (1)
[0085] in, Indicates the structure The function described by the hidden layer nodes, X represents the network input, Represents the hidden layer nodes j The output weight of represents the output weight; represents the activation function, represents the hidden layer j The input weight of each node, represents the hidden layer j The transpose of the input weights of the nodes; represents the hidden layer j The bias of the node.
[0086] Step S22, calculating the current network residual vector;
[0087] In this embodiment, the following formula (2) is used to calculate the residual vector of the current network:
[0088] (2)
[0089] in, is the calculated residual vector, Represents the function corresponding to the true label.
[0090] Step S23, obtain residual vector parameters according to the current network residual vector processing, perform a determination operation according to the residual vector parameters, and in the residual vector parameters || e L-1 || 2 The preset error ε is not reached, or the preset maximum number of nodes is not reached L max When the random configuration network SCN is increased L hidden layer nodes, determine the L The input weights and biases of the hidden layer nodes;
[0091] In this embodiment, the hidden layer nodes are obtained according to the following formula (3): L The output:
[0092] (3)
[0093] In this embodiment, the input weight and bias are determined by the supervision mechanism according to the following formula (4):
[0094] (4)
[0095] in, q is the current network residual vector The number of vectors in , where ; Represents the hidden layer node L The output, express The transpose of Represents the hidden layer node L The candidate input weights of Represents the hidden layer node L Candidate bias of ; r The constraints introduced are satisfied ; represents a sequence of non-negative real numbers, where , the sequence of non-negative real numbers approaches 0 infinitely: ; will satisfy The candidate node parameters are used as the L The parameters of the hidden layer nodes.
[0096] Step S24, calculating the output weights of the hidden layer nodes;
[0097] In this embodiment, the output weight of the hidden layer node is determined according to the following formula (5):
[0098] (5)
[0099] in, express H The Moore-Penrose generalized inverse of .
[0100] Step S25: Use the following formula (6) to calculate the current network output result again: f :
[0101] (6)
[0102] Step S26: According to the training set, execute steps S21 to S25 in a loop to construct the initial model. M ;
[0103] In this embodiment, samples are randomly selected from historical operating condition data to form a training set { X , Y}, according to the above steps S21 to S25, construct the initial model M .
[0104] Step S3: Using the initial model through active learning operation M , perform value screening on samples not involved in modeling, select and process applicable value samples, and process to obtain valuable data , based on valuable data Update the initial model M , and obtain the applicable twin model ;
[0105] like Figure 4 As shown, in this embodiment, the operation of sample value screening also includes the following specific steps:
[0106] Step S31: Determine the current initial model M Whether it is a single model;
[0107] In this embodiment, the sample value is defined as the uncertainty of the sample for the model. U Because the There are two cases, namely, only a single module and multiple modules , so the defined U They should also not be the same, and the cases of single model and multiple models should be discussed separately;
[0108] Step S32: If yes, use the following logic to calculate the uncertainty of the sample for a single model;
[0109] In this embodiment, when it is determined to be a single model, the single model screening logic is used to calculate the uncertainty of the sample to the single model, and valuable data of the single model is screened;
[0110] In this embodiment, the uncertainty of a sample for a single model is calculated by the following formula (7):
[0111] (7)
[0112] in, For the collected data Unused data in is the single model corresponding model, For a single model corresponding model For unused data The above formula (7) estimates the unused data from the perspective of information theory. Single model corresponding model The contribution of the single model to the model For unused data The posterior probability reflects the unused data Whether to correspond to the model for a single model is valuable; in this embodiment, The larger the value of, the more the single model corresponds to the model For unused data The less certain the data is, the more likely it is that the data has not been used. Able to correspond single model to model Subsequent updates provide more value.
[0113] Step S33: If not, calculate the contribution value of the sample to different models, and screen to obtain multi-model valuable data, wherein the contribution value of the sample to different models is obtained using the following logic;
[0114] In this embodiment, when it is determined that there are multiple models, multiple model screening logics are used to calculate the uncertainty of the models corresponding to the multiple models, and valuable data of the multiple models are screened;
[0115] In this embodiment, the contribution value of the sample to different models is calculated by the following formula (8):
[0116] (8)
[0117] In the above formula (8), For the collected data set Unused data in For the corresponding model, Multi-model correspondence model For unused data The predicted probability of N is the total number of models.
[0118] In this embodiment, the main difference between the above formula (8) and formula (7) is that the contribution value of each sample in different models is first calculated, and the average is calculated for the total number of different models, and finally the averages are summed to obtain the contribution value of different models. Compared with formula (7), formula (8) considers the evaluation and annotation of the samples by the remaining models in the multi-model corresponding model from a multi-dimensional and multi-standard perspective, and calculates the contribution value of the samples to the entire digital twin model.
[0119] Step S34: Save single model valuable data and multi-model valuable data to form valuable data .
[0120] In this embodiment, based on valuable data Update the model M , we can get the applicable twin model .
[0121] In this embodiment, a single model is suitable for modeling objects with relatively simple operating mechanisms, and only one network is needed to better fit the current object. However, in actual application scenarios, some industrial objects have complex internal operating mechanisms, and even have multiple sub-modules inside, and there may also be mutual coupling relationships. It is difficult for a single model to fit the aforementioned clarity more perfectly, and multiple models are required to achieve accurate modeling of the aforementioned multiple sub-modules and situations where sub-modules have coupling relationships. In view of the fact that there are few methods for data screening for multiple models in traditional technology, there are also few methods for modeling multiple modules in digital twin models. In response to the above problems, the present invention performs multi-module modeling based on the random configuration network SCN. Due to its small model capacity and fast training speed, it has a good fitting effect for both single models and multiple models, and can better apply active learning methods to the construction of digital twin models.
[0122] Step S4: Based on the applicable twin model , filter the real-time data stream and save the real-time valuable data in the real-time data stream.
[0123] In this embodiment, active learning is adopted, so the amount of model data is small, data reading and data processing are fast, and SCN is adopted in the network structure.
[0124] In this embodiment, SCN is used as incremental learning and does not require back propagation in traditional deep learning. Therefore, the network structure is updated quickly and only requires adding nodes in the future, thereby enabling data screening of real-time data streams.
[0125] In this embodiment, since SCN has good approximation properties in various application scenarios, it can ensure that the model M The corresponding modeling accuracy can be achieved. As the real-time data stream continues to flow in, the initial model M Based on the aforementioned steps S2 and S3, it is continuously updated until the modeling accuracy of the digital twin model reaches the required standard.
[0126] Example 2
[0127] like Figure 5 As shown, in this embodiment, a digital twin model construction method also includes the following specific implementation steps:
[0128] S1', collect historical data of the equipment required for modeling;
[0129] S2', randomly select a small number of samples;
[0130] S3', build the initial model based on the random configuration network;
[0131] S4', the network is constantly updated and new samples are continuously selected;
[0132] S5', select valuable samples based on active learning;
[0133] S6', feeding the selected samples back to the training procedure;
[0134] S7', judging whether the model accuracy meets the requirements;
[0135] S8', if yes, then output the model;
[0136] S9', continue to loop through the above steps S3' to S6'.
[0137] In this embodiment, refer to Table 1 below, which is a performance comparison result of the present invention and the classic deep CNN model on an industrial image dataset. From the specific comparison data in the table, it can be seen that the digital twin model construction method provided by the present invention has improved calculation accuracy and calculation efficiency compared with the classic deep CNN model.
[0138] Table 1 Performance comparison between 2DSCN-AL and classic deep CNN models
[0139]
[0140] In summary, compared with the modeling method of conventional digital twin models, the present invention introduces an active learning strategy, which reduces the amount of data used in the construction, training and subsequent updating of the digital twin model by screening out valuable data for data modeling and data preservation, while reducing the data processing cost, data preservation cost and model updating cost of the digital twin model.
[0141] Since the random configuration network SCN used in the present invention has good approximation properties in various application scenarios, it can ensure that the initial model M That is, the corresponding modeling accuracy can be achieved.
[0142] Since the present invention adopts active learning operation, the model data volume is small, data reading and data processing are fast, and the random configuration network SCN is adopted in the network structure. As an incremental learning, the random configuration network SCN does not need to perform back propagation in traditional deep learning, so the network structure is updated quickly, and only nodes need to be added in the subsequent update process, which can realize data screening of real-time data streams.
[0143] For the multi-model data screening method, the present invention proposes an active learning method suitable for multiple models, which can screen out valuable samples that are commonly recognized by multiple models, thereby reducing the computational burden in the model construction process and improving computational efficiency.
[0144] The present invention solves the technical problems existing in the prior art of excessive amount of data used in the process of model construction, training and updating, as well as high data processing cost, data storage cost and model updating cost of the digital twin model.
[0145] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for constructing a digital twin model, characterized in that: The method comprises: S1. Collect historical operating data of the equipment to be modeled; S2. Obtaining from the historical operating data and based on random samples, the digital twin model is initially modeled based on the random configuration network SCN, wherein a training set is set according to the historical operating data, and the training set includes: feature data, label data corresponding to the feature data, and the random configuration network SCN is trained using the training set to obtain an initial model M ; S3, through active learning operation, using the initial model M , perform value screening on samples not involved in modeling, select and process applicable value samples, and process to obtain valuable data , based on the valuable data Update the initial model M , and obtain the applicable twin model ; Wherein, the S3 includes: S31, judging the current initial model M Whether it is a single model; S32. If yes, use the following logic to calculate the uncertainty of the sample for a single model: (7) In the formula, For the collected data Unused data in is the single model corresponding model, The single model corresponds to the model For the unused data The prediction probability of the model is obtained by screening valuable data of a single model; S33. If not, calculate the contribution value of the sample to different models, and screen to obtain multi-model valuable data, wherein the contribution value of the sample to different models is obtained using the following logic: (8) In the formula, is the multi-model correspondence model, is the multi-model corresponding model For the unused data The predicted probability of N is the total number of models, Express Find the logarithm, Express To sum, n Indicates the total number of models; S34: Save the single model valuable data and the multi-model valuable data to form the valuable data ; S4. Based on the applicable twin model , screen the real-time data stream and save the real-time valuable data in the real-time data stream.
2. A digital twin model construction method according to claim 1, characterized in that: In S1, the historical operating condition data includes: ultra-high voltage signal of converter transformer, ultra-high frequency signal and single hydrogen information.
3. A digital twin model construction method according to claim 1, characterized in that: In S2, the operation of constructing the random configuration network SCN further includes: S21, given the objective function, calculate the current network output result of the random configuration network SCN; S22, calculating the current network residual vector; S23, obtaining residual vector parameters according to the current network residual vector processing, performing a determination operation according to the residual vector parameters, and determining the residual vector parameters. Reach the preset error ε , or the preset maximum number of nodes is not reached L max When the random configuration network SCN is increased L hidden layer nodes, determine the L Input weights and biases of hidden layer nodes; S24, calculating the output weights of the hidden layer nodes; S25, calculating the current network output result again; S26: According to the training set, execute S21 to S25 in a loop to construct the initial model M .
4. A digital twin model construction method according to claim 3, characterized in that: In S21, the objective function is expressed by the following logic: f(x) : f(x)=y In the formula, x Indicates characteristics, y Indicates a label; Assume that the hidden layer of the random configuration network SCN The hidden layer nodes have been generated, and the current network output result is calculated using the following logic: (1) In the formula, Indicates the structure The function described by the hidden layer nodes, X represents the network input, Represents the hidden layer node j The output weight of represents the output weight; represents the activation function, represents the hidden layer j The input weight of each node, represents the hidden layer j The transpose of the input weights of the nodes; represents the hidden layer j The bias of each node; L is the number of nodes constructed, L max is the maximum number of nodes that can be constructed, where j =1, 2, …, ; It means that when the network structure has only 0 layers, the output is 0.
5. A digital twin model construction method according to claim 3, characterized in that: In S22, the current network residual vector is calculated using the following logic: (2) In the formula, is the current network residual vector, Represents the function corresponding to the true label, Indicates the structure L-1 The function described by the hidden layer nodes, Indicates m residual vector, N Indicates the total number of models, m represents the vector number in the current network residual vector, Indicates a N × m The set of real numbers of dimension .
6. A digital twin model construction method according to claim 3, characterized in that: In S23, the input weight and the bias are determined using the following supervision mechanism: (3) (4) In the formula, q is the current network residual vector The number of vectors in , where ; Represents the hidden layer node L The output, express The transpose of Represents the hidden layer node L The candidate input weights of Represents the hidden layer node L Candidate bias of ; r The constraints introduced are satisfied ; represents a sequence of non-negative real numbers, where , the non-negative real number sequence approaches 0 infinitely: ; will satisfy The candidate node parameters are taken as the L The parameters of the hidden layer nodes, Represents the constraint value, Represents the constraint value No. q Quantity, represents the summation of the components of the constraint value, Express To activate, Represents the hidden layer nodes L The candidate input weights The transpose of Represents the features of the input x No. N Quantity, Represents the current network residual vector No. q Quantity, Represents the current network residual vector No. q The transpose of the components.
7. A digital twin model construction method according to claim 3, characterized in that: In S24, the output weights of the hidden layer nodes are determined using the following logic: ; (5) In the formula, express H The Moore-Penrose generalized inverse, , H Represents the hidden layer node L The output set of Indicates the label corresponding to the input feature, Express Find the absolute value, Indicates fetch order The output weight that takes the minimum value The value of .
8. A method for constructing a digital twin model according to claim 3, characterized in that: In S25, the current network output result is calculated again using the following logic: f : (6) In the formula, H Represents the hidden layer node L The output set of represents the output weight.
