Model training method, prediction method, device, system and storage medium

By combining travel volume information and climate data to train the sequence-to-sequence model, the problem of low reliability of travel volume prediction model training in the existing technology is solved, and the accuracy and reliability of travel volume prediction are improved.

CN113780606BActive Publication Date: 2024-09-24JINGDONG CITY BEIJING DIGITS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011006940.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-23
Publication Date
2024-09-24
Estimated Expiration
2040-09-23

AI Technical Summary

Technical Problem

The training reliability of existing travel volume prediction models is low, resulting in low travel volume prediction accuracy. This is mainly because the sample travel volume information is predicted using single-dimensional information.

Method used

By obtaining the travel volume information in each time period and the corresponding climate data in the future time period, the sequence-to-sequence model is trained by combining the two-dimensional information to generate a travel volume prediction model.

Benefits of technology

It improves the accuracy and reliability of the travel volume prediction model, fully considers the correlation between travel volume information and climate data, and enhances the credibility of the prediction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113780606B
    Figure CN113780606B
Patent Text Reader

Abstract

The present application provides a model training method for travel volume prediction, a model-based travel volume prediction method, device, system, electronic device and storage medium, including: inputting the acquired travel volume information of each time period and the climate data of each future time period into the initial sequence-to-sequence model respectively to obtain a travel data sequence corresponding to each future time period, training the sequence-to-sequence model according to the travel data sequence and the travel volume information of each future time period to obtain a travel volume prediction model, introducing the climate data of each future time period and combining the climate data of each future time period with the travel volume information of each time period to train the sequence-to-sequence model, which can achieve the technical effect of improving the accuracy and reliability of the trained travel volume prediction model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of the Internet, artificial intelligence and big data technology, and in particular to a model training method for travel volume prediction, a model-based travel volume prediction method, device, system, electronic device and storage medium. Background Art

[0002] With the development of artificial intelligence technology, various network models have been widely used in various fields. For example, sequence to sequence models (seq2seq models, including encoders and decoders) can be applied to spatiotemporal prediction problems, such as travel flow prediction (including pedestrian flow prediction and vehicle flow prediction, etc.).

[0003] In the prior art, a travel flow training device can collect sample travel volume information (travel volume information of a first time period) and target travel volume information (travel volume information of a second time period, the first time period being the time period before the second time period), and encode the historical travel volume based on an encoder to obtain the encoded information, and decode the encoded information based on a decoder to obtain a travel data sequence, and generate a travel volume prediction model based on the travel data sequence and the target travel volume information.

[0004] However, in the process of implementing the present application, the inventors discovered that the solutions based on the above-mentioned prior art have at least the following technical problems: predicting the travel volume prediction model from one dimension of sample travel volume information may lead to low training reliability, thereby causing the problem of low accuracy of the travel volume prediction model. Summary of the invention

[0005] The embodiments of the present application provide a model training method for travel volume prediction, a model-based travel volume prediction method, device, system, electronic device and storage medium, which are used to solve the problem of low reliability of model training.

[0006] In a first aspect, an embodiment of the present application provides a model training method for travel volume prediction, the method comprising:

[0007] Acquire travel volume training data, wherein the travel volume training data includes travel volume information of each time period and data information of each future time period corresponding to each time period, and the data information includes climate data and travel volume information;

[0008] Inputting the travel volume information of each time period and the climate data of each future time period into the initial sequence into the sequence model respectively, to obtain the travel data sequence corresponding to each future time period;

[0009] The sequence-to-sequence model is trained according to the travel data sequence and the travel volume information of each future time period to obtain a travel volume prediction model, wherein the travel volume prediction model is used to predict the travel volume.

[0010] In some embodiments, the travel volume information of each time period and the climate data of each future time period are respectively input into the initial sequence into the sequence model to obtain the travel data sequence corresponding to each future time period, including:

[0011] Inputting the travel volume information of each time period into the initial sequence into the sequence model to obtain each first training decoded information, and inputting the climate data of each future time period into the sequence into the sequence model to obtain each second training decoded information;

[0012] The sequence-to-sequence model is trained according to each of the first training decoding information and each of the second training decoding information to obtain each of the travel data sequences.

[0013] In some embodiments, the sequence-to-sequence model includes a decoder, the decoder includes a first memory unit and a second memory unit; inputting the travel volume information of each time period into the initial sequence-to-sequence model to obtain each first training decoded information, and inputting the climate data of each future time period into the sequence-to-sequence model to obtain each second training decoded information, including:

[0014] Decoding the travel volume information of each time period based on the first memory unit to obtain each first training decoding information;

[0015] The climate data of each future time period is decoded based on the second memory unit to obtain each second training decoding information.

[0016] In some embodiments, the sequence-to-sequence model is trained according to each of the first training decoding information and each of the second training decoding information to obtain each of the trip data sequences, including:

[0017] Each of the first training decoded information and each of the second training decoded information is concatenated based on the sequence-to-sequence model to obtain each of the travel data sequences.

[0018] In some embodiments, each of the first training decoded information includes a first hidden layer vector and a first cell layer vector; each of the second training decoded information includes a second hidden layer vector and a second cell layer vector.

[0019] In some embodiments, the sequence-to-sequence model includes a decoder, the decoder includes a first memory unit and a second memory unit; each of the trip data sequences includes first training splicing information and second training splicing information; each of the first training decoding information and each of the second training decoding information is spliced ​​based on the sequence-to-sequence model to obtain each of the trip data sequences, including:

[0020] Based on the first memory unit, the first hidden layer vector and the second hidden layer vector are concatenated to generate the first training concatenation information;

[0021] The first cell layer vector and the second cell layer vector are spliced ​​based on the first memory unit to generate the second training splicing information.

[0022] In some embodiments, the sequence-to-sequence model includes a first encoder, a second encoder, and a decoder; the travel volume information of each time period and the climate data of each future time period corresponding to each time period are respectively input into the initial sequence-to-sequence model to obtain a travel data sequence corresponding to each future time period, including:

[0023] Encoding the travel volume information of each time period based on the first encoder to obtain each first training encoding information, and encoding the climate data of each future time period based on the second encoder to obtain each second training encoding information;

[0024] Each of the trip data sequences is generated based on the decoder decoding each of the first training coded information and each of the second training coded information.

