Urban rail transit short-time OD flow prediction system and method based on deep learning

By constructing a graph convolutional neural network and a two-dimensional convolutional neural network in urban rail transit and introducing an attention mechanism, the problem of poor short-term OD flow prediction in the existing technology is solved, and high-precision and real-time prediction is achieved. Predict results to meet actual operational needs.

CN118551885AInactive Publication Date: 2024-08-27CHONGQING PUBLIC TRANSPORTATION CAREER ACADEMY +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410622288.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-08-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing urban rail transit short-term OD flow prediction effect is poor, especially when the network scale is large, it is difficult to meet the real-time requirements, and the prediction accuracy needs to be improved. The traditional model consumes a lot of computing resources and the model structure adjustment is complex.

Method used

Using methods based on deep learning, by constructing graph convolutional neural networks and two-dimensional convolutional neural networks, and introducing attention mechanisms, the PyTorch deep learning framework is used to build algorithm models, and optimization is performed based on evaluation indicators to obtain high-precision and real-time short-term information. time OD flow prediction results.

Benefits of technology

It achieves high-precision and real-time short-term OD flow prediction, can capture the complex spatiotemporal dependencies and topological information of network passenger flows, and has good model performance and practical application value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118551885A
    Figure CN118551885A
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, in particular to an urban rail transit short-time OD flow prediction system and method based on deep learning, and the method comprises the steps: analyzing problems existing in urban rail transit short-time OD flow prediction, obtaining an analysis result, and obtaining subway AFC card swiping data; preprocessing the subway AFC card swiping data to obtain preprocessed data; constructing a graph convolutional neural network and a two-dimensional convolutional neural network based on the analysis result and the preprocessed data, and introducing an attention mechanism to obtain a deep learning algorithm model; evaluating and optimizing the deep learning algorithm model by adopting an evaluation index to obtain a prediction model; and performing prediction by using the prediction model to obtain a prediction result. The problem that the short-time OD flow prediction effect of the existing urban rail transit is poor is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a system and method for predicting short-term OD flow of urban rail transit based on deep learning. Background Art

[0002] With the rapid expansion of the scale of urban rail transit network and the sharp increase in passenger flow, the temporal and spatial distribution of network passenger flow is becoming increasingly complex, and the system's safe operation and emergency management are facing huge challenges. Therefore, it is necessary to follow the development trend of networking and the normalization of large passenger flow, scientifically and rationally analyze the passenger flow status of rail transit, and carry out corresponding operation organization and passenger flow control. The rapid development of emerging technologies such as big data and artificial intelligence has provided ideas and methods for the intelligent operation organization and passenger flow control of rail transit.

[0003] According to different research methods, artificial intelligence can be roughly divided into three aspects in the operation and management stage of urban rail transit. The first is short-term passenger flow prediction, that is, using historical AFC (automatic fare collection) card data to extract the time series of passenger flow, and using historical passenger flow time series data and external factors (such as weather data) to build a deep learning model to predict passenger flow in the short term in the future. According to different research objects, it can be divided into short-term station flow prediction, short-term OD flow prediction and short-term section flow prediction. The second is to use various surveillance video data in subway stations to build a deep learning model for pedestrian detection and counting, object detection, scene detection, etc. The third is applications related to reinforcement learning, such as train timetable optimization and station flow control based on reinforcement learning.

[0004] In the process of predicting the short-term inbound flow of urban rail transit, after obtaining the number of passengers entering the station, it is necessary to predict the destination of the passengers, that is, to perform short-term OD flow prediction of urban rail transit, in order to solve the problem of how to obtain the OD flow of the rail transit system in a short period of time. Through the short-term OD flow prediction, the OD matrix of the network can be obtained, which can be used as an important input for passenger flow distribution for short-term cross-sectional flow prediction. Therefore, the short-term OD flow prediction is a bridge between the short-term inbound flow prediction and the short-term cross-sectional flow prediction, and plays an important role in the short-term passenger flow prediction system of smart city rail transit. An accurate short-term OD flow prediction model can provide the spatiotemporal travel distribution between stations, which helps to understand passenger travel behavior.

