State prediction method and device based on physical system state restoration
By constructing the correlation function B, the self-selecting threshold of the nonlinear dynamic system is automatically selected, which solves the error problem of the nonlinear dynamic system when restoring the physical system, and achieves accurate state recovery and error reduction.
Patent Information
- Application Number
- CN202411537232.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-10-31
AI Technical Summary
In the prior art, when the nonlinear dynamic system is restored by the physical system, it is impossible to automatically select the appropriate threshold, resulting in large errors in the restoration result.
By constructing the correlation function B, using the threshold λ as the independent variable, the self-selecting threshold of the nonlinear dynamic system is automatically selected to control the sparseness of the sparse recognition algorithm, thereby achieving accurate state restoration of the physical system.
It realizes the correct restoration of the physical system state without artificial selection of thresholds, reducing the error impact caused by missing function terms.
Smart Images

Figure CN119046582A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to analytical data processing technology, in particular to a state prediction method and device based on physical system state restoration. Background Art
[0002] In recent years, with the rapid development of science and technology, the application research of nonlinear dynamic systems in various fields has attracted more and more attention. As a powerful supplement to traditional linear system models, the research on nonlinear dynamic system models will effectively promote scientific research and industrial development in various fields.
[0003] In the related art, the sparse recognition method of nonlinear dynamic systems is often used to restore the state of certain physical systems in data recognition scenarios. For example, the sparse recognition method can be used to identify the state of the meteorological system in the meteorological data scenario. Or the sparse recognition method can also be used to identify the state of the traffic system in the traffic data scenario, and so on. Among them, in the sparse recognition algorithm of the nonlinear dynamic system, it is necessary to manually select a threshold λ, the function of which is to ensure that the solution of the nonlinear dynamic system is sparse. Furthermore, the way to manually select this threshold is to select a threshold that is less than the minimum value of the absolute value of the coefficient of the restored physical system. However, if the coefficients of the restored dynamic system are not understood, in most cases a relatively small threshold will be directly selected.
[0004] However, in the related art, when using the sparse identification method of nonlinear dynamic systems to restore physical systems, even when a relatively small threshold λ is manually selected, the restoration result of the physical system still cannot avoid the problem of large errors. Therefore, how to realize a technical solution for automatically selecting a suitable threshold for a nonlinear dynamic system to achieve the correct restoration of the state of the physical system has become a problem that technicians in this field need to solve. Summary of the invention
[0005] The embodiment of the present application provides a state prediction method and device based on physical system state restoration. The embodiment of the present application is used to solve the problem existing in the related art that a suitable threshold cannot be selected for a nonlinear dynamic system, resulting in an inability to correctly restore the physical system state.
[0006] According to one aspect of an embodiment of the present application, a state prediction method based on physical system state restoration is provided, the method comprising: Determine a restored physical system to be restored in a real environment, and create a nonlinear dynamic system for capturing nonlinear characteristics of the restored physical system, wherein the nonlinear characteristics are used to reflect the real behavior of the restored physical system; A first function and a second function are calculated for the nonlinear dynamic system, wherein the first function is used to reflect the functional relationship between the data error between the simulated data and the real data of the restored physical system, and the second function is used to reflect the threshold and the functional relationship between the sparsity of the restored physical system, the restored physical system is a physical system that needs to be restored, the threshold Used to control the sparsity of the output value of the nonlinear dynamic system; Using the first function and the first function, a correlation function is calculated for the nonlinear dynamic system, and the correlation function is used to select a corresponding target for the nonlinear dynamic system. value; The goal The value is configured as a self-selected threshold of the nonlinear dynamic system, and the nonlinear dynamic system configured with the self-selected threshold is used to restore the state of the restored physical system in the data recognition scenario within a preset time length to obtain a target physical system after the state restoration; Based on the target physical system and the variable data collected by the system, real-time state prediction is performed on the data recognition scenario, and the state prediction includes behavior data prediction and trend data prediction.
[0007] Optionally, in another embodiment of the method of the present application, the first function is calculated for the nonlinear dynamic system by the following formula: L ; Among them, the L is the first function, Used to reflect the functional relationship between real data and fitting data.
[0008] Optionally, in another embodiment of the method of the present application, the second function is calculated for the nonlinear dynamic system by the following formula: ; Among them, the is the second function, is the number of all non-zero items in the function library in the restored physical system, is the number of all columns in the function library.
[0009] Optionally, in another embodiment based on the above method of the present application, the correlation function is calculated for the nonlinear dynamic system by the following formula: ; Among them, the is the correlation function, the L is the first function, the is the second function.
[0010] Optionally, in another embodiment of the method of the present application, the use of the correlation function to select a corresponding target for the nonlinear dynamic system Values, including: In the correlation function, the value of the correlation function in the maximum value interval corresponds to value as the target value.
[0011] Optionally, in another embodiment based on the above method of the present application, the target The values are configured as self-selected thresholds for the nonlinear dynamic system and include: The goal The value is used as a self-selected threshold of the sparse identification algorithm of the nonlinear dynamic system; The sparse recognition algorithm is obtained by the following formula: ; in, is the sparse coefficient, is the residual term of the sparse recognition algorithm, is the regularization term of the sparse recognition algorithm, and y is the real data.
[0012] Optionally, in another embodiment of the method of the present application, the nonlinear dynamic system configured with the self-selected threshold is used to restore the state of the restored physical system in the data recognition scenario within a preset time period, including: Performing state restoration on the test physical system using the nonlinear dynamic system configured with the self-selected threshold to obtain a test restoration result; and collecting a real test result corresponding to the test physical system under real conditions; When it is detected that the error value between the test restoration result and the test real result is less than the preset difference, the nonlinear dynamic system configured with the self-selected threshold is used to restore the state of the restored physical system in the data recognition scenario within a preset time length.
[0013] According to another aspect of the embodiment of the present application, a state prediction device based on physical system state restoration is provided, comprising: The calculation module is configured to calculate the first function and the second function by the nonlinear dynamic system, wherein the first function is used to reflect the functional relationship between the data error between the simulated data and the real data of the restored physical system, and the second function is used to reflect the threshold value. and the functional relationship between the sparsity of the restored physical system, the restored physical system is a physical system that needs to be restored, the threshold Used to control the sparsity of the output value of the nonlinear dynamic system; A selection module is configured to use the first function and the first function to calculate a correlation function for the nonlinear dynamic system, and use the correlation function to select a corresponding target for the nonlinear dynamic system value; The analysis module is configured to convert the target The value is configured as a self-selected threshold of the nonlinear dynamic system, and the nonlinear dynamic system configured with the self-selected threshold is used to restore the state of the restored physical system in the data recognition scenario within a preset time length.
[0014] According to another aspect of the embodiments of the present application, an electronic device is provided, including: A memory for storing executable instructions; and A display is used to execute the executable instructions with the memory to complete the operation of any of the above-mentioned state prediction methods based on physical system state restoration.
[0015] According to another aspect of an embodiment of the present application, a computing device readable storage medium is provided for storing instructions readable by the computing device, and when the instructions are executed, the operations of any of the above-mentioned state prediction methods based on physical system state restoration are performed.
[0016] In the present application, the first function and the second function are calculated for the nonlinear dynamic system, wherein the first function is used to reflect the functional relationship between the data error between the simulated data and the real data of the restored physical system, and the second function is used to reflect the threshold The functional relationship between the sparsity of the restored physical system, the restored physical system is the physical system that needs to be restored, the threshold Used to control the sparsity of the output value of the nonlinear dynamic system; use the first function and the second function to calculate the correlation function for the nonlinear dynamic system, and use the correlation function to select the corresponding target for the nonlinear dynamic system value; set the target The value is configured as a self-selected threshold of a nonlinear dynamic system, and the nonlinear dynamic system configured with the self-selected threshold is used to restore the state of the restored physical system in the data recognition scenario within a preset time length.
[0017] By applying the technical solution of the present application, a method of adaptively selecting a threshold for a nonlinear dynamic system can be added to a sparse identification algorithm of a nonlinear dynamic system used in a physical system for restoration in a data recognition scenario by using a threshold λ as an independent variable to construct a correlation function B, so that the nonlinear dynamic system configured with a self-selected threshold can be used to restore the state information of a physical system over a period of time. This achieves the purpose of correctly restoring the state of a physical system without manually selecting a threshold. It also solves the problem of restoration error caused by missing function terms that may occur in the process of restoring a physical system using a nonlinear dynamic system in the related art, even when a relatively small threshold is selected.
[0018] The technical solution of the present application is further described in detail below using multiple embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present application and, together with the description, serve to explain the principles of the present application.
[0020] The present application can be more clearly understood from the following detailed description with reference to the accompanying drawings, in which: Figure 1 A schematic diagram of a system architecture for state prediction based on physical system state restoration provided by an embodiment of the present application is shown; Figure 2 A schematic diagram of a correlation function B provided in an embodiment of the present application is shown; Figure 3 A schematic diagram of the overall process of state prediction based on physical system state restoration provided by an embodiment of the present application is shown; Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown; Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown; Figure 6 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0021] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application.
[0022] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0023] The following description of at least one exemplary embodiment is merely illustrative in nature and is not intended to limit the present application, its application, or uses.
[0024] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0025] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0026] In addition, the technical solutions between the various embodiments of the present application can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0027] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0028] Combine the following Figure 1-Figure 3 To describe the state prediction method for performing physical system state restoration according to the exemplary embodiment of the present application. It should be noted that the following application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the embodiments of the present application are not limited in this regard. On the contrary, the embodiments of the present application can be applied to any applicable scenario.
[0029] Furthermore, the present application also proposes a state prediction method and device based on physical system state restoration.
[0030] Figure 1 The flowchart of a state prediction method based on physical system state restoration according to an embodiment of the present application is schematically shown. Figure 1 As shown, the method includes: S101, determining a restored physical system to be restored in a real environment, and creating a nonlinear dynamic system for capturing nonlinear characteristics of the restored physical system, wherein the nonlinear characteristics are used to reflect the real behavior of the restored physical system; Among them, the restored physical system refers to a physical system that already exists in the real environment, but needs to be restored or simulated through some method or technology. This can be a specific mechanical system, ecosystem, climate system, etc. Nonlinear dynamic systems are different from linear systems. The behavior of nonlinear dynamic systems cannot be described by linear equations. They may contain nonlinear factors such as exponential growth, logarithmic relationships, polynomial relationships, etc. Nonlinear dynamic systems are often used to simulate complex phenomena in the real world. Nonlinear characteristics refer to the nonlinear factors that exist in the behavior of the system, which make the relationship between the output and input of the system not proportional. Nonlinear characteristics can reflect the real behavior of the system, including its complexity and unpredictability.
[0031] In some embodiments of the present application, it is assumed that there is a traffic system in a city, which can be regarded as a "reduced physical system" because it actually exists and has physical entities (such as vehicles, roads, etc.). In order to simulate this traffic system, it is necessary to create a "nonlinear dynamic system" that can capture nonlinear characteristics (such as traffic flow, vehicle density, and traffic patterns, etc.).
[0032] S102, calculating a first function and a second function for a nonlinear dynamic system, wherein the first function is used to reflect the functional relationship between the data error between the simulated data and the real data of the restored physical system, and the second function is used to reflect the threshold The functional relationship between the sparsity of the restored physical system, the restored physical system is the physical system that needs to be restored, the threshold Used to control the sparsity of the output values of nonlinear dynamic systems.
[0033] Wherein, the threshold λ is a parameter that controls the sparsity of the model output. In sparse identification algorithms, the threshold determines which parameters will be considered important and retained in the model, and which will be considered unimportant and set to zero. Data error refers to the difference between simulated data (data predicted by the model) and real data (actually observed data). Data error is an important indicator of the accuracy of model predictions. Sparsity refers to a vector, matrix, or other data structure in which most elements are zero. In machine learning and signal processing, sparse models are often preferred because they are simpler and easier to interpret.
[0034] In the related art, dynamic system is an important concept in mathematics, which is used to describe the evolution of certain objects over time and is usually described by differential equations.
[0035] Furthermore, a nonlinear dynamic system refers to a dynamic system that contains nonlinear function terms, which include exponential functions, power functions, logarithmic functions, polynomial functions, trigonometric functions, and other basic elementary functions as well as composite functions composed of them.
[0036] Specifically, a nonlinear dynamic system refers to a dynamic system in which some of its properties do not have linear properties. Unlike a linear system, the evolution of a nonlinear system is not only affected by external factors, but also by internal factors of the system. Compared with the advantages of linear systems such as predictability and certainty, nonlinear dynamic systems have the characteristics of unpredictability and being far from equilibrium.
[0037] In one way, nonlinear dynamic system modeling is the core content of nonlinear dynamic system research. According to different research objects, nonlinear dynamic system modeling can be divided into multiple fields such as physical modeling, social modeling, and economic modeling. For physical modeling, nonlinear dynamic system models can be used to describe different fields such as astrophysics, fluid mechanics, and material mechanics; for social engineering modeling, nonlinear dynamic system models can be used to simulate social structure changes and social network trends, etc.
[0038] In related technologies, when establishing a nonlinear dynamic system model, the most critical thing is to determine the appropriate control variables and state variables, carefully study the interactions between systems, and understand the relationship between parameters in the system in order to build a reasonable and effective model. At the same time, this process also needs to consider the system's sensitivity to model parameters and the corresponding changes in various initial conditions.
[0039] In addition, with the continuous development of nonlinear dynamic system modeling technology, its application in various fields is becoming more and more extensive.
[0040] In one scenario, business personnel can use nonlinear dynamic systems to restore the operating state of a physical system in a data recognition scenario.
[0041] For example, the data recognition scenario can be a meteorological recognition scenario, a traffic recognition scenario, a financial recognition scenario, a human recognition scenario, and the like.
[0042] Specifically, a given function value can be obtained by solving the physical system to be tested through a sparse identification algorithm of a nonlinear dynamic system, and the given function value is used to reflect: the change of the state value of the physical system within a certain period of time.
[0043] In the related art, a threshold λ needs to be manually selected in the sparse identification algorithm of nonlinear dynamic systems. The function of this threshold is to ensure that the solution of the sparse identification algorithm is sparse. Further, the method of manually selecting this threshold is: first determine the minimum absolute value of the coefficient of the restored physical system, and select a value less than the minimum value as the threshold λ.
[0044] It is understandable that if the business personnel do not understand the coefficients of the restored physical system, in most cases they will directly select a relatively small value as the threshold λ.
[0045] However, when using the sparse identification method of nonlinear dynamic systems to restore the physical system, when a relatively small threshold λ is selected, large errors in the restoration results of the physical system cannot be avoided, because the function terms with smaller coefficients may be ignored.
[0046] Based on this, the present application adopts a method of automatically selecting the threshold value based on the related function (i.e., B function) that constructs the threshold value λ as the independent variable, so as to avoid the problem of restoring the physical system error that may still occur when selecting a relatively small threshold value λ, thereby achieving the purpose of more accurately restoring the state of the physical system.
[0047] Furthermore, the present embodiment needs to prepare a data set first: As an example, the data set X is: ; All parameters in X are all dependent variable values of the physical system that needs to be restored (i.e., the restored physical system) within a preset time period, so that the state of the restored physical system can be restored within the preset time period based on the data set. For multiple time points, X is given by Row vector , , ,…, Each row vector represents a time point. data, each row vector Contains n elements , , , , these elements are time points The values of n variables, is the transpose operation, is the number of time points and n is the number of variables.
[0048] It should be noted that when the collected data set includes noisy data with obvious noise level, it is necessary to perform a certain degree of noise reduction on the data and calculate the first-order time derivative of the data set using a numerical method.
[0049] Furthermore, the present embodiment also needs to build a basic function library: As an example, the basic function library is: , the basic function library can be composed of polynomials , trigonometric functions , exponential function , logarithmic functions In one way, the embodiment of the present application can store all basic functions in a basic function library, and apply the previously collected data set to the constructed basic function library, so as to obtain a specific data basic function library.
[0050] Furthermore, the embodiment of the present application needs to first construct a first function (ie, the L function) and a second function (ie, the S function).
[0051] Among them, the L function (i.e., the first function) is the log function relationship between the restored physical system and the real data error, and the S function (i.e., the second function) is used to reflect the relationship between the threshold λ and the sparsity of the restored physical system.
[0052] S103, using the first function and the second function to calculate a correlation function for the nonlinear dynamic system, and using the correlation function to select a corresponding target for the nonlinear dynamic system value.
[0053] In one approach, the embodiment of the present application can combine the L function (first function) and the S function (second function) using a linear combination to form a correlation function B of the nonlinear dynamic system.
[0054] As an example, the formulas for each function are defined as follows: In the first aspect, the first function L ; in, It is used to reflect the functional relationship between real data and fitted data. The calculation formula of E function is: .
[0055] Second, the second function ; Among them, the To restore the number of all non-zero entries in the function library in the physical system, is the number of all columns in the function library.
[0056] Third, related functions .
[0057] As an example, Figure 2 FIG. 1 is a schematic diagram of the correlation function B obtained in the embodiment of the present application. In one embodiment of the present application, the minimum value in the interval value of the threshold λ corresponding to the maximum value of the correlation function B can be used as the target value. value.
[0058] For example, if Figure 2It can be seen that when the correlation function B is at its maximum value of 0, the corresponding threshold λ is in the interval of 0-0.6, and the minimum value 0 in this interval can be used as the target value.
[0059] S104, the target The value is configured as a self-selected threshold of the nonlinear dynamic system, and the nonlinear dynamic system configured with the self-selected threshold is used to restore the state of the restored physical system in the data recognition scenario within a preset time length to obtain the target physical system after the state restoration.
[0060] In one embodiment, the present application embodiment determines the target After the value is obtained, it can be used as a self-selected threshold to restore the state of the physical system within a preset time length.
[0061] As an example, in the embodiment of the present application, the basic structure of the meteorological physical system can be determined and restored according to the following data: ; ; A ; ; in, It represents the first-order derivative of the variable with respect to time; It represents the basic function library of the meteorological system; is the corresponding coefficient matrix.
[0062] Furthermore, in nonlinear dynamic systems, the calculation formula for solving the sparse coefficient matrix using the sparse identification algorithm is as follows: ; in, is the sparse coefficient, is the residual term of the sparse recognition algorithm, is the regularization term of the sparse recognition algorithm, and y is the real data.
[0063] It can be understood that the threshold λ controls the sparsity of the solution.
[0064] Furthermore, in the embodiment of the present application, when determining the target After the values are obtained, the above formula can be used to solve the coefficient matrix of the meteorological physical system, and then the state parameters of the meteorological physical system can be obtained.
[0065] By applying the technical solution of the present application, a method of adaptively selecting a threshold for a nonlinear dynamic system can be added to a sparse identification algorithm of a nonlinear dynamic system used in a physical system for restoration in a data recognition scenario by using a threshold λ as an independent variable to construct a correlation function B, so that the nonlinear dynamic system configured with a self-selected threshold can be used to restore the state information of a physical system over a period of time. This achieves the purpose of correctly restoring the state of a physical system without manually selecting a threshold. It also solves the problem of restoration error caused by missing function terms that may occur in the process of restoring a physical system using a nonlinear dynamic system in the related art, even when a relatively small threshold is selected.
[0066] Optionally, in another embodiment of the method of the present application, the first function is calculated for the nonlinear dynamic system by the following formula: L ; Among them, the L is the first function, Used to reflect the functional relationship between real data and fitting data.
[0067] Optionally, in another embodiment of the method of the present application, the second function is calculated for the nonlinear dynamic system by the following formula: ; Among them, the is the second function, is the number of all non-zero items in the function library in the restored physical system, is the number of all columns in the function library.
[0068] Optionally, in another embodiment based on the above method of the present application, the correlation function is calculated for the nonlinear dynamic system by the following formula: ; Among them, the is the correlation function, the L is the first function, the is the second function.
[0069] Optionally, in another embodiment of the method of the present application, the use of the correlation function to select a corresponding target for the nonlinear dynamic system Values, including: In the correlation function, the value of the correlation function in the maximum value interval corresponds to value as the target value.
[0070] Optionally, in another embodiment based on the above method of the present application, the target The values are configured as self-selected thresholds for the nonlinear dynamic system and include: The goal The value is used as a self-selected threshold of the sparse identification algorithm of the nonlinear dynamic system; The sparse recognition algorithm is obtained by the following formula: ; in, is the sparse coefficient, is the residual term of the sparse recognition algorithm, is the regularization term of the sparse recognition algorithm, and y is the real data.
[0071] Optionally, in another embodiment of the method of the present application, the nonlinear dynamic system configured with the self-selected threshold is used to restore the state of the restored physical system in the data recognition scenario within a preset time period, including: Performing state restoration on the test physical system using the nonlinear dynamic system configured with the self-selected threshold to obtain a test restoration result; and collecting a real test result corresponding to the test physical system under real conditions; When it is detected that the error value between the test restoration result and the test real result is less than the preset difference, the nonlinear dynamic system configured with the self-selected threshold is used to restore the state of the restored physical system in the data recognition scenario within a preset time length.
[0072] In one way, Figure 3 FIG. 1 shows a schematic diagram of an overall process of state prediction based on physical system state restoration provided by an embodiment of the present application, including: Step 1: Collect a data set for restoring the physical system, and use a numerical method to calculate the first-order time derivative of the data set.
[0073] Among them, the time first-order derivative of the data set is expressed as: .
[0074] Step 2: Obtain a basic function library, and use the data set to construct parameters for the basic function library to obtain a data basic function library.
[0075] Among them, the basic function library is expressed as: A
[0076] Step 3: Calculate and obtain a first function L for reflecting the functional relationship between the data error between the restored physical system and the real data.
[0077] Among them, the first function L is expressed as: L ; in, Used to reflect the functional relationship between real data and fitting data.
[0078] Step 4: Calculate and obtain a second function S for reflecting the functional relationship between the threshold and the sparsity of the restored physical system.
[0079] Among them, the second function S is expressed as: ; Among them, the is the number of all non-zero items in the function library in the restored physical system, is the number of all columns in the function library.
[0080] Step 5: Utilize the difference between the first function L and the first function S to calculate the correlation function B for the nonlinear dynamic system.
[0081] Among them, the correlation function B is expressed as: ; Among them, L is the first function, is the second function.
[0082] Step 6: Determine the value interval corresponding to the maximum value interval of the correlation function, and take the minimum value in the value interval as the target value.
[0083] Step 7: Use the target value as the self-selected threshold of the sparse recognition algorithm of the nonlinear dynamic system, and use the nonlinear dynamic system configured with the self-selected threshold to restore the state of the restored physical system in the data recognition scenario within a preset time length.
[0084] Among them, the state of restoring the restored physical system is expressed as: ; in, is the sparse coefficient, is the residual term of the sparse recognition algorithm, is the regularization term of the sparse recognition algorithm, and y is the real data.
[0085] S105, performing real-time state prediction on the data recognition scenario based on the target physical system and the variable data collected by the system, wherein the state prediction includes behavior data prediction and trend data prediction.
[0086] Among them, variable data refers to various measurements or observations related to the target physical system. These data can be temperature, pressure, speed, concentration, etc., which are used to describe the state of the system. Data recognition scenarios refer to scenarios or processes that use collected data to understand and analyze the behavior of physical systems, which usually involves data processing and analysis. Real-time state prediction refers to the continuous prediction of the future state of a physical system based on current and historical data. Behavioral data prediction refers to predicting the behavioral characteristics of a physical system, such as how the system responds to external changes or internal dynamics. Trend data prediction refers to predicting long-term trends in physical systems over time, such as growth, decrease, or periodic changes.
[0087] In some embodiments, a city is equipped with a large number of traffic surveillance cameras and sensors, and the city's traffic system collects data on traffic flow, speed, and traffic accidents. The city's traffic system uses these "variable data" to perform "data recognition scenario" analysis, such as identifying the patterns and causes of traffic congestion. Using these analysis results, the traffic management center can perform "real-time status prediction", such as predicting traffic flow and congestion during rush hour. They can use machine learning algorithms to predict traffic conditions in the next few hours based on current traffic data and historical patterns.
[0088] For example, Behavioral Data Prediction could involve predicting how vehicles will reroute when a major road is closed for construction, and how this will affect flow and congestion on surrounding roads.
[0089] For example, “trend data forecasting” could include predicting which areas will need more transportation infrastructure as cities expand and populations grow, or forecasting long-term growth trends in public transportation demand.
[0090] By applying the technical solution of the present application, a method of adaptively selecting a threshold for a nonlinear dynamic system can be added to a sparse identification algorithm of a nonlinear dynamic system used in a physical system for restoration in a data recognition scenario by using a threshold λ as an independent variable to construct a correlation function B, so that the nonlinear dynamic system configured with a self-selected threshold can be used to restore the state information of a physical system over a period of time. This achieves the purpose of correctly restoring the state of a physical system without manually selecting a threshold. It also solves the problem of restoration error caused by missing function terms that may occur in the process of restoring a physical system using a nonlinear dynamic system in the related art, even when a relatively small threshold is selected.
[0091] In another embodiment of the present application, Figure 4As shown, the present application also provides a state prediction device based on physical system state restoration. It includes: A creation module 201 is used to determine a restored physical system to be restored in a real environment, and to create a nonlinear dynamic system for capturing nonlinear characteristics of the restored physical system, wherein the nonlinear characteristics are used to reflect the real behavior of the restored physical system; The calculation module 202 is configured to calculate the first function and the second function of the nonlinear dynamic system, wherein the first function is used to reflect the functional relationship between the data error between the simulated data and the real data of the restored physical system, and the second function is used to reflect the threshold and the functional relationship between the sparsity of the restored physical system, the restored physical system is a physical system that needs to be restored, the threshold Used to control the sparsity of the output value of the nonlinear dynamic system; The selection module 203 is configured to use the first function and the first function to calculate a correlation function for the nonlinear dynamic system, and use the correlation function to select a corresponding target for the nonlinear dynamic system. value; The analysis module 204 is configured to convert the target The value is configured as a self-selected threshold of the nonlinear dynamic system, and the nonlinear dynamic system configured with the self-selected threshold is used to restore the state of the restored physical system in the data recognition scenario within a preset time length to obtain a target physical system after the state restoration; The state prediction module 205 is used to perform real-time state prediction on the data recognition scenario based on the target physical system and the variable data collected by the system, and the state prediction includes behavior data prediction and trend data prediction.
[0092] By applying the technical solution of the present application, a method of adaptively selecting a threshold for a nonlinear dynamic system can be added to a sparse identification algorithm of a nonlinear dynamic system used in a physical system for restoration in a data recognition scenario by using a threshold λ as an independent variable to construct a correlation function B, so that the nonlinear dynamic system configured with a self-selected threshold can be used to restore the state information of a physical system over a period of time. This achieves the purpose of correctly restoring the state of a physical system without manually selecting a threshold. It also solves the problem of restoration error caused by missing function terms that may occur in the process of restoring a physical system using a nonlinear dynamic system in the related art, even when a relatively small threshold is selected.
[0093] In another embodiment of the present application, the selection module 202 is configured to: The first function is calculated for the nonlinear dynamic system by the following formula: L ; Among them, the L is the first function, Used to reflect the functional relationship between real data and fitting data.
[0094] In another embodiment of the present application, the selection module 202 is configured to: The second function is calculated for the nonlinear dynamic system by the following formula: ; Among them, the is the second function, is the number of all non-zero items in the function library in the restored physical system, is the number of all columns in the function library.
[0095] In another embodiment of the present application, the selection module 202 is configured to: The correlation function is calculated for the nonlinear dynamic system by the following formula: ; Among them, the is the correlation function, the L is the first function, the is the second function.
[0096] In another embodiment of the present application, the selection module 202 is configured to: Determine in the correlation function, the value of the correlation function corresponding to the maximum value interval Value interval; The The minimum value in the value interval is taken as the target value.
[0097] In another embodiment of the present application, the selection module 202 is configured to: The goal The value is used as a self-selected threshold of the sparse identification algorithm of the nonlinear dynamic system; The sparse recognition algorithm is obtained by the following formula: ; in, is the sparse coefficient, is the residual term of the sparse recognition algorithm, is the regularization term of the sparse recognition algorithm, and y is the real data.
[0098] In another embodiment of the present application, the selection module 202 is configured to: Performing state restoration on the test physical system using the nonlinear dynamic system configured with the self-selected threshold to obtain a test restoration result; and collecting a real test result corresponding to the test physical system under real conditions; When it is detected that the error value between the test restoration result and the test real result is less than the preset difference, the nonlinear dynamic system configured with the self-selected threshold is used to restore the state of the restored physical system in the data recognition scenario within a preset time length.
[0099] The present application also provides an electronic device to perform the above-mentioned state prediction method based on physical system state restoration. Figure 5 , which shows a schematic diagram of an electronic device provided by some embodiments of the present application. Figure 5 As shown, the electronic device 3 includes: a processor 300, a memory 301, a bus 302 and a communication interface 303, and the processor 300, the communication interface 303 and the memory 301 are connected via the bus 302; the memory 301 stores a computer program that can be run on the processor 300, and when the processor 300 runs the computer program, it executes the state prediction method based on physical system state restoration provided in any of the aforementioned embodiments of the present application.
[0100] The memory 301 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the device network element and at least one other network element is realized through at least one communication interface 303 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0101] The bus 302 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 301 is used to store programs, and the processor 300 executes the programs after receiving the execution instruction. The video transmission method disclosed in any implementation of the embodiment of the present application may be applied to the processor 300, or implemented by the processor 300.
[0102] The processor 300 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 300. The above processor 300 can be a general-purpose processor, including a processor (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 301, and the processor 300 reads the information in the memory 301 and completes the steps of the above method in combination with its hardware.
[0103] The electronic device provided in the embodiment of the present application and the state prediction method based on physical system state restoration provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.
[0104] The present application also provides a computer-readable storage medium corresponding to the state prediction method based on physical system state restoration provided in the above embodiment. Figure 6 The computer-readable storage medium shown is a CD 40 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, the method provided by any of the aforementioned embodiments is executed.
[0105] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0106] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the video transmission method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0107] It should be noted that: In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known structures and technologies are not shown in detail so as not to obscure the understanding of this description.
[0108] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following schematic diagram: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the claims below, the inventive aspects are less than all the features of the single embodiment disclosed above. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.
[0109] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0110] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A state prediction method based on physical system state restoration, characterized in that: The method comprises: Determine a restored physical system to be restored in a real environment, and create a nonlinear dynamic system for capturing nonlinear characteristics of the restored physical system, wherein the nonlinear characteristics are used to reflect the real behavior of the restored physical system; A first function and a second function are calculated for the nonlinear dynamic system, wherein the first function is used to reflect the functional relationship between the data error between the simulated data and the real data of the restored physical system, and the second function is used to reflect the threshold and the functional relationship between the sparsity of the restored physical system, the restored physical system is a physical system that needs to be restored, the threshold Used to control the sparsity of the output value of the nonlinear dynamic system; Using the first function and the first function, a correlation function is calculated for the nonlinear dynamic system, and the correlation function is used to select a corresponding target for the nonlinear dynamic system. value; The goal The value is configured as a self-selected threshold of the nonlinear dynamic system, and the nonlinear dynamic system configured with the self-selected threshold is used to restore the state of the restored physical system in the data recognition scenario within a preset time length to obtain a target physical system after the state restoration; Based on the target physical system and the variable data collected by the system, real-time state prediction is performed on the data recognition scenario, and the state prediction includes behavior data prediction and trend data prediction.
2. The method according to claim 1, characterized in that The first function is calculated for the nonlinear dynamic system by the following formula: L ; Among them, the L is the first function, Used to reflect the functional relationship between real data and fitting data.
3. The method according to claim 2, characterized in that The second function is calculated for the nonlinear dynamic system by the following formula: ; Among them, the is the second function, is the number of all non-zero items in the function library in the restored physical system, is the number of all columns in the function library.
4. The method according to claim 1, characterized in that The correlation function is calculated for the nonlinear dynamic system by the following formula: ; Among them, the is the correlation function, the L is the first function, the is the second function.
5. The method according to claim 1, characterized in that The method of using the correlation function to select a corresponding target for the nonlinear dynamic system Values, including: Determine in the correlation function, the value of the correlation function corresponding to the maximum value interval Value interval; The The minimum value in the value interval is taken as the target value.
6. The method according to claim 1, characterized in that The target The values are configured as self-selected thresholds for the nonlinear dynamic system and include: The target The value is used as a self-selected threshold of the sparse identification algorithm of the nonlinear dynamic system; The sparse recognition algorithm is obtained by the following formula: ; in, is the sparse coefficient, is the residual term of the sparse recognition algorithm, is the regularization term of the sparse recognition algorithm, and y is the real data.
7. The method according to claim 1, characterized in that The method of using the nonlinear dynamic system configured with the self-selected threshold to restore the state of the restored physical system in the data recognition scenario within a preset time period includes: Performing state restoration on the test physical system using the nonlinear dynamic system configured with the self-selected threshold to obtain a test restoration result; and collecting a real test result corresponding to the test physical system under real conditions; When it is detected that the error value between the test restoration result and the test real result is less than the preset difference, the nonlinear dynamic system configured with the self-selected threshold is used to restore the state of the restored physical system in the data recognition scenario within a preset time length.
8. A state prediction device based on physical system state restoration, characterized in that: The device comprises: A creation module, used for determining a restored physical system to be restored in a real environment, and creating a nonlinear dynamic system for capturing nonlinear characteristics of the restored physical system, wherein the nonlinear characteristics are used for reflecting the real behavior of the restored physical system; The calculation module is configured to calculate the first function and the second function by the nonlinear dynamic system, wherein the first function is used to reflect the functional relationship between the data error between the simulated data and the real data of the restored physical system, and the second function is used to reflect the threshold and the functional relationship between the sparsity of the restored physical system, the restored physical system is a physical system that needs to be restored, the threshold Used to control the sparsity of the output value of the nonlinear dynamic system; A selection module is configured to use the first function and the first function to calculate a correlation function for the nonlinear dynamic system, and use the correlation function to select a corresponding target for the nonlinear dynamic system value; The analysis module is configured to convert the target The value is configured as a self-selected threshold of the nonlinear dynamic system, and the nonlinear dynamic system configured with the self-selected threshold is used to restore the state of the restored physical system in the data recognition scenario within a preset time length to obtain a target physical system after the state restoration; The state prediction module is used to perform real-time state prediction on the data recognition scenario based on the target physical system and the variable data collected by the system, wherein the state prediction includes behavior data prediction and trend data prediction.
9. An electronic device, characterized in that: include: A memory for storing executable instructions; as well as, A processor is used to execute the executable instructions with the memory to complete the operation of the state prediction method based on physical system state restoration as described in any one of claims 1-7.
10. A computing device readable storage medium for storing instructions readable by a computing device, characterized in that: When the instruction is executed, the operation of the state prediction method based on physical system state restoration described in any one of claims 1-7 is performed.
Citation Information
Patent Citations
Systems and methods to track and manage individualized redox homeostasis
CA2959740A1
Gaussian process model-based predictive control method for multi-variable nonlinear dynamic system model
CN110609476A
Software defect detection method and device
CN112860545A
Non-contact continuous behavior perception method
CN114333044A
Dynamic threshold Gaussian kernel density estimation system and method for sparse data
CN114564814A