[0025] In some embodiments, the travel volume information of each time period and the travel volume information of each future time period are stored in the first platform, and the climate data of each future time period is stored in the second platform.

[0026] In a second aspect, an embodiment of the present application provides a model-based travel volume prediction method, the method comprising:

[0027] Acquiring data to be predicted, wherein the data to be predicted includes climate data of a time period to be predicted and travel volume information of a historical time period before the time period to be predicted;

[0028] The data to be predicted is predicted according to a travel volume prediction model to obtain travel volume information for the time period to be predicted, wherein the travel volume prediction model is generated based on the method described in the first aspect.

[0029] In some embodiments, the predicting process is performed on the data to be predicted according to the travel volume prediction model to obtain the travel volume information of the time period to be predicted, including:

[0030] Inputting the travel volume information of the historical time period into the travel volume prediction model to obtain first prediction decoding information, and inputting the climate data of the time period to be predicted into the travel volume prediction model to obtain second prediction decoding information;

[0031] The travel volume information of the time period to be predicted is generated according to the first prediction decoding information and the second prediction decoding information.

[0032] In some embodiments, the travel volume prediction model includes a decoder, and the decoder includes a first memory unit and a second memory unit; the travel volume information of the historical time period is input into the travel volume prediction model to obtain first prediction decoding information, and the climate data of the time period to be predicted is input into the travel volume prediction model to obtain second prediction decoding information, including:

[0033] Decoding the travel volume information of the historical time period based on the first memory unit to obtain the first predicted decoding information;

[0034] The climate data of the time period to be predicted is decoded based on the second memory unit to obtain the second prediction decoding information.

[0035] In some embodiments, generating the travel volume information of the time period to be predicted according to the first prediction decoding information and the second prediction decoding information includes:

[0036] The first prediction decoded information and the second prediction decoded information are concatenated based on the travel volume prediction model to obtain the travel volume information of the time period to be predicted.

[0037] In some embodiments, the first predictive decoding information includes a third hidden layer vector and a third cell layer vector; and the second predictive decoding information includes a fourth hidden layer vector and a fourth cell layer vector.

[0038] In some embodiments, the travel volume prediction model includes a decoder, and the decoder includes a first memory unit and a second memory unit; based on the travel volume prediction model, the first prediction decoding information and the second prediction decoding information are spliced ​​to obtain the travel volume information of the time period to be predicted, including:

[0039] Based on the first memory unit, the third hidden layer vector and the fourth hidden layer vector are concatenated to generate the first prediction concatenation information;

[0040] splicing the third cell layer vector and the fourth cell layer vector based on the first memory unit to generate the second predicted splicing information;

[0041] The travel volume information of the time period to be predicted is generated according to the first prediction splicing information and the second prediction splicing information.

[0042] In some embodiments, the travel volume prediction model includes a first encoder, a second encoder and a decoder; performing prediction processing on the data to be predicted according to the travel volume prediction model to obtain the travel volume information of the time period to be predicted includes:

[0043] Encoding the travel volume information of the historical time period based on the first encoder to obtain first prediction coding information, and encoding the climate data of the time period to be predicted based on the second encoder to obtain second prediction coding information;

[0044] The first prediction coding information and the second prediction coding information are decoded based on the decoder to generate the travel volume information of the time period to be predicted.

[0045] In some embodiments, the travel volume information of the historical time period is stored in a first platform, and the climate data of the time period to be predicted is stored in a second platform.

[0046] In a third aspect, an embodiment of the present application provides a model training device for travel volume prediction, the training device comprising:

[0047] A first acquisition module is used to acquire travel volume training data, wherein the travel volume training data includes travel volume information of each time period and data information of each future time period corresponding to each time period, and the data information includes climate data and travel volume information;

[0048] A generation module, used to input the travel volume information of each time period and the climate data of each future time period into the initial sequence into the sequence model, so as to obtain a travel data sequence corresponding to each future time period;

[0049] A training module is used to train the sequence-to-sequence model according to the travel data sequence and the travel volume information of each future time period to obtain a travel volume prediction model, wherein the travel volume prediction model is used to predict the travel volume.

[0050] In some embodiments, the generation module is used to input the travel volume information of each time period into the initial sequence-to-sequence model to obtain each first training decoding information, and input the climate data of each future time period into the sequence-to-sequence model to obtain each second training decoding information, and train the sequence-to-sequence model according to each first training decoding information and each second training decoding information to obtain each travel data sequence.

[0051] In some embodiments, the sequence-to-sequence model includes a decoder, the decoder includes a first memory unit and a second memory unit; the generation module is used to decode the travel volume information of each time period based on the first memory unit to obtain each first training decoding information;

[0052] The climate data of each future time period is decoded based on the second memory unit to obtain each second training decoding information.

[0053] In some embodiments, the generating module is used to perform concatenation processing on each of the first training decoding information and each of the second training decoding information based on the sequence-to-sequence model to obtain each of the trip data sequences.

[0054] In some embodiments, each of the first training decoded information includes a first hidden layer vector and a first cell layer vector; each of the second training decoded information includes a second hidden layer vector and a second cell layer vector.

[0055] In some embodiments, the sequence-to-sequence model includes a decoder, which includes a first memory unit and a second memory unit; each of the travel data sequences includes first training splicing information and second training splicing information; the generation module is used to splice the first hidden layer vector and the second hidden layer vector based on the first memory unit to generate the first training splicing information, and to splice the first cell layer vector and the second cell layer vector based on the first memory unit to generate the second training splicing information.

[0056] In some embodiments, the sequence-to-sequence model includes a first encoder, a second encoder and a decoder; the generation module is used to encode the travel volume information of each time period based on the first encoder to obtain each first training encoded information, and to encode the climate data of each future time period based on the second encoder to obtain each second training encoded information, and to decode each first training encoded information and each second training encoded information based on the decoder to generate each travel data sequence.

[0057] In some embodiments, the travel volume information of each time period and the travel volume information of each future time period are stored in the first platform, and the climate data of each future time period is stored in the second platform.

[0058] In a third aspect, an embodiment of the present application provides a model-based travel volume prediction device, the prediction device comprising:

[0059] A second acquisition module is used to acquire data to be predicted, wherein the data to be predicted includes climate data of the time period to be predicted and travel volume information of a historical time period before the time period to be predicted;