[0005] There are relatively few studies on the use of deep learning models for short-term OD flow prediction in the field of rail transit. Most researchers use traditional models such as state space models, least squares models, and multi-agent simulation models for research and analysis. Zhou Weiteng et al. used a weighted historical average adaptive model to predict the short-term entry volume of urban rail transit, and then obtained the short-term OD passenger flow and cross-sectional passenger flow prediction results through OD matrix prediction and multi-agent simulation modeling, and proposed a time-space binary verification method for verification. The entire short-term passenger flow prediction system is relatively complete. Yao Xiangming, Zhao Peng et al. proposed a dynamic OD matrix estimation model under a sliding average strategy based on the least squares method and constructed a short-term passenger flow OD matrix estimation model based on the state space method. Based on Yao Xiangming's research, Chen Zhijie, Mao Baohua et al. proposed a short-term OD passenger flow multi-model combination estimation method with multiple time granularities based on the state space model, which improved the accuracy of short-term OD estimation. The above traditional models consume a lot of computing resources, especially when the network scale is large, so it is difficult to meet the real-time requirements, and the prediction accuracy needs to be improved; the multi-agent simulation model involves the construction of the simulation system, which is a complex process and is not conducive to the adjustment of the model structure. In the field of deep learning, some studies use parallel computing technology to predict OD at each station using LSTM, and finally merge the OD sequences of all stations as the final OD matrix prediction result. However, this type of research cannot capture the complex spatiotemporal dependencies and nonlinear relationships between OD flows, and the modeling process of predicting at each station is cumbersome, and the feasibility and practicality are poor.

[0006] In summary, the existing prediction directions have poor effects. Summary of the invention

[0007] The purpose of the present invention is to provide a system and method for predicting short-term OD flow of urban rail transit based on deep learning, aiming to solve the problem that the existing short-term OD flow prediction of urban rail transit is poor.

[0008] To achieve the above objectives, in a first aspect, the present invention provides a method for predicting short-term OD flow of urban rail transit based on deep learning, comprising the following steps:

[0009] Analyze the existing problems in short-term OD flow prediction of urban rail transit, obtain analysis results, and obtain subway AFC card swiping data;

[0010] Preprocessing the subway AFC card swiping data to obtain preprocessed data;

[0011] Based on the analysis results and the preprocessed data, a graph convolutional neural network and a two-dimensional convolutional neural network are constructed and an attention mechanism is introduced to obtain a deep learning algorithm model;

[0012] Using evaluation indicators to evaluate and optimize the deep learning algorithm model to obtain a prediction model;

[0013] The prediction model is used to perform prediction and obtain a prediction result.

[0014] The subway AFC card swiping data includes the passenger's card number, entry and exit time, and entry and exit code.

[0015] The preprocessing of the subway AFC card swiping data to obtain preprocessed data includes:

[0016] The subway AFC card swiping data is cleaned, and records with unreasonable logic and variables that are useless for short-term OD flow prediction of urban rail transit are deleted to obtain preprocessed data.

[0017] Among them, the deep learning algorithm model uses the PyTorch deep learning framework to construct the algorithm model.

[0018] The evaluation indexes are root mean square error RMSE, Pearson correlation coefficient R 2 , mean absolute error MAE and weighted mean absolute percentage error WMAPE.

[0019] In a second aspect, the present invention provides a short-term OD flow prediction system for urban rail transit based on deep learning, comprising a problem analysis module, a data acquisition module, a data processing module, a model construction module and a prediction module, wherein the data acquisition module, the data processing module, the model construction module and the prediction module are connected in sequence, and the problem analysis module is connected to the model construction module;

[0020] The data acquisition module is used to acquire subway AFC card swiping data;

