Information processing device, information processing method, and information processing program
The information processing device optimizes predictive model generation by setting prediction points and explanatory variable intervals, enhancing accuracy and control system performance through visual and quantitative assessment.
Patent Information
- Application Number
- JP2023025258
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-09-02
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing predictive models require trial and error to optimize settings such as prediction horizon, explanatory variables, and variable ranges, leading to decreased accuracy with increasing distance from the prediction point, necessitating improved methods for model generation.
An information processing device and method that supports the generation of predictive models by setting prediction points, explanatory variable intervals, and selecting positions to optimize prediction accuracy through trial and error, using a display to visualize the process and a simulator to quantify control system performance.
Enables the optimization of predictive models by visually confirming performance and quantitatively assessing control system impact, ensuring accurate predictions over extended horizons.
Smart Images

Figure 2024118777000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, an information processing method, and an information processing program. [Background technology]
[0002] Techniques for predicting future values from observed values using a prediction model are known.
[0003] Patent Document 1 (JP 2020-135757 A) discloses a control device that uses a prediction model of a controlled variable to calculate a predicted value from a measured value of the controlled variable, and determines a command target value of the controlled variable by correcting a basic target value according to the calculated predicted value.
[0004] Patent Document 2 (International Publication No. 2017 / 094207) discloses an information processing system that can appropriately perform optimization even in a situation where there is input data that is not observed in mathematical optimization. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2020-135757 A [Patent Document 2] International Publication No. 2017 / 094207 Summary of the Invention [Problem to be solved by the invention]
[0006] When generating a predictive model, it is necessary to optimize settings such as how much of the future value to predict, which explanatory variables to select, and what range of explanatory variables to select. Here, predicting values as far into the future as possible can improve the performance of the control system, but the prediction accuracy can decrease the further away from the prediction point. Considering such trade-off relationships, trial and error is required to optimize the predictive model.
[0007] The present invention provides an environment to support the generation of predictive models through trial and error. [Means for solving the problem]
[0008] According to an embodiment of the present invention, there is provided an information processing device for generating a prediction model. The prediction model is for calculating a value at a prediction point that is a predetermined margin time from a prediction start point at a prediction start point. The information processing device includes a reception unit that receives a setting of a prediction point, a setting of an explanatory variable interval for a range past the prediction start point including the prediction start point, and a selection of one or more positions from a plurality of position candidates in the explanatory variable interval, and a calculation unit that calculates a prediction accuracy of a value at the prediction point using actual values at the selected one or more positions based on time series data of actual values for a value calculated by the prediction model.
[0009] According to this configuration, when one or more positions in the explanatory variable interval are selected in a state where a prediction start point and an explanatory variable interval are set, the information processing device calculates the prediction accuracy of the value at the prediction point using the actual value at the selected one or more positions. By referring to the calculated prediction accuracy, the prediction point, the explanatory variable interval, and the one or more positions can be optimized by trial and error.
[0010] The information processing device may further include a display control unit for displaying and outputting the prediction start point and the prediction point in association with the time series data. With this configuration, the prediction start point and the prediction point can be optimized in association with the time series data.
[0011] The information processing device may further include a generating unit configured to generate a prediction model using actual values at the selected one or more positions. With this configuration, a prediction model can be generated in response to the selection of the one or more positions.
[0012] The display control unit may display the predicted waveform calculated using the generated prediction model together with the time-series data. With this configuration, it is possible to visually confirm the performance of the generated prediction model.
[0013] The information processing device may further include a simulator that simulates the behavior of the control system including the prediction model. The simulator calculates the effect of the prediction compensation unit based on the difference in output values when the same input data is given to a first control system including a prediction compensation unit that calculates a compensation amount using the prediction model and a second control system that does not include a prediction compensation unit that calculates a compensation amount using the prediction model. With this configuration, the performance of the control system including the prediction model can be quantitatively confirmed.
[0014] The receiving unit may limit the time difference between the prediction start point and the prediction point so as to exceed a predetermined minimum value. With this configuration, it is possible to ensure a time required for a control system including a prediction model to exhibit a required performance.
[0015] According to another embodiment of the present invention, there is provided a computer-executed information processing method for generating a prediction model. The prediction model is for calculating, at a prediction start point, a value at a prediction point that is a predetermined margin time from the prediction start point in the future. The information processing method includes the steps of accepting a setting of a prediction point and an explanatory variable interval for a range past the prediction start point including the prediction start point, accepting a selection of one or more positions from a plurality of position candidates in the explanatory variable interval, and calculating a prediction accuracy of a value at the prediction point using actual values at the selected one or more positions based on time series data of actual values for values calculated by the prediction model.
[0016] According to yet another embodiment of the present invention, there is provided an information processing program for generating a prediction model. The prediction model is for calculating, at a prediction start point, a value at a prediction point that is a predetermined margin time from the prediction start point in the future. The information processing program causes a computer to execute the steps of accepting a setting of a prediction point and an explanatory variable interval for a range past the prediction start point including the prediction start point, accepting a selection of one or more positions from a plurality of position candidates in the explanatory variable interval, and calculating a prediction accuracy of a value at the prediction point using actual values at the selected one or more positions based on time series data of actual values for values calculated by the prediction model. Effect of the Invention
[0017] According to the present invention, it is possible to provide an environment for supporting the generation of a predictive model through trial and error. [Brief description of the drawings]
[0018] [Figure 1] FIG. 2 is a schematic diagram showing an example of a control system that performs predictive control according to the present embodiment. [Diagram 2] FIG. 2 is a schematic diagram showing an example of an effect of the predictive control shown in FIG. [Diagram 3] 11 is a diagram for explaining a process for generating time-series data according to the present embodiment. FIG. [Figure 4] 1 is a schematic diagram showing an example of a system configuration of a control system according to an embodiment of the present invention; [Diagram 5] FIG. 2 is a block diagram showing an example of a hardware configuration of a control device constituting the control system according to the present embodiment. [Figure 6] 1 is a block diagram showing an example of a hardware configuration of an information processing device constituting a control system according to the present embodiment. [Figure 7] 13 is a flowchart showing an example of a processing procedure for generating a prediction model according to the present embodiment. [Figure 8]It is a schematic diagram showing an example of a user interface screen for generating a prediction model according to this embodiment. [Figure 9] It is a schematic diagram showing an example of a user interface screen for generating a prediction model according to this embodiment. [Figure 10] It is a schematic diagram showing an example of a user interface screen for generating a prediction model according to this embodiment. [Figure 11] It is a schematic diagram showing an example of a user interface screen for generating a prediction model according to this embodiment. [Figure 12] It is a schematic diagram showing an example of a simulation of predictive control according to this embodiment. [Figure 13] It is a block diagram showing an example of the functional configuration of a control device and an information processing device constituting a control system according to this embodiment.
Embodiments for Carrying Out the Invention
[0019] Embodiments of the present invention will be described in detail with reference to the drawings. For the same or corresponding parts in the drawings, the same reference numerals are given and the description thereof will not be repeated.
[0020] <A. Application Example> First, an example of a scenario to which the present invention is applied will be described.
[0021] FIG. 1 is a schematic diagram showing an example of a control system that performs predictive control according to this embodiment. Referring to FIG. 1, a control system 1 that performs predictive control calculates an operation amount u to be given to a control target 4. A PID controller 2 that constitutes a feedback loop of the control system 1 calculates an output u0 from a deviation e according to a PID operation. A subtractor 6 outputs the difference between a target value r and an output value y of the control target 4 as a deviation e.
[0022] The control system 1 includes a predictive compensation unit 10. The predictive compensation unit 10 predicts future fluctuations in a controlled variable y and calculates a compensation amount u1. An adder 8 outputs the sum of the output value y from the PID controller 2 and the compensation amount u1 of the predictive compensation unit 10 as a manipulated variable u.
[0023] More specifically, the prediction compensation unit 10 includes a predictor 12 and a corrector 14. The predictor 12 has a prediction model prepared in advance. The predictor 12 calculates a predicted control amount y^ of the controlled object 4 by inputting a past output value y to the prediction model. The corrector 14 calculates a compensation amount u1 from the difference between the target value r and the predicted control amount y^ of the controlled object 4. The subtractor 6 outputs the difference between the target value r and the predicted control amount y^ of the controlled object 4.
[0024] The feedback control system made up of the PID controller 2 cannot control a sudden disturbance that exceeds the response speed of the PID controller 2 because it calculates the output u0 (operating amount u) after the deviation e becomes a non-zero value.
[0025] The predictive compensation unit 10 can predict future fluctuations in the controlled variable y and correct the manipulated variable u before the deviation e becomes a non-zero value, thereby suppressing the predicted fluctuations, thereby improving the performance of the control system.
[0026] Fig. 2 is a schematic diagram showing an example of the effect of the predictive control shown in Fig. 1. Fig. 2 shows time series data of the controlled variable y of the controlled object 4 by feedback control and time series data of the controlled variable y of the controlled object 4 by predictive control.
[0027] Referring to FIG. 2, it can be seen that by using predictive control instead of feedback control, the section in which the controlled variable y is outside the normal range (defective quality section) can be significantly shortened.
[0028] Next, a method for generating the predictive model 140 for predictive control will be described.
[0029] The prediction model 140 is generated from time series data including the output value y of the control target 4. The prediction model 140 may employ any algorithm. For example, the prediction model 140 may be an autoregressive model or may use a neural network. An analysis tool may be used to generate the prediction model 140.
[0030] FIG. 3 is a diagram for explaining a process of generating time series data according to the present embodiment. With reference to FIG. 3, a time point at which a predicted control amount y^ of the controlled object 4 is calculated is set as a prediction point. A time point a predetermined time (hereinafter also referred to as "slack time") from the prediction point in the future is set as a prediction start point. An interval (hereinafter also referred to as "explanatory variable interval") for collecting explanatory variables is set based on the prediction start point. The explanatory variable interval is set arbitrarily within a range past the prediction start point including the prediction start point. The start point of the explanatory variable interval is set at a time point past the prediction start point. The end point of the explanatory variable interval may be set to the same as the prediction start point, or may be set at a time point past the prediction start point.
[0031] The explanatory variables are one or more pieces of input data for calculating the predicted control amount y^ of the controlled object 4. Each of the explanatory variables is a value at one or more predetermined positions within the explanatory variable interval.
[0032] Data acquired at the prediction start point (time-series data of explanatory variables collected in an explanatory variable interval) is input to the prediction model 140. The prediction model 140 outputs the value of the predicted controlled variable y^ at the prediction point.
[0033] That is, the prediction model 140 calculates, at a prediction start point, a value at a prediction point a predetermined margin time into the future from the prediction start point.
[0034] In order to improve the performance of predictive control, it is preferable to make the margin time longer. On the other hand, in order to enhance the prediction accuracy of the predicted control quantity ŷ, it is preferable to make the margin time shorter. Also, in order to enhance the prediction accuracy of the predicted control quantity ŷ, it is necessary to optimize the length of the explanatory variable interval and the selection of the explanatory variables, etc.
[0035] Thus, in order to generate the prediction model 140, it is necessary to optimize a plurality of parameters including the margin time, the explanatory variable interval, and the explanatory variables. This embodiment supports the generation of the prediction model 140.
[0036] <B. System Configuration> Next, the system configuration of the control system 50 according to this embodiment will be described.
[0037] FIG. 4 is a schematic diagram showing an example of the system configuration of the control system 50 according to this embodiment. Referring to FIG. 4, the control system 50 includes, as main components, a control device 100 that controls a controlled object, and an information processing device 200 connected to the control device 100.
[0038] The control device 100 may be embodied as a kind of computer such as a PLC (Programmable Logic Controller). The control device 100 is connected to the device group 60 via the field bus 52.
[0039] The control device 100 has control logic (hereinafter also referred to as "PLC engine") for controlling facilities and / or machines.
[0040] The control device 100 collects data (hereinafter also referred to as "input data") transferred from the device group 60 to the control device 100. The collected input data is sequentially stored in the time series database (hereinafter also denoted as "TSDB (Time Series Data Base)") 130 of the control device 100.
[0041] The control device 100 has a prediction model 140 for predictive control.
[0042] It is preferable that an industrial communication protocol is adopted for the field bus 52. Known examples of such communication protocols include EtherCAT (registered trademark), EtherNet / IP (registered trademark), DeviceNet (registered trademark), and CompoNet (registered trademark).
[0043] The device group 60 includes sensors for collecting input data from equipment and / or machines, and actuators that operate according to commands (hereinafter also referred to as “output data”) generated by the control device 100.
[0044] In the configuration example shown in FIG. 4, the device group 60 includes a remote I / O (Input / Output) device 62 , an I / O unit 64 , an image sensor 66 and a camera 68 , as well as a servo driver 70 and a servo motor 72 .
[0045] The remote I / O device 62 includes a communication section that communicates via the field bus 52, and an I / O unit for collecting input data and / or outputting output data.
[0046] The I / O unit may be directly connected to the field bus. FIG. 4 shows an example in which an I / O unit 64 is directly connected to the field bus 52.
[0047] The image sensor 66 performs image measurement processing such as pattern matching on the image data captured by the camera 68, and transmits the processing results to the control device 100.
[0048] The servo driver 70 drives the servo motor 72 in accordance with output data from the control device 100 .
[0049] The information processing device 200 is an information processing device (an example of a computer) that generates programs, parameters, prediction models 140, etc. necessary for the control calculations of the control device 100. The information processing device 200 provides a development environment (program generation and editing tools, parsers, compilers, etc.) for user programs executed by the control device 100, a setting function for setting (configuring) the parameters of the control device 100 and the devices connected to the control device 100, a generation function for generating the prediction model 140, a function for transmitting the generated programs, parameters, prediction model 140, etc. to the control device 100, a function for online modifying and changing user programs executed on the control device 100, and so on.
[0050] <C. Hardware Configuration> Next, the hardware configuration of the main devices constituting the control system 50 according to the present embodiment will be described.
[0051] (c1: Hardware Configuration of Control Device 100) FIG. 5 is a block diagram showing an example of the hardware configuration of the control device 100 constituting the control system 50 according to the present embodiment. Referring to FIG. 5, the control device 100 includes a processor 102 such as a CPU (Central Processing Unit) and an MPU (Micro-Processing Unit), a chipset 104, a main memory device 106, a secondary storage device 108, a USB (Universal Serial Bus) controller 110, a memory card interface 112, a field bus controller 116, and an internal bus controller 118.
[0052] The processor 102 reads out various programs stored in the secondary storage device 108, expands them in the main memory device 106, and executes them to realize the PLC engine and the control system 1. The chipset 104 controls data transmission between the processor 102 and each component.
[0053] In addition to the system program, the secondary storage device 108 stores a user program describing the control logic and a prediction model 140.
[0054] The USB controller 110 controls data exchange with the information processing device 200 via a USB connection.
[0055] The memory card interface 112 is configured to allow a memory card 114 to be attached / detached, and allows data to be written to the memory card 114 and various data (user programs, trace data, etc.) to be read from the memory card 114.
[0056] The internal bus controller 118 is an interface for exchanging data with the I / O units 120-1, 120-2, . . . mounted on the control device 100.
[0057] The fieldbus controller 116 controls the exchange of data with the devices 60 via the fieldbus 52 .
[0058] FIG. 5 shows an example of a configuration in which the processor 102 executes a program to provide necessary functions, but some or all of these provided functions may be implemented using a dedicated hardware circuit (e.g., an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), etc.). The main part of the control device 100 may be realized using hardware that conforms to a general-purpose architecture (e.g., an industrial PC based on a general-purpose PC). In this case, virtualization technology may be used to run multiple operating systems (OSs) with different uses in parallel, and necessary applications may be executed on each OS.
[0059] (c2: Hardware configuration of information processing device 200) Information processing device 200 according to the present embodiment is realized, for example, by executing a program using hardware (for example, a general-purpose personal computer) that complies with a general-purpose architecture.
[0060] Fig. 6 is a block diagram showing an example of a hardware configuration of an information processing device 200 constituting a control system 50 according to the present embodiment. With reference to Fig. 6, the information processing device 200 includes a processor 202 such as a CPU or an MPU, an optical drive 204, a main storage device 206, a secondary storage device 208, a local network controller 210, an input unit 212, a display unit 214, and a USB controller 216. These components are connected via a bus 220.
[0061] The processor 202 reads out various programs stored in the secondary storage device 208, deploys them in the main storage device 206, and executes them to realize various processes including a model generation process, which will be described later.
[0062] The secondary storage device 208 is composed of, for example, a hard disk drive (HDD), a flash solid state drive (SSD), etc. The secondary storage device 208 typically stores a development program 222 for generating a user program to be executed in the information processing device 200, debugging the generated user program, defining a system configuration, setting various parameters, etc., a user interface program 224 for presenting data to a user and accepting instructions from the user, a model generation and update program 226 for realizing the generation of the prediction model 140, etc., and an OS 228. The secondary storage device 208 may store necessary programs other than the programs shown in FIG. 6.
[0063] The information processing program according to this embodiment includes a development program 222 , a user interface program 224 , and a model generation and update program 226 .
[0064] The information processing apparatus 200 has an optical drive 204, and a program stored therein is read from a recording medium 205 (e.g., an optical recording medium such as a DVD (Digital Versatile Disc)) that non-transitorily stores a computer-readable program and installed in a secondary storage device 208 or the like.
[0065] Various programs executed by the information processing apparatus 200 may be installed via a computer-readable recording medium 205, or may be installed in a form downloaded from an arbitrary server on a network. Further, the functions provided by the information processing apparatus 200 according to the present embodiment may be realized by using a part of the modules provided by the OS.
[0066] The local network controller 210 controls the exchange of data with another device via an arbitrary network.
[0067] The input unit 212 is composed of a keyboard, a mouse, etc., and receives user operations.
[0068] The display unit 214 is composed of a display, various indicators, a printer, etc., and outputs the processing result from the processor 202 or the like. Note that the display unit 214 may be separate from the information processing apparatus 200.
[0069] The USB controller 216 controls the exchange of data with the control device 100 via a USB connection.
[0070] FIG. 6 shows a configuration example in which functions necessary for the processor 202 to execute a program are provided. However, part or all of these provided functions may be implemented using a dedicated hardware circuit (e.g., an ASIC or an FPGA).
[0071] <D. Generation of Prediction Model> Next, a method for generating a prediction model 140 for predictive control will be described.
[0072] Fig. 7 is a flowchart showing an example of a processing procedure for generating a prediction model 140 according to the present embodiment. Each step shown in Fig. 7 may be realized by the processor 202 of the information processing device 200 executing programs (such as the development program 222, the user interface program 224, and the model generation and update program 226).
[0073] 7, the information processing device 200 acquires a training data set used to generate the prediction model 140 (step S1). For example, the training data set includes at least a part of the time series data stored in the TSDB 130.
[0074] The information processing device 200 accepts the setting of the prediction point 312 and the prediction start point 314 (step S2) and also accepts the setting of the explanatory variable interval (step S3). That is, the information processing device 200 accepts the setting of the prediction point 312, and the setting of the prediction start point 314 and the explanatory variable interval for the range past the prediction start point 314.
[0075] At this time, the information processing device 200 displays the prediction start point 314 and the prediction point 312 on the display unit 214 in association with the time-series data.
[0076] The information processing device 200 calculates and displays the importance for each explanatory variable (offset position) in the set explanatory variable interval (step S4). Then, the information processing device 200 accepts the selection of one or more explanatory variables (step S5). That is, the information processing device 200 accepts the selection of one or more positions from among multiple position (offset position) candidates in the explanatory variable interval.
[0077] The information processing device 200 evaluates the prediction accuracy based on the selected one or more explanatory variables and displays the evaluation result (step S6). That is, the information processing device 200 calculates the prediction accuracy of the value at the prediction point 312 using the actual value corresponding to the selected one or more explanatory variables based on the time series data of the actual value for the value calculated by the prediction model 140.
[0078] The information processing device 200 judges whether or not generation of a prediction model has been instructed (step S7). When generation of a prediction model is instructed (YES in step S7), the information processing device 200 generates a provisional prediction model based on the values of one or more explanatory variables selected from the learning dataset in accordance with the settings (step S8). That is, the values of the selected explanatory variables (actual values at each offset position) are used to generate the provisional prediction model. Note that one prediction point is associated with one or more explanatory variable values. To generate a prediction model, multiple sets of the value of the prediction point and the value of one or more explanatory variables are usually used.
[0079] The information processing device 200 calculates and displays a predicted waveform using the generated provisional prediction model (step S9).
[0080] The information processing device 200 accepts a selection of whether or not to output a provisional prediction model (step S10). If a selection is given that the provisional prediction model should not be output (NO in step S10), the information processing device 200 re-executes the process of generating a provisional prediction model (steps S1, S2, S3, and S5).
[0081] When a selection is given to output the provisional prediction model (YES in step S10), the information processing device 200 outputs the generated provisional prediction model as the prediction model 140 (step S11), and the process then ends.
[0082] 8 to 11 are schematic diagrams showing examples of user interface screens for generating prediction model 140 according to the present embodiment.
[0083] 8, a user interface screen 300 displayed by information processing device 200 includes a time graph 310 of time-series data corresponding to the predicted controlled variable. A user sets a prediction point 312 on the time axis of time graph 310.
[0084] 9, the user sets a predicted start point 314 on the time axis of the time graph 310. The time length between the predicted point 312 and the predicted start point 314 corresponds to a margin time 320.
[0085] Note that a guide 318 may be displayed to indicate the minimum value of the margin time 320 required for predictive control. In other words, the guide 318 indicates that the prediction start point 314 must be set to the left of the guide 318.
[0086] The user sets a prediction start point 314 on the time axis of the time graph 310. Then, an interval start point 316 indicating the start point of the explanatory variable interval is set. The interval from the interval start point 316 to the prediction start point 314 corresponds to an explanatory variable interval 322.
[0087] Once the prediction point 312, prediction start point 314, and interval start point 316 are set, a candidate list 330 including explanatory variables (offset positions) included in the set explanatory variable interval 322 is displayed on the user interface screen 300, as shown in FIG. 10.
[0088] By checking checkboxes 338 in the candidate list 330, the user uses the checked explanatory variables when generating the prediction model 140. The explanatory variables displayed in the candidate list 330 may correspond to offset positions sampled at each interval set in the interval setting unit 326, for example. When the interval set in the interval setting unit 326 is updated, the explanatory variables (offset positions) displayed in the candidate list 330 may also be updated.
[0089] The candidate list 330 includes an offset position 332 , an importance 334 , and a rank 336 for each explanatory variable included in the explanatory variable interval 322 .
[0090] The offset position 332 indicates a position where a corresponding explanatory variable exists in the explanatory variable interval 322. For the offset position 332, for example, an offset position (time shift) based on the prediction start point 314 may be used.
[0091] The importance 334 indicates how much influence the corresponding explanatory variable has in determining the value of the predicted point 312. As an example, the importance 334 may be a correlation between the corresponding explanatory variable and the value of the predicted point 312.
[0092] The rank 336 indicates the order of magnitude of the importance 334 (for example, correlation by random forest). In the example shown in Fig. 10, the explanatory variables are sorted in ascending order of rank (i.e., ascending order of importance 334).
[0093] The position of the explanatory variables included in the candidate list 330 in the time graph 310 may be visually represented.
[0094] When the user selects explanatory variables by checking the checkboxes 338, the information processing device 200 evaluates the prediction accuracy based on the selected explanatory variables. The evaluation indexes of the prediction accuracy include, for example, a prediction error 340 and a quality characteristic value 342.
[0095] The prediction error 340 indicates the difference between a predicted value calculated using the selected explanatory variables and the actual value of the predicted point 312. For example, the prediction error 340 can be the error (e.g., root mean square error, mean absolute error, coefficient of determination) of an autoregressive model obtained by regression analysis (autoregression) using the values of the selected explanatory variables.
[0096] The quality characteristic value 342 is a value indicating the performance of the predictive control. The quality characteristic value 342 may be calculated based on the value of the prediction error 340. The quality characteristic value 342 may be obtained by using the results of a simulation as described later.
[0097] When the user changes the selection of explanatory variables to be used as explanatory variables, the information processing device 200 updates the prediction error 340 and the quality characteristic value 342.
[0098] When the user selects the model generation button 344, the information processing device 200 generates a prediction model 140 based on the selected one or more explanatory variables (values at one or more offset positions).
[0099] 11, the information processing device 200 may display a predicted waveform 350 calculated using the generated provisional prediction model together with a time graph 310 of the time-series data. The user refers to the predicted waveform 350 of the generated provisional prediction model and the like to determine whether it can be output as the prediction model 140. When the user determines that it can be output as the prediction model 140, the provisional prediction model is output as the prediction model 140.
[0100] By providing a user interface screen 300 such as that shown in FIGS. 8 to 11, the user can generate an appropriate prediction model 140 while appropriately adjusting settings such as the slack time, explanatory variable interval, and explanatory variables.
[0101] In addition, an example was shown in which the user checks the check box 338 of the candidate list 330 to select the corresponding explanatory variable as the explanatory variable of the prediction model 140. However, the information processing apparatus 200 may select the higher-rank explanatory variables by default. In this case, the information processing apparatus 200 calculates the importance of each explanatory variable using, for example, a random forest. Subsequently, the information processing apparatus 200 preferentially excludes the explanatory variables with low importance from all the explanatory variables, and calculates the prediction error in order for the set of the remaining explanatory variables by cross-validation. The information processing apparatus 200 repeats the calculation of the prediction error and provides, as the default, the set of explanatory variables that minimizes the prediction error.
[0102] <E. Simulation of Prediction Control> Next, a simulation of prediction control using the generated provisional prediction model (or the prediction model 140) will be described. The information processing apparatus 200 may simulate the prediction control using the provisional prediction model (or the prediction model 140). The user can also refer to the simulation result of the prediction control to determine the suitability of the prediction model.
[0103] That is, the information processing apparatus 200 simulates the behavior of the control system 1 including the prediction model 140 and evaluates the result of the simulation.
[0104] During the generation of the prediction model 140 or after the generation of the prediction model 140, the information processing apparatus 200 calculates the time-series data of the control amount y according to the control system shown in FIG. 1 using the provisional prediction model or the prediction model 140.
[0105] FIG. 12 is a schematic diagram showing an example of a simulation of prediction control according to the present embodiment. Referring to FIG. 12, the user interface screen 360 includes a time graph 362 of the simulation result. In the time graph 362, the time-series data 364 of the control amount y by the control system not including the prediction control and the time-series data 366 of the control amount y by the control system including the prediction control are displayed.
[0106] More specifically, the information processing apparatus 200 (simulator 260 shown in FIG. 13) calculates the effect of the prediction compensation unit 10 based on the difference (e.g., convergence time, etc.) of the output value y when the same input data (the measured value of the output value y of the control target 4) is given to the original control system 1 including the prediction compensation unit 10 that calculates the compensation amount u1 using the temporary prediction model or the prediction model 140, and a control system that does not include the prediction compensation unit 10 that calculates the compensation amount u1 using the temporary prediction model or the prediction model 140 (i.e., only the PID controller 2).
[0107] The time graph 362 may display the time required for the control amount y to converge within the predetermined range of the target value r. FIG. 12 shows, as an example, the convergence time 368 by a control system that does not include predictive control, and the convergence time 370 by a control system that includes predictive control.
[0108] The user interface screen 360 includes the evaluation result 372 by the simulation of predictive control. The evaluation result 372 may include the convergence time as a value indicating the performance of predictive control (the effect by the prediction compensation unit 10). By referring to the evaluation result 372, the user can evaluate the performance of predictive control by the temporary prediction model being generated or the generated prediction model 140.
[0109] Note that if the user determines that predictive control cannot sufficiently exhibit its performance, the user may regenerate the prediction model 140 or the like.
[0110] <F. Functional Configuration> Next, the functional configuration of the control system 50 according to the present embodiment will be described.
[0111] FIG. 13 is a block diagram showing an example of the functional configuration of the control device 100 and the information processing apparatus 200 that constitute the control system 50 according to the present embodiment.
[0112] 13, a user program 150 executed by the control device 100 includes a PID controller 2, a predictor 12, and a corrector 14. These components correspond to a control system 1 that performs predictive control. A prediction model 140 provided from the information processing device 200 is applied to the corrector 14.
[0113] The control device 100 manages process variables 160 including input data, output data, and internal data. For pre-specified variables among the process variables 160, time-series data is stored in the TSDB 130.
[0114] The information processing device 200 includes, as main functional components, a model generation unit 250, a setting reception unit 252, an accuracy calculation unit 254, a display control unit 256, an evaluation unit 258, and a simulator 260. These functional components may be realized by the processor 202 of the information processing device 200 executing programs (such as a development program 222, a user interface program 224, and a model generation and update program 226).
[0115] The model generating unit 250 corresponds to a generating unit, and generates the prediction model 140 using the selected one or more explanatory variables (the actual values at the selected one or more positions (offset positions)).
[0116] The setting reception unit 252 corresponds to a reception unit, and receives the setting of the prediction point 312, and the setting of the prediction start point 314 and the explanatory variable interval 322 for the range past the prediction start point 314. The setting reception unit 252 also receives the selection of one or more positions from among multiple position (offset position) candidates in the explanatory variable interval 322.
[0117] When the guide 318 (see FIG. 9) is displayed, the setting receiving section 252 may limit the time difference between the predicted start point 314 and the predicted point 312 so that it exceeds a predetermined minimum value.
[0118] For convenience of explanation, a configuration in which the setting reception unit 252 receives user settings is illustrated as an example, but a setting reception unit may be provided for each setting.
[0119] The accuracy calculation unit 254 corresponds to a calculation unit, and evaluates the prediction accuracy based on the selected one or more explanatory variables. As an example, the accuracy calculation unit 254 calculates the prediction accuracy of the value at the prediction point 312 using the values (actual values at the offset position) of the selected one or more explanatory variables based on the time series data of the actual value of the value (e.g., the predicted controlled variable y^) calculated by the prediction model 140. More specifically, the accuracy calculation unit 254 calculates the prediction error by regression analysis using the values (actual values at the offset position) of the selected one or more explanatory variables.
[0120] The display control unit 256 controls the display content on the display unit 214. As an example, the display control unit 256 causes the display unit 214 to display the prediction start point 314 and the prediction point 312 in association with the time series data. That is, the display control unit 256 displays and outputs the prediction start point 314 and the prediction point 312 in association with the time series data.
[0121] In addition, "display output" means generating and outputting signals and / or data necessary for the display unit 214 included in the information processing device 200 and / or any display unit external to the information processing device 200 to output an image or video.
[0122] The evaluation unit 258 evaluates the results of the simulation performed by the simulator 260 .
[0123] The simulator 260 simulates the behavior of the control system 1 that performs predictive control including the predictive model 140.
[0124] The simulator 260 may be arranged in the control device 100, not in the information processing device 200. The simulator 260 may be executed using a computing resource other than the control device 100 and the information processing device 200.
[0125] Furthermore, the functional configuration included in the information processing apparatus 200 may be realized using a plurality of computing resources. Also, all or part of the functional configuration included in the information processing apparatus 200 may be realized on a cloud environment.
[0126] As described above, the control system 50 according to the present embodiment can be implemented in any form according to the required performance, available resources, and the like.
[0127] <G. Modification Example> In the above description, an example of the prediction model 140 that calculates the predicted control amount ŷ from the control amount y is shown, but a prediction model 140 that calculates the predicted control amount ŷ from the control amount y and the operation amount u may be employed.
[0128] Also, in addition to the control amount y and the operation amount u, or instead of the control amount y and the operation amount u, another variable may be selected as an explanatory variable. In this case, variables that can be selected as explanatory variables may be displayed in the candidate list 330 (see FIG. 9). The user can appropriately select a variable suitable for calculating the predicted control amount ŷ.
[0129] <H. Supplementary Note> The present embodiment as described above includes the following technical ideas.
[0130] [Configuration 1] An information processing apparatus (200) for generating a prediction model (140), wherein the prediction model is for calculating values at prediction points (312) in the future by a predetermined margin time (320) from a prediction start point (314) at the prediction start point, a reception unit (252) that receives setting of the prediction points, setting of an explanatory variable section (322) for a range in the past from the prediction start point including the prediction start point, and selection of one or a plurality of positions (332) for a plurality of position candidates in the explanatory variable section; and a calculation unit (254) that calculates a prediction accuracy (340) of the value at the prediction point using actual values at the selected one or more positions based on time series data of actual values for the values calculated by the prediction model.
[0131] [Configuration 2] 2. The information processing device according to configuration 1, further comprising a display control unit (256) for displaying and outputting the prediction start point and the prediction point in association with the time series data.
[0132] [Configuration 3] 3. The information processing device according to configuration 1 or 2, further comprising a generating unit (250) that generates the prediction model using actual values at the selected one or more positions.
[0133] [Configuration 4] 4. The information processing device according to configuration 2 or 3, wherein the display control unit displays and outputs a predicted waveform (350) calculated using the generated prediction model together with the time-series data.
[0134] [Configuration 5] A simulator (260) for simulating the behavior of a control system including the predictive model is further provided, The information processing device according to any one of configurations 1 to 4, wherein the simulator calculates an effect of the predictive compensation unit based on a difference in output values when identical input data is given to a first control system (1) including a predictive compensation unit (10) that calculates a compensation amount using the predictive model, and a second control system that does not include a predictive compensation unit that calculates a compensation amount using the predictive model.
[0135] [Configuration 6] 6. The information processing device according to any one of configurations 1 to 5, wherein the reception unit limits the time difference between the prediction start point and the prediction point so as to exceed a predetermined minimum value.
[0136] [Configuration 7] An information processing method executed by a computer (200) for generating a prediction model (140), wherein the prediction model is for calculating values at prediction points (312) in the future by a predetermined margin time (320) from a prediction start point (314) at the prediction start point, receiving (S2) settings of the prediction points and a setting of an explanatory variable section (322) for a range in the past from the prediction start point including the prediction start point; receiving (S3) selection of one or more positions (332) for a plurality of position candidates in the explanatory variable section; calculating (S6) a prediction accuracy (340) of the value at the prediction point using the actual value at the selected one or more positions based on time series data of actual values for the value calculated by the prediction model. An information processing method comprising:
[0137] [Configuration 8] An information processing program (222, 224, 226) for generating a prediction model (140), wherein the prediction model is for calculating values at prediction points (312) in the future by a predetermined margin time (320) from a prediction start point (314) at the prediction start point, and the information processing program causes a computer (200) to receive (S2) settings of the prediction points and a setting of an explanatory variable section (322) for a range in the past from the prediction start point including the prediction start point; receive (S3) selection of one or more positions (332) for a plurality of position candidates in the explanatory variable section; calculate (S6) a prediction accuracy (340) of the value at the prediction point using the actual value at the selected one or more positions based on time series data of actual values for the value calculated by the prediction model. An information processing program that causes execution of:
[0138] <I. Advantages> In the control system according to the present embodiment, in the process of generating a prediction model from collected time series data, the prediction point and prediction start point (slack time), explanatory variable interval, and explanatory variables can be optimized by referring to information provided on a user interface screen. That is, to assist the user in setting, the importance of each explanatory variable is displayed, and an evaluation index of prediction accuracy is displayed based on the selected explanatory variable. Furthermore, a predicted waveform is also displayed based on the generated provisional prediction model. By referring to such information, the user can optimize the prediction model by trial and error.
[0139] The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, not the above description, and is intended to include all modifications within the scope and meaning equivalent to the claims. [Explanation of symbols]
[0140] 1 control system, 2 PID controller, 4 controlled object, 6 subtractor, 8 adder, 10 predictive compensation unit, 12 predictor, 14 corrector, 50 control system, 52 field bus, 60 device group, 62 remote I / O device, 64, 120 I / O unit, 66 image sensor, 68 camera, 70 servo driver, 72 servo motor, 100 control device, 102, 202 processor, 104 chip set, 106, 206 main memory device, 108, 208 secondary memory device, 110, 216 USB controller, 112 memory card interface, 114 memory card, 116 field bus controller, 118 internal bus controller, 130 time series database (TSDB), 140 predictive model, 150 user program, 160 process variable, 200 information processing device, 204 optical drive, 205 recording medium, 210 local network controller, 212 input section, 214 display section, 220 bus, 222 development program, 224 user interface program, 226 update program, 228 OS, 250 model generation section, 252 setting reception section, 254 accuracy calculation section, 256 display control section, 258 evaluation section, 260 simulator, 300, 360 user interface screen, 310, 362 time graph, 312 prediction point, 314 prediction start point, 316 interval start point, 318 guide, 320 slack time, 322 explanatory variable interval, 326 interval setting section, 330 candidate list, 332 offset position, 334 importance, 336 rank, 338 check box, 340 prediction error, 342 quality characteristic value, 344 model generation button, 350 prediction waveform, 364, 366 time series data, 368, 370 Convergence time, 372 evaluation results.
Claims
1. An information processing device for generating a prediction model, the prediction model being for calculating, at a prediction start point, a value at a prediction point that is a predetermined margin time from the prediction start point in the future, a reception unit that receives a setting of the prediction point, a setting of an explanatory variable interval for a range including the prediction start point and past the prediction start point, and a selection of one or a plurality of positions from a plurality of position candidates in the explanatory variable interval; and a calculation unit that calculates prediction accuracy of the value at the prediction point using actual values at the selected one or more positions based on time series data of actual values for the values calculated by the prediction model.
2. The information processing device according to claim 1 , further comprising a display control unit for displaying and outputting the prediction start point and the prediction point in association with the time series data.
3. The information processing apparatus according to claim 2 , further comprising a generating unit configured to generate the prediction model using actual values at the selected one or more positions.
4. The information processing device according to claim 3 , wherein the display control unit displays and outputs a predicted waveform calculated using the generated prediction model together with the time-series data.
5. A simulator that simulates the behavior of a control system including the predictive model is further provided. The information processing device according to any one of claims 1 to 4, wherein the simulator calculates an effect of the predictive compensation unit based on a difference in output values when identical input data is given to a first control system including a predictive compensation unit that calculates a compensation amount using the predictive model and a second control system that does not include a predictive compensation unit that calculates a compensation amount using the predictive model.
6. 5. The information processing device according to claim 1, wherein the reception unit limits the time difference between the prediction start point and the prediction point so as to exceed a predetermined minimum value.
7. 1. An information processing method executed by a computer for generating a prediction model, the prediction model being for calculating, at a prediction start point, a value at a prediction point that is a predetermined margin time from the prediction start point in the future, receiving a setting of the prediction point and a setting of an explanatory variable interval for a range including the prediction start point and past the prediction start point; accepting a selection of one or more locations for a plurality of location candidates in the explanatory variable interval; and calculating a prediction accuracy of the value at the prediction point using actual values at the selected one or more locations based on time series data of actual values for the values calculated by the prediction model.
8. An information processing program for generating a prediction model, the prediction model being for calculating, at a prediction start point, a value at a prediction point a predetermined margin time into the future from the prediction start point, the information processing program being configured to: receiving a setting of the prediction point and a setting of an explanatory variable interval for a range including the prediction start point and past the prediction start point; accepting a selection of one or more locations for a plurality of location candidates in the explanatory variable interval; and calculating a prediction accuracy of the value at the prediction point using actual values at the selected one or more positions based on time series data of actual values for the values calculated by the prediction model.
Citation Information
Patent Citations
Control apparatus, control method, and control program
JP2020135757A
Information processing system, information processing method, and information processing program
WO2017094207A1