[0060] A prediction module is used to perform prediction processing on the data to be predicted according to a travel volume prediction model to obtain travel volume information for the time period to be predicted, wherein the travel volume prediction model is generated based on the method described in any of the above embodiments.

[0061] In some embodiments, the prediction module is used to input the travel volume information of the historical time period into the travel volume prediction model to obtain first prediction decoding information, and input the climate data of the time period to be predicted into the travel volume prediction model to obtain second prediction decoding information, and generate the travel volume information of the time period to be predicted based on the first prediction decoding information and the second prediction decoding information.

[0062] In some embodiments, the prediction module is used, the travel volume prediction model includes a decoder, and the decoder includes a first memory unit and a second memory unit; the prediction module is used to decode the travel volume information of the historical time period based on the first memory unit to obtain the first prediction decoding information, and decode the climate data of the time period to be predicted based on the second memory unit to obtain the second prediction decoding information.

[0063] In some embodiments, the prediction module is used to perform splicing processing on the first prediction decoding information and the second prediction decoding information based on the travel volume prediction model to obtain the travel volume information of the time period to be predicted.

[0064] In some embodiments, the first predictive decoding information includes a third hidden layer vector and a third cell layer vector; and the second predictive decoding information includes a fourth hidden layer vector and a fourth cell layer vector.

[0065] In some embodiments, the travel volume prediction model includes a decoder, which includes a first memory unit and a second memory unit; the prediction module is used to splice the third hidden layer vector and the fourth hidden layer vector based on the first memory unit to generate the first prediction splicing information, splice the third cell layer vector and the fourth cell layer vector based on the first memory unit to generate the second prediction splicing information, and generate the travel volume information of the time period to be predicted based on the first prediction splicing information and the second prediction splicing information.

[0066] In some embodiments, the travel volume prediction model includes a first encoder, a second encoder and a decoder; the prediction module is used to encode the travel volume information of the historical time period based on the first encoder to obtain first prediction coding information, and to encode the climate data of the time period to be predicted based on the second encoder to obtain second prediction coding information, and to decode the first prediction coding information and the second prediction coding information based on the decoder to generate the travel volume information of the time period to be predicted.

[0067] In some embodiments, the travel volume information of the historical time period is stored in a first platform, and the climate data of the time period to be predicted is stored in a second platform.

[0068] In a fifth aspect, an embodiment of the present application provides a model training system for travel volume prediction, the training system comprising:

[0069] A training device as described in any of the above embodiments;

[0070] A first platform is used to provide the training device with the travel volume information of each time period and the travel volume information of each future time period corresponding to each time period;

[0071] The second platform is used to provide the training device with climate data for each future time period corresponding to each time period.

[0072] In a sixth aspect, an embodiment of the present application provides a model-based travel volume prediction system, the prediction system comprising:

[0073] The prediction device as described in any one of the above embodiments;

[0074] The first platform is used to provide the prediction device with travel volume information of a historical time period before the time period to be predicted;

[0075] The second platform is used to provide the prediction device with climate data for the time period to be predicted.

[0076] In a seventh aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;

[0077] The memory is a memory for storing instructions executable by the processor;

[0078] When executing the instructions in the memory, the processor is configured to implement the method described in any of the above embodiments.

[0079] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any of the above embodiments.

[0080] The embodiments of the present application provide a model training method for travel volume prediction, a model-based travel volume prediction method, device, system, electronic device and storage medium, including: obtaining travel volume training data, wherein the travel volume training data includes travel volume information for each time period and data information for each future time period corresponding to each time period, the data information includes climate data and travel volume information, the travel volume information for each time period and the climate data for each future time period are respectively input into an initial sequence-to-sequence model to obtain a travel data sequence corresponding to each future time period, the sequence-to-sequence model is trained according to the travel data sequence and the travel volume information for each future time period to obtain a travel volume prediction model, wherein the travel volume prediction model is used to predict the travel volume, by introducing the climate data for each future time period and combining the climate data for each future time period with the travel volume information for each time period, and training the sequence-to-sequence model, the technical effect of improving the accuracy and reliability of the trained travel volume prediction model can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0082] Figure 1 A schematic diagram of a sequence-to-sequence model in the related art;

[0083] Figure 2 A schematic diagram of a flow chart of a model training method for travel volume prediction according to an embodiment of the present application;

[0084] Figure 3 A schematic diagram of a flow chart of a model training method for travel volume prediction according to another embodiment of the present application;

[0085] Figure 4is a schematic diagram of a sequence-to-sequence model of this embodiment;

[0086] Figure 5 is a schematic diagram of a decoder of this embodiment;

[0087] Figure 6 A schematic diagram of a flow chart of a model-based travel volume prediction method according to an embodiment of the present application;

[0088] Figure 7 A schematic diagram of a model training device applied to travel volume prediction according to an embodiment of the present application;

[0089] Figure 8 A schematic diagram of a model-based travel volume prediction device according to an embodiment of the present application;

[0090] Fig. 9 A block diagram of an electronic device according to an embodiment of the present application.

[0091] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0092] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0093] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0094] See also Figure 1 , Figure 1 Schematic diagram of a sequence-to-sequence model in related art.

[0095] like Figure 1 As shown, the sequence-to-sequence model can include two parts, one of which is the encoder part, such as Figure 1 The encoder shown in the figure, and the other part is the decoder part, such as Figure 1 The Decoder shown in . That is, the sequence-to-sequence model can be understood as a model consisting of two different stages, one stage is the encoding stage, and the other stage is the decoding stage.

[0096] The encoding stage can be understood as Encode converting the input sequence into a fixed-length vector, and the decoding stage can be understood as Decode decoding the input fixed-length vector into an output sequence. The encoding and decoding method can be a recurrent neural network (RNN) or a convolutional neural network (CNN).

[0097] Specifically, taking RNN as an example, in the encoding stage, the hidden layer state vector at the current time is is the state vector at the previous time and the input vector of the current time Determined jointly, such as the hidden state of the previous time . After obtaining the output vector of each hidden layer After summarizing, the state vector can be generated ,like Of course, we can also use the output vector of the last hidden layer As the state vector ,like In the decoding phase, the state vector Output prediction information ,like .in, is the forecast information of the previous time (the previous time based on time t, where t is the current time), and is the activation function.