[0021] The data processing module is used to pre-process the subway AFC card swiping data to obtain pre-processed data;

[0022] The model building module constructs a graph convolutional neural network and a two-dimensional convolutional neural network based on the analysis results and the preprocessed data and introduces an attention mechanism to obtain a deep learning algorithm model, and uses evaluation indicators to evaluate and optimize the deep learning algorithm model to obtain a prediction model;

[0023] The prediction module is used to use the prediction model to perform prediction and obtain a prediction result.

[0024] The present invention discloses a method for predicting short-term OD flow of urban rail transit based on deep learning. The method analyzes the existing problems of short-term OD flow prediction of urban rail transit to obtain analysis results and obtain subway AFC card swiping data; preprocesses the subway AFC card swiping data to obtain preprocessed data; constructs a graph convolutional neural network and a two-dimensional convolutional neural network based on the analysis results and the preprocessed data and introduces an attention mechanism to obtain a deep learning algorithm model; uses evaluation indicators to evaluate and optimize the deep learning algorithm model to obtain a prediction model; uses the prediction model to predict and obtain prediction results. The deep learning algorithm model constructed by the present invention can provide short-term OD flow prediction for the station and meet the requirements of high precision and real-time performance in actual operation. It can capture the complex spatiotemporal dependencies and network topology information between network passenger flows, and has the advantages of acceptable model complexity, good model performance effect and greater practical application value. It solves the problem that the existing short-term OD flow prediction of urban rail transit is poor. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0026] Figure 1 This is a flowchart of a method for predicting short-term OD flow of urban rail transit based on deep learning provided by the present invention.

[0027] Figure 2 It is a schematic diagram of the basic framework of the prediction model.

[0028] Figure 3 is a diagram of the dimensions of the dataset.

[0029] Figure 4 This is a schematic diagram showing the basic framework of the model.

[0030] Figure 5 It is a schematic diagram of the weight training of the model algorithm.

[0031] Figure 6 It is a comparison chart of the actual value and the predicted value.

[0032] Figure 7 It is a structural schematic diagram of a short-term OD flow prediction system for urban rail transit based on deep learning provided by the present invention.

[0033] 1-Problem analysis module, 2-Data acquisition module, 3-Data processing module, 4-Model building module, 5-Prediction module. DETAILED DESCRIPTION

[0034] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0035] See also Figures 1 to 5 In the first aspect, the present invention provides a short-term OD flow prediction method for urban rail transit based on deep learning. In order to fully grasp the temporal and spatial distribution of passenger flow in the rail transit system, after obtaining the real-time station entry volume, it is necessary to use short-term OD flow prediction to determine the destination of passengers. The short-term OD flow prediction result is an important input for dynamic passenger flow allocation, and can also provide a reference for real-time operation organization management, route planning, passenger flow congestion relief, etc., which has important research value and significance.

[0036] By analyzing the problems faced in short-term OD flow prediction, this paper studies the data from four aspects: data availability, data dependency, data dimension, and data sparsity.

[0037] 1. Data availability

[0038] Most traffic prediction tasks can obtain real-time traffic data, and the availability of data varies greatly for different traffic systems, as shown in Table 1. Since rail transit passengers need to swipe cards or scan codes to enter and exit the station, the entry and exit flow of rail transit can also be obtained in real time, which can be used to predict the entry and exit flow at the next moment. However, it takes a certain amount of travel time for passengers to travel from the starting point to the destination, and the real-time OD flow cannot be obtained. The OD matrix within this time period can only be obtained after all passengers have completed their trips within this time period. Therefore, when performing real-time rail transit short-term OD flow prediction, the model input needs to be carefully considered.

[0039] Table 1 Availability of real-time and true OD matrices

[0040] Road Traffic taxi the bus Rail Transit Real OD matrix × √ It depends on the situation √ Real-time OD matrix × √ × ×

[0041] 2. Data Dependencies

