Simulated preheating
Through the optimizer and inverted time series training method, the problem of determining the starting state of building simulation is solved, the training efficiency and accuracy of the neural network model is improved, and the computing resource usage is reduced.
Patent Information
- Application Number
- CN202280086478.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-01-03
- Filing Date
- 2022-12-27
- Publication Date
- 2024-09-10
AI Technical Summary
It is difficult to quickly obtain a reasonable starting state of a building when training a neural network model with the existing technology, resulting in time-consuming simulation and resource consumption, and difficulties in data collection and training data set generation, resulting in low model training efficiency and high computing resource usage.
By using the optimizer to iteratively determine reasonable node starting values for building simulation, and using the inverted time series to train the learning model, combined with the cost function and backpropagation method, a reasonable starting state is quickly generated, reducing the use of computing resources and improving training efficiency.
It achieves rapid acquisition of a reasonable starting state of the building, reduces the computing resource requirements for training neural network models, improves training efficiency and accuracy, and reduces training time and the difficulty of data set generation.
Smart Images

Figure CN118633092A
Abstract
Description
Technical Field
[0001] The present disclosure relates to machine learning techniques, and more particularly, to utilizing a simulation model using one machine learning technique to train another model using a different machine learning technique. Summary of the invention
[0002] This Summary is provided to introduce selected concepts in a simplified form that are further described below in the Detailed Description section. This Summary does not identify necessary or essential features of the claimed subject matter. The invention is defined by the claims, and if there is a conflict in the claims of this Summary, the claims shall prevail.
[0003] In general, some of the techniques described in this article describe the use of optimizers to train learning models.
[0004] In an embodiment, a computer-supported learning model training system is disclosed. The system includes: a processor; a memory in operable communication with the processor, associated with the processor, and configured to create a computing code for a simulator trainer; an optimizer that determines initial node values for a simulator, the simulator including nodes having values; the simulator uses an input time series from time t=(-n) to time t=(0) as input, and outputs an output time series from time t=(-n) to time t=(0) for the node; an inverter that inverts the input time series to from time t=(0) to t=(-n) to generate an inverted input time series, and inverts the output time series to from time t=(0) to t=(-n); and a learning model that uses the inverted input time series as a training input, and uses the selected value of the output time series at t=(-n) as the ground truth of the cost function associated with the learning model.
[0005] In an embodiment, the simulator is a heterogeneous neural network.
[0006] In an embodiment, the system further comprises a cost function determiner that uses the node values selected from the output time series as input to a cost function, and wherein the cost function determiner further comprises a cost function that uses the ground truth as input to the cost function.
[0007] In an embodiment, the optimizer uses costs derived from the cost function to determine subsequent initial node values.
[0008] In an embodiment, an iterator is also included, which iteratively runs the optimizer, the simulator, and the learning model until a stopping state is reached.
[0009] In an embodiment, when the stop state is reached, the initial node values are used as input to start the state estimation simulation.
[0010] In an embodiment, an initial state estimation simulation is run from time t=(-n) to time t=(0); wherein the state simulation is then run from time t(0) to t(m); the output generated by the state simulation can be used to generate a control sequence, and wherein the control sequence is used to operate the device modeled by the state simulation.
[0011] In an embodiment, the learning model is a neural network.
[0012] In an embodiment, the neural network is a recurrent neural network.
[0013] In an embodiment, a computer-supported method for training a learning model using an optimizer model implemented in a computing system is disclosed, the method comprising one or more processors and one or more memories coupled to the one or more processors, the one or more memories comprising computer-executable instructions for causing the computing system to perform operations including: running an optimizer to determine initial simulator node values; running a simulator using inputs and the initial simulator node values to produce simulator outputs; comparing selected node values from the simulator outputs with expected node values to produce costs; inverting the selected node values to produce inverted selected node values; inverting the inputs to the simulator to produce inverted simulator inputs; using the inverted selected node values and the inverted simulator inputs as training inputs for the learning model; and running the learning model.
[0014] In an embodiment, running the learning model produces a reversed time series as the learning model output.
[0015] In an embodiment, the learned model output at time t(-n) is compared to the initial simulator node values in the cost function.
[0016] In an embodiment, the cost is derived from a cost function, and wherein the cost is used for back-propagation within the learning model.
[0017] In an embodiment, the simulator is a heterogeneous neural network.
[0018] In an embodiment, the input comprises weather data over time.
[0019] In an embodiment, the selected nodal value is the temperature of a region within the space being modeled by the simulator.
[0020] In an embodiment, inverting the input of the simulator includes inverting the time series from the original t=(-n) to time=(0) to from time t=(0) to t=(-n) to generate an inverted time series.
[0021] In an embodiment, a computer-readable storage medium configured with instructions is disclosed, which instructions, after being executed by one or more processors, perform a method for training a simulator, the method comprising: running an optimizer to determine initial simulator node values; running the simulator using inputs and the initial simulator node values to produce simulator outputs; comparing selected node values from the simulator outputs with expected node values to produce costs; inverting the selected node values to produce inverted selected node values; inverting the inputs of the simulator to produce inverted simulator inputs; using the inverted selected node values and the inverted simulator inputs as training inputs for a learning model; and running the learning model.
[0022] In an embodiment, the learning model output at time t=(-n) is compared with the simulator output at time t=(0) for a learning model cost function, and wherein the cost derived from the learning model cost function is used for back-propagation within the learning model.
[0023] In an embodiment, the learning model is a recurrent neural network.
[0024] These and other aspects of the present invention will be better understood and appreciated when considered in conjunction with the following description and accompanying drawings. Although the following description points out various embodiments and many specific details thereof, the description is given as an illustration and not as a limitation. Many substitutions, modifications, additions or rearrangements may be made within the scope of the various embodiments, and the described embodiments include all such substitutions, modifications, additions or rearrangements. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Non-limiting and non-exhaustive embodiments of the present invention are described with reference to the following figures, wherein like reference numerals refer to like parts throughout the various views unless otherwise specified.
[0026] Figure 1 Disclosed are relationships between inputs and outputs of a simulator and a learning model during a training process that can be utilized to implement embodiments disclosed herein.
[0027] Figure 2 Disclosed are interactions between a learning model and a simulator when the learning model has been fully trained that can be utilized to implement the embodiments disclosed herein.
[0028] Figure 2A Interactions between initial value simulations, starting state estimation simulations, and state simulations that can be utilized to implement the embodiments disclosed herein are disclosed.
[0029] Figure 2B Interactions between an optimizer and a heterogeneous node system that can be utilized to implement the embodiments disclosed herein are disclosed.
[0030] Figure 3 Computing systems are disclosed in conjunction with which the described embodiments may be implemented.
[0031] Figure 4 Disclosed is a distributed computing system that can be utilized to implement the embodiments disclosed herein.
[0032] Figure 5 An optimizer loop having an input and an output that can be utilized to implement the embodiments disclosed herein is disclosed.
[0033] Figure 6 Optimizer states with outputs that can be utilized to implement the embodiments disclosed herein are disclosed.
[0034] Figure 7 A learning model loop having an input and an output is disclosed which can be utilized to implement the embodiments disclosed herein.
[0035] Figure 8 Disclosed is a heterogeneous node ring having inputs and outputs that can be utilized to implement the embodiments disclosed herein.
[0036] Fig. 9 Disclosed are training RNNs that can be utilized to implement the embodiments disclosed herein.
[0037] Fig.10 Disclosed are trained RNNs that can be utilized to implement the embodiments disclosed herein.
[0038] Fig.11A and 11B A flowchart for describing a method of training a learning model using an optimizer is disclosed, which can be utilized to implement the embodiments disclosed herein.
[0039] Fig.12 Disclosed are exemplary simulator nodes that may be utilized to implement the embodiments disclosed herein.
[0040] Fig.13 Exemplary learning model inputs and outputs are disclosed that can be utilized to implement the embodiments disclosed herein.
[0041] Fig.14 Disclosed are exemplary nodes that may be utilized to implement the embodiments disclosed herein.
[0042] Fig.15A An exemplary starting state estimation simulation flow is disclosed which may be utilized to implement the embodiments disclosed herein.
[0043] Fig. 15B An exemplary starting state estimation simulation flow is disclosed which may be utilized to implement the embodiments disclosed herein.
[0044] Fig.16 Disclosed are exemplary node values in different simulations that may be utilized to implement the embodiments disclosed herein.
[0045] Fig.17 An exemplary flow chart for showing a sanity check to ensure that an initial starting state estimate is valid is disclosed.
[0046] Fig.18 An exemplary simulation starting state estimation system is disclosed that can be utilized to implement the embodiments disclosed herein.
[0047] Corresponding reference characters indicate corresponding components in all of the multiple views of the drawings. It will be appreciated by those skilled in the art that the elements in the drawings are illustrated for simplicity and clarity and are not necessarily drawn to scale. For example, the dimensions of certain elements in the drawings may be exaggerated relative to other elements to help improve understanding of the various embodiments. Furthermore, to facilitate a more unimpeded view of these various embodiments, common but well-understood elements that are useful or necessary in commercially feasible embodiments are generally not depicted. DETAILED DESCRIPTION
[0048] Representative embodiments of methods, computer-readable media, and systems are disclosed below, which are particularly suitable for systems and methods for enabling simulated warm-up. The described embodiments implement one or more of the described techniques.
[0049] In the following description, many specific details are set forth in order to provide a comprehensive understanding of the current embodiment. However, it is obvious to those of ordinary skill in the art that the specific details are not necessary for practicing the current embodiment. In other cases, well-known materials or methods are not described in detail to avoid confusing the current embodiment. "One embodiment", "embodiment", "one example" or "example" means that a specific feature, structure or characteristic described in combination with an embodiment or example is included in at least one embodiment of the current embodiment. Therefore, the phrases "in one embodiment", "in an embodiment", "one example" or "example" that appear throughout this specification do not necessarily refer to the same embodiment or example. The systems, devices and methods described herein may be modified, added or omitted without departing from the scope of the present disclosure. For example, the components of the system and the device may be integrated or separated. In addition, the operation of the system and the device disclosed herein may be performed by more, less or other components, and the method may include more, less or other steps. In addition, the steps may be performed in any suitable order.
[0050] For convenience, the present disclosure may be described using relative terms, including, for example, left, right, top, bottom, front, back, upper, lower, up, down, and others. It should be understood that these terms are used for illustrative purposes only and are not intended to be limiting in any way.
[0051] In addition, it should be understood that the figures provided herein are for explanation purposes only to persons of ordinary skill in the art and that the figures are not necessarily drawn to scale. To assist the Patent Office and any reader of any patent issued under this application in interpreting the claims appended hereto, applicants may wish to note that unless the words "means for" or "step for" are expressly used in a particular claim, they do not intend for any appended claim or claim element to invoke 35 U.S.C. 112(f).
[0052] The implementation scheme according to the current embodiment can be implemented as an apparatus, method or computer program product. Therefore, the current embodiment can take the form of a complete hardware embodiment, a complete software embodiment (including firmware, resident software, microcode, etc.), or an embodiment that combines software and hardware aspects that can be called a "system". In addition, the current embodiment can take the form of a computer program product embodied in any tangible expression medium, wherein the program code available to a computer is embodied in the medium.
[0053] Any combination of one or more computer-usable or computer-readable media may be used. For example, a computer-readable medium may include one or more of a portable computer disk, a hard disk, a random access memory (RAM) device, a read-only memory (ROM) device, an erasable programmable read-only memory (EPROM or flash memory) device, a portable compact disk read-only memory (CDROM), an optical storage device, and a magnetic storage device. The computer program code for performing the operations of the current embodiment may be written in any combination of one or more programming languages.
[0054] The flow chart and block diagram in the flow chart diagram illustrate the architecture, function and operation of the possible implementation of the system, method and computer program product according to the various embodiments of the present embodiment. In this regard, each frame in the flow chart or block diagram can represent a part of a module, segment or code, which includes one or more executable instructions for realizing one or more specified logical functions. It will also be noted that the combination of each frame in the diagram of the block diagram and / or flow chart and each frame in the diagram of the block diagram and / or flow chart can be realized by a combination of a dedicated hardware-based system or dedicated hardware and computer instructions that performs a specified function or action. These computer program instructions can also be stored in a computer-readable medium, which can indicate that a computer or other programmable data processing device operates in a particular manner, so that the instruction stored in the computer-readable medium produces a product of manufacture including an instruction device that realizes the function / action specified in one or more frames of the flow chart and / or block diagram.
[0055] "Optimization" means improvement, but not necessarily perfection. For example, a value or algorithm that has been optimized may still have the potential for further improvement.
[0056] As used herein, the terms "comprises," "including," "comprising," "including," "having," "having" or any other variation thereof, are intended to cover a non-exclusive inclusion. For example, a process, article, or apparatus that comprises a list of elements is not necessarily limited to only those elements but may include other elements not expressly listed or inherent to the process, article, or apparatus.
[0057] In addition, unless expressly stated to the contrary, "or" refers to an inclusive and non-exclusive "or". For example, condition A or B is satisfied by any of the following conditions: A is true (or exists) and B is false (or does not exist), A is false (or does not exist) and B is true (or exists), and both A and B are true (or exist). "Program" is used broadly in this article to include applications, kernels, drivers, interrupt handlers, firmware, state machines, libraries and other code written and / or automatically generated by programmers (also referred to as developers). "Optimize" means to improve, but not necessarily to perfect. For example, an optimized program or algorithm can be further improved. "Determine" means to get a good idea, but not necessarily to achieve an exact value. For example. A value or algorithm that has been determined can be further improved.
[0058] In addition, any example or description given herein should not be considered as a restriction to any one or more terms used by them, limited to any one or more terms used by them, or an express definition of any one or more terms used by them. On the contrary, these examples or descriptions should be considered as describing about a specific embodiment, and are only illustrative. It will be understood by those of ordinary skill in the art that any one or more terms used with these examples or descriptions will cover other embodiments that may be given together with these examples or descriptions or elsewhere in the specification, or other embodiments that may not be given together with these examples or descriptions or elsewhere in the specification, and all such embodiments are intended to be included in the scope of the one or more terms. The language specifying such non-limiting examples and descriptions includes, but is not limited to: "for example", "such as", "such as" and "in one embodiment".
[0059] "Cost function" is generally a function that determines the proximity of the simulation model answer to the expected answer (reference truth). That is, it quantifies the error between the predicted value and the expected value. The cost function returns the cost. The cost function can use the least squares function, mean error (ME), mean square error (MSE), mean absolute error (MAE), classification cross entropy cost function, binary cross entropy cost function, etc. to obtain the answer. In some embodiments, the cost function is a loss function. In some embodiments, the cost function is a threshold value, which can be a single number representing that the simulation truth curve is close enough to the reference truth. In other embodiments, the cost function can be a slope. The slope can also represent that the simulation truth curve and the reference truth are close enough. When using the cost function, it may be time-varying. It can also be associated with factors such as changes in user preferences or physical models. The cost function applied to the simulation engine can include any one or more of the following models: energy use, primary energy use, energy monetary cost, human comfort, safety of buildings or building contents, durability of buildings or building contents, microbial growth potential, system equipment durability, system equipment life, environmental impact and / or energy use CO2 potential. The cost function can utilize a discount function based on a discounted future value of the cost. In some embodiments, the discount function can depreciate future energy compared to current energy, thereby taking into account future uncertainty to ensure optimized operation over time. The discount function can depreciate the future cost function of the control mechanism based on the accuracy or probability of predicted weather data, and / or the value of energy in utility pricing planning, etc. The cost can be derived from the cost function. The cost can be a single number. An "objective function" can read in the cost (the value from the cost function) and determine whether the cost meets the criteria to achieve the goal, thereby stopping the simulation iteration. These criteria may be the cost to reach a certain value, the cost above or below a certain value, the cost between two values, etc. The objective function can also look at the time spent running the simulation model overall and / or how many iterations have been performed to determine whether the objective function has been met.
[0060] "Machine learning algorithms" or "optimization methods" are used to determine the next set of inputs after running the simulation model. These machine learning algorithms or optimization methods may include gradient descent methods, methods based on Newton's method, and Hessian inverse transforms using conjugate gradient techniques, evolutionary computation (e.g., swarm intelligence, swarm optimization), self-organizing migration algorithms (SOMA), particle swarms, nonlinear optimization techniques, and other methods known to those skilled in the art. "State" as used herein may be air temperature, radiant temperature, atmospheric pressure, sound pressure, occupancy, indoor air quality, CO2 concentration, light intensity, or other states that can be measured and controlled.
[0061] The deep physical network used in this paper is a structure similar to a neural network. But unlike the homogeneous activation function of the neural network, each neuron contains a unique physical equation (for the device model) or impedance / capacitance value (for the building model). After the configuration is completed, the known sensors will be fed to their corresponding nodes in the network. After the network is trained, it can be queried at any location in the thermodynamic system to extract data about the model at that point. The accompanying figure "Possible Device Model Implementation" shows a part of the database structure, which may hold queryable data for the device model. The query model can also be called introspection. There is a similar data structure for the building model. This process provides powerful generalized data fusion, data synthesis, and quality assessment through reasoning, even in the absence of sensors - for any thermodynamic system. The same mechanism can achieve model optimization, and then the time series generated from the model can be used for real-time sequence generation and fault detection. In order to automate the structure, a digital twin version of the structure (structural simulation) is created. A matching digital twin version (device simulation) of the equipment in the building (equipment simulation) is also created. The equipment model includes nodes representing the various material layers of the building and their impedance and capacitance. These nodes form a parallel and branchless neural network string through which heat (or other state values) are propagated. The device model includes nodes representing devices, their connections, and external influences on the devices (such as weather). The nodes have physical equations that describe changes in device states. The device node may also have one or more state inputs and one or more state outputs, state parameters with values, allowed state parameter values, state input position data, and state output position data. The position data may be cross-referenced to thermodynamic building model locations. In an embodiment, the device nodes may form a control loop. These node inputs and outputs and the connections between the devices form a heterogeneous neural network. State information flows through the model following physical rules.
[0062] Conceptually, running a structural simulation model involves inserting a certain amount of certain measurable states into a building. This can be temperature, humidity, acoustics, vibration, magnetism, light, pressure, moisture, etc. This state then propagates through different layers, affecting the structure. This illustrative example uses temperature to describe various aspects of the system and method. (Bricks, insulation, drywall, etc.) heat a room, as represented by an internal node. External nodes are associated with a time thermal curve T. The curve value at time T1 is injected into one or more external nodes. This temperature propagates through the building (through the node values of the simulated neural network). The exterior of the building (e.g., bricks) has its temperature modified by the external nodes and the known aspects of how heat is transferred through the bricks found in the brick nodes. The bricks then heat the next layer, which may be insulation. This continues throughout the building until it reaches an internal node. At the internal node, other functions can be applied, such as functions representing lighting and people (warmth) in the area. The state information continues to propagate until it reaches another outer layer, where the various node parameter values represent the heating conditions that existed in the building at time T1. In some embodiments, each exterior surface has its own time-temperature curve. In some embodiments, the building is decomposed into smaller subsystems (or areas), so that instead of having the temperature propagate through the entire structure, only a portion of the structure is affected by a given input. In some embodiments, the digital twin model is built on a controller associated with the controlled building. In some cases, the controller is embedded in the controlled building and used to automate the building. The controller may include a simulation engine, which itself includes a model of the controlled system in which the controller is located, or a model of the device in the controlled system in which the controller is located. The model may be called a "physical model". The physical model itself may include past regressions and cost functions. Past regressions are instances and results of these models running in the past. The controlled system has at least one sensor, and the value of the sensor can be used to calibrate one or more physical models by checking the proximity of the model value at the sensor location to the simulated sensor equivalent value in the physical model. The cost function can be used to determine the distance between the sensor value and the simulated sensor equivalent value. This information can then be used to improve the physical model. The system loop controlled by the controller can be implemented without using the Internet. The controller may control and / or run a local area network (LAN) through which it talks to sensors and other resources. The controller may be hardwired into the sensors and other resources, or there may be a combined system where some resources are hardwired and others are connected to the LAN. A "simulation model" may be a resource model or a building model.
[0063] "Machine learning algorithms" or "optimization methods" are used to determine the next set of inputs after running the simulation model. These machine learning algorithms or optimization methods may include gradient descent methods, methods based on Newton's method, Hessian inverse transforms using conjugate gradient techniques, evolutionary computation (e.g., swarm intelligence, swarm optimization), self-organizing migration algorithms (SOMA), particle swarms, nonlinear optimization techniques, and other methods known to those skilled in the art. "State" as used herein may be air temperature, radiant temperature, atmospheric pressure, sound pressure, occupancy, indoor air quality, CO2 concentration, light intensity, or other states that can be measured and controlled.
[0064] The technical features of the embodiments described herein are readily understood by those of ordinary skill in the art, and will also be readily understood in a variety of ways by a wide range of attentive readers. Some embodiments relate to technical activities rooted in computing technology, such as determining more efficient methods to perform simulations. These simulations can simulate the flow of energy in a building or other structure. Energy flow simulations can generate control sequences that allow buildings to operate with greater energy efficiency. By being able to preheat to reasonable values, and by performing preheating very quickly, using computer processors and memory more efficiently, the simulations themselves can be able to run faster. From the description provided, other advantages based on the technical features of the present teachings are also readily understood by those skilled in the art.
[0065] 1. Overview
[0066] To perform an informative building simulation that starts at t=0 and continues into the future, the simulation of the building itself cannot be in a random state. To see why, consider the following example. Imagine starting a simulation with every node in a building at -100 degrees Celsius. The simulation of such a building is not a prediction of future reality, but rather any simulation of reasonable length would spend the entire simulation time heating up to ambient temperature. Furthermore, the node output representing the temperature of an area would be a useless line starting at -100 degrees Celsius and then steadily warming up. Starting at time t=0, a real building would consist of precise temperature oscillations based on weather inputs, inter-building dynamics, and human interactions.
[0067] Setting all nodes to the ambient temperature at t=0 is also a failure because the dynamics of a building consist of complex relationships involving material impedance, capacitive reactance of substances, solar absorption, etc. Areas in a building are never exactly the same, and their relationships are complex. Starting all nodes in the model at the same temperature is too simplistic to get meaningful simulator output starting at t=0. Likewise, it may take the entire simulation before the dynamics of the building have time to stabilize and reflect reality.
[0068] Even if historical temperature readings exist, only a small fraction of the nodes represent areas with temperature sensors in the building. Empirical historical data may only exist for two or three percent of the locations in the building that the nodes represent. Therefore, estimating from such sparse data may result in values for most nodes that are far from what they would have been if they had actually been. Similarly, it may take an entire simulation before the dynamics of the building have time to cover the estimation errors and reflect reality. Running simulations for longer periods of time can be very time-consuming and resource-intensive. Such models are, by their very nature, users of large amounts of computer resources and time. Using the techniques disclosed herein will use the small amount of empirical data we have to infer the correct temperature of an unknown node in a building (or similar structure) at t=0, while reducing the use of precious computer resources. The state estimation simulation methods and systems taught herein run much faster than running simulations over long periods of time to reach a reasonable starting point.
[0069] Learning models are very effective at solving difficult problems. However, these models must be trained with many training data sets before they can provide reasonable solutions. Obtaining enough training examples is often difficult and sometimes even insurmountable. Developing a training set involves obtaining and / or generating many examples of input data, which can then generate meaningful output data. One way to accomplish this is to use synthetic or real data examples from the problem that the learning model is designed to solve as training data. If possible, learning models should be trained on real-world data first, so as to receive a representative training set. However, when modeling buildings, data can only be collected in real time; a single year-long data set takes a year to generate. Providing synthetic data creates its own problems. When using synthetic data, it is difficult for learning models to give accurate answers to real-world data because the real world contains examples that were not generated by the synthetic data generation process—the data is either overfitted (noise is misinterpreted as parameters) or underfitted (parameters are missing). This problem is so severe that “to solve even a single instance of a neural network training problem, it often takes days or even months on hundreds of machines” - “Deep Learning (Adaptive Computation and Machine Learning series)”, Goodfellow et al., MIT Press, November 18, 2016, p. 274. Another difficult problem to overcome is the large number of training sets required to generate a usable solution. As the number of parameters in the model increases, the amount of training data required to achieve a stateful solution grows exponentially. The training data must also be representative of the data that the model will actually encounter, otherwise the results will be biased in ways that are difficult to determine. These models are also computationally intensive, so the models may require very expensive equipment to run, require very large amounts of time, and so on. The nature of real-world data collection makes this even more difficult. For example, as mentioned earlier, a single year-long dataset for buildings would take a year to accumulate.
[0070] To train the learning model using the optimizer, we first use the optimizer to iteratively determine reasonable node starting values for the building simulation. During the optimization process, thousands of simulations may be run, each with a set of inputs and outputs. Each set of optimizer inputs and outputs is then used to train the learning model. Since the simulation in question uses physics and a thorough understanding of the structure being modeled to produce its results, the inputs and outputs of the optimizer simulations can be used as real-world data sets. Ideally, after training, the learning model is now able to produce outputs similar to those achieved by the optimizer simulator optimization, even given a unique problem. Even though the learning model can be considered trained, the optimizer simulator at least continues to be used to provide a sanity check on the learning model's results to ensure that the learning model continues to provide accurate answers. This can prevent overfitting and underfitting caused by, for example, atypical scenarios, among other things. This also greatly reduces the computing power required to run any given model, because the training sets are automatically generated rather than using additional computing power; the trained learning model requires much less computing power and time to run compared to the optimizer, etc.
[0071] More specifically, in one embodiment, a state is selected that can be measured (or at least determined) within the structure being modeled. In a building being modeled for HVAC control, this might be the room temperature, which will be used in the current embodiment. The rooms typically have thermometers installed within them, and even if they do not, it is easy enough to measure the temperature within the room over time. The selected measurement (e.g., temperature) is then measured within the room over a period of time, giving a state-time curve. These temperature-state-time curves are then used as the "base truth" for the initial value simulation. That is, the optimizer modifies the starting values in the simulator to try to match the "base truth" (the temperature-time curve within a room in the building) throughout the simulation. Before discussing our example further, the composition of the simulation model will be addressed. The digital twin simulation can decompose the structure being modeled into nodes (as shown in the reference Fig.12 and 16 ). These nodes could be parts of a building - each carrying a state value (temperature, humidity, etc.), such as windows, ceilings, floors, columns, and so on. Nodes can represent smaller blocks, such as layers of building parts. For example, an interior wall could be described with nodes representing a layer of gypsum board with a certain insulation value, an insulation layer with its own value, a column, and another layer of gypsum board, and so on. A representation of an exterior wall could have nodes for exterior materials, such as bricks, then insulation, then gypsum board, and so on. The digital twin simulator consists of these nodes, each with a state value (such as temperature), connected to each other. The point of optimizer simulations and state estimation simulations is to assign reasonable values to these state values within the nodes.
[0072] In order to determine how a building naturally heats up, ideally, the room temperature should be measured while measuring the outdoor weather. This measured weather can then be used as an input to the optimizer simulation model. The optimizer selects a temperature value for each node in the simulator (in the current embodiment). The simulation is then run. Running the simulation includes a simulation in which the weather state input is applied to the outside, and then the weather state (e.g., temperature) is allowed to penetrate through the structure during the simulation time. The optimizer can randomly select its node values during the first pass, can use earlier model node values, etc. At the end of the simulation, the nodes representing the room temperature are checked for the expected room temperature, and then the optimizer selects new values for the nodes in the simulation. The simulation is run multiple times, with the optimizer selecting new node values each time until the optimal output is reached. Using the same simulator, this optimal output provides the initial node values for running the state estimation simulation. At the end of the state estimation simulation, the simulation is considered to have a reasonable temperature within it, and is therefore ready to run the simulation.
[0073] While this is happening, the learning model is also being trained. The learning model can be thought of as running an inverted version of the optimizer simulation: given the desired output (the desired temperature-time curve for the structure) and external state (weather) information, it should return the digital twin simulation node values for the initial values. That is, when the simulation is run with the node values (for the desired time) selected by the learning model, the simulation model will be considered to have a reasonable state - it will be warmed up. How does it do this? The learning model uses the inverted output of the optimizer simulation as input, and then produces the inverted node state values as output. Specifically, the learning model uses the ground truth (the room temperature-time value curve in our current example) and the weather-time value curve that the optimizer uses for its simulation run as input. It's just that the learning model flips these time curves in reverse. If the curves originally ran from time -300 to 0, then they will run from 0 to -300 to produce outputs from 0 to time -300.
[0074] More specifically, a weather state time series (reversed) and an expected node value subset time series (reversed) are fed into the learning model as input. The learning model is set up so that it has the same number of output nodes as the simulator has. These node values at the end of the learning model run are then checked against the starting values (e.g., expected values) of the optimizer simulation run. The cost (the difference between the two values) is then used to update the learning model by utilizing back propagation or a similar learning method. This creates, for example, a reverse building simulator because it is given the expected final values and generates starting values that will reach these final values. With each training set, the learning model becomes slightly more accurate. Since a single optimization cycle can produce thousands of training sets, it may be possible to train the learning model relatively quickly. In addition, since the data set uses not only the actual data to be solved, but also the actual solution, underfitting or overfitting of the training data is improved.
[0075] This approach is very counter-intuitive with respect to current uses of learning models. On an intuitive level, cause and effect are reversed here. The simulator attempts to represent the evolution of causal dynamics moving forward. Moving backward is not possible (in some cases) because one cannot rely on causality. For example, if the billiard balls are in a starting triangle, and the white ball moves toward them, then a simulator can be written to tell with a reasonable amount of accuracy how the collisions and motion will unfold. However, if the balls start in random positions, then a simulator cannot be written to give where said balls were before the last shot. This is because they could be in any number of positions, including the formation of the starting triangle, but there is no way to know which. It is easy to simulate forward, but impossible to simulate backward in our lifetime. One of the reasons for this is because of the second law of thermodynamics. The entropy in a system always increases until it reaches equilibrium. In some cases, once it reaches equilibrium, all the information content about the earlier state of the system is wiped out. If this is true, then even the smartest simulator cannot know anything about what the system was like in the past. For example, imagine two rods immersed in a single tank of room temperature water. The left rod is hot, and the right rod is room temperature. The rod on the left will release heat into the water (and the other rod). After waiting long enough, the two rods will be the same temperature. If someone walked into the room at that time, and was asked which rod was originally hot, they would have no way of knowing. All information about the earlier state has been erased. There is no way to write a reversal simulator that can tell you which rod is hot. As another example, imagine a pot of water at room temperature on a stove. Over a period of ten minutes, the burner is turned on at a random heat setting for a random period of time while a log is kept of the burner's actions. At the end of the ten minutes, the water temperature reaches a certain value. At this point, the entries in the log are irrecoverable. Only the total amount of energy injected into the water can be determined. The exact sequence and strength of the "signals" in the log cannot be reconstructed. That information has been lost, as if the thermodynamic evolution of the water acted as a lossy low-pass filter.
[0076] Here, despite the difficulties, the reverse run can be performed. The learning model looks at the behavior of the simulated structure over and over again. As a result, it can learn to exploit what information it has much more effectively than a pure inverse physics simulator, which is severely hampered by these information-theoretic problems we have elucidated. In the absence of the ability to simulate deterministically, it can use the output of the optimization simulator as a training model to learn from past experience.
[0077] Figure 1An overview of the training process of training a learning model is disclosed at 100. The learning model can be a supervised or unsupervised learning model. The learning model can use linear regression, logistic regression, decision tree, naive Bayes, KNN, etc. The learning model can be a neural network. The neural network can be a recurrent neural network, an artificial neural network, a convolutional neural network, etc.
[0078] To develop a training model for learning model 125 using simulator 110, simulator 110 first runs the digital twin for a period of time—for example, from a time before the simulation, such as t(-300) (representing 300 time units from when the actual simulation will occur), to t(0) (the time when the simulation begins). The digital twin can be a heterogeneous node system. The heterogeneous node system can be a heterogeneous neural network. Input 105 can represent external states that will be presented to the digital twin and used by the optimizer, which will affect the building over time, such as weather, humidity, vibration, magnetic field, light, pressure, moisture, etc. This state may then propagate through different layers to affect the structure during the simulation time. The input can be a state curve that runs at the same time as the simulation itself, so for our current example, it will be from t(-300) to t(0). The simulator 110 itself can model the digital twin of the building, which is described as nodes. These nodes can represent various building blocks. The composition of the blocks depends on the specific implementation. In some cases, blocks represent large structures in a building, such as rooms; in some embodiments, blocks represent parts of a building, such as walls, windows, floors, ceilings; in some representations, blocks represent individual components of a building, such as layers in a wall; that is, a wall may be modeled as a specific type of drywall, then a specific type of insulation, then a specific layer of drywall, and so on. Some embodiments may use both blocks representing large structures and blocks representing individual components, etc. The node values can then be used to determine the building thermodynamic behavior. Nodes are heterogeneous because each node may represent a different building block and therefore may have different properties. Attributes can be state values. As used herein, a "state" can be air temperature, radiant temperature, atmospheric pressure, sound pressure, occupancy, indoor air quality, CO2 concentration, light intensity, or other states that can be measured and controlled. In some embodiments, an attribute can also be a value associated with, for example, the building block represented by the node. Where appropriate, attributes associated with equipment can also be used in nodes, and so on. For example, a node can have attributes such as heat capacity rate, efficiency, specific enthalpy, impedance, and so on. These attributes can be used in equations to determine how the state changes over time. Reference Fig.14 An example of a node is shown.
[0079] Inputs 105 may be presented to locations in the heterogeneous node model corresponding to the areas they will affect in the building. Thus, for example, weather inputs may be presented to nodes representing exterior walls, sun inputs may be presented to nodes representing windows facing the sun, and so on. The optimizer generates a starting value node state as input 105 for the initial simulation start time. After running the simulation using the optimizer starting values, outputs 115 are generated. For a simulation time-state time curve, the output is the node state in the simulation. Selected node values, such as nodes representing the temperature in a room, may be measured against a set of reference truth state curves. The reference truth state curve may be the actual temperature measured over time in the space represented by the simulator. For example, the temperature of a room in a building may be measured over time, while the temperature and other state values of the location may also be measured. At the end of the simulation, selected node values may be measured against a reference truth vector. These selected node values may be used in a cost function together with the reference truth values. The cost function may measure outputs (e.g., historical values of the room temperature) against the reference truth to generate a cost. The optimizer may then use the cost to improve the initial value, at which point the optimizer will rerun using the new initial value of the node in the simulator. Selected node values from the output are then run through the learned model along with the state dates as new training examples. This improvement can continue until a stopping state is reached. Once a stopping state is reached, i.e., the simulator 110 (e.g., a heterogeneous node system) has an optimized solution, a certain number of cycles have been run; the model has been run for a maximum time, etc., the solution can be used as a starting value for the initial state estimate - a warm-up run for the simulation. Reference Figure 2A This is described in more detail.
[0080] When the simulator output 115 is used as a learning model input, selected node values from the simulator—which might be used to simulate time (e.g., time t(-300) to t(0))—are then inverted so that they run in reverse from time t(0) to t(-300). This inverted output 130 is then used as an input 135 to the learning model 125. Similarly, a portion of the simulation input becomes the ground truth, and the learning model output 140 compares the ground truth to the output of the learning model and the input to the simulator, which might have nodes in parallel with each node (or most nodes) in the simulation 110. The simulation can be a heterogeneous node simulation. The input used by the simulator model (which has also been similarly inverted) 120—can also be used as an input to the learning model 125. The learning model can be set up so that its output 140 is a state that changes over time, such as a value representing the temperature in a room of a building. These state-time curves are arranged in inverted time order. The original output from the simulation model run at the beginning of the model run (e.g., t(-300) in our example) is then used as the ground truth. The ground truth is compared to the output of the learned model in a cost function to produce a cost. This cost can then be used to back-propagate within the learned model to improve the output of the model. According to the Wikipedia entry "Backpropagation": "The backpropagation algorithm works by computing the gradient of the loss function with respect to each weight with the aid of the chain rule, one layer at a time, iterating backwards from the last layer to avoid redundant computation of intermediate terms in the chain rule". Backpropagation techniques are known to those skilled in the art. When the learned model is run using the inputs and outputs from the optimizer simulations, the learned model simulations will gradually get better, producing results that are closer to the results generated by the optimizer - which it was trained to produce.
[0081] Figure 2 The interaction between the learning model and the simulator when the learning model has been fully trained is disclosed at 200. The expected optimizer output 205 of a subset of nodes (e.g., room temperature nodes) at time t(0) to time t(-n), plus other state information such as weather—which also inverts from t(0) to t(-n), is used as input to the learning model 210. The learning model then outputs 215 the values of all (or nearly all) nodes at time t(-n)—the starting state for the initial value simulation 205A. These values can also be used as a sanity check 220 to ensure that the learning model produces reasonable outputs, as shown in reference Fig.17 Briefly, the output 215 of the learning model 210 is inverted and used as the input 225 of the simulator 230. Selected outputs 235 from the simulator 230 are checked against the ground truth (expected output) to see how accurately the learning model is operating.
[0082] Figure 2AAt 200A, a set of simulations are disclosed that can be run to accurately determine starting values to warm up the digital twin. This provides more assurance that the simulation will be run with accurate starting values. The digital twin can then be simulated for a period of time to determine how the system represented by the digital twin will operate in the future using various inputs with different values, etc. This simulation can then be used to determine how to operate devices, etc. in the system that the digital twin is simulating. First, an initial value simulation is run, as in reference Figure 1 and 2 This will produce the initial state values of the nodes in the simulation model. Then, the model outputs 115, 215 corresponding to the nodes in the simulation model (e.g., simulator 110) are used as the initial values of the nodes in the node simulation 210A, which runs from the time before the simulation starts (time t(-n)) to the time when the simulation starts (time t(0)). The node simulation is run using the same node system that will run the state simulation 215A. Therefore, the node simulation modifies the nodes in the state simulation so that they are at reasonable starting values. At time t(0)—the simulation start time—the nodes in the simulation model should have reasonable starting values in them so that the state simulation 215A (e.g., the state simulation of the structure, etc.) can be run. Once the simulation has been run, the output of the simulation can be used downstream to change the system 220A being simulated. For example, a digital twin simulation can include floors of a building. Running a state simulation can optimize energy usage within the floors of a building. Once energy usage is optimized, the equipment simulation can determine the optimal (or near-optimal, or better than what can be determined manually) HVAC state over a period of time. These optimal HVAC states determined by the digital twin simulation can then be used to operate equipment within the building floor - resulting in system change 220A. In some embodiments, the digital twin state simulation 215A can provide a control sequence for a particular piece of equipment. These control sequences can then be used to run the particular piece of equipment over a simulation period (i.e., from t(0) to t(n)). For example, a digital twin simulation can provide a control sequence for a heater, specifying when the heater will turn on and off to provide a particular system change 220A. In some embodiments, the simulation can provide a control sequence for a period that is shorter or longer than the simulation period, and the simulation output can be used with the control sequence. We disclose herein a method and system for an initial value simulation 205A that will determine the initial value of a node simulation 210A.
[0083] Figure 2BAt 200B, the relationship between the optimizer 205B and the simulator 210B is disclosed. The optimizer 205B will determine the values of certain nodes in the simulator 210B so that when optimized, will produce expected values in a subset of nodes at the end of the simulation. The optimizer can do this through an iterative machine learning system, as described elsewhere. The optimizer 205B can use the expected values of the selected set of nodes as the ground truth to determine the optimal node values. This will refer to Figure 5 525 in more detail. The optimizer can run the simulation multiple times using different starting values to determine a set of optimized starting values used in the node simulation 210A. Each (or most or some) simulations run using the initial values determined by the optimizer can be used as training data 215B for the learning model (e.g., 125).
[0084] II. Exemplary Computing Environment
[0085] Figure 3 A general example of a suitable computing environment 300 is shown in which the described embodiments may be implemented. The computing environment 300 is not intended to suggest any limitation as to the scope of use or functionality of the present disclosure, as the present disclosure may be implemented in a wide variety of general-purpose or special-purpose computing environments.
[0086] refer to Figure 3 , the core processing is represented by the box of core processing 330. The computing environment 300 includes at least one central processing unit 310 and a memory 320. The central processing unit 310 executes computer executable instructions and can be a real processor or a virtual processor. It can also include a vector processor 312, which allows fast processing of node strings of the same length. In a multi-processing system, multiple processing units execute computer executable instructions to increase processing power, and therefore the vector processor 312, GPU 315 and CPU 310 can run simultaneously. The memory 320 can be a volatile memory (e.g., registers, cache, RAM), a non-volatile memory (e.g., ROM, EEPROM, flash memory, etc.) or some combination of the two. The memory 320 stores software 385 that implements the method and system using an optimizer and / or a learning model.
[0087] The computing environment may have additional functionality. For example, the computing environment 300 includes a storage device 340, one or more input devices 350, one or more output devices 355, one or more network connections (e.g., wired, wireless, etc.) 360, and other communication connections 370. An interconnection mechanism (not shown) such as a bus, controller, or network interconnects the components of the computing environment 300. Typically, operating system software (not shown) provides an operating environment for other software executed in the computing environment 300 and coordinates the activities of the various components of the computing environment 300. The computing system may also be distributed; running various parts of the software on different CPUs.
[0088] Storage device 340 may be removable or non-removable and include disks, magnetic tapes or cartridges, CD-ROMs, CD-RWs, DVDs, flash drives, or any other medium that can be used to store information and that can be accessed within computing environment 300. Storage device 340 stores instructions for software, such as software 385, to implement systems and methods that rely on warm-up simulation models having states at reasonable values.
[0089] One or more input devices 350 may be devices that allow a user or other device to communicate with the computing environment 300, such as a touch input device (e.g., a keyboard, camera, microphone, mouse, pen, or trackball), a digital camera, a scanning device (e.g., a digital camera with a scanner), a touch screen, a joystick controller, a wii remote, or other devices that provide input to the computing environment 300. For audio, one or more input devices 350 may be a sound card or similar device (which accepts audio input in analog or digital form), or a CD-ROM reader that provides audio samples to the computing environment. One or more output devices 355 may be a display, a hard copy generating output device (e.g., a printer or plotter), a text-to-speech sound reader, a speaker, a CD burner, or other devices that provide output from the computing environment 300.
[0090] One or more communication connections 370 enable communication with another computing entity via a communication medium. The communication medium transmits information such as computer executable instructions, compressed graphics information, or other data in the form of a modulated data signal. The communication connection 370 may include an input device 350, an output device 355, and an input / output device that allows the client device to communicate with another device via a network 360. The communication device may include one or more wireless transceivers for performing wireless communications and / or one or more communication ports for performing wired communications. These connections may include a network connection, which may be a wired or wireless network, such as the Internet, an intranet, a LAN, a WAN, a cellular network, or other types of networks. It will be appreciated that the network 360 may be a combination of multiple different types of wired or wireless networks. The network 360 may be a distributed network in which multiple computers (which may be building controllers) work in conjunction. The communication connection 370 may be a portable communication device, such as a wireless handheld device, a personal electronic device, or the like.
[0091] Computer readable media is any available non-transitory tangible media that can be accessed in a computing environment. By way of example, but not limitation, in computing environment 300, computer readable media include memory 320, storage device 340, communication media, and any combination of the foregoing. Computer readable storage media 365 that can be used to store computer readable media includes instructions 375 and data 380. The data source can be a computing device, such as a general-purpose hardware platform server configured to receive and transmit information via communication connection 370. The computing environment 300 can be an electrical controller directly connected to various resources (e.g., HVAC resources) and having a CPU 310, a GPU 315, a memory 320, an input device 350, a communication connection 370, and / or other features shown in the computing environment 300. The computing environment 300 can be a series of distributed computers. These distributed computers can include a series of connected electrical controllers.
[0092] Although the operations of some disclosed methods are described in a particular order for ease of presentation, it should be understood that this description includes rearrangement unless the specific language described below requires a specific ordering. For example, operations described in order can be rearranged or performed simultaneously. In addition, for simplicity, the accompanying drawings may not show the various ways in which the disclosed methods, devices, and systems can be used in conjunction with other methods, devices, and systems. In addition, the description sometimes uses terms such as "determine," "construct," and "identify" to describe the disclosed technology. These terms are high-level abstractions of the actual operations performed. The actual operations corresponding to these terms will vary depending on the specific implementation, and those of ordinary skill in the art will be able to easily discern them.
[0093] In addition, data generated by any of the disclosed methods may be created, updated, or stored on a tangible computer-readable medium (e.g., a tangible computer-readable medium such as one or more CDs, volatile memory components (e.g., DRAM or SRAM), or non-volatile memory components (e.g., a hard drive)) using a variety of different data structures or formats. Such data may be created or updated at a local computer or over a network (e.g., through a server computer), or stored and accessed in a cloud computing environment.
[0094] Figure 4 A distributed computing system 400 is depicted, with which embodiments disclosed herein may be implemented. Two or more computerized controllers 405 may contain all or part of a computing environment 300, 410. These computerized controllers 405 may be interconnected 415 using wired or wireless connections. The controller may be located within a controlled space 420. The controlled space 420 may be a space with resources, sensors, or other devices that may modify or determine one or more states of the space, such as sensors (for determining space states), heaters, air conditioners (for modifying temperature); speakers (for modifying noise), locks, lights, etc. The controlled space may be divided into multiple zones, which may have their own constraint state curves. The controlled space may be an automated building, a process control system, an HVAC system, an energy system, an irrigation system, a building irrigation system, etc. These computerized controllers 405 may contain a distributed system that can operate without using a connection (e.g., an Internet connection) outside of the computing system 400 itself. This allows the system to operate with low latency and have other advantages of an edge computing system. Computerized controllers can run using an internal network without the need for an external network connection. This allows the system to be more secure and less vulnerable to external attacks such as viruses, ransomware, and generally many other ways that computer security can be compromised.
[0095] III. Exemplary System Disclosure for Training Simulators
[0096] Figure 5An overview 500 of a training process for training a learning model by using an optimizer is disclosed, which does not itself need to be trained to solve a problem, i.e., it is itself untrained. The optimizer can be a machine learning algorithm, as known to those skilled in the art. The machine learning algorithm selects initial state value node inputs. This initial selection can be random. These values are then used as initial state values in the simulation 110, 205A running from time t(0) to t(n). The expected value of the state value at time t(n) is known - the baseline truth. This baseline truth is compared to the value generated by the simulation at t(n) using a cost function, which generates a cost. The machine learning algorithm uses this cost to select a set of new values that should generate values closer to the baseline truth at the end of the simulation. When the simulator 110 is run, the output is used to train the learning model 125.
[0097] The simulator 110 may be a heterogeneous neural network. The neural network may have activation functions in the nodes that perform respective calculations to determine the weight values leaving the nodes. These respective calculations may be thermodynamic calculations that determine how the state flows through the nodes. The state may be characterized as the weights entering and leaving the nodes. An example of such a heterogeneous neural network is described in patent application serial number US17 / 009,713, "Neural Network Methods ForDescribing System Topologies", filed on September 1, 2020 and incorporated herein by reference in its entirety. A typical neural network includes an input layer, an output layer, and a hidden layer connected by edges having weights associated with them. The neural network adds the weights of all incoming edges, applies a bias, and then uses an activation function to introduce a nonlinear effect, which essentially squeezes or expands the weight / bias value to a useful range; typically determining whether the node will essentially fire or not fire. This new value then becomes the weight for the next hidden layer connected to the network. Activation functions do not do separate calculations, depend on the nodes, have no physics equations associated with them, etc.
[0098] In some heterogeneous neural networks that may be used with the embodiments described herein, basic principles of physics are used to model individual components or individual pieces of equipment with neural network nodes in a one-to-one manner. When multiple components are linked to each other in a schematic diagram, a neural network is created that models the components as nodes. The values between the objects flow between the nodes as the weights of the connecting edges. These neural networks can model not only the real complexity of the system, but also their emergent behavior and system semantics. Therefore, they bypass the two main steps of traditional AI modeling methods: determining the shape of the neural network and training the neural network from scratch. The nodes are arranged in the order of the actual system (or system of equations), and because the nodes themselves contain equations or a series of equations that describe the functions of the objects associated with them, and certain relationships between them are determined by their positions in the neural network. Therefore, a large amount of training parts are no longer necessary because the neural network itself contains position information, behavior information, and interaction information between different objects represented by the nodes. In addition, the value held by the node at a given time in the neural network represents the real-world behavior of the object represented in this way. The neural network is no longer a black box, but it contains important information itself. This neural network structure also provides deeper information about the described system and objects. Because the neural network is based on physics and location, unlike traditional AI structures, it is not limited to a specific model, but can run multiple models for the system represented by the neural network without additional creation or training.
[0099] In some embodiments, the heterogeneous neural network shapes the position of the nodes to give something about the physical properties of the system. It can also put the actual equation into the activation function. The weights that move between nodes can be equation variables. Different nodes may have unrelated activation functions, depending on the nature of the model represented. In an exemplary embodiment, each activation function in the neural network may be different. For example, a pump can be represented in a neural network as a series of network nodes, some of which represent efficiency, energy consumption, pressure, etc. The nodes will be placed so that a set of weights (variables) are fed to the next node that uses those weights (variables) (for example, with an equation as its activation function). Now, the two previously required steps, namely shaping the neural network and training the model, may have been performed at least in part. Using the embodiments discussed here, the neural network model does not need to be trained on known information. It still needs to be trained on other information, such as detailed here.
[0100] In some embodiments, each node represents a physical representation of a block of building material within a structure, device, or the like. These individual nodes can hold parameter values that help define the physical representation. Therefore, when the neural network is run, the parameters that help define the physical representation can be adjusted to more accurately represent a given physical representation. This has the effect of pre-training the model with a set of qualitative guarantees, because the physical equations used to describe the modeled object are real, which saves the trouble of having to find a training set and use a huge amount of computing time to run the training set through the model to train it. The model does not need to be trained using information about the known world. When objects are connected in the neural network just as they are connected in the real world, emergent behaviors that mirror the real world appear in the model. Otherwise, this discovered model behavior is computationally too complex to determine. In addition, the nodes represent actual objects, not just black boxes. The behavior of the node itself can be examined to determine the behavior of the object, and it can also be used to improve the understanding of the behavior of the object.
[0101] Conceptually, optimizing a structural simulation model involves inserting a certain amount of a certain measurable state into a structure that can be modeled by a heterogeneous network. This can be temperature, humidity, acoustics, vibration, magnetism, light, pressure, moisture, etc. Then, the state propagates through different layers, affecting the structure. Input data 505 can be such a state represented by a time curve. As an example, an external node in a heterogeneous network can be associated with a time thermal curve T. The curve value at time t (-n) is injected into one or more external nodes. By modifying the value of the simulated neural network node using a physical representation, the temperature propagates through the building, for example, through the represented layers (bricks, insulation, drywall, etc.). The exterior of the building (e.g., brick) has its temperature modified by the external nodes and the known aspects of how the heat found in the brick node is transferred through the brick. Then, the brick heats the next layer, which may be the insulation layer. This continues throughout the building until it reaches an internal node. It may represent a space within a room. At the internal node, other functions can be applied, such as those representing lighting and people (warmth) in the area of the node. The state information continues to propagate until it reaches another exterior layer where the various node parameter values represent the heating that existed in the building at time T0. In some embodiments, each exterior surface has its own time-temperature curve. In some embodiments, the structure is deconstructed into smaller subsystems (or zones) so that instead of propagating the temperature through the entire structure, only a portion of the structure is affected by a given input.
[0102] The optimizer 510 selects initial values for the states, which are then passed to the simulation as optimizer output 511. To select the initial values, the optimizer uses a machine learning algorithm that does not require training or has already been trained. The optimizer runs iteratively, ideally selecting better initial node values through iterations. The simulator runs each (or some) iteration using the starting values selected by the optimizer. As output 513, the nodes in the simulator produce node values for the length of the simulation, such as Figure 6 As shown. Of those nodes, a subset is output as selected node values 515. These are one or more state / time curves from the simulation start time to the end time. In some embodiments, these selected node values are the temperatures of rooms within the structure. Other states may also be used. The reference truth for the machine learning algorithm may be a state / time curve of expected node values 520. These expected node values may be obtained from earlier simulations, may be approximate values, may be historical values, etc. The cost function of the machine learning algorithm uses the selected node values 515 and the expected node values 520 to run a cost function 527 and determine the cost 525—the difference between the predicted selected node values 515 from the simulator 512 and the expected node values (reference truth) 520.
[0103] A "cost function" typically compares the output of a simulation model to a reference truth - a time curve representing the answer that the model is trying to match. This gives us a cost - the difference between the simulated truth curve value and the expected value (reference truth). The cost function can use a least squares function, mean error (ME), mean square error (MSE), mean absolute error (MAE), categorical cross entropy cost function, binary cross entropy cost function, etc. to derive the answer. In some embodiments, the cost function is a loss function. In some embodiments, the cost function is a threshold, which can be a single number used to indicate that the simulated truth curve is close enough to the reference truth. In other embodiments, the cost function can be a slope. The slope can also indicate that the simulated truth curve and the reference truth are close enough. When a cost function is used, it may be time-varying. It may also be related to factors such as user preferences or changes in the physical model. The cost function applied to the optimizer may include a model of any one or more of the following: energy use, primary energy use, monetary cost of energy, human comfort, safety of the building or building contents, durability of the building or building contents, microbial growth potential, system equipment durability, system equipment life, environmental impact, and / or energy use CO2 potential, or some other content. The cost function may utilize a discount function based on a discounted future value of the cost.
[0104] In some embodiments, the objective function is used to determine whether the cost allows the operation to stop. Some embodiments also include: a stop state; an auxiliary state, such as another exit option, such as if the optimizer 510 or the simulator 512 has run a certain amount of time or has run a certain number of cycles, then exit. If indicated (indicated by the stop state, objective function or cost function), the machine learning algorithm continues. In some embodiments, information from the output of the simulation (such as simulation prediction of selected node values and cost function) is used to update the initial state value by the optimizer 510. This value update can be at least partially implemented by back propagation 530. After the update, the optimizer 510 selects a new state node value for the next round of simulation. The optimizer 510-simulation 512 loop can run until a stop state is reached (defined by a combination of one or more of the cost function, the time the optimizer has run, the time the optimizer and simulator have run, the time the entire program has run, the number of cycles the program has run, the number of training runs performed by the learning model, etc.).
[0105] Figure 6 At 600, some outputs of the simulation 512, 605 with the starting values generated by the optimizer 510 are disclosed. For all (or a selected number) of the nodes 610 in the heterogeneous node system 210B, the simulator 512, 605 outputs the time state curves 615 as simulator outputs 625. These time state curves run for the entire simulation duration or a certain period of time in the simulation. The initial simulator node values, that is, the node values at the beginning of the simulation (t = (-n)), are then saved to be used as training examples for the learning model. In some cases, these node values at the beginning of the simulation will also be used as input to the node simulation 210A to warm up the model to produce a reasonable state simulation 215A.
[0106] Figure 7The use of simulator model outputs as learning model inputs is disclosed at 700. The selected node value output 515 from the simulator 512 is inverted 705 so that the state / time curve is flipped in the opposite direction; instead of going from t(-n) to t(0), it will now go from t(0) to t(-n). This produces inverted selected node values. Conceptually, the simulation can be considered to be running in reverse in time when running. Similarly, the input data 505 entering the simulator is also inverted 710 to produce an inverted simulator input. This is then used as input to the learning model 715. The learning model 715 can be the type of neural network that needs to be trained, such as but not limited to: recurrent neural network, convolutional neural network, feedforward neural network, multilayer perceptron, long / short term memory (LSTM), gated recurrent unit (GRU), autoencoder (AE), variational AE (VAE), denoising AE (DAE), deep convolutional network (DCN), etc. The learning model should be set up to have the same output nodes as all (or substantially all, or some) nodes in the node system 210B used in the simulator; therefore, the learning model will output state / time curves 725 for these nodes. The baseline truth for the simulation is the starting node values 620, 720 for a given optimizer simulator run. The learning model outputs state / time curves for the nodes, where the state / time curves are arranged in reverse order. The final value of the node 730 (e.g., at time t(-n)) is then compared in the learning model cost function 737 with the starting value 620, 720 of the node from the simulator 600 run to derive the cost 735. The cost value is then used in back propagation 740 to improve the learning model 715 internal node values. Back propagation propagates the cost through the neural network, modifying the weights so that nodes with higher error rates have their weights reduced, while nodes with lower error rates have their weights increased.
[0107] Now go to Figure 8 and Fig. 9 , Figure 8 An example 800 of a heterogeneous neural network model optimizer 810 is shown for both generating starting values to be used to preheat a building simulator and training an RNN to produce the same or similar starting results. An RNN is a recurrent neural network. Recurrent neural networks were developed in the 1980s and are well known to those skilled in the art. In simple terms, an RNN has loops from a node to itself, between nodes, etc., which allows the RNN to essentially remember information and make decisions based on previous inputs. Fig. 9 An example of training the RNN learning model 915 using input values obtained from optimizer input and output values is shown.
[0108] First, the room temperatures and weather data (weather over the same time period associated with the building location) in the building to be modeled are determined over a period of time. An optimizer 810 determines starting temperature values as optimizer outputs 811 for nodes in a heterogeneous node model 812. The heterogeneous node model 812 is then run at locations in the heterogeneous node model that correspond to where weather values would enter the actual building (e.g., nodes representing exterior walls), with weather data 805 (which may be temperature data) used as input. Over the simulation run time—in this case, from t(-300) to t(0), the thermal values from the weather data 805 are propagated throughout the heterogeneous model of the building 812. The heterogeneous node model 812 returns the room interior node value temperatures 815 (over the simulation time) represented in the simulation. At the end of the simulation 835, the interior node room temperature values 815 are compared to the historical interior temperature state / time curve 820 over the length of the simulation using a cost function 827 to determine a cost 825. Essentially the entire time curve (or a larger portion thereof) is used, because if only the temperature of the last time value is used, for example, the optimizer's solution may not represent a reasonable temperature warm-up. For example, the model may indicate that the temperature rises sharply at the last time value, which will not provide the required accurate first time temperature. In some embodiments, a portion of the time curve is used for internal node values 815. The cost function uses the selected internal node value 815 to measure against the baseline truth historical node temperature 820 to generate the cost 825 using the cost function 827. The optimizer 810 then uses the cost 825 to modify the starting node temperature value, which is then used as the starting node value within the heterogeneous node system. Repeat 830 this set of actions until a stop state is reached to generate a set of optimized internal temperature node values for all (or most) nodes within the heterogeneous node model 812. When the heterogeneous node model 812 is run, the temperature values of its nodes 845 (which may have many state values, such as temperature, humidity, etc.) are reported over simulation time, such as from time t(0) to time t(-300). In some embodiments, heterogeneous node systems can report node values as the model runs (rather than at the end). This will refer to Fig.12 and 13 Described in more detail. The initial values of the nodes 840 of the heterogeneous node model at the end of the simulation 835 (i.e., at time t(-300)) will be used as the reference truth for training the RNN. The optimizer 810-heterogeneous node model 812 runs in a loop until a stop state is reached. Therefore, when the time starting value for the simulation of the starting state simulation estimation is determined, many training examples for the RNN are generated.
[0109] Fig. 9An example 900 of using the optimizer 810-heterogeneous node model 812 results to train an RNN learning model 915 is shown. The RNN should have nodes as outputs that correspond to the nodes in the optimizer model. This reference Fig.12 and 13 for further discussion. Thus, the RNN can produce starting node values, e.g., 210A, that can be used for the starting state simulation estimation simulation. The internal node values 815 (the temperature in the room) from the heterogeneous node model 812 are reversed and rewritten, e.g., reversed 905 to run from t(0) to t(-300). The weather data 805 is also reversed and rewritten 910. These reversed internal node values 905 and the reversed weather data 910 are then fed as inputs into the RNN, which outputs a value 925 for each (or most) nodes found in the heterogeneous node model. The RNN 915 returns the last value 930 for the node in the RNN (in our example, time (t-300)), which should be understood as the first value when the temperature curve is reversed again to move forward in time, e.g., t(-300).
[0110] These output values 930 are then used in a cost function 945 together with the heterogeneous node model node temperature values 840, 920 sampled at the beginning of the warm-up period (e.g., t(-300)) to determine the cost 940. This cost 940 is then used in back propagation 935 to train the network. In the case of using the input and output of the optimizer to train the RNN, this process continues until the RNN is considered to have been trained. Back propagation - short for "error back propagation" - is widely used to incrementally train neural networks. According to the Wikipedia entry "Back Propagation": "The back propagation algorithm works by computing the gradient of the loss function with respect to each weight via the chain rule, computing one layer of gradients at a time, iterating backwards from the last layer to avoid redundant computation of intermediate terms in the chain rule."
[0111] Fig.10 1000 discloses running the RNN 1015 after the RNN 1015 has been trained. The desired reversed reverse internal node values 1005 are represented as a state-time curve over the length of the starting state simulation estimate simulation, in this case t(0) to t(-300) ("t" stands for "time"), and the reversed weather data 1010 is used as input to the RNN 1015. The RNN then outputs the final values of the RNN 1020 (e.g., at t(-300)), which are the initial values that will be input into the starting state simulation estimate simulation 210A to warm up the model.
[0112] IV. Exemplary Methods of Training Simulators
[0113] Fig.11A At 1100A and Fig. 11B At 1100B is a flow chart describing how a simulator may be trained and describing how the trained output may be used. The operations of methods 1100A, 1100B presented below are intended to be illustrative. In some embodiments, methods 1100A, 1100B may be implemented with one or more additional operations not described and / or without using one or more of the operations discussed. In addition, Fig.11A and 11B The order in which the operations of methods 1100A, 1100B are illustrated and described below is not intended to be limiting.
[0114] In some embodiments, the computer-supported methods 1100A, 1100B may be implemented in one or more processing devices (e.g., digital processors, analog processors, digital circuits designed to process information, analog circuits designed to process information, state machines, and / or other mechanisms for electronically processing information, multi-processing systems, etc.). The one or more processing devices may include one or more devices for performing some or all of the operations of the methods 1100A, 1100B in response to instructions stored electronically on an electronic storage medium. The one or more processing devices may include one or more devices configured by hardware, firmware, and / or software—the hardware, firmware, and / or software are specifically designed to perform one or more operations of the methods 1100A, 1100B.
[0115] In operation 1105, an optimizer is run to determine (some) initial node values for a simulator that simulates a structure, process, etc. For a number of nodes, these node values may be initial state values, such as temperature, etc. These nodes in the simulator may have physical equations associated with them, such as reference equations, for example. Fig.14 and surrounding text. Figure 1 110 Figure 2B , Figure 5 510 and Figure 8 810 describes an optimizer. These physical equations can simulate how states (e.g., input time series) move through nodes over time. In operation 1108, the optimizer output (e.g., 811) is used as a starting node value for some or all of the simulator's initial node values. In operation 1110, the input time series is used as input to the simulator. In some embodiments, many time series can be used as input. Figure 5 505 and Figure 8 805 shows an example of an input time series. At operation 1112, the simulator is run. At the end of the simulation (e.g., when the input time series ends), an optimizer output is generated. The optimizer output may be composed in part of the selected node output values. Figure 5 515 Figure 6 610 and Figure 8 The 820 displays various aspects of the simulator output. Fig.12 More details are described. At operation 1115, the selected node output value is compared to the ground truth using a cost function to generate an optimization cost. At operation 1120, the optimizer simulation output is inverted. Figure 7 705 and Fig. 9 905 shows this example. Also at operation 1120, the optimizer input is reversed. Figure 7 710 and Fig. 9 This example is shown in 910. In operation 1125, the inverse optimizer simulation output and at least a portion of the inverse optimizer simulation input are used as inputs to the learning model. Figure 7 705 and 710 and Fig. 9 905 and 910 show this example.
[0116] In operation 1130, the learning model is run to produce a reverse time series—from t(0) to t(-n)—as the learning model output, which is mapped to some (or all) of the nodes used in the simulation. In operation 1135, the learning model output values at time t(-n) are used as inputs to a cost function (e.g., 737, 945) to produce costs 735, 940. The optimizer simulation output starting node values (620, 720) are used as the ground truth for the cost function 737. This will refer to Figure 7 and surrounding text for a more detailed explanation. The learned model value of its node at its end time (actual start time) is compared to the physical model output at the start time to determine the cost 735 - the difference between the ideal output (ground truth) and the actual learned model value. Figure 7 This example is shown at 720, 730, 735, and 737. At operation 1140, back propagation of the learning model is then performed using the calculated cost to further train the learning model. At decision point 1145, it is determined whether the simulation has run to a stopping state. The stopping state can be that the cost of the cost function from the optimization simulation output (see 1115) is small enough to indicate that the initial warm-up values used to simulate the model have been optimized. Other stopping states may also be used, such as the number of iterations of the simulator, the amount of time the model has been running, etc. If not in a stopping state, the process repeats at operation 1105. If it is determined to be in a stopping state, at operation 1147, a starting state simulation estimation simulation is run using the optimizer output (the starting state value for the simulation). The optimizer output (as referenced) Figure 6 and Figure 8) is the starting node state value for the initial state simulation estimation simulation. The initial state simulation estimation simulation can run the time when the initial value simulation is initially run, for example, from the time before the simulation (t=-n) to the time when the simulation starts (t=0).
[0117] At operation 1149, the optimizer output is saved. At operation 1150, the state simulation is run using the preheated simulation. Specifically, the state simulation runs from time t=0 forward for an appropriate time, such as t(m), where m is equal to a certain positive number. The state simulation can be an extension of the initial state simulation estimation simulation run. At operation 1155, after running the state simulation, the results of the state simulation can be used to modify the behavior of the structure being modeled by the simulation. One way to modify the behavior of the structure is to ultimately guide the behavior of the device by using the simulation output. The structure can contain various devices that can be controlled. These devices can be scientific instruments, HVAC equipment, etc. These devices can be modeled in another device simulation 1160. The result of the device simulation can be a control sequence for the modeled device. The simulation can optimize the behavior of the device to achieve certain results. For example, the building simulation can seek to optimize energy use. Therefore, devices such as air conditioners, movable vents, heaters, boilers, etc. can be modeled within the building structure. At operation 1165, the state simulation can produce outputs that can modify the behavior of the structure being modeled by the simulator, such as control sequences. These control sequences may then be used to operate at least one device at operation 1170. For example, an air conditioner may be operated using the control sequence generated by the state simulation.
[0118] Fig.12 At 1200 of FIG. 1 , an exemplary simulation model 1235 with exemplary nodes is disclosed, which can be used to implement the embodiments disclosed herein. When the simulation model is run, input data 505, 1205 is fed to certain nodes. The input data of the optimizer run of the state simulation will refer to Figure 5 In some embodiments, the nodes may be arranged into levels. For example, the nodes in the first level 1220 are labeled N1 to N2. a Not all nodes are shown, as indicated by the ellipsis. Below this level are nodes labeled P1 through P a Another level 1230 holds nodes Q1-Q c Some embodiments may not arrange the nodes into levels. Input data 1205 (e.g., data 505, such as weather data) may be fed to nodes in a first level 1220 and to nodes in a different level 1210. Nodes on one level may feed information to nodes outside of the level adjacent to it. For example, node N a (In level N) the information 1225 may be fed to node Qc (in level Q), skipping level P. There may also be other levels of nodes, such as R, for which inputs and outputs are not shown in the figure for clarity. Nodes in one level do not necessarily send information to other nodes in the next lower level, as shown in reference P21215. The entire set of nodes used for the optimizer in the current example can be described as N1-N a 、P1-P b 、Q1-Q c 、R1-R d .
[0119] The model output, such as the selected node value 515, may not be a specific layer, but rather a collection of model depth nodes 1240. In the example shown, N3 (the third node from the left in the Nth row), P 10 , P 21 , Q7 and Q 15 can be considered as selected node values. Other output nodes may not be shown. There may be reasons for considering this particular set of nodes as output nodes. For example, they may represent states that have actual measured values in the corresponding real-world structure. For example, the selected nodes may represent the interior of a room, and there may be a node value that holds a temperature representing the temperature of the room represented by the node. The selected nodes may then be nodes representing the interior of a room in a building, where the selected node value is the temperature of the selected node.
[0120] Fig.13 1300, an exemplary learning model and outputs are disclosed with which embodiments disclosed herein may be implemented. Input 1305 may be the output of a selected set of nodes 1240 from the simulation. The state outputs (e.g., temperature) of these nodes are then inverted 1305 and then used as input 1310 to the learning model. In the illustrative example, the learning model has output 1315, which includes nodes N1-N2 in the simulation model 1235. a 、P1-P a 、Q1-Q a and R1-R a The value (or values) associated with the learning model 1235. Therefore, the nodes of the simulation model 1235 have a counterpart as the output 1315 of the learning model. In some embodiments, a portion of the nodes in the output model have a counterpart as the output in the learning model. The nodes can have multiple attributes associated with them. In this case, the value or values of the specific attribute information in the node can be recorded for the length of the simulation (t(0)-t(n)) and then used as the output 1240.
[0121] Fig.14An exemplary node is disclosed at 1400 in FIG. 1405. Attributes 1410 are attributes of the object or building block represented by the node. For example, a node 1405 may have temperature 1415 as an attribute 1410 that varies through the simulation. Other attributes, such as, for example, surface area 1420, may remain static. In some embodiments, a node may include equations 1425 to be solved in the system. These equations may have both variables represented as edges with weights in a neural network and variables that are attributes 1410 of the node itself.
[0122] refer to Fig.15A , a workflow 1500A that can be used to estimate the starting state of a state simulation is shown. Run the optimizer 1505A, which generates a value that will be used as the initial node value in the simulation 1510A after optimization, and the initial node value will be used for state estimation. There can be a one-to-one correspondence between the value in the optimizer 1505A and the node in the simulation (e.g., preheating) that will be used for the initial state estimation function. The node in the simulation can have a value determined by the optimizer or multiple values determined by the optimizer. This startup state estimation simulation 1510A can run from a previous time (-t) to the start time (0) of the simulation. When the simulation is at time (0), the same simulation model 1515A can be run with reasonable internal node values over a period of time in the future.
[0123] refer to Fig. 15B , a workflow 1500B is shown, which can be used to preheat a state simulation using a trained learning model—estimate the starting state for a state simulation. Run the learning model 1505B, which then generates values that will be used as initial node values in the simulation 1510B, which will be used for the starting state estimation. There can be a one-to-one correspondence between the values in the learning model output and the nodes in the simulation that will be used for the starting state estimation function. The nodes in the simulation can have a value or multiple values modified by the learning model output. The starting state simulation estimation simulation can run from a previous time (-t) to the starting time (0) of the simulation. When the starting state estimation simulation is at time (0), the same simulation model 1515B can be run over a period of time in the future using the preheated node values provided by the starting state estimation simulation 1510B.
[0124] Fig.16Node values in an initial value simulation 1602, a starting state estimation run of simulation models 1604, 1606, and a simulation run of simulation model 1608 are disclosed at 1600. In the simplified model shown (for simplicity), the initial value simulation 1602 has four nodes, as does the simulation model. At the end of the initial value simulation, whether it is an optimizer or a learning model, these four nodes 1605, 1610, 1615, and 1620 will produce state values, which will be used as initial values for the corresponding starting state estimation runs of simulation models 1604, 1606, which are used to simulate structures, processes, etc. For example, at the end of the initial value simulation 1605 - for example, time t(-n) - the equivalent of node 1 has a temperature state value of 72°. This temperature state value is then transferred to the simulation in preparation for the start state estimation run 1604 - node 1 receives a temperature state of 72°. The same is true for the remaining nodes in this example; for example, node 2 1630 receives a temperature of 69° from node 2 1610 of the initial value simulation 1602, node 3 1635 receives a node equivalent of 54° from the equivalent 1615 of node 3, and node 4 1640 receives a temperature of 74° from the equivalent 1620 of node 4. In some embodiments, the state (e.g., the temperature in the model) is transferred without change. In some embodiments, the state of the node equivalents from the initial value simulation 1602 undergoes a transition before being transferred to the start of the starting state estimation run 1604. Once the starting state estimation run of simulation 1604 has been seeded with the node values from the initial value simulation run 1602, it runs for a period of time, which changes the state values, as can be seen for the node values at the end of the starting state estimation simulation 1606. At the end of the starting state estimation simulation, a check can be made to determine whether the simulation has been sufficiently warmed up—that is, whether the internal node values are in a reasonable state (or in multiple reasonable states) to start the actual simulation. If there is such a check, and it is determined that the model has been sufficiently warmed up, or if there is no check, immediately after the initial state estimation run 1604, then the main simulation run 1608 is started. At the start of the main simulation run of the simulation model 1608, the simulation nodes 1665, 1670, 1675, 1680 may be the same nodes 1645, 1650, 1655, 1660 as the initial state estimation simulation 1606, in which case they will automatically have the same state values produced at the end of the initial state estimation run 1606. For example, node 1 at time t(0) 1665 has a value of 74°, which is the same value as node 1 1645 at the end of the initial state estimation run. In some embodiments, the initial state estimation end values may be transferred to different simulations.In general, node values at the start of a main simulation run 1608 of a simulation model may have the same values as corresponding nodes of the starting state estimation run of the simulation at the end of the starting state estimation simulation 1606 .
[0125] Fig.17 The trained learning model using a sanity check run is disclosed at 1700. In operation 1705, the learning model is run using the desired selected node value inversion and the state value inversion as input, such as Fig. 9 As discussed in . In operation 1710, a starting state estimation simulation, such as 1510B, is run using node values provided by the learning model. In operation 1715, selected node values from the simulation and a baseline truth (e.g., historical node values, etc.) are used in a cost function to determine a cost that is used to measure the distance between two sets of values. At decision point 1720, a determination is made as to whether the cost is small enough to indicate that the generated value and the expected value are close enough. If so, then at decision point 1725, the learning model results are used as starting values for the nodes in the starting state estimation simulation 1510B. If it is determined that the two sets of values differ too much, then at decision point 1730, the learned model node value results are used as starting values for the optimizer simulation, as shown in reference Figure 5 and the surrounding text. It is assumed that these starting values are closer to the final optimized values than random values. At operation 1735, the optimization-simulation model is iteratively run until a stop state is reached. At operation 1740, in the iterative run of the optimization-simulation model, the results are used to train the learning model. Fig.11A and 11B The execution manner of operations 1735 and 1740 is shown in more detail. At operation 1745, once the optimization-simulation model reaches optimization, the node values generated at the beginning of the last iteration are used as the starting node values for the starting state estimation simulation, and then the simulation is run. At operation 1750, the simulation model is run, and the results of the simulation model are used to modify certain aspects of the structure being modeled. This may involve using the results of the simulation model to run another model, such as a device simulation model. The device simulation model can then generate a control sequence for one or more devices modeled in the device simulation model. The generated control sequence can then be used to run the device. The generated control sequence can run the device to minimize some aspects of the device, such as energy usage. For example, energy usage can be minimized by up to 30%.
[0126] Fig.18A learning model training system that can be used for warm-up simulation is disclosed at 1800. The system may include a processor, which may be all or part of a core processing system 330. The processor may also be one or more processors in a computing environment 300, 410, which are themselves part of a plurality of computerized controllers 405 networked together in a shared computing system. The shared computing system may share processing power between computing environments. The system also includes a memory in operable communication with the processor, and a computing code associated with the processor, the computing code being configured to create a simulator trainer. The memory and / or computing code may be shared between computing environments in a shared computing environment.
[0127] Block 1805 discloses an optimizer for determining initial node values for a simulator including nodes having values. Figure 1 The simulator is shown at 110. More details about at least the nodes with values are shown, for example, reference Fig.12 and surrounding text. For example, Figure 5 References 510, 511 and 512 and in Figure 8 References 810, 811 and 812 describe the relationship between the optimizer and the simulator.
[0128] Block 1810 discloses a simulator. The simulator uses as input an input time series from time t(-n) to time t(0). The output of the simulator and the output of the node may be an output time series from time t(-n) to time t(0). Referring to e.g. Figure 5 505 in describes an input having a sequence t(-n) to t(0). For example, an example of an input time sequence from time t(-n) to time t(0) may be input data 505, shown running from t=-n to t=0. The input data may be weather or other state data, such as reference Figure 8 As shown in 805.
[0129] Box 1815 discloses an inverter that inverts the input time series to time t(0) to t(-n) to produce an inverted input time series. An example of this can be found in Figure 5 505 in (which shows the original time series), and Figure 7 710 (which shows the reverse time series) in FIG. The inverter can also reverse the output time series to time t(0) to t(-n). This output time series can be a selected value time series, such as reference Figure 5 As shown in 515 in . Then, Figure 7 705 in Figure 705 shows the output (in this case the selected node values) of the reverse time series.
[0130] Block 1820 discloses a learning model that uses the reversed input time series as training input and uses the selected value of the output time series at t(-n) as the ground truth for a cost function associated with the learning model. Figure 7 The learning model shown uses the inverted (by inverter 1815) Figure 5 The input data 505 shown is used as input data for the learned model 715. Another example reference Fig. 9 Shown at 910.
[0131] Block 1825 discloses a cost function determiner. Figure 5 , the simulator produces selected internal node values 515 after running. These selected internal node values 515 are then measured against a set of expected node values 520. The two sets of node values are measured using a cost function 527, which then generates a cost 525. Similarly, the learning model 715 produces a set of output nodes, and the last values (tn) of the output nodes are compared to the simulator node values 620, 720 using a cost function 737 to generate a cost 735. The selected node values 515 and the expected node values 520 are input into the cost function, so that the output of the learning model at time t(-n) is compared to the initial simulator node values. Reference Figure 8 and 9 A similar cost function action is shown.
[0132] Box 1850 discloses an iterator. An optimizer (such as the optimizer disclosed herein) learns through an iterative process. A series of possible values are selected as inputs, the selected inputs are used by the simulation in a simulation run, and then the output is checked using a cost function to see how close it is to the expected output, as described elsewhere. If not in a stop state, the optimizer selects a new set of values for the simulation and the process continues until a stop state is reached. In some embodiments, an iterator controls these iterations. For example, an iterator may run an optimizer, pass the optimized node values to a simulator, run a cost function at the end of the simulation, and determine whether a stop state has been reached. If not, the iterator may have the optimizer use the cost to determine a subsequent set of optimized node values. The loop continues until a stop state is reached. When the stop state is reached, the initial values of the last iteration (e.g., Figure 8840 ) is used as input to a starting state estimation simulation, e.g., 210A. In some embodiments, the starting state estimation simulation is run from time t(-n) to time t(0). After running the starting state estimation simulation, a state simulation (which uses the same simulator with preheated node values) can be run forward in time from time t(0) to t(m). The state simulation can generate an output that can be used to ultimately generate a control sequence for the device. For example, the results of the state simulation can be used to run another simulation, such as a device simulation. The device simulation can generate a control sequence that can then be used to run the device modeled in the device simulation model. The device can then be run using the generated control sequence. This also refers to Fig. 11B and surrounding text are explained.
[0133] V. Exemplary Computer-Readable Medium for Training Simulators
[0134] refer to Figure 3 and Figure 4 , some embodiments include a configured computer-readable storage medium 365. The medium 365 may include a disk (magnetic, optical or other), RAM, EEPROMS or other ROM, and / or other configurable memory, including computer-readable media (not for manufactured transient phenomena, such as electrical, optical or acoustic signals). The configured storage medium may be a removable storage medium 365, such as a CD, DVD or flash memory. The program on the storage medium may be run on a processor (e.g., 310, 312, 315, etc.) coupled to the memory. Such memory may be a general purpose memory (may be a primary memory, such as RAM, ROM, CMOS or flash memory; or may be a secondary memory, such as a CD, hard disk, optical disk or removable flash memory), may be configured in the form of data 380 and instructions 375 using the computing environment 300, the computerized controller 405, or any combination of the above, read from a source (e.g., the output device 355) to form a configuration medium with data and instructions, which when executed by the processor performs a method for calculating travel comfort information. The configuration medium 365 enables the computer system to perform the actions associated with this document.
[0135] Some embodiments provide or utilize a computer-readable storage medium 365 configured with software 385 that, when executed by at least the central processing unit 310 , performs the methods and systems described herein.
[0136] In view of the many possible embodiments to which the principles of the disclosed invention may be applied, it should be appreciated that the illustrated embodiments are merely examples of the invention and should not be considered to limit the scope of the invention. Instead, the scope of the invention is defined by the appended claims. Therefore, we regard all contents that fall within the scope and spirit of these claims as our invention.
Claims
1. A computer-supported learning model training system, comprising: processor; a memory in operable communication with the processor, computing code associated with the processor, the computing code configured to create a simulator trainer; an optimizer for determining initial node values for a simulator, the simulator comprising nodes having values; a simulator that uses as input an input time series from time t=(-n) to time t=(0) and outputs for the node an output time series from time t=(-n) to time t=(0); an inverter that inverts the input time sequence from time t=(0) to time t=(-n) to generate an inverted input time sequence, and inverts the output time sequence from time t=(0) to time t=(-n); as well as A learning model is provided that uses the reversed input time series as a training input and uses a selected value of the output time series at t=(-n) as a ground truth for a cost function associated with the learning model.
2. The computer-supported learning model training system of claim 1, wherein the simulator is a heterogeneous neural network.
3. The computer supported learning model training system of claim 2, further comprising a cost function determiner that uses selected node values from the output time series as input to a cost function, and wherein, The cost function determiner also includes a cost function that uses the reference truth as an input to the cost function.
4. The computer supported learning model training system of claim 3, wherein the optimizer uses costs derived from the cost function to determine subsequent initial node values.
5. The computer-supported learning model training system according to claim 4 further includes an iterator that iteratively runs the optimizer, the simulator and the learning model until a stop state is reached.
6. A computer supported learning model training system according to claim 5, wherein when a stop state is reached, the initial node values are used as input to start a state estimation simulation.
7. A computer-supported learning model training system according to claim 6, wherein the initial state estimation simulation runs from time t=(-n) to time t=(0); wherein the state simulation then runs from time t(0) to t(n); the output generated by the state simulation can be used to generate a control sequence, and wherein the control sequence is used to operate the device modeled by the state simulation.
8. The computer supported learning model training system of claim 1, wherein the learning model is a neural network.
9. The computer supported learning model training system of claim 8, wherein the neural network is a recurrent neural network.
10. A computer-supported method for training a learning model using an optimizer model implemented in a computing system, the computing system comprising one or more processors and one or more memories coupled to the one or more processors, the one or more memories comprising computer-executable instructions for causing the computing system to perform operations, the method comprising: Run the optimizer to determine initial simulator node values; running the simulator using the input and initial simulator node values to produce simulator output; comparing selected node values output from the simulator to expected node values to generate a cost; inverting the selected node value to produce an inverted selected node value; inverting an input to the simulator to produce an inverted simulator input; using the inverted selected node values and the inverted simulator input as training inputs for a learning model; as well as The learning model is run.
11. The computer-supported method of claim 10, wherein running the learning model produces a reversed time series as a learning model output.
12. The computer-supported method of claim 11, wherein the learning model output at time t(-n) is compared to the initial simulator node values in a cost function.
13. The computer-supported method of claim 12, wherein the cost is derived from the cost function, and wherein the cost is used for back-propagation within the learning model.
14. The computer-supported method of claim 13, wherein the simulator is a heterogeneous neural network.
15. The computer-supported method of claim 14, wherein the input comprises weather data that varies over time.
16. The computer supported method of claim 15, wherein the selected nodal value is a temperature of a region within a space being modeled by the simulator.
17. The computer-supported method of claim 16, wherein inverting the input of the simulator comprises inverting an original time series from t=(-n) to time t=(0) to from time t=(0) to t=(-n) to produce an inverted time series.
18. A computer-readable storage medium configured with instructions that, when executed by one or more processors, perform a method for training a simulator, the method comprising: Run the optimizer to determine initial simulator node values; running a simulator using the input and the initial simulator node values to produce a simulator output; comparing selected node values output from the simulator to expected node values to generate a cost; inverting the selected node value to produce an inverted selected node value; inverting an input to the simulator to produce an inverted simulator input; using the inverted selected node values and the inverted simulator input as training inputs for a learning model; as well as The learning model is run.
19. The computer-readable storage medium of claim 18, wherein: The learning model produces a learning model output, and the learning model output at time t=(-n) is compared with the simulator output at time t=(0) for a learning model cost function, and the cost derived from the learning model cost function is used for backpropagation within the learning model.
20. The computer-readable storage medium of claim 19, wherein the learning model is a recurrent neural network.