[0098] When based on Figure 1 When the sequence-to-sequence model shown is used to train the travel volume prediction model, the Encoder can generate a state vector of sample travel volume information, the Decoder can generate a travel data sequence (i.e., prediction information) based on the state vector, and the travel flow training device can adjust the parameters of the sequence-to-sequence model based on the pre-set real travel volume information and prediction information to obtain the travel volume prediction model.

[0099] However, based on Figure 1 When the sequence-to-sequence model shown is used to train the travel volume prediction model, since the sample travel volume information is single-dimensional information, it may lead to low training reliability, thereby causing the travel volume prediction model to have low accuracy.

[0100] In order to solve the above problems, the inventors of this application, after creative work, obtained the inventive concept of this application: training the sequence-to-sequence model in combination with information from other dimensions to generate a travel volume prediction model.

[0101] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0102] See also Figure 2 , Figure 2 A flowchart of a model training method for travel volume prediction according to an embodiment of the present application.

[0103] like Figure 2 As shown, the method includes:

[0104] S101: Acquire travel volume training data, wherein the travel volume training data includes travel volume information of each time period and data information of each future time period corresponding to each time period, and the data information includes climate data and travel volume information.

[0105] Among them, the executing entity of the embodiment of the present application can be a model training device applied to travel volume prediction (hereinafter referred to as the training device), and the training device can be a server (including a local server and a cloud server), a processor, a chip, a terminal device, etc., which is not limited in the present application.

[0106] In this embodiment, the travel volume training data can be understood as three parts, one part is the travel volume information of each time period, another part is the travel volume information of each future time period, and another part is the climate data of each future time period.

[0107] Combined with the description of the training of the travel volume prediction model in the above-mentioned related technology, the travel volume information of each time period in this embodiment is equivalent to the sample travel volume information in the above-mentioned embodiment, and the travel volume information of each future time period in this embodiment is equivalent to the real travel volume information in the above-mentioned embodiment. That is to say, in this embodiment, a new feature of the climate data of each future time period is introduced, and by introducing this feature, the prediction device combines this feature with the travel volume information of each time period and the travel volume information of each future time period to generate a travel volume prediction model, thereby improving the reliability of the travel volume prediction model. The specific analysis can be seen in the following description.

[0108] S102: Input the travel volume information of each time period and the climate data of each future time period into the initial sequence into the sequence model respectively, and obtain the travel data sequence corresponding to each future time period.

[0109] Combined with the description of the training of the travel volume prediction model in the above-mentioned related technology, the travel data sequence in this embodiment is equivalent to the prediction information in the above-mentioned embodiment. However, based on the analysis of S101, it can be seen that in this embodiment, the new feature of the climate data of each future time period is introduced. Therefore, in this embodiment, the travel data sequence is determined based on two dimensions of information (i.e., the travel volume information of each time period and the climate data of each future time period), while in the related technology, the prediction information is determined based on one dimension of sample travel volume information. By combining the two dimensions of information to generate the travel data sequence, the correlation between the information of different dimensions can be fully considered, such as the travel volume information being affected by weather information, thereby improving the accuracy and reliability of the travel data sequence, and then achieving the accuracy of the travel volume prediction model generated based on the travel data sequence.

[0110] S103: training a sequence-to-sequence model according to the travel data sequence and the travel volume information of each future time period to obtain a travel volume prediction model, wherein the travel volume prediction model is used to predict the travel volume.

[0111] In this embodiment, since the travel data sequence is determined based on information in two dimensions, when the training device trains the sequence-to-sequence model based on the travel data sequence and the travel volume information of each future time period, the accuracy and reliability of the trained travel volume prediction model can be improved.

[0112] Based on the above analysis, it can be seen that an embodiment of the present application provides a model training method for travel volume prediction, the method comprising: obtaining travel volume training data, wherein the travel volume training data includes travel volume information for each time period and data information for each future time period corresponding to each time period, the data information including climate data and travel volume information, the travel volume information for each time period and the climate data for each future time period are respectively input into the initial sequence-to-sequence model to obtain a travel data sequence corresponding to each future time period, the sequence-to-sequence model is trained according to the travel data sequence and the travel volume information for each future time period to obtain a travel volume prediction model, wherein the travel volume prediction model is used to predict the travel volume, by introducing the climate data for each future time period, and combining the climate data for each future time period with the travel volume information for each time period, and training the sequence-to-sequence model, the technical effect of improving the accuracy and reliability of the trained travel volume prediction model can be achieved.

[0113] Based on the above analysis, it can be known that the sequence-to-sequence model includes an encoder and a decoder. Now, combined with the specific schemes of encoding and decoding, the model training method applied to travel volume prediction in the embodiment of the present application is explained in more detail.

[0114] See also Figure 3 , Figure 3 A flowchart of a model training method for travel volume prediction according to another embodiment of the present application.

[0115] like Figure 3 As shown, the method includes:

[0116] S201: Acquire travel volume training data, wherein the travel volume training data includes travel volume information of each time period and data information of each future time period corresponding to each time period, and the data information includes climate data and travel volume information.

[0117] Among them, the description of S201 can be found in S101 and will not be repeated here.

[0118] It is worth noting that in some possible implementations, the travel volume information of each time period and the travel volume information of each future time period are stored in the first platform, and the climate data of each future time period are stored in the second platform.

[0119] For example, the first platform may be a city traffic platform, and the second platform may be a climate reporting platform.

[0120] S202: A first encoder based on a sequence-to-sequence model encodes the travel volume information of each time period to obtain each first training encoded information, and a second encoder based on the sequence-to-sequence model encodes the climate data of each future time period to obtain each second training encoded information.

[0121] Now combined Figure 4 This step is described in detail. Figure 4 Schematic diagram of the sequence-to-sequence model of this embodiment.

[0122] like Figure 4 It can be seen that is the travel volume information for each time period. Encode to obtain each first training encoding information C, Encode information for every second training.

[0123] S203: Decode each first training coded information and each second training coded information based on the sequence-to-sequence model to generate each row data sequence.

[0124] In a possible implementation, the decoder includes a first memory unit and a second memory unit, and S203 includes:

[0125] S2031: Decode each first training encoding information based on the first memory unit to obtain each first training decoding information.