[0042] Since all passengers have a travel destination, they will definitely exit the subway station after entering it. Therefore, the in-and-out flow of the rail transit system is equal to the sum of the OD flow. When constructing the model, the relationship between the in-and-out flow and the OD flow needs to be carefully considered.

[0043] 3. Data sparsity

[0044] The OD matrix of rail transit is quite sparse in both time and space dimensions, that is, there is no OD flow or the OD flow is small between a large number of OD pairs. The reasons are mainly from two aspects. First, the travel patterns of passengers change over time, which causes the sparse pattern of OD flow to change accordingly. For example, during the morning rush hour, passengers in some OD pairs go from residential areas to employment areas, and vice versa during the evening rush hour. Second, due to the huge OD flow dimension, the total passenger flow entering the station is dispersed between different OD pairs, which will cause the flow between a large number of OD pairs to be small or even zero. In the OD flow prediction task of taxi services or road traffic, there is also a data sparsity problem, but the severity of the problem is relatively weak; in comparison, the data such as rail transit in and out flow and road traffic flow are relatively dense.

[0045] The following steps are involved:

[0046] S1 analyzes the existing problems in short-term OD flow prediction of urban rail transit, obtains analysis results, and obtains subway AFC card swiping data;

[0047] Specifically, we analyze the existing problems in short-term OD flow prediction of urban rail transit and explore solutions. In addition, we obtain subway AFC card swiping data through the Internet and relevant data open platforms (including the historical card swiping data of subway stations provided by the Global Urban Computing AI Challenge hosted by the Organizing Committee of the 10th China (Hangzhou) International Social Public Security Products and Technology Expo in 2019, hosted by Alibaba Cloud Tianchi and Alibaba Damo Academy, the Shenzhentong card swiping data published by the Shenzhen Municipal Government Data Open Platform, and the passenger flow time series data open sourced by Sun Yat-sen University in its research paper, etc.). We also analyze the passenger entry and exit card swiping information through AFC card swiping data records, including the passenger's card number, entry and exit time, entry and exit code, etc.

[0048] S2 pre-processes the subway AFC card swiping data to obtain pre-processed data;

[0049] Specifically, the information in the subway AFC data is of coding type, and the station code must be matched with the corresponding station name to be meaningful. The fields required to extract the passenger flow time series are the card issuance number, entry number, entry time, exit number, exit time, and the entry and exit station names after matching the entry code and exit code. Considering the temporal and spatial characteristics of passenger travel and the travel patterns of passengers, for the subway AFC card swiping data, it is necessary to delete the records that are obviously unreasonable in logic and some variables that are useless for this study, and clean the data.

[0050] S3 constructs a graph convolutional neural network and a two-dimensional convolutional neural network based on the analysis results and the preprocessed data and introduces an attention mechanism to obtain a deep learning algorithm model;

[0051] Specifically, the deep learning algorithm model uses the PyTorch deep learning framework to construct the algorithm model.

[0052] Specifically, the following research needs to be conducted when building the model:

[0053] Research and analysis on short-term OD flow prediction problem:

[0054] Normally, the OD matrix of several temporary time periods is used as input to predict the OD matrix of future time periods. However, in urban rail transit, there is a formation time, and the real-time OD matrix cannot be obtained, but the real-time inbound passenger flow can be obtained. Therefore, how to use the historical OD matrix information and the real-time inbound passenger flow and outbound passenger flow time series information to predict the OD matrix in the future time period is one of the core issues of the research.

[0055] Basic model research and case studies:

[0056] If a single deep learning model is used for OD flow prediction, it is necessary to use the relevant convolutional neural network model to process the OD matrix at a single time granularity as a "picture". For neural networks, convolution kernels of the same size are usually used to extract features, but in order to improve the model to achieve better results, the network depth is usually increased. However, as the number of network layers increases, problems such as overfitting, gradient disappearance, and gradient explosion arise accordingly. Therefore, it is necessary to study and analyze relevant algorithm models and cases to achieve better results.

