Machine learning program, machine learning method, and estimation device
By classifying traffic objects into groups and using summary parameters in an attention model, the method addresses the challenge of long input sequences in deep learning for traffic prediction, achieving accurate and interpretable traffic flow estimation.
Patent Information
- Application Number
- JP2021030320
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-02-26
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-02-26
AI Technical Summary
The use of deep learning to replace simulation for predicting traffic congestion results in long input sequences due to the large number of simulation parameters, leading to increased calculation costs and potential failure of machine learning processes.
A machine learning program and method that involves classifying moving objects into groups based on their movement attributes, generating summary parameters representing the number of objects in each group, and inputting these parameters into an attention model to estimate traffic flow, thereby reducing the number of parameters and facilitating efficient prediction.
The solution enables efficient estimation of traffic flow with high prediction accuracy and interpretability, allowing for the construction of a reliable surrogate model that accurately substitutes for simulation while ensuring the validity of predictions.
Smart Images

Figure 0007543944000005 
Figure 0007543944000007 
Figure 0007543944000008
Abstract
Description
[Technical field]
[0001] The present invention relates to a machine learning program, a machine learning method, and an estimation device. [Background technology]
[0002] In recent years, the concentration of population in cities has caused various social problems such as chronic traffic congestion, noise, air pollution, etc. Therefore, optimizing social systems such as transportation systems has become an important issue in each city.
[0003] For example, the movement of people in a city generates pedestrian and traffic flows. Therefore, for the safety and security of people in the city, it is desirable to manage pedestrian and traffic flows to prevent congestion. Methods for managing pedestrian and traffic flows include urban planning, development of traffic networks, and guidance using signals and incentives.
[0004] In order to effectively manage pedestrian and traffic flows, it is important to predict the occurrence of congestion and the effectiveness of congestion alleviation measures. Therefore, the design of social systems using simulations of pedestrian and traffic flows has attracted attention. For example, by evaluating each method of managing pedestrian and traffic flows using simulations and feeding back the evaluation results, management can be made more efficient. Simulations also have the advantage of being less costly than conducting social experiments.
[0005] There is a method called agent simulation for simulating people and traffic flows. An agent is an entity that makes decisions independently, and agent simulation is a simulation performed at the behavioral level of the agent.
[0006] However, when trying to find the optimal policy through simulation, the simulation must be run repeatedly, which incurs a huge computational cost. Therefore, technologies that replace simulation with deep learning technology have been proposed. For example, there is a method called the surrogate model method, which learns the relationship between various urban conditions and congestion obtained through simulation, and quickly predicts congestion in unknown conditions using a trained model. By replacing simulation with deep learning technology, it is possible to reduce CPU (Central Processing Unit) usage and shorten the time, making it possible to find the optimal policy at low cost.
[0007] One possible machine learning method for the relationship between urban conditions and congestion is to learn the input and output of the system using normal machine learning methods for time-series data. For example, each parameter used in the simulation can be treated as a feature of a recurrent neural network such as LSTM (Long-Short Term Model), and learning can be performed with the correct label being the congestion situation at each time. [Prior art documents] [Non-patent literature]
[0008] [Non-Patent Document 1] Yamada, H., Ohori, K., Iwao, T., Kira, A., Kamiyama, ., Yoshida, H., & Anai, H., “Modeling and managing airport passenger flow under uncertainty: A case of fukuokaairport in Japan”, Social Informatics -9th International Conference, SocInfo2017, Proceedings, pp. 419-430, Vol. 10540, Lecture Notes in Computer Science, Springer Verlag, 2017. [Non-Patent Document 2] KarevanZ, SuykensJAK. “Transductive LSTM for time-series prediction: An application to weather forecasting”, Neural Networks: the Official Journal of the International Neural Network Society, Vol. 125 pp. 1-9, 08 Jan 2020. Summary of the Invention [Problem to be solved by the invention]
[0009] However, when replacing simulation with deep learning, if the parameters used in the simulation are used as is, the input sequence becomes long because of the huge number of parameters used in the simulation. When the input sequence becomes long, the increase in the amount of calculation becomes significant, and there is a risk that machine learning will not progress.
[0010] The disclosed technology has been made in consideration of the above, and aims to provide a machine learning program, a machine learning method, and an estimation device that efficiently estimate pedestrian flow and traffic flow. [Means for solving the problem]
[0011] In one embodiment of the machine learning program, the machine learning method, and the estimation device disclosed in the present application, the following processes are executed by a computer: A process of acquiring a first parameter representing an environment and a second parameter representing an attribute of movement of each of a plurality of moving objects in the environment; A process of classifying the plurality of moving objects into a plurality of groups based on the second parameter; A process of generating a third parameter indicating the number of moving objects classified into each of the plurality of groups; A process of inputting the first parameter and the third parameter into a machine learning model to generate estimated information regarding the movement of the plurality of moving objects in the environment. Effect of the Invention
[0012] In one aspect, the present invention is capable of efficiently estimating people and traffic flows. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a block diagram of an estimation device according to an embodiment. [Diagram 2] FIG. 2 is a diagram showing an example of a target of agent simulation. [Diagram 3] FIG. 3 is a diagram showing a storage state of parameter information. [Figure 4] FIG. 4 is a diagram for explaining the segmentation of agents. [Diagram 5] FIG. 5 is a diagram showing an example of parameter information of a segment. [Figure 6] FIG. 6 is a diagram for explaining an overview of machine learning using the attention model. [Figure 7] FIG. 7 is a flowchart of a training process for a surrogate model of an agent simulation performed by the estimation device according to the embodiment. [Figure 8] FIG. 8 is a flowchart of a prediction process of an agent simulation performed by the estimation device according to the embodiment. [Figure 9] FIG. 9 is a diagram showing a comparison of prediction accuracy with other summarization methods. [Figure 10] FIG. 10 is a diagram illustrating an example of a prediction result using the attention model by the estimation device according to the embodiment. [Figure 11] FIG. 11 is a diagram illustrating an example of a hardware configuration of an estimation device according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, examples of the machine learning program, the machine learning method, and the estimation device disclosed in the present application will be described in detail with reference to the drawings. Note that the machine learning program, the machine learning method, and the estimation device disclosed in the present application are not limited to the following examples. EXAMPLES
[0015] FIG. 1 is a block diagram of an estimation device according to an embodiment. The estimation device 1 according to the embodiment performs training using the results of execution of a plurality of agent simulations and information on parameters used in those agent simulations as training data, and constructs a surrogate model of the agent simulation. Then, the estimation device 1 estimates people flow from information on parameters in the state of the estimation target using the constructed surrogate model. In this embodiment, the estimation of people flow is performed by estimating the change in congestion over time. In the following description, the estimation of people flow in a city that is the estimation target will be described as an example. As shown in FIG. 1, the estimation device 1 has a control unit 10, an estimation unit 20, a simulation information storage unit 30, and an output unit 40.
[0016] The simulation information storage unit 30 stores the execution results of multiple agent simulations that have already been executed and the parameter values of each agent simulation. The parameters in an agent simulation are information that represents the city situation, and include the city's infrastructure and transportation needs. Hereinafter, the parameters used when executing an agent simulation are referred to as "simulation parameters." Simulation parameters are expressed as values that digitize the following information:
[0017] Parameters that represent the infrastructure of a city are called environmental parameters. The environmental parameters are, for example, the properties of the nodes in the simulation target and information on the network that connects each node. Nodes in a city are, for example, various facilities such as shops and plazas. The properties of a node are, for example, the processing speed of a shop. And the network represents roads and the like, and is information that represents, for example, how shops are connected to each other. These environmental parameters are an example of a "first parameter."
[0018] Moreover, parameters that represent travel needs are called agent parameters, and are information given to each agent, which is an entity that makes decisions independently. Agent parameters are information related to the travel of each agent, such as what route each agent will use, when they will arrive, and when they will give up on arriving. These agent parameters are an example of "second parameters."
[0019] FIG. 2 is a diagram showing an example of a target of agent simulation. For example, FIG. 2 shows a city situation in which a plurality of nodes 31 are connected by roads 32. This city situation corresponds to the environment to be learned. An agent P moves through a city having nodes 31 and roads 32. There are many agents P, each of which is a different target. By performing an agent simulation, the movement of each agent P in the city is calculated, and the congestion status of each node 31 and road 32 at each time is found.
[0020] The control unit 10 uses information stored in the simulation information storage unit 30 to train an Attention model, which is a type of RNN (Recurrent Neural Networks). The Attention model is a model that calculates weights using input vectors and outputs an arbitrary vector from an index vector based on the weights. When training, the control unit 10 uses parameters that summarize the simulation parameters as training data. Details of the control unit 10 will be described below. In the following, the summarized simulation parameters will be referred to as "simulation summary parameters". As shown in FIG. 1, the control unit 10 has a parameter acquisition unit 11, a classification unit 12, and a machine learning unit 13.
[0021] The parameter acquisition unit 11 acquires the values of simulation parameters used in an executed agent simulation from the simulation information storage unit 30. Fig. 3 is a diagram showing a storage state of parameter information. The parameter acquisition unit 11 acquires simulation parameters 101 shown in Fig. 3. The simulation parameters 101 store the values of each parameter.
[0022] The parameter acquisition unit 11 has model knowledge 110 indicating in what configuration the parameter values are stored in the acquired simulation parameters 101. For example, the parameter acquisition unit 11 has model knowledge 110 in which the values of the environmental parameters are stored in the first area 112 of the parameters 101, and the values of the agent parameters are stored in the other area 113. Furthermore, the model knowledge 110 includes information that the area 113 has areas 131 to 133 each including three parameters. The model knowledge 110 indicates that information on different agents is stored in each of the areas 131 to 133. For ease of understanding, the simulation parameters 101 have one environmental parameter and three pieces of agent parameter information including information on three parameters, but there is no particular limit to the number of these. There may be a plurality of environmental parameters, and there may be a greater number of agent parameters.
[0023] The parameter acquisition unit 11 acquires the values of agent parameters for each agent from the acquired simulation parameters 101 according to the model knowledge 110. For example, the parameter acquisition unit 11 acquires the values of three agent parameters of the first agent from the area 131 of the simulation parameters 101. The parameter acquisition unit 11 also acquires information on three agent parameters of the second agent from the area 132. The parameter acquisition unit 11 also acquires the value of an agent parameter of the third agent from the area 131. Then, the parameter acquisition unit 11 outputs the values of each agent parameter for each agent in each executed agent simulation to the classification unit 12.
[0024] The classification unit 12 receives an input of the value of each agent parameter for each agent in the executed agent simulation from the parameter acquisition unit 11. Next, the classification unit 12 segments the agents based on the similarity from the value of each agent parameter. For example, the classification unit 12 executes the segmentation of the agents by clustering the information of the agent parameters using K-means.
[0025] Fig. 4 is a diagram for explaining the segmentation of agents. For example, when the parameter 101 of the simulation in Fig. 3 is used, the classification unit 12 acquires parameter values 141 to 143 including three parameter values as shown in Fig. 4 as the values of each agent parameter. In this case, the classification unit 12 classifies an agent having parameter value 141 and an agent having parameter value 143 into the same cluster based on the similarity of the parameter values. In addition, the classification unit 12 classifies an agent having parameter value 142 into a cluster different from the agents having parameter value 141 and parameter value 143.
[0026] Next, the classification unit 12 labels each of the clusters generated by the clustering as one segment. For example, as shown in labeling 144, the classification unit 12 classifies a cluster including agents corresponding to parameter value 141 and parameter value 143 as segment #1, and a cluster including an agent corresponding to parameter value 142 as segment #2.
[0027] The classification unit 12 then counts the number of agents belonging to each segment. The classification unit 12 then sets the counting result for each segment as the parameter value of each segment. FIG. 5 is a diagram showing an example of segment parameter information. For example, when labeling is performed as shown in FIG. 4, the classification unit 12 sets the value of segment #1 to 2 and the value of segment #2 to 1, as shown in table 150.
[0028] This allows the classification unit 12 to summarize the agent parameters as segment parameters. For example, the classification unit 12 can summarize nine agent parameters included in the simulation parameters 101 in Fig. 3 into two segment parameters as shown in table 150 in Fig. 5. Here, a segment is a grouping of similar agents, and the meaning expressed by the segment can be easily grasped. More specifically, it can be said that the central points of the agents included in each segment represent the meaning of the segment.
[0029] The segment parameter is an example of a "third parameter." Then, the classification unit 12 classifies the agents, which are moving bodies, into a plurality of groups based on the agent parameter, which is the second parameter. Then, the classification unit 12 generates a segment parameter, which is a third parameter, indicating the number of agents, which are moving bodies, classified into each of the plurality of groups.
[0030] Then, for each executed agent simulation, the classification unit 12 generates summary parameters of the simulation by combining the information of the generated parameters of each segment with the environmental parameters. Then, the classification unit 12 outputs the generated summary parameter values of the simulation as training data to the machine learning unit 13. In this case, since the summary parameter values of the simulation including the parameter values of each segment become training data to be input to the Attention model, it can be said that the classification unit 12 has reduced the training data by summarizing the parameters of the simulation.
[0031] Returning to FIG. 1, the description will be continued. The machine learning unit 13 receives training data including information on summary parameters of each executed agent simulation from the classification unit 12. Next, the machine learning unit 13 acquires the execution results of each executed agent simulation from the simulation information storage unit 30. Then, the machine learning unit 13 inputs the acquired training data to the Attention model to obtain a predicted value of the congestion state at each time. Then, the machine learning unit 13 trains the Attention model using the execution results of the executed agent simulation as the correct answer label of the congestion state at each time, thereby making the Attention model learn the relationship between the summary parameters of the simulation and the change in congestion over time. After that, the machine learning unit 13 outputs the trained Attention model to the estimation execution unit 16 of the estimation unit 20. This Attention model is an example of a "machine learning model". And the predicted value of the congestion state at each time in the city is "estimated information on the movement of multiple mobile bodies in an environment".
[0032] Fig. 6 is a diagram for explaining an overview of machine learning using an Attention model. Here, an overview of machine learning using the Attention model by the machine learning unit 13 will be explained with reference to Fig. 6.
[0033] The Attention model according to the present embodiment includes an encoder and a decoder. The machine learning unit 13 inputs the parameters P1 to Pn, which are information on each parameter, to the Attention model in order in the encoder. Here, the machine learning unit 13 inputs the next parameter to the Attention model in a state in which the previous parameter has been input, and repeats the process of acquiring the next internal state. The machine learning unit 13 acquires the internal states h-s0 to h-sn when the parameters P1 to Pn are input by the encoder. On the decoder side, the machine learning unit 13 uses the output data when the last parameter Pn on the encoder side is input as input data for the first input at time 0. After that, the machine learning unit 13 uses the output data of the previous time as input data for the next time.
[0034] Then, the machine learning unit 13 calculates the internal state h t The inner product of each internal state of the encoder output when each of the parameters P1 to Pn is input to the encoder is calculated to obtain a similarity score. In FIG. 6, each internal state is represented by h s0 ~h sn Next, the machine learning unit 13 calculates the attention weight a by taking the softmax of each score and using the following formula (1). t Calculate (s0).
[0035]
number
[0036] Next, the machine learning unit 13 creates a context vector by taking the sum of the weighted values of each internal state of the encoder by the attention weight represented as at(s0) using the following formula (2): ct is a context vector for the internal state at time t.
[0037]
number
[0038] Next, the machine learning unit 13 generates a vector (in FIG. 6, h t ) is used to predict time t. The machine learning unit 13 then adjusts the parameters of the Attention model so as to minimize the difference between the prediction result at time t and the execution result of the simulation.
[0039] Here, in this embodiment, the machine learning unit 13 performs machine learning using an Attention model, but it is also possible to use other RNNs. For example, the machine learning unit 13 may use LSTM or Sequence-to-Sequence as a machine learning model.
[0040] The estimation unit 20 predicts the time change of congestion in the estimation target using a trained Attention model based on the parameter values of each simulation in the initial state when a simulation is performed in the estimation target city. This estimation target city is an example of a "second environment." Details of the estimation unit 20 will be described below. As shown in FIG. 1, the estimation unit 20 has an estimation target parameter acquisition unit 21, an estimation data generation unit 22, and an estimation execution unit 23. Hereinafter, the parameter values of each simulation in the initial state when a simulation is performed in the estimation target city are referred to as the simulation parameter values in the estimation target.
[0041] The estimation target parameter acquisition unit 21 receives input of parameter values of a simulation of the estimation target from the user terminal 2. Next, the estimation target parameter acquisition unit 21 extracts agent parameter values from the parameter values of the simulation acquired using the model knowledge. Thereafter, the estimation target parameter acquisition unit 21 outputs the extracted agent parameter values to the estimation data generation unit 22. The agent of this estimation target is an example of a "second plurality of moving objects." Moreover, the agent parameter of this estimation target is an example of a "fifth parameter."
[0042] The estimation data generation unit 22 receives input of agent parameter values included in the parameters of the simulation of the estimation target from the estimation target parameter acquisition unit 21. Next, the estimation data generation unit 22 acquires agent parameter values for each agent belonging to each cluster generated by the classification unit 12. Then, the estimation data generation unit 22 calculates the center point of each cluster using the acquired agent parameter values.
[0043] Next, the estimation data generating unit 22 calculates the distance between each agent and the center point of each cluster using the agent parameter value of each agent. Next, the estimation data generating unit 22 assigns each agent to the cluster with the closest distance. Next, the estimation data generating unit 22 counts the agents for each segment corresponding to each cluster. Then, the estimation data generating unit 22 replaces the agent parameters with the segment parameters, thereby summarizing the agent parameters included in the simulation parameters of the estimation target as the segment parameters. The segment parameters of this estimation target are an example of the "sixth parameter". Next, the estimation data generating unit 22 generates estimation data by combining the segment parameter values with the environmental parameter values. The environmental parameters of this estimation target are an example of the "sixth parameter". After that, the estimation data generating unit 22 outputs the generated estimation data to the estimation execution unit 23.
[0044] The estimation execution unit 23 acquires a trained Attention model as a surrogate model for the agent simulation from the machine learning unit 13 of the control unit 10. Next, the estimation execution unit 23 receives an input of estimation data including agent parameters summarized as segment parameters from the estimation data generation unit 22. Then, the estimation execution unit 23 inputs the estimation data to the trained Attention model to acquire an estimation result of the change in congestion over time, and predicts the change in congestion over time in the estimation target.
[0045] The output unit 40 acquires the prediction result of the time change of congestion in the estimation target from the estimation execution unit 23 of the estimation unit 20. Then, the output unit 40 transmits the prediction result of the time change of congestion in the estimation target to the user terminal 2.
[0046] 7 is a flowchart of a training process of a surrogate model of an agent simulation by the estimation device 1 according to the embodiment. Next, a flow of the training process of a surrogate model of a simulation by the estimation device 1 according to the embodiment will be described with reference to FIG.
[0047] The parameter acquisition unit 11 acquires the parameter values of the agents of each agent simulation that has already been executed from the simulation information storage unit 30 (step S101).
[0048] Next, the parameter acquisition unit 11 uses the model knowledge to extract agent parameters from the acquired parameters of each simulation (step S102).
[0049] The classification unit 12 determines the number of segments based on a specification from the user or the like (step S103).
[0050] Next, the classification unit 12 acquires the values of the agent parameters in each executed agent simulation from the parameter acquisition unit 11. Then, the classification unit 12 calculates the similarity between each agent using the values of the agent parameters (step S104).
[0051] Next, the classification unit 12 executes clustering of the agents using the calculated similarity (step S105).
[0052] Next, the classification unit 12 performs labeling representing a segment on each cluster, and executes segmentation of the agents. Then, the classification unit 12 counts the number of agents for each segment (step S106).
[0053] Next, the classification unit 12 summarizes the agent parameters as parameters of segments each having the number of agents belonging to a segment as a value (step S107).
[0054] Next, the classification unit 12 combines the summarized parameters of the agent parameters with the environmental parameters to generate information on the summarized parameters of the agent in each agent simulation (step S108).
[0055] The machine learning unit 13 acquires information on summary parameters of each simulation. The machine learning unit 13 also acquires the execution results of each executed agent simulation from the simulation information storage unit 30. Then, the machine learning unit 13 executes training of the Attention model using the summary parameters of each simulation as input and the execution results of each agent simulation as correct answer labels (step S109).
[0056] 8 is a flowchart of a prediction process of an agent simulation by the estimation device 1 according to the embodiment. Next, a flow of a prediction process of an agent simulation by the estimation device 1 according to the embodiment will be described with reference to FIG.
[0057] The estimation target parameter acquisition unit 21 acquires the values of parameters of a simulation to be estimated (step S201).
[0058] Next, the estimation target parameter acquisition unit 21 uses the model knowledge to extract agent parameters from the information on the parameters of the simulation to be estimated (step S202).
[0059] The estimation data generating unit 22 receives information on agent parameters included in the parameters of the simulation to be estimated from the estimation target parameter acquiring unit 21. The estimation data generating unit 22 also receives an input of cluster information from the classifying unit 12 of the control unit 10. Then, the estimation data generating unit 22 calculates the center point of each cluster (step S203).
[0060] Next, estimation data generating unit 22 calculates the distance between each agent and the center point, and assigns each agent to the closest cluster (step S204).
[0061] Next, estimation data generating unit 22 counts the number of agents for each segment corresponding to each cluster (step S205).
[0062] Then, the estimation data generating unit 22 summarizes the agent parameters as segment parameters having the number of agents belonging to each segment as a value (step S206).
[0063] Next, the estimation data generating unit 22 combines the summarized agent parameters with the environmental parameters to generate information on summarized parameters of the simulation to be estimated (step S207).
[0064] The estimation execution unit 23 acquires the trained Attention model from the machine learning unit 13. Next, it receives input of summary parameter information of the simulation to be estimated from the estimation data generation unit 22. Then, the estimation execution unit 23 inputs the summarized parameter information to the Attention model and predicts the time change of congestion in the estimation target city by the Attention model (step S208). After that, the output unit 40 transmits the prediction result of the time change of congestion in the estimation target city to the user terminal 2.
[0065] Here, the effect of machine learning by the estimation device 1 according to the present embodiment will be described. First, as one method of training a surrogate model, a method of training without summarizing the parameters of the simulation is conceivable, but in that case, there is a possibility that the machine learning will not progress and it will be difficult to obtain an appropriate surrogate model. Therefore, it is desirable to train the surrogate model by summarizing the parameters of the simulation, but there are several summarization methods other than the summarization method executed by the estimation device 1 according to the present embodiment. FIG. 9 is a diagram showing a comparison of prediction accuracy with the case where other summarization methods are used. In FIG. 9, the vertical axis represents Loss, and the horizontal axis represents the learning epoch. Loss is a value representing the difference between the prediction result and the correct answer. It can be said that the smaller the Loss, the better the prediction accuracy.
[0066] As a first summarization method, there is a method of inputting part of the parameter information of the simulation. In this case, specifically, the first 150 steps of the sequence are inputted and the subsequent steps are predicted, and prediction is performed using this first summarization method. In FIG. 9, the result of the first summarization method is represented by graph 201. After 200 epochs of learning, as shown in graph 201, the loss of the first summarization method is 3.513. In this method, the accuracy is poor because the entire simulation parameters are not covered.
[0067] As a second summarization method, there is a method of using parameters of the simulation other than the agent parameters. In this case, the parameters of the simulation other than the agent parameters are input to an Attention model to perform training, and prediction is performed using the trained Attention model. In FIG. 9, the result of the second summarization method is shown in graph 202. After 200 epochs of learning, the loss of the second summarization method is 0.984, as shown in graph 202. In this method, the accuracy is higher than that of the first summarization method because the environmental parameters representing the entire simulation are used, but the accuracy does not improve because the entire simulation parameters are not covered.
[0068] As a third summarization method, there is a method of estimating latent variables of agent parameters using an autoencoder. In this case, an Attention model is trained using the latent variables of the agent parameters estimated using an autoencoder as input, and prediction is performed using the trained Attention model. In FIG. 9, the result of the third summarization method is shown in graph 203. After 200 epochs of learning, as shown in graph 203, the loss of the third summarization method is 0.539. In this method, the summarized parameters cover the entire simulation parameters, so the prediction accuracy is good.
[0069] As a fourth summarization method, there is a method of estimating latent variables by principal component analysis. In this case, an Attention model is trained using the latent variables estimated by principal component analysis as input, and prediction is performed using the trained Attention model. In FIG. 9, the result of the fourth summarization method is shown in graph 204. After 200 epochs of learning, the loss of the fourth summarization method is 0.520, as shown in graph 204. In this method, the summarized parameters cover the entire simulation parameters, so the prediction accuracy is good.
[0070] 9 shows the prediction results by the estimation device 1 according to this embodiment. After 200 epochs of learning, the loss of the prediction results when the estimation device 1 according to this embodiment is used is 0.481, as shown in graph 205. In the case of the estimation device 1 according to this embodiment, the summarized parameters represented by the number of agents included in the segment into which the agents are classified cover the entirety of the simulation parameters, and therefore the prediction accuracy is good.
[0071] As described above, the prediction using the third summarization method, the prediction using the fourth summarization method, and the prediction by the estimation device 1 according to the present embodiment all have the same accuracy. However, the prediction by the estimation device 1 according to the present embodiment is different from the case where the other summarization methods are used in that the prediction is performed using interpretable values. Fig. 10 is a diagram showing an example of a prediction result using an Attention model by the estimation device according to the embodiment.
[0072] Graph 201 is a diagram showing the contribution of each parameter to the prediction at each step. In graph 201, the vertical axis represents the input parameter, and the horizontal axis represents the simulation step. In graph 201, the contribution is represented by brightness. Higher brightness indicates higher contribution.
[0073] As shown in graph 201, in the attention model, it is possible to identify the input values that contribute to the prediction for each input parameter. In other words, if the input values are interpretable, it is possible to examine the validity of the prediction.
[0074] For example, assume that a prediction result such as graph 202 has been obtained. Here, each graph in graph 202 is a prediction result of the congestion situation at each node in the city to be estimated. Each graph in graph 202 represents the number of people staying on the vertical axis and the simulation step on the horizontal axis. In each graph in graph 202, solid line 221 represents the prediction result, and gray area 222 represents the correct answer. In this case, it can be seen that the prediction result represents a roughly correct answer. However, the validity of whether the prediction was made using appropriate information is an issue. Even if the prediction result is close to the correct answer, if the prediction was made under the significant influence of inappropriate information, there is a risk that the result was correct by chance.
[0075] Therefore, the validity of the prediction is examined using the contribution of graph 201. For example, the congestion situation peaks at point 223 of graph 202. In this case, the simulation step is at approximately step 300. In graph 201, at the simulation step of 300, the contribution of the parameters corresponding to region 211 is large. Therefore, if it is possible to interpret what the parameters corresponding to region 211 are, it is possible to determine whether the parameters used in the prediction are correct, and therefore the validity of the prediction can be determined.
[0076] In the estimation device 1 according to the present embodiment, agents are clustered into segments, and the number of agents included in each segment is used as a parameter to summarize the parameters of the simulation. Therefore, each parameter represents each segment, and each segment can be said to be information representative of the characteristics of the agents belonging to it. Therefore, the parameters summarized by the estimation device 1 according to the present embodiment are interpretable. Therefore, it is possible to determine the validity of the prediction made by the estimation device 1 according to the present embodiment.
[0077] In contrast, when using autoencoders or principal component analysis, the summarized parameters do not reflect the meaning of the parameters in the original simulation, making it difficult to interpret the input values. Therefore, it is difficult to judge the validity of predictions made using the third and fourth summarization methods.
[0078] As described above, the estimation device 1 according to the present embodiment has a feature that it can determine the validity of a prediction, unlike cases where other summarization methods are used. Therefore, when a surrogate model of a simulation is generated and a prediction is made, the estimation device 1 according to the present embodiment can determine whether or not the prediction is appropriate, and can construct a surrogate model that appropriately replaces a simulation.
[0079] As described above, the estimation device according to the present embodiment creates parameters that summarize the parameters of the agent simulation, constructs a surrogate model of the agent simulation using the summarized parameters, and predicts people flow and traffic flow. In this way, by reducing the number of parameters, learning progresses reliably, and it becomes possible to construct a surrogate model with high prediction accuracy. In addition, since the summarized parameters used by the estimation device according to the present embodiment have interpretable content, it is possible to determine the validity of the prediction, and it becomes possible to construct an appropriate surrogate model and perform appropriate prediction using the surrogate model.
[0080] 11 is a diagram illustrating an example of a hardware configuration of an estimation device according to an embodiment of the present invention. Next, a hardware configuration for realizing the estimation device 1 according to the present embodiment will be described with reference to FIG.
[0081] 11, the estimation device 1 includes a CPU 91, a memory 92, a hard disk 93, and a network interface 94. The CPU 91 is connected to the memory 92, the hard disk 93, and the network interface 94 via a bus.
[0082] The network interface 94 is a communication interface between the estimation device 1 and an external device. For example, the network interface 94 relays communication between the CPU 91 and the user terminal 2.
[0083] The hard disk 93 is an auxiliary storage device. For example, the hard disk 93 realizes the function of the simulation information storage unit 30. The hard disk 93 may also store an Attention model. Furthermore, the hard disk 93 stores various programs including a machine learning program for realizing the functions of the control unit 10, the estimation unit 20, and the output unit 40 illustrated in FIG. 1.
[0084] For example, the machine learning program is stored in a DVD, which is an example of a recording medium readable by the estimation device 1, and is read from the DVD and installed in the estimation device 1. Alternatively, the machine learning program is stored in a database or the like of another computer system connected via the network interface 94, and is read from the database and installed in the estimation device 1. The installed machine learning program is then stored in the hard disk 93, read into the memory 92, and executed by the CPU 91.
[0085] The CPU 91 reads out various programs from the hard disk 93, develops them on the memory 92, and executes them, thereby implementing the functions of the control unit 10, the estimation unit 20, and the output unit 40 illustrated in FIG. [Explanation of symbols]
[0086] 1 Estimation device 2. User terminal 10 Control section 11 Parameter Acquisition Section 12 Classification section 13 Machine Learning Department 20 Estimation part 21 Estimation target parameter acquisition unit 22 Estimation data generation unit 23 Estimation and Execution Department 30 Simulation information storage unit 40 Output section
Claims
1. acquiring a first parameter representing an environment and a second parameter representing an attribute of movement of each of a plurality of moving objects in the environment; classifying the plurality of moving objects into a plurality of groups based on the second parameter; generating a third parameter indicative of a number of moving objects classified into each of the plurality of groups; inputting the first parameter and the third parameter into a machine learning model to generate inferred information regarding movement of the plurality of moving objects in the environment; A machine learning program that causes a computer to execute processing.
2. 2. The machine learning program according to claim 1, wherein the second parameter is information related to the movement of an entity that makes independent decisions in the environment.
3. The machine learning program according to claim 1 or 2, characterized in that the plurality of moving objects are classified into a plurality of groups such that moving objects having a high similarity in the second parameter belong to the same group.
4. The machine learning program according to any one of claims 1 to 3, further comprising causing the computer to execute a process of training the machine learning model using the generated estimated information and results of a simulation performed using the first parameters and the second parameters.
5. acquiring information on a fourth parameter representing a second environment and a fifth parameter representing an attribute of movement of each of a second plurality of moving objects in the second environment; determining which of the groups each of the plurality of moving objects in the second environment belongs to based on the fifth parameter in the second environment; generating a sixth parameter indicating the number of second moving objects classified into each of the plurality of groups based on the determination result; inputting the fourth parameter and the sixth parameter in the second environment into the trained machine learning model to generate estimated information regarding the movement of the second plurality of moving objects in the second environment; The machine learning program according to claim 4, which causes the computer to execute a process.
6. acquiring a first parameter representing an environment and a second parameter representing an attribute of movement of each of a plurality of moving objects in the environment; classifying the plurality of moving objects into a plurality of groups based on the second parameter; generating a third parameter indicative of a number of moving objects classified into each of the plurality of groups; inputting the first parameter and the third parameter into a machine learning model to generate estimated information regarding movement of the plurality of moving objects in the environment; A machine learning method comprising:
7. acquiring a first parameter representing an environment and a second parameter representing an attribute of movement of each of a plurality of moving objects in the environment; classifying the plurality of moving objects into a plurality of groups based on the second parameter; generating a third parameter indicative of a number of moving objects classified into each of the plurality of groups; inputting the first parameter and the third parameter into a machine learning model to generate estimated information regarding movement of the plurality of moving objects in the environment; An estimation device comprising a control unit that executes processing.
Citation Information
Patent Citations
Learning method, learning program, and learning device
JP2020091756A
Prediction device and predictive model learning device
JP2022088278A
Generating personalized routes incentivized for one or more users
US20170146351A1
Prediction device and prediction method
WO2018131214A1