[0126] It is worth noting that the first memory unit and the second memory unit can be a long short-term memory network unit (Long Short-Term Memory, LSTM) or a gated recurrent unit (Ggated Recurrent Unit, GRU). In this embodiment, the first memory unit and the second memory unit are LSTM units as an example, and combined with Figure 5 Herein, Figure 5 is a schematic diagram of a decoder of this embodiment.

[0127] Combination Figure 5 It can be seen that each first training encoding information is , each first training decoding information includes a first hidden layer vector and a first cell layer vector, and the first hidden layer vector is , the first cell layer vector .

[0128] In one possible implementation, the first hidden layer vector can be determined according to Formula 1 as , determine the first cell layer vector according to formula 2 , where Equation 1: Where, formula 2:

[0129] Among them, the forget gate , input gate , the first cell candidate state , output gate , and is the operation function, is the weight matrix of the forget gate, is the bias term of the forget gate, is the weight matrix of the input gate, is the bias term of the input gate, is the weight matrix of the first cell candidate state, is the bias term of the first cell candidate, is the weight matrix of the output gate, is the bias term of the output gate.

[0130] S2032: Decoding the climate data of each future time period based on the second memory unit to obtain each second training decoding information.

[0131] Similarly, combined Figure 5 It can be seen that each second training encoding information is , each second training decoding information includes a second hidden layer vector and a second cell layer vector, and the second hidden layer vector is , the second cell layer vector .

[0132] In a possible implementation, the second hidden layer vector can be determined according to Formula 3 as , determine the second cell layer vector according to formula 4 , where Equation 3: Where, formula 2:

[0133] Among them, the forget gate , input gate , the second cell candidate state , output gate , is the weight matrix of the forget gate, is the bias term of the forget gate, is the weight matrix of the input gate, is the bias term of the input gate, is the weight matrix of the second cell candidate state, is the bias term of the second cell candidate, is the weight matrix of the output gate, is the bias term of the output gate.

[0134] S2033: Generate each row data sequence according to each first training decoding information and each second training decoding information.

[0135] Based on the above analysis, it can be seen that each first training decoding information includes the first hidden layer vector and the first cell layer vector , each second training decoded information includes the second hidden layer vector and the second cell layer vector , then in a possible implementation scheme, S2033 may include:

[0136] S20331: Concatenate the first hidden layer vector and the second hidden layer vector based on the first memory unit to generate first training concatenation information.

[0137] For example, the first training concatenation information .

[0138] S20332: Based on the first memory unit, the first cell layer vector and the second cell layer vector are concatenated to generate second training concatenation information.

[0139] For example, the second training concatenation information .

[0140] Each travel data sequence includes first training splicing information and second training splicing information.

[0141] It is worth noting that in one possible implementation, the second hidden layer vector is and the second cell layer vector is the encrypted vector. By transforming the second hidden layer vector into and the second cell layer vector Encryption can improve the security of data transmission between two different platforms.

[0142] S204: training a sequence-to-sequence model according to the travel data sequence and the travel volume information of each future time period to obtain a travel volume prediction model, wherein the travel volume prediction model is used to predict the travel volume.

[0143] The description of S204 can be found in S103 and will not be repeated here.

[0144] It is worth noting that, in a possible implementation scheme, S204 may include: determining the loss value of the travel volume information and travel data sequence for each future time period, and adjusting the parameters of the sequence-to-sequence model according to the loss value, until the loss value of the travel volume information and travel data sequence for each future time period is less than a preset loss threshold, or the number of iterations is equal to the preset iteration threshold, and the adjusted sequence-to-sequence model is determined as the travel volume prediction model.

[0145] According to another aspect of the embodiments of the present application, the embodiments of the present application also provide a model-based travel volume prediction method.

[0146] See also Figure 6 , Figure 6 Schematic diagram of the flow of the model-based travel volume prediction method according to an embodiment of the present application.

[0147] like Figure 6 As shown, the method includes:

[0148] S301: Acquire data to be predicted, wherein the data to be predicted includes climate data of the time period to be predicted and travel volume information of a historical time period before the time period to be predicted.

[0149] Among them, the executing entity of the embodiment of the present application can be a model-based travel volume prediction device (hereinafter referred to as the prediction device), and the prediction device can be the same device as the training device. For example, the prediction device can be a server (including a local server and a cloud server), a processor, a chip, a terminal device, etc., which is not limited in the present application.

[0150] The time period to be predicted may be a time period in days or hours, etc. The historical time period is before the time period to be predicted, and may also be a time period in days or hours, etc.

[0151] For example, today is the 18th, and the climate data for the predicted time period may be the climate data from 6:00 to 12:00 on the 19th (such as weather and temperature, etc.), and the travel volume information for the historical time period may be the travel volume information from 6:00 to 12:00 on the 17th (such as pedestrian and / or vehicle flow, etc.).

[0152] In some embodiments, travel volume information for a historical time period is stored in a first platform, and climate data for a time period to be predicted is stored in a second platform.

[0153] S302: Predictively process the data to be predicted according to the travel volume prediction model to obtain travel volume information for the time period to be predicted, wherein the travel volume prediction model is generated based on the method described in any of the above embodiments.

[0154] It should be understood that the training method of the travel volume prediction model can refer to the above embodiments, such as Figure 2 or Figure 3 The embodiments shown will not be described in detail here.

[0155] Combined with the description of S301, the travel volume information of the time period to be predicted may be the travel volume information (such as passenger flow and / or vehicle flow, etc.) from 6:00 to 12:00 on the 19th.

[0156] It is worth noting that, in this embodiment, the prediction device predicts the data to be predicted based on the travel volume prediction model to generate travel volume information for the time period to be predicted. Since the data to be predicted includes information of two dimensions, namely, the climate data of the time period to be predicted and the travel volume information of the historical time period, the reliability and accuracy of the prediction can be improved.

[0157] In some embodiments, S302 may include:

[0158] S3021: Input the travel volume information of the historical time period into the travel volume prediction model to obtain the first prediction decoding information, and input the climate data of the time period to be predicted into the travel volume prediction model to obtain the second prediction decoding information.

[0159] In some embodiments, the travel volume prediction model includes a decoder, the decoder includes a first memory unit and a second memory unit, S3021 includes: decoding the travel volume information of the historical time period based on the first memory unit to obtain first prediction decoding information, and decoding the climate data of the predicted time period based on the second memory unit to obtain second prediction decoding information.