[0057] Research on data dependency issues:

[0058] Since the real-time OD matrix is ​​not available in the short-term OD flow prediction task of urban rail transit, it is necessary to carefully consider how to introduce real-time passenger flow information in the experimental process. Based on the strong intrinsic dependence between OD flow and inbound and outbound flow, how to effectively integrate historical OD matrix information and real-time inbound and outbound passenger flow information through the output of the neural network control algorithm model is one of the key and difficult points of the research.

[0059] Research on data sparsity problem:

[0060] In the convolution operation of the neural network, convolution kernels of different sizes can be used to capture spatiotemporal dependencies, and sparse OD information can be converted into dense high-order feature information (such as deep separable convolution, spatial separable convolution, and grouped convolution), thereby solving the serious sparsity problem of OD data to a certain extent. We also explored the introduction of an attention mechanism to perform weighted fusion on the model input and the extracted feature information to study whether better results can be achieved.

[0061] Through research and analysis, PyTorch's dynamic computational graph makes writing deep learning code easier and more intuitive. Developers can define computational graphs just like writing Python code, which is more in line with the way Python developers think. For scientific research and prototype development, PyTorch can quickly build prototype models, and can quickly iterate and debug. Therefore, the PyTorch deep learning framework is used to build algorithm models, evaluate and analyze algorithm effect indicators, and train and test models to complete the research on the short-term OD flow prediction algorithm for urban rail transit.

[0062] The basic framework of the prediction model is as follows Figure 2 As shown in the figure, using historical entry flow data, graph convolutional neural network and two-dimensional convolutional neural network, the entry flow of all subway stations in the next 15 minutes is predicted.

[0063] The dimensions of the data set during model training, the model basic framework display, the weight training of the model algorithm, and the comparison chart of the true value and predicted value are shown below. Figure 3 to Figure 6 shown.

[0064] This article will adjust and optimize the network structure and attention mechanism structure and make subtle parameter adjustments based on the basic structure of the prediction model basic framework to improve the performance of the model.

[0065] S4 uses evaluation indicators to evaluate and optimize the deep learning algorithm model to obtain a prediction model;

[0066] Specifically, the evaluation index uses root mean square error RMSE, Pearson correlation coefficient R 2 , mean absolute error MAE and weighted mean absolute percentage error WMAPE. Through the comparison of the loss function value of model training and the verification loss function value, the true value and the predicted value, multiple iterative training is performed to improve the model performance.

[0067] S5 uses the prediction model to perform prediction and obtain a prediction result.

[0068] Specifically, the present invention will adjust and optimize the network structure and attention mechanism structure and make subtle parameter adjustments based on the basic structure of the prediction model basic framework to improve the performance of the model.

[0069] In a second aspect, the present invention provides a short-term OD flow prediction system for urban rail transit based on deep learning, comprising a problem analysis module 1, a data acquisition module 2, a data processing module 3, a model construction module 4 and a prediction module 5, wherein the data acquisition module 2, the data processing module 3, the model construction module 4 and the prediction module 5 are connected in sequence, and the problem analysis module 1 is connected to the model construction module 4;

[0070] The data acquisition module 2 is used to acquire subway AFC card swiping data;

[0071] The data processing module 3 is used to pre-process the subway AFC card swiping data to obtain pre-processed data;

[0072] The model building module 4 builds a graph convolutional neural network and a two-dimensional convolutional neural network based on the analysis results and the preprocessed data and introduces an attention mechanism to obtain a deep learning algorithm model, and uses evaluation indicators to evaluate and optimize the deep learning algorithm model to obtain a prediction model;

[0073] The prediction module 5 is used to use the prediction model to perform prediction and obtain a prediction result.

[0074] Specific innovations:

[0075] (1) Explore the optimal combination of OD matrix extraction at different time granularities.

[0076] (2) Use depthwise separable convolution to deal with the sparsity problem of OD matrix data.

