Urban traffic travel information prediction method and device, equipment and storage medium
By dividing urban satellite images into unit areas and combining them with statistical data, performing dimensionality reduction and then inputting into the prediction model, the problem of insufficient traffic travel prediction accuracy in the existing technology is solved, and more accurate and reliable traffic travel information prediction is achieved.
Patent Information
- Application Number
- CN202410549267.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-06
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing technology, traffic travel prediction only relies on statistical data, resulting in insufficient accuracy and reliability of prediction results, and cannot effectively consider factors such as high-dimensional information such as street safety and road space.
By dividing urban satellite images into unit areas, relative geographical data and regional statistical data are obtained, dimensionality reduction coding is performed, and the travel information prediction model is input, and high-dimensional image information and low-dimensional statistical data are combined for prediction.
It improves the accuracy and reliability of urban traffic travel information prediction, captures the explicit and implicit characteristics that affect traffic travel, and enhances the comprehensiveness of prediction.
Smart Images

Figure CN118629197A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of traffic information processing, and in particular to a method, device, equipment and storage medium for predicting urban traffic travel information. Background Art
[0002] Traffic travel forecasting is a process that uses mathematical models and data analysis methods to predict the travel volume and travel characteristics of different regions, different modes of transportation, and different travel purposes in a certain period of time in the future. With the gradual increase in the number of cars in recent years, the prediction of traffic travel information has gradually become an important basis for urban transportation planning and management, and its significance is becoming increasingly significant.
[0003] However, in existing technologies, traffic travel forecasts are all based on socio-economic statistical data, which are subject to the limitations of statistical technology capabilities. At the same time, travel behavior is not only affected by numerical data, but also by many difficult-to-enumerate numerical values and difficult-to-quantify subjective attributes, such as street safety, road space, and other high-dimensional information. Existing technologies are generally unable to make traffic travel forecasts based on this information. Therefore, the accuracy and reliability of existing traffic travel forecasts have been criticized. Summary of the invention
[0004] The main purpose of the present invention is to solve the problem that when only statistical data is used to predict urban traffic travel information in the prior art, the prediction results are low in accuracy and insufficient in reliability.
[0005] A first aspect of the present invention provides a method for predicting urban traffic travel information, comprising:
[0006] Divide the city satellite image into multiple unit areas, obtain the departure point location and the destination location and determine the first unit area where the departure point location is located and the second unit area where the destination location is located, and obtain relative geographic data between the first unit area and the second unit area;
[0007] Acquire regional images and regional statistical data of the first unit area and the second unit area;
[0008] Performing dimensionality reduction coding on the regional images of the first unit area and the second unit area to obtain image dimensionality reduction data;
[0009] The relative geographic data, image dimension reduction data and regional statistical data of the first unit area and the second unit area are input into the travel information prediction model to obtain the travel volume information of various transportation modes between the departure point location and the destination location.
[0010] Optionally, in a first implementation of the second aspect of the present invention, the travel volume information includes predicted passenger flow;
[0011] The prediction module comprises:
[0012] A data splicing unit, used for splicing the relative geographic data, the image dimension reduction data and the regional statistical data to obtain regional characteristic information of the first unit area and the second unit area respectively;
[0013] The prediction execution unit is used to input the regional characteristic information of the first unit area and the second unit area into the travel information prediction model to obtain the predicted passenger flow of various transportation modes between the departure point location and the destination location.
[0014] Optionally, in a second implementation of the second aspect of the present invention, the travel information prediction model includes a plurality of network layers, and the network layers include an input layer, a hidden layer, and an output layer;
[0015] The prediction execution unit is specifically used for:
[0016] Inputting the characteristic information of the first unit area and the second unit area into the input layer of the travel information prediction model;
[0017] After the input layer receives the characteristic information of the first unit area and the second unit area, the characteristic information of the information area is transmitted between the neurons of each hidden layer according to the training parameters of the travel information prediction model and the connection mode and connection weight between each neuron, and the predicted passenger flow of various transportation modes between the departure point and the destination is output through the output layer.
[0018] Optionally, in a third implementation of the second aspect of the present invention, the urban traffic travel information prediction device further includes a dimensionality reduction model construction module, and the dimensionality reduction model construction module is used to:
[0019] Build an image dimensionality reduction model based on a feedforward network structure;
[0020] The dimension reduction module is specifically used for:
[0021] The regional images of the first unit region and the second unit region are input into the image dimension reduction model for dimension reduction processing to obtain image dimension reduction data of the first unit region and the second unit region.
[0022] Optionally, in a fourth implementation of the second aspect of the present invention, the image dimensionality reduction model includes a connection layer, a convolution layer and a dilated convolution layer, and the connection layer, the convolution layer and the dilated convolution layer are connected using a feedforward network structure;
[0023] The expression of the connection layer is:
[0024] f dense (h; β) = σ(g(h; β));
[0025] in, is a linear function, h is the input variable, b is the offset, β is the connection layer parameter; σ is a nonlinear activation function;
[0026] The expression of the convolutional layer is:
[0027] f conv (h; k) = σ(h*k);
[0028] Among them, k is a training parameter;
[0029] The expression of the dilated convolutional layer is:
[0030] f conv , d (h; k) = σ(h* d k);
[0031] Among them, d is the dilated convolution order.
[0032] Optionally, in a fifth implementation of the second aspect of the present invention, the urban traffic travel information prediction device further includes:
[0033] Travel information prediction model training module;
[0034] The travel information prediction model training module is specifically used for:
[0035] Acquire regional characteristic information between each unit area, and use the regional characteristic information as an input layer parameter of a travel information prediction model, wherein the regional characteristic information includes relative geographic data, image dimension reduction data and regional statistical data between each unit area;
[0036] Acquire historical travel volume information between each unit area, and use the historical travel volume information as an output layer parameter of a travel information prediction model;
[0037] The historical regional feature information and the historical travel volume information are input into the constructed initial neural model structure for training, and the training parameters are adjusted to obtain a trained travel information prediction model.
[0038] Optionally, in a sixth implementation of the second aspect of the present invention, the travel information prediction model training module further includes:
[0039] An input layer, a hidden layer and an output layer are constructed based on a plurality of neurons, and an initial neuron model structure is generated based on the input layer, the hidden layer and the output layer, wherein each hidden layer in the neuron model structure is provided with a plurality of neurons and connected with neurons in a previous layer.
[0040] A second aspect of the present invention provides a device for predicting urban traffic travel information, comprising:
[0041] An image processing module, used to divide the city satellite image into a plurality of unit areas, obtain a departure point location and a destination location, determine a first unit area where the departure point location is located and a second unit area where the destination location is located, and obtain relative geographic data between the first unit area and the second unit area;
[0042] An acquisition module, used for acquiring regional images and regional statistical data of the first unit area and the second unit area;
[0043] A dimension reduction module, used for performing dimension reduction coding on the regional images of the first unit area and the second unit area to obtain image dimension reduction data;
[0044] The prediction module is used to input the relative geographic data, image dimension reduction data and regional statistical data of the first unit area and the second unit area into the travel information prediction model to obtain the travel volume information of various transportation modes between the departure point location and the destination location.
[0045] Optionally, in a second implementation of the second aspect of the present invention, the travel information prediction model includes a plurality of network layers, and the network layers include an input layer, a hidden layer, and an output layer;
[0046] The step of inputting the regional characteristic information of the first unit area and the second unit area into the travel information prediction model to obtain the predicted passenger flow of various transportation modes between the departure point location and the destination location includes:
[0047] Inputting the characteristic information of the first unit area and the second unit area into the input layer of the travel information prediction model;
[0048] After the input layer receives the characteristic information of the first unit area and the second unit area, the characteristic information of the information area is transmitted between the neurons of each hidden layer according to the training parameters of the travel information prediction model and the connection mode and connection weight between each neuron, and the predicted passenger flow of various transportation modes between the departure point and the destination is output through the output layer.
[0049] Optionally, in a third implementation manner of the second aspect of the present invention, before performing dimensionality reduction encoding on the regional images of the first unit area and the second unit area to obtain image dimensionality reduction data, the method further includes:
[0050] Build an image dimensionality reduction model based on a feedforward network structure;
[0051] The performing dimension reduction coding on the regional images of the first unit area and the second unit area to obtain image dimension reduction data comprises:
[0052] The regional images of the first unit region and the second unit region are input into the image dimension reduction model for dimension reduction processing to obtain image dimension reduction data of the first unit region and the second unit region.
[0053] Optionally, in a fourth implementation of the second aspect of the present invention, the image dimensionality reduction model includes a connection layer, a convolution layer and a dilated convolution layer, and the connection layer, the convolution layer and the dilated convolution layer are connected using a feedforward network structure;
[0054] The expression of the connection layer is:
[0055] f dense (h; β) = σ(g(h; β));
[0056] in, is a linear function, h is the input variable, b is the offset, β is the connection layer parameter; σ is a nonlinear activation function;
[0057] The expression of the convolutional layer is:
[0058] f conv (h; k) = σ(h*k);
[0059] Among them, k is a training parameter;
[0060] The expression of the dilated convolutional layer is:
[0061] f conv,d (h; k) = σ(h* d k);
[0062] Among them, d is the dilated convolution order.
[0063] Optionally, in a fifth implementation of the second aspect of the present invention, before obtaining the departure point location and the destination location, the method further includes:
[0064] Acquire regional characteristic information between each unit area, and use the regional characteristic information as an input layer parameter of a travel information prediction model, wherein the regional characteristic information includes relative geographic data, image dimension reduction data and regional statistical data between each unit area;
[0065] Acquire historical travel volume information between each unit area, and use the historical travel volume information as an output layer parameter of a travel information prediction model;
[0066] The historical regional feature information and the historical travel volume information are input into the constructed initial neural model structure for training, and the training parameters are adjusted to obtain a trained travel information prediction model.
[0067] Optionally, in a sixth implementation of the second aspect of the present invention, before acquiring the regional feature information between the unit regions, the method further includes:
[0068] An input layer, a hidden layer and an output layer are constructed based on a plurality of neurons, and an initial neuron model structure is generated based on the input layer, the hidden layer and the output layer, wherein each hidden layer in the neuron model structure is provided with a plurality of neurons and connected with neurons in a previous layer.
[0069] The third aspect of the present invention provides an urban traffic travel information prediction device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the urban traffic travel information prediction device executes the steps of the above-mentioned urban traffic travel information prediction method.
[0070] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the steps of the above-mentioned urban traffic travel information prediction method.
[0071] The technical solution provided by the present invention divides the city satellite image into multiple unit areas, obtains the starting point location and the destination location, determines the first unit area where the starting point location is located and the second unit area where the destination location is located, and obtains the relative geographical data between them; obtains the regional image and regional statistical data of the first unit area and the second unit area; performs dimensionality reduction encoding on the regional image to obtain image dimensionality reduction data; inputs the relative geographical data, image dimensionality reduction data and regional statistical data into the travel information prediction model to obtain the travel volume information of various transportation modes between the starting point location and the destination location. The method can complement the high-dimensional satellite image information and the low-dimensional statistical data information, and comprehensively predict the urban traffic travel information with these information, thereby improving the accuracy and reliability of the urban traffic travel information prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0073] Figure 1 It is a flowchart of a first embodiment of a method for predicting urban traffic travel information in an embodiment of the present invention;
[0074] Figure 2 A schematic diagram of unit area segmentation of a method for predicting urban traffic travel information in an embodiment of the present invention;
[0075] Figure 3 A schematic diagram of a unit area segmented in the urban traffic travel information prediction method in an embodiment of the present invention;
[0076] Figure 4 It is a flow chart of a second embodiment of the method for predicting urban traffic travel information in an embodiment of the present invention;
[0077] Figure 5 This is a schematic diagram of the steps of performing prediction in the second embodiment of the method for predicting urban traffic travel information in an embodiment of the present invention;
[0078] Figure 6 It is a structural schematic diagram of an image dimension reduction model in a method for predicting urban traffic travel information in an embodiment of the present invention;
[0079] Figure 7 A schematic diagram of an embodiment of a device for predicting urban traffic information in an embodiment of the present invention;
[0080] Figure 8 A schematic diagram of an embodiment of a device for predicting urban traffic information in an embodiment of the present invention;
[0081] Fig. 9 The figure is a schematic diagram of a computer-readable medium in an embodiment of the present invention. DETAILED DESCRIPTION
[0082] Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. However, exemplary embodiments can be implemented in a variety of forms, and should not be construed as limiting the present invention to the embodiments set forth herein. On the contrary, providing these exemplary embodiments enables the present invention to be more comprehensive and complete, and is more convenient for fully conveying the inventive concept to those skilled in the art. The same reference numerals in the figures represent the same or similar elements, components or parts, and thus their repeated description will be omitted.
[0083] Under the premise of being consistent with the technical concept of the present invention, the features, structures, characteristics or other details described in a specific embodiment do not exclude that they can be combined in one or more other embodiments in a suitable manner.
[0084] In the description of specific embodiments, the features, structures, characteristics or other details described in the present invention are intended to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can practice the technical solutions of the present invention without one or more of the specific features, structures, characteristics or other details.
[0085] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0086] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0087] The term "and / or" or "and / or" includes all combinations of any one or more of the associated listed items.
[0088] See also Figure 1-Figure 3 The first embodiment of the urban traffic travel information prediction method in the embodiment of the present invention includes:
[0089] S101, obtaining a departure point location and a destination location, dividing a city satellite image into a plurality of unit areas, and determining a first unit area where the departure point location is located and a second unit area where the destination location is located;
[0090] It is understandable that the execution subject of the present invention may be a city traffic information prediction device, or a terminal or a server, which is not limited here. The embodiment of the present invention is described by taking a server as the execution subject as an example.
[0091] Before making a specific urban traffic travel information prediction, the study area should be divided into units of the same size. Figure 2 In this embodiment, a city satellite image of the city where the departure point and destination to be predicted are located is obtained, and the city satellite image is divided into a plurality of unit areas according to a preset segmentation size; wherein, in a specific implementation scheme, each unit area is a square, and a divided unit area is as follows Figure 3 shown.
[0092] After receiving the urban traffic travel information prediction request, the server parses the urban traffic travel information prediction request to obtain the departure point location and destination location required for the prediction; after obtaining the departure point location and the destination location, the server searches for the first unit area where the departure point location is located and the second unit area where the destination location is located in the segmented urban satellite image according to the departure point location and the destination location.
[0093] S102, obtaining relative geographical data between the first unit area and the second unit area;
[0094] After segmenting the study area of the urban satellite image in the aforementioned steps, the obtained multiple unit areas will be encoded, and the relative position relationship of each unit area in the satellite image will be recorded.
[0095] Therefore, after obtaining the first unit area corresponding to the departure point position and the second unit area corresponding to the destination position, the relative position relationship between the first unit area and the second unit area can be determined according to the area position codes where the first unit area and the second unit area are located. In a specific implementation, the relative position relationship can be represented by relative geographic data, and the relative geographic data can be relative geographic parameters, which can be obtained by calculating the relative position vector through the area position code of each unit area.
[0096] S103, obtaining regional images and regional statistical data of the first unit area and the second unit area;
[0097] According to the location information of the first unit area and the second unit area, the regional images of the first unit area and the second unit area, i.e., the corresponding first regional image and the corresponding second regional image, are found in the city satellite image, and the obtained regional images are preprocessed. The image preprocessing may include denoising or format conversion, and when performing the format conversion, the image may be converted into a Base64 format so that the computer can read and process the image.
[0098] The regional statistical data described in this embodiment include socio-economic statistical data, which can be obtained through actual visit numbers, resident survey data or Internet survey data; the socio-economic statistical data obtained in each unit community may specifically include: number of households, population, average income level, car ownership rate, occupational distribution, age distribution, number of commercial / office / community service facilities, etc.
[0099] S104, performing dimension reduction coding on the regional images of the first unit region and the second unit region to obtain image dimension reduction data;
[0100] Satellite images contain city feature data, such as road distribution, building distribution, and other information, and social and economic information can also be deduced from image information based on a large model. Therefore, in this embodiment, high-dimensional image information is obtained by introducing satellite image information to supplement the subjective travel behavior influence information of travelers. Therefore, in this step, the regional images of the first unit area and the second unit area obtained in the above step are dimensionality reduced and encoded to obtain image dimensionality reduced data.
[0101] When performing dimensionality reduction processing on an image, a neural network algorithm may be called to extract features in the regional image and perform dimensionality reduction encoding to obtain image dimensionality reduction data.
[0102] S105, inputting the relative geographic data, image dimension reduction data and regional statistical data of the first unit area and the second unit area into a travel information prediction model to obtain travel volume information of various transportation modes between the departure point location and the destination location.
[0103] After obtaining the relative geographic data, image dimension reduction data and regional statistical data of the first unit area and the second unit area, these data are fused and input into the pre-trained travel information prediction model. Among them, the relative geographic data and regional statistical data obtained in the above steps are relatively low-dimensional data. In this embodiment, satellite images of the unit area are introduced as a supplement to the low-dimensional data.
[0104] Specifically, the relative geographic data of the first unit area and the second unit area, the image dimension reduction data obtained after dimensionality reduction processing, and the regional statistical data are spliced and fused respectively to obtain the regional characteristic information of the first unit area and the second unit area; the regional characteristic information of the first unit area and the second unit area obtained after the fusion is input into a pre-trained travel information prediction model for prediction; wherein, when predicting, the travel information prediction model adjusts the model parameters in the travel information prediction model according to the pre-constructed training data to obtain a trained travel information prediction model; the travel information prediction model can predict the possible traffic conditions between the first unit area and the second unit area based on the input regional characteristic information of the first unit area and the second unit area according to the adjusted model parameters, and obtain the travel volume information of various transportation modes between the departure point location and the destination location.
[0105] The embodiments of the present invention can complement high-dimensional satellite image information and low-dimensional statistical data information, and comprehensively use this information to predict urban traffic travel information, thereby improving the accuracy and reliability of urban traffic travel information prediction.
[0106] See also Figure 2-Figure 6 The second embodiment of the urban traffic travel information prediction method in the embodiment of the present invention includes:
[0107] S401, dividing the city satellite image into a plurality of unit areas;
[0108] In this embodiment, first, it is necessary to obtain a city satellite image of the target city for which traffic travel information prediction is to be performed, wherein the city satellite image refers to a satellite image of the portion of the target city for which traffic travel information prediction is currently to be performed, and is not limited to a geographical location that is different from the countryside. After obtaining the city satellite image, the research scope is determined according to the travel information scope of interest. The image within the research scope of the city satellite image is divided into multiple unit areas on the plane; and the relative position information between each unit area during the division is obtained. In a specific implementation scheme, each unit area is a square area of the same size, for example, it can be a square area with a size of 100m×100m.
[0109] After obtaining the images of the multiple unit areas, the images are preprocessed, wherein the preprocessing includes format conversion; in a specific implementation, the image information corresponding to the segmented unit areas is converted into a Base64 format so as to convert the images into a computer-readable string.
[0110] S402, constructing an image dimension reduction model based on a feedforward network structure;
[0111] Before making a specific prediction of traffic information, in this embodiment, an image dimension reduction model is pre-constructed to perform dimension reduction processing on the image of each unit area to obtain a low-dimensional variable corresponding to the satellite image.
[0112] The image dimensionality reduction model constructed in this embodiment for reducing the dimensionality of the image of each unit area is constructed based on a neural network model and is a picture encoding model. In a specific implementation, the image dimensionality reduction model is composed of three types of network layers, including a connection layer, a convolution layer, and a dilated convolution layer; and the connection layer, the convolution layer, and the dilated convolution layer are connected using a feedforward network structure.
[0113] The expression of the connection layer in the image dimensionality reduction model is: dense (h;β)=σ(g(h;β)); where, is a linear function, h is the input variable, b is the offset, β is the connection layer parameter, Its g The offsets b and n g ×n h The weight W is composed of Represents the range of real number domain; σ is a nonlinear activation function, and specific functions such as ReLU, Tanh, Sigmoid, etc. can be selected;
[0114] The expression of the convolutional layer in the image dimensionality reduction model is: conv (h; k) = σ(h*k); where k is a training parameter;
[0115] The two-dimensional convolution point of the input layer x can be expressed as:
[0116]
[0117] Among them, x is the input layer variable, k is the convolution kernel filter parameter, (i x ,i y ) is the coordinate of the sliding center pixel, w x , w y is the sliding step length; in this step, the image is decomposed into multiple small images according to a certain step length, and the center point of each image is i x 、i y .
[0118] The expression of the dilated convolutional layer in the image dimensionality reduction model is: conv,d (h; k) = σ(h* d k); where d is the dilated convolution order.
[0119] Among them, the connection method between the input layer and the convolution kernel is as follows:
[0120]
[0121] Where d is the order of dilated convolution and w is the size of the convolution kernel, which determines the dimension and receptive field of its output.
[0122] The neural network adopts a feedforward network structure, and the formula of the first layer is as follows:
[0123]
[0124] Among them, h (0) is the input layer, h (L) is the output layer, γ (l) is the training parameter.
[0125] Then the entire neural network in the image dimensionality reduction model is expressed as a nonlinear function:
[0126]
[0127] Cutting off from the lth layer, we can get two formulas:
[0128]
[0129]
[0130] We can get two parts of the entire neural network in the image dimensionality reduction model:
[0131] y l =Φ(x;γ Φ );
[0132]
[0133] Thus, the encoding function Φ of the satellite image can be obtained: l It can be regarded as the hidden variable of input y, that is, the low-dimensional variable simplified from the high-dimensional variable of the satellite image. The decoding function Ψ for decompiling the low-dimensional variable to generate the satellite image can also be obtained: symmetric Can be considered as l The decoded high-dimensional variable.
[0134] See also Figure 6 A specific structure of the image dimensionality reduction model constructed in this embodiment is shown in the figure, which includes a two-dimensional input layer, multiple convolutional layers, multiple dilated convolutional layers, a flattening layer, two connection layers and an output layer.
[0135] S403, training a travel information prediction model;
[0136] In this embodiment, a travel information prediction model is also pre-trained. Specifically, the travel information prediction model can predict the travel volume information of the transportation mode according to the location and related information of the target unit area, where the transportation mode can be car, subway, bus, bicycle or walking.
[0137] Specifically, the travel information prediction model needs to be trained before it is used. The regional feature information between each unit area is obtained, and the regional feature information is used as the input layer parameter of the travel information prediction model, wherein the regional feature information includes the relative geographic data, image dimension reduction data and regional statistical data between each unit area; the historical travel volume information between each unit area is obtained, and the historical travel volume information is used as the output layer parameter of the travel information prediction model; the historical regional feature information and the historical travel volume information are input into the constructed initial neural model structure for training, and the training parameters are adjusted to obtain the trained travel information prediction model.
[0138] When obtaining historical travel volume information, historical city traffic information can be obtained, or historical mobile phone positioning data can be obtained through positioning methods such as GPS, and the historical mobile phone positioning data can be pre-processed by desensitizing and screening, and the historical travel volume information can be calculated based on the historical mobile phone positioning data.
[0139] In a specific implementation, the departure point is used as the starting point, and the destination is used as the end point. The specific steps of training the travel information prediction model include:
[0140] (1) The regional feature information of starting point i and end point j and As the input layer parameter of the neural network model, the spatial features between the starting point i and the end point j are calculated at the same time (Spatial features include: straight-line distance, driving time, and bus time), which are also used as input layer parameters of the neural network model;
[0141] (2) The travel volume from the starting point i to the destination j is taken as Calculate the generation rate of trips between them and will As the output layer parameters of the neural network model;
[0142] (3) Multiple neurons are set up in each layer, which are connected to the neurons in the previous layer. The connection weight of neuron j transferred from neuron i in the previous layer is That is, the weighted sum of neuron j in is the output value of neuron i;
[0143] (4) Use Leaky Relu as the activation function, that is ai is any fixed parameter in the range of (1, +∞), so the output value of neuron j becomes
[0144] (5) The output layer only sets a single output neuron and uses cross entropy as the loss function, that is, This normalizes the output result to the range (0,1).
[0145] Through the above steps, the image dimension reduction data, relative geographic data, regional statistical data, and historical travel volume information used for training are brought into the above machine learning model for training to obtain corresponding training parameters.
[0146] S404, obtaining a departure point location and a destination location and determining a first unit area where the departure point location is located and a second unit area where the destination location is located;
[0147] Before making a specific urban traffic travel information prediction, the study area should be divided into units of the same size. Figure 2 In this embodiment, a city satellite image of the city where the departure point and destination to be predicted are located is obtained, and the city satellite image is divided into a plurality of unit areas according to a preset segmentation size; wherein, in a specific implementation scheme, each unit area is a square, and a divided unit area is as follows Figure 3 shown.
[0148] Please continue reading Figure 4 as well as Figure 5 After receiving the urban traffic travel information prediction request, the server parses the urban traffic travel information prediction request to determine the departure point location and the destination location selected by the user when making the request; after obtaining the departure point location and the destination location, the server searches for the first unit area where the departure point location is located and the second unit area where the destination location is located in the segmented urban satellite image according to the departure point location and the destination location.
[0149] S405, obtaining relative geographical data between the first unit area and the second unit area;
[0150] After segmenting the study area of the urban satellite image in the aforementioned steps, the obtained multiple unit areas will be encoded, and the relative position relationship of each unit area in the satellite image will be recorded.
[0151] Therefore, after obtaining the first unit area corresponding to the departure point position and the second unit area corresponding to the destination position, the relative position relationship between the first unit area and the second unit area can be determined according to the area position codes where the first unit area and the second unit area are located. In a specific implementation, the relative position relationship can be represented by relative geographic data, and the relative geographic data can be relative geographic parameters, which can be obtained by calculating the relative position vector through the area position code of each unit area.
[0152] S406, obtaining regional images and regional statistical data of the first unit area and the second unit area;
[0153] According to the location information of the first unit area and the second unit area, the regional images of the first unit area and the second unit area, i.e., the corresponding first regional image and the corresponding second regional image, are found in the city satellite image, and the obtained regional images are preprocessed. The image preprocessing may include denoising or format conversion, and when performing the format conversion, the image may be converted into a Base64 format so that the computer can read and process the image.
[0154] The regional statistical data described in this embodiment include socio-economic statistical data, which can be obtained through actual visit numbers, resident survey data or Internet survey data; the socio-economic statistical data obtained in each unit community may specifically include: number of households, population, average income level, car ownership rate, occupational distribution, age distribution, number of commercial / office / community service facilities, etc.
[0155] S407, inputting the regional images of the first unit region and the second unit region into the image dimensionality reduction model to perform dimensionality reduction processing, thereby obtaining image dimensionality reduction data of the first unit region and the second unit region;
[0156] Satellite images contain city feature data, such as road distribution, building distribution, and other information, and social and economic information can also be deduced from image information based on a large model. Therefore, in this embodiment, high-dimensional image information is obtained by introducing satellite image information to supplement the subjective travel behavior influence information of travelers. Therefore, in this step, the regional images of the first unit area and the second unit area obtained in the previous step are dimensionality reduced and encoded to obtain image dimensionality reduced data.
[0157] See also Figure 6 , a specific structure of the image dimensionality reduction model in this embodiment is shown in the figure. When the obtained unit area is input into the image dimensionality reduction model for processing, it is first input into the two-dimensional input layer, and then sequentially passed into the convolution layer and the dilated convolution layer, and then passed into the convolution layer and the dilated convolution layer again, and then passed into the flattening layer to process the multi-dimensional information into one dimension, and then passed into the connection layer, and finally entered into the output layer and output. Specifically, in this embodiment, the satellite image of the unit cell is converted into a two-dimensional input variable I, and the constructed neural network model is input to obtain the encoded dimensionality reduction variable, that is:
[0158] I′=(I;γ Φ );
[0159] Among them, I′ is the dimension reduction variable of the satellite image in the unit area.
[0160] S408: Input the relative geographic data, image dimension reduction data and regional statistical data of the first unit area and the second unit area into the travel information prediction model to obtain the travel volume information of various transportation modes between the departure point location and the destination location.
[0161] In a specific real-time method, travel volume information includes predicted passenger flow; relative geographic data, image dimension reduction data and regional statistical data are spliced to obtain regional characteristic information of the first unit area and the second unit area respectively; the regional characteristic information of the first unit area and the second unit area is input into a travel information prediction model to obtain predicted passenger flow of various transportation modes between a departure point location and a destination location.
[0162] Specifically, the characteristic information of the first unit area and the second unit area is input into the input layer of the travel information prediction model; after the input layer receives the characteristic information of the first unit area and the second unit area, the characteristic information of the information area is transmitted between the neurons of each hidden layer according to the training parameters of the travel information prediction model and the connection mode and connection weight between each neuron, and the predicted passenger flow of various transportation modes between the departure point location and the destination location is output through the output layer.
[0163] The solution in the embodiment of the present invention introduces satellite imagery as a supplement to low-dimensional data such as relative geographic data and socio-economic statistical data between the departure point and the destination. Since satellite imagery carries data on urban characteristics such as road distribution, building distribution, etc., and imagery can also infer some socio-economic indicators through large models, all this information can be used as a supplement to the missing dimensions of traditional low-dimensional data. And satellite imagery can also provide subjective attributes to characterize the subjective travel behavior influence of urban travelers. Therefore, the present invention can complement low-dimensional statistical data and high-dimensional image data to capture the explicit and implicit characteristics that affect traffic travel, and combine this information to predict urban traffic travel information, thereby improving the accuracy and reliability of urban traffic travel information prediction.
[0164] The above describes the urban traffic travel information prediction method in the embodiment of the present invention. The following describes the urban traffic travel information prediction device in the embodiment of the present invention. Figure 7 , an embodiment of the urban traffic travel information prediction device in the embodiment of the present invention includes:
[0165] The image processing module 701 is used to divide the city satellite image into multiple unit areas, obtain the departure point location and the destination location and determine the first unit area where the departure point location is located and the second unit area where the destination location is located, and obtain the relative geographical data between the first unit area and the second unit area;
[0166] An acquisition module 702 is used to acquire regional images and regional statistical data of the first unit area and the second unit area;
[0167] A dimension reduction module 703 is used to perform dimension reduction coding on the regional images of the first unit area and the second unit area to obtain image dimension reduction data;
[0168] The prediction module 704 is used to input the relative geographic data, image dimension reduction data and regional statistical data of the first unit area and the second unit area into the travel information prediction model to obtain the travel volume information of various transportation modes between the departure point location and the destination location.
[0169] The embodiments of the present invention can complement high-dimensional satellite image information and low-dimensional statistical data information, and comprehensively use this information to predict urban traffic travel information, thereby improving the accuracy and reliability of urban traffic travel information prediction.
[0170] In another embodiment of the present application, the travel volume information includes predicted passenger flow;
[0171] The prediction module 704 includes:
[0172] A data splicing unit, used for splicing the relative geographic data, the image dimension reduction data and the regional statistical data to obtain regional characteristic information of the first unit area and the second unit area respectively;
[0173] The prediction execution unit is used to input the regional characteristic information of the first unit area and the second unit area into the travel information prediction model to obtain the predicted passenger flow of various transportation modes between the departure point location and the destination location.
[0174] In another embodiment of the present application, the travel information prediction model includes a plurality of network layers, wherein the network layers include an input layer, a hidden layer, and an output layer;
[0175] The prediction execution unit is specifically used for:
[0176] Inputting the characteristic information of the first unit area and the second unit area into the input layer of the travel information prediction model;
[0177] After the input layer receives the characteristic information of the first unit area and the second unit area, the characteristic information of the information area is transmitted between the neurons of each hidden layer according to the training parameters of the travel information prediction model and the connection mode and connection weight between each neuron, and the predicted passenger flow of various transportation modes between the departure point and the destination is output through the output layer.
[0178] In another embodiment of the present application, the urban traffic travel information prediction device further includes a dimensionality reduction model construction module, and the dimensionality reduction model construction module is used to:
[0179] Build an image dimensionality reduction model based on a feedforward network structure;
[0180] The dimension reduction module 703 is specifically used for:
[0181] The regional images of the first unit region and the second unit region are input into the image dimension reduction model for dimension reduction processing to obtain image dimension reduction data of the first unit region and the second unit region.
[0182] In another embodiment of the present application, the image dimensionality reduction model includes a connection layer, a convolution layer and a dilated convolution layer, and the connection layer, the convolution layer and the dilated convolution layer are connected using a feedforward network structure;
[0183] The expression of the connection layer is:
[0184] f dense (h; β) = σ(g(h; β));
[0185] in, is a linear function, h is the input variable, b is the offset, β is the connection layer parameter; σ is a nonlinear activation function;
[0186] The expression of the convolutional layer is:
[0187] f conv (h; k) = σ(h*k);
[0188] Among them, k is a training parameter;
[0189] The expression of the dilated convolutional layer is:
[0190] f conv,d (h; k) = σ(h* d k);
[0191] Among them, d is the dilated convolution order.
[0192] In another embodiment of the present application, the urban traffic travel information prediction device further includes:
[0193] Travel information prediction model training module;
[0194] The travel information prediction model training module is specifically used for:
[0195] Acquire regional characteristic information between each unit area, and use the regional characteristic information as an input layer parameter of a travel information prediction model, wherein the regional characteristic information includes relative geographic data, image dimension reduction data and regional statistical data between each unit area;
[0196] Acquire historical travel volume information between each unit area, and use the historical travel volume information as an output layer parameter of a travel information prediction model;
[0197] The historical regional feature information and the historical travel volume information are input into the constructed initial neural model structure for training, and the training parameters are adjusted to obtain a trained travel information prediction model.
[0198] In another embodiment of the present application, the travel information prediction model training module further includes:
[0199] An input layer, a hidden layer and an output layer are constructed based on a plurality of neurons, and an initial neuron model structure is generated based on the input layer, the hidden layer and the output layer, wherein each hidden layer in the neuron model structure is provided with a plurality of neurons and connected with neurons in a previous layer.
[0200] The solution in the embodiment of the present invention introduces satellite imagery as a supplement to low-dimensional data such as relative geographic data and socio-economic statistical data between the departure point and the destination. Since satellite imagery carries data on urban characteristics such as road distribution, building distribution, etc., and imagery can also infer some socio-economic indicators through large models, all this information can be used as a supplement to the missing dimensions of traditional low-dimensional data. And satellite imagery can also provide subjective attributes to characterize the subjective travel behavior influence of urban travelers. Therefore, the present invention can complement low-dimensional statistical data and high-dimensional image data to capture the explicit and implicit characteristics that affect traffic travel, and combine this information to predict urban traffic travel information, thereby improving the accuracy and reliability of urban traffic travel information prediction.
[0201] above Figure 7 The urban traffic travel information prediction device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. Based on the same inventive concept, the embodiment of this specification also provides an urban traffic travel information prediction device. The urban traffic travel information prediction device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0202] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. Figure 8 The electronic device 800 according to this embodiment of the present invention is described. Figure 8 The electronic device 800 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0203] like Figure 8 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include, but are not limited to: at least one processing unit 810, at least one storage unit 820, a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810), a display unit 840, etc.
[0204] The storage unit stores program codes, which can be executed by the processing unit 810, so that the processing unit 810 performs the steps according to various exemplary embodiments of the present invention described in the above processing method section of this specification. For example, the processing unit 810 can perform the following steps: Figure 1 or Figure 4 Steps shown.
[0205] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 8201 and / or a cache memory unit 8202 , and may further include a read-only memory unit (ROM) 8203 .
[0206] The storage unit 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0207] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0208] The electronic device 800 may also communicate with one or more external devices 100 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 800, and / or any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 850. Furthermore, the electronic device 800 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 860. The network adapter 860 may communicate with other modules of the electronic device 800 through the bus 830. It should be understood that although Figure 8 Not shown, other hardware and / or software modules may be used in conjunction with electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0209] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the exemplary embodiments described in the present invention can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation method of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.) or on a network, including a number of instructions to enable a computing device (which can be a personal computer, server, or network device, etc.) to execute the above method according to the present invention. When the computer program is executed by a data processing device, the computer-readable medium can implement the above method of the present invention, that is: Figure 1 or Figure 4 The method shown.
[0210] Fig. 9 A schematic diagram of a computer-readable medium provided for an embodiment of this specification.
[0211] accomplish Figure 1 or Figure 4 The computer program of the method shown can be stored on one or more computer readable media. The computer readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0212] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0213] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0214] In summary, the present invention can be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that general data processing devices such as microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0215] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the present invention is not inherently related to any specific computer, virtual device or electronic device, and various general devices can also implement the present invention. The above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0216] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0217] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for predicting urban traffic travel information, characterized in that: include: Divide the city satellite image into multiple unit areas, obtain the departure point location and the destination location and determine the first unit area where the departure point location is located and the second unit area where the destination location is located, and obtain relative geographic data between the first unit area and the second unit area; Acquire regional images and regional statistical data of the first unit area and the second unit area; Performing dimension reduction coding on the regional images of the first unit area and the second unit area to obtain image dimension reduction data; The relative geographic data, image dimension reduction data and regional statistical data of the first unit area and the second unit area are input into the travel information prediction model to obtain the travel volume information of various transportation modes between the departure point location and the destination location.
2. The urban traffic travel information prediction method according to claim 1, characterized in that: The travel volume information includes predicted passenger flow; The step of inputting the relative geographic data, image dimension reduction data and regional statistical data of the first unit area and the second unit area into the travel information prediction model to obtain the travel volume information of various transportation modes between the departure point location and the destination location includes: splicing the relative geographic data, the image dimension reduction data and the regional statistical data to obtain regional characteristic information of the first unit area and the second unit area respectively; The regional characteristic information of the first unit area and the second unit area is input into the travel information prediction model to obtain the predicted passenger flow of various transportation modes between the departure point location and the destination location.
3. The urban traffic travel information prediction method according to claim 1, characterized in that: The travel information prediction model includes multiple network layers, and the network layers include an input layer, a hidden layer and an output layer; The step of inputting the regional characteristic information of the first unit area and the second unit area into the travel information prediction model to obtain the predicted passenger flow of various transportation modes between the departure point location and the destination location includes: Inputting the characteristic information of the first unit area and the second unit area into the input layer of the travel information prediction model; After the input layer receives the characteristic information of the first unit area and the second unit area, the characteristic information of the information area is transmitted between the neurons of each hidden layer according to the training parameters of the travel information prediction model and the connection mode and connection weight between each neuron, and the predicted passenger flow of various transportation modes between the departure point and the destination is output through the output layer.
4. The urban traffic travel information prediction method according to claim 1, characterized in that: Before performing dimension reduction coding on the regional images of the first unit area and the second unit area to obtain image dimension reduction data, the method further includes: Build an image dimensionality reduction model based on a feedforward network structure; The performing dimension reduction coding on the regional images of the first unit area and the second unit area to obtain image dimension reduction data comprises: The regional images of the first unit region and the second unit region are input into the image dimension reduction model for dimension reduction processing to obtain image dimension reduction data of the first unit region and the second unit region.
5. The urban traffic travel information prediction method according to claim 4, characterized in that: The image dimensionality reduction model includes a connection layer, a convolution layer and a dilated convolution layer, and the connection layer, the convolution layer and the dilated convolution layer are connected using a feedforward network structure; The expression of the connection layer is: f dense (h;β)=σ(g(h;β)); in, is a linear function, h is the input variable, b is the offset, β is the connection layer parameter; σ is a nonlinear activation function; The expression of the convolutional layer is: f conv (h;k)=σ(h*k); Among them, k is a training parameter; The expression of the dilated convolutional layer is: f conv,d (h;k)=σ(h* d k); Among them, d is the dilated convolution order.
6. The urban traffic travel information prediction method according to claim 1, characterized in that: Before obtaining the departure point location and the destination location, the method further includes: Acquire regional characteristic information between each unit area, and use the regional characteristic information as an input layer parameter of a travel information prediction model, wherein the regional characteristic information includes relative geographic data, image dimension reduction data and regional statistical data between each unit area; Acquire historical travel volume information between each unit area, and use the historical travel volume information as an output layer parameter of a travel information prediction model; The historical regional feature information and the historical travel volume information are input into the constructed initial neural model structure for training, and the training parameters are adjusted to obtain a trained travel information prediction model.
7. The urban traffic travel information prediction method according to claim 6, characterized in that: Before obtaining the regional feature information between the unit regions, the method further includes: An input layer, a hidden layer and an output layer are constructed based on a plurality of neurons, and an initial neuron model structure is generated based on the input layer, the hidden layer and the output layer, wherein each hidden layer in the neuron model structure is provided with a plurality of neurons and connected with neurons in a previous layer.
8. A device for predicting urban traffic information, characterized in that: The urban traffic travel information prediction device comprises: An image processing module, used to divide the city satellite image into a plurality of unit areas, obtain a departure point location and a destination location, determine a first unit area where the departure point location is located and a second unit area where the destination location is located, and obtain relative geographic data between the first unit area and the second unit area; An acquisition module, used for acquiring regional images and regional statistical data of the first unit area and the second unit area; A dimension reduction module, used for performing dimension reduction coding on the regional images of the first unit area and the second unit area to obtain image dimension reduction data; The prediction module is used to input the relative geographic data, image dimension reduction data and regional statistical data of the first unit area and the second unit area into the travel information prediction model to obtain the travel volume information of various transportation modes between the departure point location and the destination location.
9. A device for predicting urban traffic information, characterized in that: The urban traffic travel information prediction device comprises: a memory and at least one processor, wherein the memory stores instructions; The at least one processor calls the instructions in the memory to enable the urban traffic travel information prediction device to perform the steps of the urban traffic travel information prediction method according to any one of claims 1 to 7.
10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the steps of the urban traffic travel information prediction method as described in any one of claims 1-7 are implemented.