[0160] Regarding the principle of decoding in this embodiment, reference may be made to the principle of decoding in the above-mentioned model training process, such as referring to S203. Figure 5 The content shown in the figure, and the second predicted decoding information is encrypted information, which will not be repeated here.

[0161] S3022: Generate travel volume information for the time period to be predicted based on the first prediction decoding information and the second prediction decoding information.

[0162] In some embodiments, S3022 includes: splicing the first prediction decoding information and the second prediction decoding information based on the travel volume prediction model to obtain the travel volume information of the time period to be predicted.

[0163] In some embodiments, the first predictive decoding information includes a third hidden layer vector and a third cellular layer vector; and the second predictive decoding information includes a fourth hidden layer vector and a fourth cellular layer vector.

[0164] In some embodiments, the travel volume prediction model includes a decoder, which includes a first memory unit and a second memory unit; S3022 includes: splicing the third hidden layer vector and the fourth hidden layer vector based on the first memory unit to generate first prediction splicing information, splicing the third cell layer vector and the fourth cell layer vector based on the first memory unit to generate second prediction splicing information, and generating travel volume information for the time period to be predicted based on the first prediction splicing information and the second prediction splicing information.

[0165] Regarding the principle of generating the travel volume information for the time period to be predicted in this embodiment, reference may be made to the principle of generating each travel data sequence in the above-mentioned model training process, such as referring to S2033 and Figure 5 The contents shown will not be repeated here.

[0166] In some embodiments, the travel volume prediction model includes a first encoder, a second encoder and a decoder; S302 includes: encoding the travel volume information of the historical time period based on the first encoder to obtain first prediction coding information, and encoding the climate data of the time period to be predicted based on the second encoder to obtain second prediction coding information, and decoding the first prediction coding information and the second prediction coding information based on the decoder to generate travel volume information for the time period to be predicted.

[0167] Regarding the principle of encoding in this embodiment, reference may be made to the principle of encoding in the above-mentioned model training process, such as referring to S202. Figure 4 The contents shown will not be repeated here.

[0168] According to another aspect of the embodiments of the present application, the embodiments of the present application further provide a model training device for travel volume prediction, which is used to execute the model training method for travel volume prediction as described in any of the above embodiments, such as for executing Figure 2 or Figure 3 The method shown.

[0169] See also Figure 7 , Figure 7 A schematic diagram of a model training device for travel volume prediction according to an embodiment of the present application.

[0170] like Figure 7 As shown, the training device comprises:

[0171] A first acquisition module 11 is used to acquire travel volume training data, wherein the travel volume training data includes travel volume information of each time period and data information of each future time period corresponding to each time period, and the data information includes climate data and travel volume information;

[0172] A generating module 12, for inputting the travel volume information of each time period and the climate data of each future time period into the initial sequence into the sequence model, to obtain a travel data sequence corresponding to each future time period;

[0173] The training module 13 is used to train the sequence-to-sequence model according to the travel data sequence and the travel volume information of each future time period to obtain a travel volume prediction model, wherein the travel volume prediction model is used to predict the travel volume.

[0174] In some embodiments, the generation module 12 is used to input the travel volume information of each time period into the initial sequence-to-sequence model to obtain each first training decoding information, and input the climate data of each future time period into the sequence-to-sequence model to obtain each second training decoding information, and train the sequence-to-sequence model according to each first training decoding information and each second training decoding information to obtain each travel data sequence.

[0175] In some embodiments, the sequence-to-sequence model includes a decoder, and the decoder includes a first memory unit and a second memory unit; the generating module 12 is used to decode the travel volume information of each time period based on the first memory unit to obtain each first training decoding information;

[0176] The climate data of each future time period is decoded based on the second memory unit to obtain each second training decoding information.

[0177] In some embodiments, the generating module 12 is used to perform concatenation processing on each of the first training decoding information and each of the second training decoding information based on the sequence-to-sequence model to obtain each of the trip data sequences.

[0178] In some embodiments, each of the first training decoded information includes a first hidden layer vector and a first cell layer vector; each of the second training decoded information includes a second hidden layer vector and a second cell layer vector.

[0179] In some embodiments, the sequence-to-sequence model includes a decoder, which includes a first memory unit and a second memory unit; each of the travel data sequences includes first training splicing information and second training splicing information; the generation module 12 is used to splice the first hidden layer vector and the second hidden layer vector based on the first memory unit to generate the first training splicing information, and to splice the first cell layer vector and the second cell layer vector based on the first memory unit to generate the second training splicing information.

[0180] In some embodiments, the sequence-to-sequence model includes a first encoder, a second encoder and a decoder; the generation module 12 is used to encode the travel volume information of each time period based on the first encoder to obtain each first training encoded information, and to encode the climate data of each future time period based on the second encoder to obtain each second training encoded information, and to decode each first training encoded information and each second training encoded information based on the decoder to generate each travel data sequence.

[0181] In some embodiments, the travel volume information of each time period and the travel volume information of each future time period are stored in the first platform, and the climate data of each future time period is stored in the second platform.

[0182] According to another aspect of the embodiments of the present application, the embodiments of the present application further provide a model-based travel volume prediction device, which is used to execute the model-based travel volume prediction method as described in any of the above embodiments, such as executing Figure 6 The method shown.

[0183] See also Figure 8 , Figure 8 Schematic diagram of a model-based travel volume prediction device according to an embodiment of the present application.

[0184] like Figure 8 As shown, the prediction device comprises:

[0185] The second acquisition module 21 is used to acquire the data to be predicted, wherein the data to be predicted includes the climate data of the time period to be predicted and the travel volume information of the historical time period before the time period to be predicted;

[0186] The prediction module 22 is used to perform prediction processing on the data to be predicted according to a travel volume prediction model to obtain travel volume information for the time period to be predicted, wherein the travel volume prediction model is generated based on the method described in any of the above embodiments.

[0187] In some embodiments, the prediction module 22 is used to input the travel volume information of the historical time period into the travel volume prediction model to obtain first prediction decoding information, and input the climate data of the time period to be predicted into the travel volume prediction model to obtain second prediction decoding information, and generate the travel volume information of the time period to be predicted based on the first prediction decoding information and the second prediction decoding information.