[0077] (3) Explore how to solve the problem of unobtainable real-time OD flow matrix.

[0078] (4) The attention mechanism is used to intervene in the model input and the extracted feature information to achieve better prediction results.

[0079] (5) Based on the basic framework of the model, a new urban rail transit short-term OD flow prediction algorithm model based on deep learning is optimized and constructed.

[0080] Beneficial effects:

[0081] 1. The constructed deep learning algorithm model can provide short-term OD flow prediction for the station, meeting the requirements of high precision and real-time performance in actual operation.

[0082] 2. The constructed deep learning algorithm model for short-term OD flow prediction of urban rail transit can capture the complex spatiotemporal dependencies and network topology information between network passenger flows, and has the advantages of acceptable model complexity, good model performance and great practical application value.

[0083] What is disclosed above is only a preferred embodiment of the urban rail transit short-term OD flow prediction system and method based on deep learning of the present invention. Of course, this cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiments and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.

Claims

1. A short-term OD flow prediction method for urban rail transit based on deep learning, It is characterized in that The following steps are involved: Analyze the existing problems in short-term OD flow prediction of urban rail transit, obtain analysis results, and obtain subway AFC card swiping data; Preprocessing the subway AFC card swiping data to obtain preprocessed data; Based on the analysis results and the preprocessed data, a graph convolutional neural network and a two-dimensional convolutional neural network are constructed and an attention mechanism is introduced to obtain a deep learning algorithm model; Using evaluation indicators to evaluate and optimize the deep learning algorithm model to obtain a prediction model; The prediction model is used to perform prediction and obtain a prediction result.

2. The urban rail transit short-term OD flow prediction method based on deep learning as claimed in claim 1, It is characterized in that The subway AFC card swiping data includes the passenger's card number, entry and exit time, and entry and exit code.

3. The urban rail transit short-term OD flow prediction method based on deep learning as claimed in claim 2, It is characterized in that The preprocessing of the subway AFC card swiping data to obtain preprocessed data includes: The subway AFC card swiping data is cleaned, and records with unreasonable logic and variables that are useless for short-term OD flow prediction of urban rail transit are deleted to obtain preprocessed data.

4. The urban rail transit short-term OD flow prediction method based on deep learning as claimed in claim 3, It is characterized in that The deep learning algorithm model uses the PyTorch deep learning framework to construct the algorithm model.

5. The urban rail transit short-term OD flow prediction method based on deep learning as claimed in claim 4, It is characterized in that The evaluation indexes include root mean square error RMSE, Pearson correlation coefficient R 2 , mean absolute error MAE and weighted mean absolute percentage error WMAPE.

6. A short-term OD flow prediction system for urban rail transit based on deep learning, applied to the short-term OD flow prediction method for urban rail transit based on deep learning according to claim 5, It is characterized in that It includes a problem analysis module, a data acquisition module, a data processing module, a model construction module and a prediction module, wherein the data acquisition module, the data processing module, the model construction module and the prediction module are connected in sequence, and the problem analysis module is connected to the model construction module; The data acquisition module is used to acquire subway AFC card swiping data; The data processing module is used to pre-process the subway AFC card swiping data to obtain pre-processed data; The model building module constructs a graph convolutional neural network and a two-dimensional convolutional neural network based on the analysis results and the preprocessed data and introduces an attention mechanism to obtain a deep learning algorithm model, and uses evaluation indicators to evaluate and optimize the deep learning algorithm model to obtain a prediction model; The prediction module is used to use the prediction model to perform prediction and obtain a prediction result.

Citation Information

Patent Citations

  • OD passenger flow prediction method based on deep learning

    CN112001548A

  • Urban rail transit OD passenger flow estimation method based on machine learning

    CN115965114A

  • Urban rail transit OD passenger flow estimation method and system

    CN117475636A

  • Rail transit passenger flow demand prediction method and apparatus based on deep learning

    WO2021174755A1