A bus passenger alighting station prediction method and system based on mechanism data fusion
By combining mechanistic data fusion and LSTM models, the problems of incomplete coverage and unreasonable results in the prediction of bus passenger drop-off points are solved, achieving more complete and reasonable predictions and supporting the optimization and management of the public transportation system.
Patent Information
- Application Number
- CN202611420633.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-14
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies struggle to balance coverage completeness and result rationality in predicting bus passenger drop-off points, especially when travel chains are incomplete or spatiotemporal connections are unclear. In such cases, some samples cannot be identified or the prediction results do not conform to the actual operation mechanism of public transportation.
A mechanistic data fusion method is adopted to acquire multi-source travel data and combine the bus route direction, station sequence, and spatiotemporal connection relationship to construct the alighting station inference result of rule-determinable samples. The LSTM model is used for prediction, and candidate station constraint information is introduced to construct a mechanistic constraint loss function. The prediction results of rule-determinable and rule-difficult samples are then fused.
It improves the coverage completeness and prediction rationality of alighting point identification, effectively identifies complex samples, and supports bus passenger flow OD analysis and operation scheduling.
Smart Images

Figure CN123158338A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of deep learning, specifically relating to a method and system for predicting bus passenger alighting points through mechanism data fusion. Background Technology
[0002] With the accelerating pace of urbanization and the continuous growth of residents' travel demands, the increasing number of motor vehicles has led to increasingly prominent problems such as traffic congestion, environmental pollution, and resource waste. Public transportation, characterized by its large capacity and high resource utilization efficiency, is an important way to alleviate urban traffic pressure and improve urban traffic efficiency. With the continuous development of intelligent public transportation systems, multi-source operational data, such as public transportation IC card transaction data, vehicle GPS operation data, and bus stop data, are being accumulated, providing a data foundation for analyzing public transportation passenger travel behavior and identifying the origin and destination of public transportation passenger flow.
[0003] Currently, most city buses still use a flat fare system, where passengers typically only swipe their cards when boarding and not when alighting. Therefore, while bus IC card transaction data records passenger boarding information, it usually cannot directly provide the corresponding alighting station information. This lack of alighting station information makes it difficult to construct a complete public transport travel chain and further increases the difficulty of bus passenger flow origin-destination (OD) analysis, impacting bus network optimization, capacity scheduling, and refined operation management.
[0004] To address the issue of missing bus stop alighting points, existing technologies primarily employ inference methods based on travel chain rules and data-driven prediction methods. Inference methods based on travel chain rules mainly deduce a passenger's alighting point by considering the temporal and spatial connections between adjacent travel records of the same passenger, combined with information such as routes, stops, and transfer distances. While these methods are characterized by clear logic and strong interpretability, they struggle to establish stable connections when passengers have long travel intervals, broken travel chains, unclear transfer relationships, highly random travel behavior, or only a single card swipe record. This results in some passengers' alighting points not being effectively identified, affecting the coverage and completeness of the alighting point inference results.
[0005] Data-driven prediction methods utilize historical travel data, employing machine learning or deep learning models to learn the mapping relationship between passenger travel characteristics and alighting points, exhibiting strong non-linear feature learning capabilities. However, existing data-driven methods typically focus on learning historical statistical features and data distribution patterns, failing to fully incorporate the objective mechanisms of public transport operation, such as route direction, alighting / alighting order, temporal continuity of adjacent trips, spatial connections, and the rationality of transfers. In complex travel samples, even if the model achieves good data fitting results, its predicted alighting points may still not conform to the route direction, station order, or temporal and spatial connections of preceding and following trips, affecting the rationality and stability of the prediction results. Summary of the Invention
[0006] The purpose of this invention is to overcome the difficulty of existing technologies in balancing the completeness of coverage and the rationality of predictions for bus passenger alighting points. In cases where the travel chain is incomplete or the spatiotemporal connection is unclear, some samples may not be identified or the prediction results may not conform to the actual operation mechanism of public transportation. This invention provides a method and system for predicting bus passenger alighting points by fusing mechanism data.
[0007] To achieve the above objectives, the present invention adopts the following technical solution: In a first aspect, this invention proposes a method for predicting bus passenger alighting points through mechanistic data fusion, comprising the following steps: We acquire multi-source travel data of public transport passengers, extract features from the multi-source travel data, and obtain a multi-source comprehensive dataset. Based on the adjacent travel records of the same passenger in the multi-source integrated dataset, and combined with the running direction of the bus route, the order of the stops, and the spatiotemporal connection of adjacent travels, the alighting station is inferred for travel samples that meet the travel chain rules. The alighting station inference results of the rule-determinable samples are obtained, and a reference label sample set is constructed based on the alighting station inference results. The LSTM drop-off station prediction model is trained based on the reference label sample set. The feasible region of candidate drop-off stations corresponding to the sample to be processed is determined according to the route direction, station order, and temporal and spatial connection relationships of adjacent trips. Based on the feasible region of the candidate drop-off stations, candidate station constraint information is constructed. The candidate station constraint information is then introduced into the loss function of the LSTM drop-off station prediction model to obtain the mechanism-constrained LSTM drop-off station prediction model. Based on the travel chain rules, the samples to be predicted are classified. For samples that can be judged by rules, the inference results of the alighting station are used. For samples that are difficult to judge by rules, the LSTM alighting station prediction model with mechanism constraints is input to predict the alighting station. The alighting stations corresponding to the samples that can be judged by rules and the samples that are difficult to judge by rules are merged to obtain the prediction results of the alighting stations of bus passengers.
[0008] Furthermore, the specific method for obtaining multi-source travel data of public transport passengers, extracting features from the multi-source travel data, and obtaining a multi-source comprehensive dataset is as follows: By associating bus route and vehicle information data with bus IC card transaction data according to the terminal number, bus card swiping data is obtained. The bus route data is matched with the bus GPS operation data based on the terminal number to establish the correspondence between vehicle operation records and vehicle information, and thus obtain the GPS operation data. By associating bus card swiping data and GPS operation data with bus route data and bus stop data, the distance between the GPS coordinate point corresponding to the bus IC card swipe and the coordinate points of each bus stop is calculated. The bus stop with the smallest distance is determined as the boarding stop for the corresponding passenger, and the corresponding route operation direction is determined. The data associated with the boarding station is matched with the POI data around the station, and the card swipe time is matched with the meteorological data to obtain a multi-source integrated dataset.
[0009] Furthermore, current travel basic features, time attribute features, spatial environment features, external environment features, and historical behavior features are extracted from the multi-source integrated dataset; Current basic travel characteristics include passenger anonymity identifier, route number, direction of travel, boarding station, and boarding time; Time attribute features include hour, weekday, whether it is a weekend or a holiday, and the cumulative number of card swipes on the day; Spatial environmental characteristics include the latitude and longitude of the boarding station, the station sequence position of the boarding station in the line, and the number of different types of POIs within the preset range of the boarding station; External environmental characteristics include temperature, humidity, air pressure, rainfall, cloud cover, and visibility; Historical behavioral characteristics include the boarding station, route, travel time, and time interval sequence of adjacent travels for the corresponding passenger's historical trips.
[0010] Furthermore, based on adjacent travel records of the same passenger in the multi-source integrated dataset, and combined with the bus route's direction of operation, station order, and spatiotemporal connection relationship of adjacent travels, the alighting station is inferred for travel samples that satisfy the travel chain rules. The specific method for obtaining the alighting station inference results for rule-determinable samples is as follows: The spatial correspondence between the current drop-off point and the next pick-up point is determined based on the spatial connection between adjacent travel spaces. Based on the direction of travel and the order of stations on the current route, the downstream stations after the current boarding station are identified as potential alighting stations. For travel samples with a next boarding record, candidate drop-off stations that meet the spatial connection conditions with the next boarding station are determined from the shortlisted drop-off stations. For the last trip sample where there is no next boarding record, candidate drop-off stations are determined based on the spatial correspondence between the last trip and the first trip of the day. The validity of adjacent card swipe records is checked, and card swipe records with a time interval of less than a preset short interval threshold are excluded. The integrity of station coordinates and vehicle GPS trajectory data is also checked. For travel samples with a next boarding record, calculate the distance between the current boarding station and the next boarding station, and exclude travel samples whose distance is less than a preset short distance threshold. From the set of stations corresponding to the current route and direction of travel, select the station located downstream of the current boarding station and whose distance from the next boarding station meets the preset conditions as the candidate alighting station; The candidate drop-off time for the vehicle is determined based on the vehicle's GPS trajectory; Based on the spatial distance between the candidate alighting station and the next boarding station, and the temporal relationship between the candidate alighting time and the next boarding time, the spatiotemporal rationality of the candidate alighting stations is checked. Based on the spatiotemporal rationality check results, the rule-judgmentable samples and their alighting station inference results are determined.
[0011] Furthermore, based on the reference label sample set, an LSTM alighting station prediction model is trained. The specific method for determining the feasible region of candidate alighting stations for the sample to be predicted, based on the route direction, station order, and temporal and spatial connections between adjacent trips, is as follows: Obtain the set of stations for the bus route corresponding to the sample to be predicted in the current direction of operation and the station order of the current boarding station. Determine all downstream stations whose station order is after the current boarding station as the first candidate station set. For a sample to be predicted that has a next boarding record, the estimated disembarkation time is determined based on the travel time of the vehicle from the current boarding station to the first candidate station set. The first candidate station set is then filtered based on the time relationship between the estimated disembarkation time and the next boarding time. Finally, the first candidate station set is filtered based on the spatial distance between the first candidate station set and the next boarding station to obtain the feasible region of candidate disembarkation stations. For the sample to be predicted that does not have a next boarding record, the feasible region of candidate alighting stations is determined based on the bus route's direction of operation and the order of stops.
[0012] Furthermore, the specific method for constructing candidate site constraint information based on the feasible region of candidate alighting sites is as follows: Generate a candidate station mask based on the feasible region of the candidate drop-off stations corresponding to the sample to be predicted, and use the candidate station mask to mark whether each candidate station belongs to the feasible region of the candidate drop-off stations of the corresponding sample to be predicted. Based on the predicted probabilities of each candidate station output by the LSTM base model without mechanistic constraints and the candidate station mask, the candidate feasible region constraint loss is determined, and the predicted probabilities of stations outside the feasible region of the candidate drop-off station are constrained.
[0013] Furthermore, the candidate station constraint information is introduced into the loss function of the LSTM alighting station prediction model, and the specific method for obtaining the mechanism-constrained LSTM alighting station prediction model is as follows: The cross-entropy loss is determined based on the actual drop-off station labels in the reference label sample set and the station prediction probabilities output by the LSTM drop-off station prediction model. The candidate feasible region constraint loss is determined based on the candidate site mask and the predicted site probability corresponding to each candidate site. The cross-entropy loss and the candidate feasible region constraint loss are weighted and combined to obtain the total loss function of the mechanistic constraint LSTM stop prediction model. The LSTM stop prediction model is then trained based on the total loss function to obtain the mechanistic constraint LSTM stop prediction model.
[0014] Furthermore, the difficult-to-determine samples according to the rules include at least one of the following: samples with only one travel record, samples where the distance between the candidate drop-off point and the next pick-up point exceeds a preset spatial threshold, samples where the spatial distance between two consecutive rides exceeds a preset distance threshold, samples where the spatial distance between the current trip and the next trip is less than a preset short distance threshold, samples where the time interval between adjacent card swipes is less than a preset short interval threshold, and samples where vehicle GPS operation data is missing.
[0015] Furthermore, the rule-difficult samples are input into the mechanism-constrained LSTM alighting station prediction model to obtain the corresponding model-predicted alighting stations. The model-predicted alighting stations and the alighting station inference results of the rule-determinable samples are then integrated according to the corresponding travel samples to obtain the bus passenger alighting station prediction results.
[0016] Secondly, this invention proposes a bus passenger alighting station prediction system based on mechanism data fusion, comprising: The data processing module is used to acquire multi-source travel data of public transport passengers, extract features from the multi-source travel data, and obtain a multi-source comprehensive dataset. The rule inference module is used to infer the drop-off station for travel samples that meet the travel chain rules based on the adjacent travel records of the same passenger in the multi-source integrated dataset, combined with the running direction of the bus route, the order of the stops, and the spatiotemporal connection of adjacent travels. The module obtains the drop-off station inference results for rule-determinable samples and constructs a reference label sample set based on the drop-off station inference results. The feasible region determination module is used to train an LSTM drop-off station prediction model based on the reference label sample set, and determine the feasible region of the candidate drop-off station corresponding to the sample to be predicted based on the route running direction, station order, and temporal and spatial connection relationship of adjacent trips corresponding to the current sample to be processed. The mechanism constraint model construction module is used to construct candidate site constraint information based on the feasible domain of candidate drop-off sites, and to introduce the candidate site constraint information into the loss function of the LSTM drop-off site prediction model to obtain the mechanism constraint LSTM drop-off site prediction model. The fusion prediction module is used to classify the samples to be predicted according to the travel chain rules. For samples that can be judged by rules, the drop-off station inference result is used. For samples that are difficult to judge by rules, the LSTM drop-off station prediction model with mechanism constraints is input to predict the drop-off station. The drop-off stations corresponding to the samples that can be judged by rules and the samples that are difficult to judge by rules are fused to obtain the predicted drop-off station of bus passengers.
[0017] Compared with the prior art, the present invention has the following beneficial effects: This invention integrates public transport IC card transaction data, vehicle GPS operation data, bus stop data, POI data around stops, and meteorological data to construct a multi-source comprehensive dataset that simultaneously characterizes passenger travel behavior, route spatial relationships, and external environmental factors, providing a more comprehensive data foundation for stop prediction. Based on adjacent travel records of the same passenger, route direction, stop order, and spatiotemporal connections, travel chain rules are inferred. This allows for direct determination of stop locations for samples with clear travel patterns. A reference label sample set is constructed using rule-determinable samples, reducing reliance on manually labeled stop data. This invention constructs a feasible region for candidate stop locations based on route direction, stop order, adjacent travel time, and spatial relationships. By introducing the public transport operation mechanism into the LSTM model loss function through candidate stop masks, the prediction probability of stops outside the feasible region is constrained. This ensures that while maintaining the model's ability to learn historical travel characteristics, its prediction results conform to the bus route direction, stop order, and spatiotemporal continuity of adjacent travel. This invention employs a hierarchical fusion approach that directly outputs rule-determinable samples and supplements the prediction of rule-difficult samples with mechanistic-constrained LSTM. This approach can supplement the prediction of complex samples such as those with only one trip, insufficient spatiotemporal connections, and missing GPS information. While improving the completeness of drop-off station identification coverage, it also takes into account the rationality of the prediction results. Furthermore, it can continuously conduct analysis using existing operational data from the public transportation system, providing data support for public transportation passenger flow OD analysis, network optimization, and operation scheduling. Attached Figure Description
[0018] Figure 1 This is a flowchart illustrating the multi-source travel data association and fusion process in this invention. Figure 2 This is a flowchart illustrating the drop-off station rule inference method based on the public transport travel chain in this invention. Figure 3 This is a framework diagram of the LSTM alighting station prediction model constrained by the mechanism of this invention; Figure 4 This is a schematic diagram of the rule inference and mechanism-constrained LSTM hierarchical fusion prediction framework of the present invention; Figure 5 This is a flowchart of the present invention. Detailed Implementation
[0019] To further understand the content of this invention, the invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments are merely illustrative and not limiting of the invention.
[0020] Example 1: See Figure 5This embodiment provides a method for predicting bus passenger drop-off points by mechanistic data fusion, which mainly includes multi-source travel data processing, rule inference based on the bus travel chain, construction of LSTM drop-off point prediction model, construction of candidate drop-off point feasible domain and mechanistic constraint loss, and hierarchical fusion of rule results and model prediction results.
[0021] This embodiment takes the public transportation system in the central urban area of Weinan City as the research object, and collects multi-source operation data of the public transportation system for 58 days from November 3, 2018 to December 30, 2018, to illustrate and verify the method. The specific implementation steps are as follows: S1. Obtain multi-source travel data of public transport passengers, process and extract features from the multi-source travel data to obtain a multi-source comprehensive dataset.
[0022] Multi-source travel data mainly includes public transport IC card transaction data, public transport GPS operation data, public transport station data, POI data around stations, and meteorological data.
[0023] Among them, the bus IC card transaction data is used to record relevant information during the passenger's card swiping process. The original fields include route number xlbh, IC card number kbh, vehicle number qcbh, card swiping date xfrq, card swiping time xfsj, and card swiping station, etc. The processed bus IC card data includes fields such as card number CARDNO, card swiping date and time DATETIME, and terminal number TERMINALNO.
[0024] The bus GPS operation data is collected by the on-board GPS device set up during vehicle operation. In this embodiment, the GPS positioning data is usually acquired about once every 10 seconds, including fields such as bus route number exlbh, terminal number V_Mobil, GPS latitude, GPS longitude, license plate number qcbh, GPS time, and vehicle speed.
[0025] Bus stop data includes the station name, the route number, and the station's latitude / longitude, which are used to characterize the bus stop's route affiliation and spatial location.
[0026] Points of Interest (POIs) are locations with geographic information. In this embodiment, POI data within the study area is obtained using the Gaode Map API interface. The area within 500m of bus stops is used as the extraction area for POI information. Based on the functional attributes of POIs, the POIs around the stops are categorized into five types: commercial, science and education / culture services, residential, office, and life services.
[0027] Meteorological data includes seven meteorological influencing factors: humidity, cloud cover, rainfall, air pressure, visibility, temperature, and weather.
[0028] After obtaining the above raw data, the data structure and data quality of different data sources are analyzed. Abnormal, missing or invalid data that cannot be used for subsequent association or feature extraction are cleaned or marked. The association and fusion of multi-source data are completed according to the association fields between different data sources.
[0029] like Figure 1 The data association and fusion process includes the following steps.
[0030] First, the bus route and vehicle information data are linked with the bus IC card transaction data according to the terminal number to establish a correspondence between card swiping records and bus vehicles, thus obtaining bus card swiping data.
[0031] Subsequently, the bus route data is matched with the bus GPS operation data based on the terminal number to establish the correspondence between vehicle operation records and vehicle information, thereby obtaining GPS operation data.
[0032] Furthermore, bus card swipe data and GPS operation data are correlated with bus route data and bus stop data through corresponding fields. When a bus IC card swipe record is generated, the GPS coordinates of the corresponding vehicle near the corresponding swipe time are obtained. The distance between the GPS coordinates and the coordinates of each bus stop on the corresponding route is calculated, and the bus stop with the smallest distance is determined as the stop where the vehicle was located when the bus IC card was swiped, thus determining the passenger's boarding stop. At the same time, the direction of travel corresponding to this trip record is obtained by combining the route data.
[0033] The boarding data generated after the above association processing includes fields such as passenger anonymity identifier PER_ID, time DateTime, latitude and longitude information, running direction up / down, line and station.
[0034] After completing the basic associations described above, the boarding data is matched with POI data based on the station name. Then, based on the card swipe time, the associated boarding data and POI data are matched with meteorological data, ultimately constructing a multi-source integrated dataset. The multi-source integrated dataset may include fields such as card number, time, station, route, number of POIs (commercial, science and education / culture, residential, office, and life service categories), cloud cover, air pressure, rainfall, temperature, visibility, weather type, and humidity.
[0035] Feature extraction is performed based on a multi-source integrated dataset. The model input features mainly include five dimensions: current travel basic features, time attribute features, spatial environment features, external environment features, and historical behavior features.
[0036] The basic characteristics of current travel include passenger anonymity identifier, route number, direction of travel, boarding station, and boarding time.
[0037] The time attribute features include hour, day of week, whether it is a weekend, whether it is a holiday, and the cumulative number of card swipes up to the current swipe time.
[0038] Spatial environmental features include the latitude and longitude of the boarding station, the station's position on the corresponding bus route, and the number of different types of POIs within a 500m radius of the boarding station. The original multi-source integrated dataset can retain the aforementioned five types of POI data. In this embodiment, the spatial environmental features ultimately used for model input mainly employ the number of commercial, science and education / culture, residential, and office POIs.
[0039] External environmental characteristics mainly include temperature, humidity, air pressure, rainfall, cloud cover, and visibility. Weather conditions from the raw meteorological data can be retained as integrated data fields, and their inclusion in the model can be determined based on the feature selection results.
[0040] Historical behavioral characteristics include sequence information such as the boarding station, route, time of travel, and time interval between adjacent trips of a passenger's previous trips.
[0041] The selection of the above features corresponds to the influencing factors of bus passenger boarding and alighting behavior. This embodiment studies a total of 665 bus stops, with significant differences in passenger flow distribution across different stops. For example, among the stops with higher total passenger flow in the upbound direction, the Central Square had 26,015 passengers, Weinan Central Hospital had 24,425 passengers, and the Municipal Maternal and Child Health Hospital had 21,157 passengers, indicating a significant spatial imbalance in bus passenger flow.
[0042] Public transport travel exhibits both weekly and daily cycles. Public transport volume remains relatively stable from Monday to Thursday, increases slightly on Friday, and decreases on Saturday and Sunday. Weekday public transport travel shows more pronounced variations during the morning, noon, and evening hours, with morning and evening peak hours being more prominent, while the morning peak characteristic is relatively weaker on weekends.
[0043] Passenger boarding and alighting behavior also exhibits a clear line dependence. After a passenger boards a train on a certain line, their potential alighting stations are initially limited to the set of stations corresponding to that line, and the direction of the line's operation further narrows down the range of candidate alighting stations.
[0044] In addition, weather changes can affect public transport passenger flow. For example, adverse weather conditions such as rain and snowfall may change the demand for public transport travel, and meteorological factors such as humidity, rainfall, and temperature will also have varying degrees of impact on the travel behavior of public transport passengers.
[0045] To identify and address multicollinearity among model input variables, this embodiment further employs the Variance Inflation Factor (VIF) to detect candidate features.
[0046] The variance inflation factor of the j-th variable is expressed as:
[0047] in, The coefficient of determination is the coefficient obtained when performing regression with the j-th variable as the dependent variable and the other variables as independent variables.
[0048] When the VIF is less than 10, it is considered that there is no significant multicollinearity among the corresponding variables. When a high VIF value is detected, one or more variables can be removed from the predictors with strong correlations, and the VIF of the remaining variables can be recalculated until the input variables meet the preset multicollinearity requirements.
[0049] After iterative filtering, the relevant variables ultimately retained in this embodiment include office-related POIs, science and education / culture-related POIs, commercial POIs, residential POIs, humidity, air pressure, visibility, weekday attribute, whether it is a weekend, temperature, cloud cover, whether it is a holiday, rainfall, and route. The Mean VIF is 3.42, indicating no significant multicollinearity. Combining current travel information and historical behavior sequences, the inputs used for model training can also include passenger anonymity identifiers, direction of travel, boarding station, boarding time, station latitude and longitude, and station sequence position.
[0050] S2. Based on the adjacent travel records of the same passenger in the multi-source integrated dataset, the rules for alighting stations based on the public transport travel chain are inferred to obtain the alighting station inference results of the rule-determinable samples, and a reference label sample set is constructed based on the inference results.
[0051] like Figure 2 As shown, this embodiment uses three basic assumptions when inferring public transport travel chain rules.
[0052] First, the assumption of spatial connectivity between adjacent trips. For the same passenger with consecutive card swipe records on the same day, there should generally be a strong spatial connection between the drop-off point of this trip and the boarding point of the next trip. That is, the drop-off point of this trip should be within a reasonable range of stops corresponding to the current bus route and direction of operation, and maintain an acceptable spatial distance from the next boarding point.
[0053] Second, the assumption of consistency between route direction and station sequence. A passenger's alighting station should be downstream of their current boarding station. Therefore, on the same route and in the same direction of travel, the station sequence of a candidate alighting station should be greater than that of the current boarding station.
[0054] Third, the closed-loop assumption of the last trip. For a passenger's last trip of the day, since information on the next boarding point is lacking, the spatial correspondence between the last trip and the first boarding point of the day can be used to assist in the judgment. That is, the last trip's disembarkation location usually has a certain spatial closure relationship with the starting point of the day's activities. For samples with no subsequent trips that still cannot form a stable and unique judgment result, they are included in the scope of subsequent model supplementary prediction.
[0055] The auxiliary judgment parameters used in this embodiment include: Near-field threshold:
[0056] Transfer space threshold:
[0057] GPS search time window limit:
[0058] Short interval threshold:
[0059] Average walking speed:
[0060] The above parameters are the preferred settings in this embodiment. In other public transportation systems, they can be set accordingly based on station spacing, network size, and passenger transfer characteristics.
[0061] Let the record of the passenger's kth boarding be:
[0062] in, This represents the boarding station for the kth time. Indicates the boarding time. Indicates the route taken. Indicates the direction of line operation. Indicates the vehicle number you are traveling in.
[0063] The corresponding next boarding record is represented as follows:
[0064] Let the set of stations corresponding to the current route and direction of travel be:
[0065] First, filter the downstream stations after the current boarding station based on the route direction and station sequence:
[0066] in, This indicates the station sequence on the corresponding line and in the direction of travel.
[0067] For samples with a record of another boarding point, among the aforementioned downstream stations, the station closest to the next boarding point and satisfying the subsequent spatiotemporal judgment conditions is further selected as a candidate disembarkation station, denoted as [missing information]. .
[0068] Define a search time window in the vehicle's GPS trajectory:
[0069] Calculate vehicle trajectory points within the search time window. with candidate drop-off stations Distance between:
[0070] This determines the candidate disembarkation times:
[0071] The spatial distance between the candidate alighting station and the next boarding station is represented as follows:
[0072] when:
[0073] At that time, it was believed that there was a reasonable spatial connection between the current trip and the next boarding record.
[0074] In actual rule inference, pre-filtering is performed first. Basic validity checks are conducted on adjacent card swipe records; if the time interval between two adjacent swipes is less than [a certain value], [the record is considered valid]. If a record is found to be a duplicate card swipe, a mistaken card swipe, or a noisy record, it will not be directly included in the rule for determining the drop-off point. Simultaneously, the system checks whether the station coordinates of the current sample and its adjacent records are complete, and whether the corresponding vehicle GPS trajectory exists and has valid trajectory points within the specified search time window. If key GPS data is missing, the corresponding sample is marked as having missing vehicle GPS information.
[0075] Then, a close-range exclusion process is performed. For samples with a future boarding record, the distance between the current boarding station and the next boarding station is calculated. If this distance is less than [a certain value], [the next boarding station is excluded]. If two card swipe records are considered to be too close in space, it may be a case of consecutive card swipes near the same station, abnormal records over a short distance, or lack of effective displacement. Therefore, the sample is marked as a sample that is too close to the next boarding station.
[0076] For samples that pass the above checks, candidate drop-off stations are determined from the set of stations corresponding to the current route and direction of travel, and the candidate drop-off times are located using the vehicle's GPS trajectory. If no valid trajectory points can be obtained within the specified GPS search time window, or if the number of valid trajectory points is insufficient to form a stable judgment, the sample is marked as having missing vehicle GPS information.
[0077] After obtaining candidate drop-off stations and estimated drop-off times, the spatial accessibility and temporal feasibility between the current trip and the next boarding time are examined. When the distance between a candidate drop-off station and the next boarding station exceeds a preset spatial threshold, it is classified as a sample with an excessively large distance from the next boarding station; when the estimated drop-off time and the next boarding time cannot form a reasonable temporal connection, the sample is also included in the subsequent supplementary prediction range.
[0078] For samples that meet the above conditions of route direction, station sequence, space and time and can form a stable alighting station judgment, they are identified as rule-determinable samples, and the corresponding alighting station inference results are output.
[0079] For travel samples without subsequent boarding records, auxiliary judgment can be made based on the aforementioned closed-loop assumption of the last trip. It should be noted that in the actual supplementary prediction sample statistics process of this embodiment, samples lacking sufficient previous and subsequent travel information and unable to form stable rule judgments are uniformly classified as rule-difficult-to-judge samples, among which samples with only one card swipe record during the study period are classified as "only one trip" category.
[0080] The data in this embodiment was processed using the aforementioned travel chain rules, resulting in 1,183,929 valid card swipe records. Of these, 1,017,854 records yielded clear drop-off station determinations, with a rule determination rate of 85.97%. The daily average rule inference success rate remained between 82% and 88%, with most bus routes achieving a success rate of 85% to 92%. This indicates that the rule inference method can effectively determine travel samples with clear spatiotemporal continuity and behavioral patterns.
[0081] Using the inferred drop-off station results corresponding to the samples determined by the above rules as reference labels, a reference label sample set is constructed for subsequent data-driven model training and validation.
[0082] S3, based on the training data of the reference label sample set, drives the drop-off station prediction model, and selects LSTM as the basic prediction model.
[0083] To compare the predictive capabilities of different data-driven methods for bus passenger alighting points, this embodiment divides the reference label samples obtained from the travel chain rules into time sequences, using the data from the first 51 days as the training set and the data from the last 7 days as the test set.
[0084] Under the conditions of unified data source, unified input features, and unified training and test set partitioning, six models, namely LSTM, GRU, CNN, Transformer, XGBoost and LightGBM, were constructed and compared.
[0085] The parameter settings for each model are as follows: The LSTM model has a hidden layer dimension of 64, a layer count of 2, a learning rate of 0.001, and a batch size of 64. The GRU model has a hidden layer dimension of 128, a layer count of 2, a learning rate of 0.001, and a batch size of 64. The CNN model has 64 convolutional kernels, a kernel size of 3, a learning rate of 0.001, and a batch size of 64. The Transformer model has 128 dimensions, 4 attention heads, 2 encoder layers, and a learning rate of 0.0005. XGBoost has 200 trees, a maximum depth of 5, and a learning rate of 0.05. LightGBM has 200 trees, a maximum depth of 6, and a learning rate of 0.05.
[0086] The test results show that the LSTM model has the highest matching rate at 69.20%, with 199,107 matched samples out of a total of 230,395 test samples; the GRU model has a matching rate of 68.22%; the Transformer model has a matching rate of 68.01%; the CNN model has a matching rate of 66.94%; the XGBoost model has a matching rate of 65.91%; and the LightGBM model has a matching rate of 65.54%.
[0087] It can be seen that the deep learning model is generally better than the tree model tested in this embodiment. Among them, LSTM and GRU, which have sequence modeling capabilities, performed better. Therefore, LSTM was selected as the core basic prediction model.
[0088] LSTM is an improved structure of recurrent neural networks. It controls the historical state and current input information through forget gate, input gate and output gate, and can process the sequence features formed by passengers' historical travel.
[0089] The forget gate is calculated as follows:
[0090] in, For the Gate of Oblivion It is the Sigmoid activation function. Input at time t, and These are the weight matrix and bias term corresponding to the forget gate, respectively.
[0091] The input gate and candidate cell states are as follows:
[0092]
[0093] in, For input gate, This is the state of the candidate unit.
[0094] The cell state, output gate, and current hidden state are as follows:
[0095]
[0096]
[0097] in, For output gate, The current cell state, It is currently hidden.
[0098] S4. Based on the LSTM drop-off station prediction model, a feasible region for candidate drop-off stations is constructed according to the bus operation mechanism.
[0099] like Figure 3 As shown, this embodiment incorporates the bus route direction, station sequence, adjacent travel time connection relationship, and spatial connection relationship into the LSTM prediction model, so that the model is constrained by the bus operation mechanism while learning from the data.
[0100] Let the bus route corresponding to the i-th sample be . The set of stops for this bus route in its current direction of travel is represented as:
[0101] in, This indicates the total number of stations along the current route.
[0102] Let the boarding station of this sample be... Its station sequence on the line is recorded as .
[0103] Based on the constraints of bus route direction, the passenger's alighting point should be a downstream stop after the boarding point; therefore, the candidate stations are... First, satisfy:
[0104] For samples with a next boarding record, candidate stations are further restricted based on the relationship between adjacent travel times.
[0105] Let the current boarding time be The next boarding time is The vehicle departs from the current boarding station. Run to candidate site The estimated runtime is Then in the candidate sites The estimated alighting time at the location is:
[0106] To ensure time continuity, candidate sites must meet the following requirements:
[0107] Spatial connectivity constraints are also incorporated. Let the next boarding station be... The spatial distance function between stations is Then the candidate alighting stations satisfy the following conditions:
[0108] in, The spatial reach threshold is set to 1.0 km in this embodiment.
[0109] Considering the above factors such as route direction, station sequence, time, and spatial conditions, the feasible region of candidate alighting stations for the i-th sample is defined as follows:
[0110] For the last trip sample without subsequent travel information, the aforementioned time connection constraints and spatial connection constraints are removed accordingly, and a basic candidate alighting station feasible domain is formed based on the bus route's operating direction and the current boarding station sequence.
[0111] S5. Based on the feasible region of the candidate drop-off stations, construct the candidate station constraint information, and add the constraint information to the loss function of the LSTM model to obtain the mechanism-constrained LSTM drop-off station prediction model.
[0112] To transform the feasible region of candidate drop-off stations into constraint information that can participate in model training, a candidate station mask matrix is further defined. :
[0113] in, Used to mark whether the j-th station corresponding to the i-th sample belongs to the feasible region of candidate drop-off stations.
[0114] when When, it indicates that the corresponding station meets the constraints of the bus operation mechanism and is within the reasonable prediction range; when If the probability is 1, it means that the site does not meet the candidate feasible region conditions and should not be assigned a high prediction probability by the model.
[0115] Let the total number of training samples be The number of candidate site categories is The true label for the j-th site category corresponding to sample i is The LSTM base model without mechanistic constraints outputs the predicted probability for the corresponding site as follows: .
[0116] First, cross-entropy loss is used to represent the basic classification error of the model on the reference label samples:
[0117] in, The loss term reflects the model's ability to fit the true labels of the training samples and is used to ensure the model's basic predictive performance.
[0118] To prevent the model from assigning higher prediction probabilities to stations outside the feasible region of candidate drop-off stations, a candidate feasible region constraint loss is further constructed:
[0119] When a certain station does not belong to the feasible region of candidate drop-off stations for sample i If the model still assigns a higher prediction probability to that site, then The penalty increases accordingly, resulting in a larger penalty during training; when the corresponding station belongs to the feasible region of candidate disembarkation stations, The candidate feasible region constraint loss does not penalize the probability assignment of the site.
[0120] By weighting and combining the cross-entropy loss and the candidate feasible region constraint loss, we obtain the total loss function of the mechanistic-constrained LSTM model:
[0121] in, These are the mechanistic constraint weight parameters, used to control the strength of the feasible region constraint for candidate alighting sites during model training. At that time, the model degenerates into a traditional LSTM model.
[0122] In this embodiment, the mechanism constraint weight parameter The value can range from 0.1 to 0.8.
[0123] To determine more reasonable parameter values, while keeping the LSTM network structure, input features, and training and test set partitioning unchanged, only the following parameters were changed: The values are used to fine-tune the parameters.
[0124] Experimental results show that when As the value was gradually increased from 0 to 0.7, the model matching rate continuously improved from 69.20% to 71.46%; when When the value is further increased to 0.8, the model matching rate drops to 71.14%. Therefore, in this embodiment, the preferred method is... .
[0125] Under the same dataset, same input features, and same training and testing split, a comparison was made between the ordinary LSTM model and the mechanistic constraint LSTM model. The matching rate of the ordinary LSTM model was 69.20%, while that of the mechanistic constraint LSTM model was 71.46%, an increase of 2.26 percentage points. This indicates that by incorporating the feasible region of candidate drop-off stations and the mechanistic constraint loss into the model training process, the model can reduce the likelihood of assigning higher prediction probabilities to stations that do not meet the requirements of bus route direction, station order, and adjacent travel time-space relationships.
[0126] S6. Based on the travel chain rules, the samples to be predicted are classified. For samples that can be judged by rules, the rule-based drop-off station inference results are used. For samples that are difficult to judge by rules, the mechanism-constrained LSTM drop-off station prediction model is used for supplementary prediction. The two results are then fused to obtain the bus passenger drop-off station prediction results.
[0127] like Figure 4 As shown, this embodiment constructs a hierarchical fusion prediction framework according to the principle of rule priority, model supplementation, and unified output, rather than using a single drop-off station prediction method for all travel samples.
[0128] For rule-determinable samples that can obtain stable and unique judgment results through public transport travel chain rules, the drop-off stations obtained by rule inference are directly adopted.
[0129] For samples that cannot obtain a stable and unique judgment result through rule-based methods due to missing data, insufficient spatiotemporal connection conditions, or incomplete travel chain relationships, they are identified as rule-difficult-to-judge samples and input into the mechanistic constraint LSTM alighting station prediction model for supplementary prediction.
[0130] The rule-difficult samples in this embodiment mainly include the following six situations.
[0131] First, the study only included a single trip sample, meaning that the passenger had only one card swipe record during the study period, lacking spatiotemporal information that could be used to construct a complete chain of adjacent trips.
[0132] Second, samples that are too far from the next boarding station, meaning that the spatial interval between the candidate alighting station and the subsequent boarding station exceeds a reasonable threshold, indicate a lack of reasonable spatial connection between the preceding and following trips.
[0133] Third, samples with excessively large distances between two consecutive rides, where the distance between the end of the previous trip and the current boarding location is significantly beyond a reasonable range, make it difficult to reasonably integrate the previous trip chain into the current sample.
[0134] Fourth, samples with too small a distance to the next boarding station, meaning the spatial interval between the current trip and the next boarding record is too small, and there is insufficient effective displacement between the two trips.
[0135] Fifth, samples with repeated card swipes within a short period of time, i.e., the time interval between adjacent card swipes is less than the preset short interval threshold, may be abnormal operations, repeated card swipes, accidental card swipes, or noise records.
[0136] Sixth, for samples with missing vehicle GPS information, there are no valid vehicle GPS trajectory points within the key time window, making it impossible to effectively match vehicle location with bus stop.
[0137] According to statistics, a total of 166,075 supplementary prediction samples were extracted in this embodiment, averaging approximately 2,863 samples per day. In the supplementary prediction samples of the test set, samples indicating "only one trip" accounted for 37.52%, samples indicating "too large distance to the next boarding station" accounted for 22.20%, and samples indicating "too large distance between two consecutive trips" accounted for 15.14%.
[0138] For samples that are difficult to judge by rules, the corresponding current travel basic characteristics, time attribute characteristics, spatial environment characteristics, external environment characteristics and historical behavior characteristics are input into the mechanism-constrained LSTM drop-off station prediction model. Based on the predicted probabilities of each candidate station output by the model and the feasible region of the candidate drop-off station for the corresponding sample, the model predicts the drop-off station.
[0139] Then, based on the correspondence between travel samples, the inferred drop-off station results of rule-determinable samples are integrated with the model-predicted drop-off stations of rule-difficult samples to form the final predicted drop-off station results for bus passengers.
[0140] The fusion output is not simply a combination of rule results and model results, but rather a hierarchical decision based on the discriminability of different samples: the travel chain rules are used to process samples with clear behavioral patterns and adjacent spatiotemporal relationships, while the LSTM model with embedded public transport operation mechanism constraints is used to process complex samples that are difficult to judge by rules, thus making the two methods complementary.
[0141] The total number of fused output samples in this embodiment is 267,263, of which 230,394 are rule-determinable, accounting for 86.20%; and 36,869 are supplemented by mechanistic constraint LSTM for prediction, accounting for 13.80%.
[0142] Spatial distribution analysis of the predicted final alighting points revealed that high-frequency predicted alighting points are mainly concentrated in core urban functional areas. For example, the predicted alighting points are: Central Square (16,491), Weinan Railway Station (6,874), Municipal Maternal and Child Health Hospital (5,604), Xinda Sports Plaza (5,546), and Shengli Street Sanxian Intersection (5,176). These high-frequency alighting points are generally concentrated near commercial centers, transportation hubs, medical service facilities, and public activity centers.
[0143] A time distribution analysis of the prediction results revealed a clear morning and evening peak structure in the predicted public transport travel patterns. During the core morning peak period, passenger travel exhibited significant regularity, with travel chain rules playing a major role in judgment; for example, the proportion of samples supplemented by the mechanism-constrained LSTM at 7:00 AM was only 9.43%. During the transitional periods of midday, afternoon, and evening, the number of complex travel samples increased, and the proportion of predictions supplemented by the mechanism-constrained LSTM rose accordingly; for example, the model supplementation proportions at 6:00 PM and 7:00 PM reached 17.63% and 17.42%, respectively.
[0144] Analysis of route distribution reveals varying degrees of reliance on rule-based inference and mechanistic constraint LSTM-assisted prediction across different bus routes. For trunk routes with strong commuter characteristics and relatively stable routes, the applicability of travel chain rules is relatively high; for example, mechanistic constraint LSTM-assisted predictions account for 12.01% of the samples on route 4 and 10.95% on route 2. For bus routes with a high degree of functional mixing along their routes and complex passenger flow origins, the supplementary effect of mechanistic constraint LSTM is more pronounced; for example, supplementary predictions account for 42.60% on route 13, 17.81% on route 1, and 14.58% on route 5.
[0145] Using the aforementioned 58 days of actual bus operation data for verification, the rule inference method based on the bus travel chain achieved an overall judgment rate of 85.97% for samples with strong travel patterns and clear spatiotemporal connections; for samples with difficult-to-judge rules, the matching rate of the mechanism-constrained LSTM model reached 71.46%, which is 2.26 percentage points higher than that of the ordinary LSTM model.
[0146] Therefore, by hierarchically fusing rule inference and mechanism-constrained LSTM models, we can supplement complex samples that are difficult for rules to handle while maintaining the interpretability of rule judgment results, expand the sample coverage of drop-off station prediction, and reduce the inconsistency between the output results of pure data-driven models and the bus route operation direction, station sequence relationship, and spatiotemporal connection relationship of adjacent trips.
[0147] Meanwhile, this embodiment utilizes existing operational data from public transportation systems such as bus IC cards and vehicle GPS to reconstruct drop-off points. Compared to traditional manual public transportation travel surveys, it can leverage a larger scale of continuously updated data for analysis. Furthermore, compared to methods that rely solely on uniform thresholds to determine passenger drop-off points, combining travel chain rules with mechanistic constraint models improves the adaptability of drop-off point determination under complex travel scenarios. Original implementation data shows that this method is characterized by relatively low cost, large sample size, and rapid data updates.
[0148] Therefore, this embodiment can restore the passenger's alighting station information even when the single-fare bus only records boarding card swipe data and lacks direct alighting card swipe records, providing a data foundation for bus passenger flow OD analysis, bus network optimization, capacity allocation, and operation scheduling.
[0149] Example 2: This embodiment provides a bus passenger alighting station prediction system based on mechanism data fusion, including a data processing module, a rule inference module, a feasible region determination module, a mechanism constraint model construction module, and a fusion prediction module.
[0150] The data processing module is used to acquire multi-source travel data of public transport passengers, process the multi-source travel data and extract features to obtain a multi-source comprehensive dataset.
[0151] Specifically, the data processing module acquires bus IC card transaction data, bus GPS operation data, bus route and station data, POI data around the station, and meteorological data. It establishes a correspondence between bus IC card swipe records and vehicles based on the terminal number, and determines the boarding station and route direction corresponding to the card swipe based on the vehicle's GPS coordinates and bus station coordinates. Finally, it associates the obtained boarding data with the POI data and meteorological data.
[0152] The data processing module extracts current travel basic features, time attribute features, spatial environment features, external environment features, and historical behavior features from multi-source integrated datasets, and can detect and process multicollinearity among input features through variance inflation factor (VIF).
[0153] The rule inference module is used to infer the alighting station for travel samples that meet the travel chain rules based on the adjacent travel records of the same passenger in the multi-source integrated dataset, combined with the running direction of the bus route, the order of the stops, and the spatiotemporal connection of adjacent travels.
[0154] The rule inference module generates candidate drop-off stations based on the spatial connection patterns of adjacent trips, the consistency of route direction and station sequence, and the closed-loop relationship of the last trip. It then uses the vehicle's GPS trajectory to determine candidate drop-off times and performs rule judgments based on the spatial distance between candidate drop-off stations and subsequent boarding stations, as well as the relationship between candidate drop-off times and subsequent boarding times. For samples that can form stable judgments, the module outputs the corresponding drop-off station inference results and constructs a reference label sample set; for samples that cannot form stable judgments, they are identified as rule-difficult samples.
[0155] The feasible region determination module is used to train an LSTM drop-off station prediction model based on the reference label sample set, and to determine the feasible region of candidate drop-off stations based on the bus route direction, station order, adjacent travel time connection relationship and spatial connection relationship corresponding to the sample to be predicted.
[0156] For samples with a next boarding record, the feasible region determination module first determines downstream candidate stations based on the route direction and the current boarding station sequence. Then, it further filters by estimating the relationship between the alighting time and the next boarding time based on the candidate stations and the spatial distance between the candidate stations and the next boarding station. For samples without a next boarding record, the subsequent time and space connection constraints are removed, and a basic candidate alighting station feasible region is formed based on the bus route direction and station sequence.
[0157] The mechanism constraint model construction module is used to generate candidate site masks based on the feasible region of candidate drop-off sites. The candidate site masks are used to indicate whether each site belongs to the feasible region of candidate drop-off sites of the corresponding sample.
[0158] The mechanism constraint model construction module calculates the cross-entropy loss based on the real drop-off station labels and the station prediction probabilities output by the LSTM model. It also calculates the candidate feasible region constraint loss based on the candidate station mask and the prediction probabilities of each station. The cross-entropy loss and the candidate feasible region constraint loss are weighted and combined to form the total loss function. The LSTM drop-off station prediction model is then trained based on the total loss function to obtain the mechanism constraint LSTM drop-off station prediction model.
[0159] The fusion prediction module is used to classify the samples to be predicted according to the travel chain rules. For samples that can be judged by rules, the fusion prediction module obtains the drop-off station inference result output by the rule inference module; for samples that are difficult to judge by rules, the fusion prediction module inputs the corresponding sample into the mechanism constraint LSTM drop-off station prediction model to supplement the prediction, and obtains the model's predicted drop-off station.
[0160] Finally, the fusion prediction module integrates the inferred drop-off station results for rule-determinable samples and the model-predicted drop-off stations for rule-difficult samples according to the correspondence between each travel sample, and obtains the predicted drop-off station results for bus passengers.
[0161] In this embodiment, the data types, feature systems, travel chain rules, judgment parameters, feasible regions of candidate drop-off stations, candidate station masks, LSTM structures, loss functions, model parameters, and specific fusion processes used in each module can all adopt the corresponding methods in Embodiment 1, thereby avoiding repeated explanations of the same technical content.
[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for predicting a bus passenger alighting station based on mechanism data fusion, characterized in that, Includes the following steps: We acquire multi-source travel data of public transport passengers, extract features from the multi-source travel data, and obtain a multi-source comprehensive dataset. Based on the adjacent travel records of the same passenger in the multi-source integrated dataset, and combined with the running direction of the bus route, the order of the stops, and the spatiotemporal connection of adjacent travels, the alighting station is inferred for travel samples that meet the travel chain rules. The alighting station inference results of the rule-determinable samples are obtained, and a reference label sample set is constructed based on the alighting station inference results. The LSTM drop-off station prediction model is trained based on the reference label sample set. The feasible region of candidate drop-off stations corresponding to the sample to be processed is determined according to the route direction, station order, and temporal and spatial connection relationships of adjacent trips. The samples to be processed currently include training samples and samples to be predicted from the reference label sample set; Based on the feasible region of the candidate drop-off stations, candidate station constraint information is constructed. The candidate station constraint information is then introduced into the loss function of the LSTM drop-off station prediction model to obtain the mechanism-constrained LSTM drop-off station prediction model. Based on the travel chain rules, the samples to be predicted are classified. For samples that can be judged by rules, the inference results of the alighting station are used. For samples that are difficult to judge by rules, the LSTM alighting station prediction model with mechanism constraints is input to predict the alighting station. The alighting stations corresponding to the samples that can be judged by rules and the samples that are difficult to judge by rules are merged to obtain the prediction results of the alighting stations of bus passengers. 2.The method of predicting a bus passenger's alighting station according to claim 1, wherein, The specific method for obtaining multi-source travel data of public transport passengers, extracting features from the multi-source travel data, and obtaining a multi-source comprehensive dataset is as follows: By associating bus route and vehicle information data with bus IC card transaction data according to the terminal number, bus card swiping data is obtained. The bus route data is matched with the bus GPS operation data based on the terminal number to establish the correspondence between vehicle operation records and vehicle information, and thus obtain the GPS operation data. By associating bus card swiping data and GPS operation data with bus route data and bus stop data, the distance between the GPS coordinate point corresponding to the bus IC card swipe and the coordinate points of each bus stop is calculated. The bus stop with the smallest distance is determined as the boarding stop for the corresponding passenger, and the corresponding route operation direction is determined. The data associated with the boarding station is matched with the POI data around the station, and the card swipe time is matched with the meteorological data to obtain a multi-source integrated dataset.
3. The method for predicting bus passenger alighting points based on mechanistic data fusion according to claim 2, characterized in that, Extract current travel basic features, time attribute features, spatial environment features, external environment features, and historical behavior features from multi-source integrated datasets; Current basic travel characteristics include passenger anonymity identifier, route number, direction of travel, boarding station, and boarding time; Time attribute features include hour, weekday, whether it is a weekend or a holiday, and the cumulative number of card swipes on the day; Spatial environmental characteristics include the latitude and longitude of the boarding station, the station sequence position of the boarding station in the line, and the number of different types of POIs within the preset range of the boarding station; External environmental characteristics include temperature, humidity, air pressure, rainfall, cloud cover, and visibility; Historical behavioral characteristics include the boarding station, route, travel time, and time interval sequence of adjacent travels for the corresponding passenger's historical trips.
4. The method for predicting bus passenger alighting points based on mechanistic data fusion according to claim 1, characterized in that, Based on adjacent travel records of the same passenger in a multi-source integrated dataset, and combined with the bus route's direction of travel, station order, and spatiotemporal connectivity of adjacent travels, the method for inferring the alighting station for travel samples that satisfy the travel chain rules is as follows: The spatial correspondence between the current drop-off point and the next pick-up point is determined based on the spatial connection between adjacent travel spaces. Based on the direction of travel and the order of stations on the current route, the downstream stations after the current boarding station are identified as potential alighting stations. For travel samples with a next boarding record, candidate drop-off stations that meet the spatial connection conditions with the next boarding station are determined from the shortlisted drop-off stations. For the last trip sample where there is no next boarding record, candidate drop-off stations are determined based on the spatial correspondence between the last trip and the first trip of the day. The validity of adjacent card swipe records is checked, and card swipe records with a time interval of less than a preset short interval threshold are excluded. The integrity of station coordinates and vehicle GPS trajectory data is also checked. For travel samples with a next boarding record, calculate the distance between the current boarding station and the next boarding station, and exclude travel samples whose distance is less than a preset short distance threshold. From the set of stations corresponding to the current route and direction of travel, select the station located downstream of the current boarding station and whose distance from the next boarding station meets the preset conditions as the candidate alighting station; The candidate drop-off time for the vehicle is determined based on the vehicle's GPS trajectory; Based on the spatial distance between the candidate alighting station and the next boarding station, and the temporal relationship between the candidate alighting time and the next boarding time, the spatiotemporal rationality of the candidate alighting stations is checked. Based on the spatiotemporal rationality check results, the rule-judgmentable samples and their alighting station inference results are determined.
5. The method for predicting bus passenger alighting points based on mechanistic data fusion according to claim 1, characterized in that, The specific method for training an LSTM alighting station prediction model based on the reference label sample set, and determining the feasible region of candidate alighting stations for the sample to be predicted according to the route direction, station order, and temporal and spatial connections between adjacent trips, is as follows: Obtain the set of stations for the bus route corresponding to the sample to be predicted in the current direction of operation and the station order of the current boarding station. Determine all downstream stations whose station order is after the current boarding station as the first candidate station set. For a sample to be predicted that has a next boarding record, the estimated disembarkation time is determined based on the travel time of the vehicle from the current boarding station to the first candidate station set. The first candidate station set is then filtered based on the time relationship between the estimated disembarkation time and the next boarding time. Finally, the first candidate station set is filtered based on the spatial distance between the first candidate station set and the next boarding station to obtain the feasible region of candidate disembarkation stations. For the sample to be predicted that does not have a next boarding record, the feasible region of candidate alighting stations is determined based on the bus route's direction of operation and the order of stops.
6. The method for predicting bus passenger alighting points based on mechanistic data fusion according to claim 1, characterized in that, The specific method for constructing candidate site constraint information based on the feasible region of candidate drop-off sites is as follows: Generate a candidate station mask based on the feasible region of the candidate drop-off stations corresponding to the sample to be predicted, and use the candidate station mask to mark whether each candidate station belongs to the feasible region of the candidate drop-off stations of the corresponding sample to be predicted. Based on the predicted probabilities of each candidate station output by the LSTM base model without mechanistic constraints and the candidate station mask, the candidate feasible region constraint loss is determined, and the predicted probabilities of stations outside the feasible region of the candidate disembarkation station are constrained.
7. The method for predicting bus passenger alighting points based on mechanistic data fusion according to claim 1, characterized in that, The specific method for incorporating candidate site constraint information into the loss function of the LSTM alighting site prediction model to obtain the mechanistic constraint LSTM alighting site prediction model is as follows: The cross-entropy loss is determined based on the actual drop-off station labels in the reference label sample set and the station prediction probabilities output by the LSTM drop-off station prediction model. The candidate feasible region constraint loss is determined based on the candidate site mask and the predicted site probability corresponding to each candidate site. The cross-entropy loss and the candidate feasible region constraint loss are weighted and combined to obtain the total loss function of the mechanistic constraint LSTM stop prediction model. The LSTM stop prediction model is then trained based on the total loss function to obtain the mechanistic constraint LSTM stop prediction model.
8. The method for predicting bus passenger alighting points based on mechanistic data fusion according to claim 1, characterized in that, The difficult-to-determine samples include at least one of the following: samples with only one travel record, samples where the distance between the candidate drop-off point and the next pick-up point exceeds a preset spatial threshold, samples where the spatial distance between two consecutive rides exceeds a preset distance threshold, samples where the spatial distance between the current trip and the next trip is less than a preset short distance threshold, samples where the time interval between adjacent card swipes is less than a preset short interval threshold, and samples where vehicle GPS operation data is missing.
9. The method for predicting bus passenger alighting points by mechanistic data fusion according to claim 1, characterized in that, Input the rule-difficult samples into the mechanism-constrained LSTM alighting station prediction model to obtain the corresponding model-predicted alighting stations. Integrate the model-predicted alighting stations with the alighting station inference results of rule-determinable samples according to the corresponding travel samples to obtain the bus passenger alighting station prediction results.
10. A bus passenger alighting point prediction system based on mechanistic data fusion, characterized in that, include: The data processing module is used to acquire multi-source travel data of public transport passengers, extract features from the multi-source travel data, and obtain a multi-source comprehensive dataset. The rule inference module is used to infer the drop-off station for travel samples that meet the travel chain rules based on the adjacent travel records of the same passenger in the multi-source integrated dataset, combined with the running direction of the bus route, the order of the stops, and the spatiotemporal connection of adjacent travels. The module obtains the drop-off station inference results for rule-determinable samples and constructs a reference label sample set based on the drop-off station inference results. The feasible region determination module is used to train an LSTM drop-off station prediction model based on the reference label sample set, and determine the feasible region of the candidate drop-off station corresponding to the sample to be predicted based on the route running direction, station order, and temporal and spatial connection relationship of adjacent trips corresponding to the current sample to be processed. The mechanism constraint model construction module is used to construct candidate site constraint information based on the feasible domain of candidate drop-off sites, and to introduce the candidate site constraint information into the loss function of the LSTM drop-off site prediction model to obtain the mechanism constraint LSTM drop-off site prediction model. The fusion prediction module is used to classify the samples to be predicted according to the travel chain rules. For samples that can be judged by rules, the drop-off station inference result is used. For samples that are difficult to judge by rules, the LSTM drop-off station prediction model with mechanism constraints is input to predict the drop-off station. The drop-off stations corresponding to the samples that can be judged by rules and the samples that are difficult to judge by rules are fused to obtain the predicted drop-off station of bus passengers.