[0188] In some embodiments, the prediction module 22 is used for the travel volume prediction model to include a decoder, and the decoder includes a first memory unit and a second memory unit; the prediction module is used to decode the travel volume information of the historical time period based on the first memory unit to obtain the first prediction decoding information, and to decode the climate data of the time period to be predicted based on the second memory unit to obtain the second prediction decoding information.

[0189] In some embodiments, the prediction module 22 is used to perform splicing processing on the first prediction decoding information and the second prediction decoding information based on the travel volume prediction model to obtain the travel volume information of the time period to be predicted.

[0190] In some embodiments, the first predictive decoding information includes a third hidden layer vector and a third cell layer vector; and the second predictive decoding information includes a fourth hidden layer vector and a fourth cell layer vector.

[0191] In some embodiments, the travel volume prediction model includes a decoder, which includes a first memory unit and a second memory unit; the prediction module 22 is used to splice the third hidden layer vector and the fourth hidden layer vector based on the first memory unit to generate the first prediction splicing information, splice the third cell layer vector and the fourth cell layer vector based on the first memory unit to generate the second prediction splicing information, and generate the travel volume information of the time period to be predicted based on the first prediction splicing information and the second prediction splicing information.

[0192] In some embodiments, the travel volume prediction model includes a first encoder, a second encoder and a decoder; the prediction module 22 is used to encode the travel volume information of the historical time period based on the first encoder to obtain first prediction coding information, and to encode the climate data of the time period to be predicted based on the second encoder to obtain second prediction coding information, and to decode the first prediction coding information and the second prediction coding information based on the decoder to generate the travel volume information of the time period to be predicted.

[0193] In some embodiments, the travel volume information of the historical time period is stored in a first platform, and the climate data of the time period to be predicted is stored in a second platform.

[0194] According to another aspect of the embodiment of the present application, the embodiment of the present application further provides a model training system for travel volume prediction, the training system comprising:

[0195] A training device as described in any of the above embodiments, Figure 7 The training device shown;

[0196] A first platform is used to provide the training device with the travel volume information of each time period and the travel volume information of each future time period corresponding to each time period;

[0197] The second platform is used to provide the training device with climate data for each future time period corresponding to each time period.

[0198] According to another aspect of the embodiment of the present application, the embodiment of the present application further provides a model-based travel volume prediction system, the prediction system comprising:

[0199] The prediction device as described in any of the above embodiments, Figure 8 The prediction device shown;

[0200] The first platform is used to provide the prediction device with travel volume information of a historical time period before the time period to be predicted;

[0201] The second platform is used to provide the prediction device with climate data for the time period to be predicted.

[0202] According to another aspect of the embodiments of the present application, the embodiments of the present application further provide an electronic device, including: a memory, a processor;

[0203] Memory is a memory for storing processor executable instructions;

[0204] Wherein, when executing the instructions in the memory, the processor is configured to implement the method described in any of the above embodiments, such as implementing Figure 2 , Figure 3 and Figure 6 The method shown in any one of the embodiments.

[0205] See also Fig. 9 , Fig. 9 A block diagram of an electronic device according to an embodiment of the present application.

[0206] like Fig. 9 As shown, electronic devices are intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the embodiments of the present application described and / or required herein.

[0207] like Fig. 9As shown, the electronic device includes: one or more processors 101, a memory 102, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig. 9 A processor 101 is taken as an example.

[0208] The memory 102 is a non-transitory computer-readable storage medium provided in an embodiment of the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to perform the method described in any embodiment provided in the embodiment of the present application. The non-transitory computer-readable storage medium in an embodiment of the present application stores computer instructions, which are used to enable a computer to perform the method described in any embodiment provided in the embodiment of the present application.

[0209] The memory 102 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules in the embodiments of the present application. The processor 101 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 102, that is, implements the method described in any of the above method embodiments.

[0210] The memory 102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 102 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 102 may optionally include a memory remotely arranged relative to the processor 101, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a Blockchain Service Network (BSN), a mobile communication network, and a combination thereof.

[0211] The electronic device may further include: an input device 103 and an output device 104. The processor 101, the memory 102, the input device 103 and the output device 104 may be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.

[0212] The input device 103 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 104 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.

[0213] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0214] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0215] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0216] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a Blockchain-based Service Network (BSN), a wide area network (WAN), and the Internet.

[0217] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0218] Among them, computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general or special-purpose computer. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a user device. Of course, the processor and the storage medium can also be present in a communication device as discrete components.

[0219] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0220] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A model training method for travel volume prediction, characterized in that: The method comprises: Acquire travel volume training data, wherein the travel volume training data includes travel volume information of each time period and data information of each future time period corresponding to each time period, and the data information includes climate data and travel volume information; Decoding the travel volume information of each time period based on a first memory unit of a sequence-to-sequence model decoder to obtain each first training decoding information; Decoding the climate data of each future time period based on the second memory unit of the sequence-to-sequence model decoder to obtain each second training decoding information; Training the sequence-to-sequence model according to each of the first training decoding information and each of the second training decoding information to obtain each row data sequence; The sequence-to-sequence model is trained according to the travel data sequence and the travel volume information of each future time period to obtain a travel volume prediction model, wherein the travel volume prediction model is used to predict the travel volume.

2. The method according to claim 1, characterized in that The sequence-to-sequence model is trained according to each of the first training decoding information and each of the second training decoding information to obtain each of the trip data sequences, including: Each of the first training decoded information and each of the second training decoded information is concatenated based on the sequence-to-sequence model to obtain each of the travel data sequences.

3. The method according to claim 2, characterized in that Each of the first training decoded information includes a first hidden layer vector and a first cell layer vector; each of the second training decoded information includes a second hidden layer vector and a second cell layer vector.

4. The method according to claim 3, characterized in that The sequence-to-sequence model includes a decoder, the decoder includes a first memory unit and a second memory unit; each of the travel data sequences includes first training splicing information and second training splicing information; Based on the sequence-to-sequence model, each of the first training decoded information and each of the second training decoded information are concatenated to obtain each of the travel data sequences, including: Based on the first memory unit, the first hidden layer vector and the second hidden layer vector are concatenated to generate the first training concatenation information; The first cell layer vector and the second cell layer vector are spliced ​​based on the first memory unit to generate the second training splicing information.

5. The method according to any one of claims 1 to 4, characterized in that The sequence-to-sequence model includes a first encoder, a second encoder and a decoder; the travel volume information of each time period and the climate data of each future time period corresponding to each time period are respectively input into the initial sequence-to-sequence model to obtain a travel data sequence corresponding to each future time period, including: Encoding the travel volume information of each time period based on the first encoder to obtain each first training encoding information, and encoding the climate data of each future time period based on the second encoder to obtain each second training encoding information; Each of the trip data sequences is generated based on the decoder decoding each of the first training coded information and each of the second training coded information.

6. The method according to any one of claims 1 to 4, characterized in that The travel volume information of each time period and the travel volume information of each future time period are stored in the first platform, and the climate data of each future time period is stored in the second platform.

7. A model-based travel volume prediction method, characterized in that: The method comprises: Acquiring data to be predicted, wherein the data to be predicted includes climate data of a time period to be predicted and travel volume information of a historical time period before the time period to be predicted; The data to be predicted is predicted according to a travel volume prediction model to obtain travel volume information for the time period to be predicted, wherein the travel volume prediction model is generated based on the method described in any one of claims 1 to 6.

8. The method according to claim 7, characterized in that The step of performing prediction processing on the data to be predicted according to the travel volume prediction model to obtain travel volume information for the time period to be predicted includes: Inputting the travel volume information of the historical time period into the travel volume prediction model to obtain first prediction decoding information, and inputting the climate data of the time period to be predicted into the travel volume prediction model to obtain second prediction decoding information; The travel volume information of the time period to be predicted is generated according to the first prediction decoding information and the second prediction decoding information.

9. The method according to claim 8, characterized in that The travel volume prediction model includes a decoder, and the decoder includes a first memory unit and a second memory unit; the travel volume information of the historical time period is input into the travel volume prediction model to obtain first prediction decoding information, and the climate data of the time period to be predicted is input into the travel volume prediction model to obtain second prediction decoding information, including: Decoding the travel volume information of the historical time period based on the first memory unit to obtain the first predicted decoding information; The climate data of the time period to be predicted is decoded based on the second memory unit to obtain the second prediction decoding information.

10. The method according to claim 8, characterized in that Generating the travel volume information of the time period to be predicted according to the first prediction decoding information and the second prediction decoding information, including: The first prediction decoded information and the second prediction decoded information are concatenated based on the travel volume prediction model to obtain the travel volume information of the time period to be predicted.

11. The method according to claim 10, characterized in that The first prediction decoding information includes a third hidden layer vector and a third cell layer vector; the second prediction decoding information includes a fourth hidden layer vector and a fourth cell layer vector.

12. The method according to claim 11, characterized in that The travel volume prediction model includes a decoder, and the decoder includes a first memory unit and a second memory unit; the first prediction decoding information and the second prediction decoding information are concatenated based on the travel volume prediction model to obtain the travel volume information of the time period to be predicted, including: Based on the first memory unit, the third hidden layer vector and the fourth hidden layer vector are concatenated to generate the first prediction concatenation information; splicing the third cell layer vector and the fourth cell layer vector based on the first memory unit to generate the second predicted splicing information; The travel volume information of the time period to be predicted is generated according to the first prediction splicing information and the second prediction splicing information.

13. The method according to any one of claims 7 to 12, characterized in that The travel volume prediction model includes a first encoder, a second encoder and a decoder; performing prediction processing on the data to be predicted according to the travel volume prediction model to obtain travel volume information for the time period to be predicted, including: Encoding the travel volume information of the historical time period based on the first encoder to obtain first prediction coding information, and encoding the climate data of the time period to be predicted based on the second encoder to obtain second prediction coding information; The first prediction coding information and the second prediction coding information are decoded based on the decoder to generate the travel volume information of the time period to be predicted.

14. The method according to any one of claims 7 to 12, characterized in that: The travel volume information of the historical time period is stored in the first platform, and the climate data of the time period to be predicted is stored in the second platform.

15. A model training device for travel volume prediction, characterized in that: The training device comprises: A first acquisition module is used to acquire travel volume training data, wherein the travel volume training data includes travel volume information of each time period and data information of each future time period corresponding to each time period, and the data information includes climate data and travel volume information; A generating module is used to decode the travel volume information of each time period based on the first memory unit of the sequence-to-sequence model decoder to obtain each first training decoded information; decode the climate data of each future time period based on the second memory unit of the sequence-to-sequence model decoder to obtain each second training decoded information; train the sequence-to-sequence model according to each first training decoded information and each second training decoded information to obtain each travel data sequence; A training module is used to train the sequence-to-sequence model according to the travel data sequence and the travel volume information of each future time period to obtain a travel volume prediction model, wherein the travel volume prediction model is used to predict the travel volume.

16. A model-based travel volume prediction device, characterized in that: The prediction device comprises: A second acquisition module is used to acquire data to be predicted, wherein the data to be predicted includes climate data of the time period to be predicted and travel volume information of a historical time period before the time period to be predicted; A prediction module is used to perform prediction processing on the data to be predicted according to a travel volume prediction model to obtain travel volume information for the time period to be predicted, wherein the travel volume prediction model is generated based on the method described in any one of claims 1 to 6.

17. A model training system for travel volume prediction, characterized in that: The training system comprises: The training device according to claim 15; A first platform is used to provide the training device with the travel volume information of each time period and the travel volume information of each future time period corresponding to each time period; The second platform is used to provide the training device with climate data for each future time period corresponding to each time period.

18. A model-based travel volume prediction system, characterized in that: The prediction system comprises: The prediction device as claimed in claim 16; The first platform is used to provide the prediction device with travel volume information of a historical time period before the time period to be predicted; The second platform is used to provide the prediction device with climate data for the time period to be predicted.

19. An electronic device, characterized in that: include: Memory, processor; The memory is a memory for storing instructions executable by the processor; Wherein, when executing the instructions in the memory, the processor is configured to implement the method according to any one of claims 1 to 6; or, When executing the instructions in the memory, the processor is configured to implement the method of any one of claims 7 to 14.

20. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented; or When the program is executed by a processor, the method according to any one of claims 7 to 14 is implemented.