Inter-station driving data processing method, device, electronic equipment and storage medium
By acquiring and processing historical bus data, combined with passenger flow and weather information, a gradient descent model is constructed, which solves the accuracy problem of bus arrival time prediction and dispatching in emergencies, and improves the dispatching effect of the bus management system.
Patent Information
- Application Number
- CN202110456290.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-26
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-04-26
AI Technical Summary
The existing bus management system cannot accurately predict bus arrival times and perform effective dispatching during emergencies or temporary line tasks, resulting in poor dispatching effects.
By obtaining the historical arrival and departure data of buses, dividing time blocks based on passenger flow distribution, calculating and updating the mileage and running time between stations, building a gradient descent model to predict and dispatch bus operating status, filtering out abnormal data, and combining the weather and passenger flow information optimization prediction.
It achieves accurate prediction and dispatching of bus arrival times, optimizes vehicle scheduling and dispatching effects, and improves the accuracy and efficiency of the bus management system.
Smart Images

Figure CN113065803B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of public transportation management, and in particular, to a method, device, electronic device and storage medium for processing inter-station driving data. Background Art
[0002] At present, when bus management systems are performing vehicle dispatching and scheduling, they generally predict the time required for a bus to complete a shift based on the rated mileage and rated duration of the bus on the corresponding route, and then dispatch and schedule the buses on each route accordingly.
[0003] However, when buses are in emergencies or performing temporary route tasks, they do not run the entire route according to the original route, so it is impossible to dispatch and schedule buses according to the rated mileage and rated time of buses on the corresponding route. Moreover, it is impossible to predict the arrival time of buses at various stations based solely on the rated mileage and rated time of vehicles on the corresponding routes, and the dispatch and scheduling of vehicles is relatively poor. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and storage medium for processing inter-station driving data, which can facilitate the prediction of vehicle arrival time and the accurate dispatch and scheduling of vehicles.
[0005] In a first aspect, an embodiment of the present application provides a method for processing inter-station driving data, comprising:
[0006] Obtain the historical arrival and departure data of the corresponding bus line, the historical arrival and departure data including the station name, station number, arrival time, cumulative arrival mileage, departure time and cumulative departure mileage;
[0007] Divide the bus operation time period into multiple time blocks according to the passenger flow distribution, calculate the inter-station stage mileage and the inter-station stage operation time based on the historical arrival and departure data, and update the inter-station stage mileage and the inter-station stage operation time to the inter-station travel data table at a specified time point;
[0008] The inter-station travel data table is read, and bus operation status prediction and scheduling are performed based on the inter-station travel data table.
[0009] Furthermore, the inter-station stage mileage and inter-station stage running time are calculated based on the historical station-to-departure data, including:
[0010] Calculate the difference in cumulative arrival mileage, cumulative departure mileage, arrival time difference and departure time difference between the previous and next stations based on the historical arrival and departure data;
[0011] The inter-station stage mileage is calculated based on the corresponding arrival cumulative mileage difference and the departure cumulative mileage difference between the previous and next stations, and the inter-station stage running time is calculated based on the corresponding arrival time difference and the departure time difference between the previous and next stations.
[0012] Furthermore, the time blocks include morning peak period, evening peak period and off-peak period.
[0013] Furthermore, after obtaining the historical arrival and departure data of the corresponding bus line, it also includes:
[0014] Anomaly detection is performed on the arrival cumulative mileage and the departure cumulative mileage in the historical arrival and departure data, and abnormal values of the arrival cumulative mileage and the departure cumulative mileage are screened out.
[0015] Furthermore, updating the inter-station stage mileage and the inter-station stage running time to the inter-station travel data table at a specified time point also includes:
[0016] Corresponding attribute information is written into the travel data table according to the inter-station stage mileage and the inter-station stage running time, and the attribute information includes weather information, date information and passenger flow parameter information.
[0017] Furthermore, based on the inter-station travel data table, bus operation status prediction and scheduling are performed, including:
[0018] A gradient descent model is constructed based on the inter-station travel data table, and bus operation status prediction and scheduling are performed according to the gradient descent model.
[0019] Furthermore, constructing a gradient descent model based on the inter-station itinerary data table further includes:
[0020] The mean square error loss function of the gradient descent model is calculated, and when the mean square error loss function converges to a set value, the gradient descent model is called for bus operation status prediction and scheduling.
[0021] In a second aspect, an embodiment of the present application provides an inter-station driving data processing device, comprising:
[0022] An acquisition module is used to acquire the historical arrival and departure data of the corresponding bus line, wherein the historical arrival and departure data includes the station name, station number, arrival time, cumulative arrival mileage, departure time and cumulative departure mileage;
[0023] A calculation module, for dividing the bus operation time period into a plurality of time blocks according to the passenger flow distribution, calculating the inter-station stage mileage and the inter-station stage operation time based on the historical arrival and departure data, and updating the inter-station stage mileage and the inter-station stage operation time to the inter-station travel data table at a specified time point;
[0024] The prediction module is used to read the inter-station travel data table and perform bus operation status prediction and scheduling based on the inter-station travel data table.
[0025] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0026] memory and one or more processors;
[0027] The memory is used to store one or more programs;
[0028] When the one or more programs are executed by the one or more processors, the one or more processors implement the inter-station driving data processing method as described in the first aspect.
[0029] In a fourth aspect, an embodiment of the present application provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the inter-station traffic data processing method as described in the first aspect.
[0030] The embodiment of the present application obtains the historical arrival and departure data of the corresponding bus line, and the historical arrival and departure data include the station name, station number, arrival time, cumulative arrival mileage, departure time and cumulative departure mileage; divides the bus operation time period into multiple time blocks according to the passenger flow distribution, calculates the inter-station stage mileage and inter-station stage running time based on the historical arrival and departure data, and updates the inter-station stage mileage and inter-station stage running time to the inter-station travel data table at a specified time point; reads the inter-station travel data table, and predicts and dispatches the bus operation status based on the inter-station travel data table. By adopting the above technical means, by accurately determining the station stage mileage and the inter-station stage running time, a more detailed vehicle arrival prediction can be made, the accurate prediction and dispatch of the bus operation status can be achieved, and the driving data processing and vehicle scheduling and dispatching effects can be optimized. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a flow chart of a method for processing inter-station driving data provided in Example 1 of the present application;
[0032] Figure 2 is a calculation flow chart of the inter-station stage mileage and the inter-station stage running time in the first embodiment of the present application;
[0033] Figure 3 It is a structural schematic diagram of an inter-station driving data processing device provided in Embodiment 2 of the present application;
[0034] Figure 4 It is a structural schematic diagram of an electronic device provided in Example 3 of the present application. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0036] The method for processing inter-station driving data provided by the present application aims to accurately predict and dispatch the operation status of buses and optimize the scheduling and dispatching effect of public transportation vehicles by accurately determining the inter-station stage mileage and inter-station stage running time. Compared with the traditional public transportation dispatching system, when performing vehicle scheduling and dispatching, the arrival time is generally calculated based on the rated mileage and rated duration of the bus on the corresponding route combined with the distance between each station. Since the distance between stations determined by GPS positioning is not accurate and cannot accurately correspond to the actual mileage of the bus between two stations, it is impossible to accurately predict the arrival time of the bus at each station based only on the rated mileage and rated duration of the vehicle on the corresponding route. The error caused by the arrival prediction will further affect the scheduling and dispatching of the vehicle and affect the operation of the bus. Based on this, the method for processing inter-station driving data in the embodiment of the present application is provided to solve the problem of vehicle arrival prediction and scheduling errors in the traditional public transportation dispatching system.
[0037] Embodiment 1:
[0038] Figure 1 A flow chart of a method for processing inter-station driving data provided in the first embodiment of the present application is given. The method for processing inter-station driving data provided in this embodiment can be executed by an inter-station driving data processing device, which can be implemented by software and / or hardware. The inter-station driving data processing device can be composed of two or more physical entities, or can be composed of one physical entity. Generally speaking, the inter-station driving data processing device can be a processing device such as a background host of a bus dispatching system.
[0039] The following description is made by taking the inter-station driving data processing device as an example of the main body of the inter-station driving data processing method. Figure 1 , the inter-station driving data processing method specifically includes:
[0040] S110, obtaining historical arrival and departure data of buses on corresponding routes, wherein the historical arrival and departure data includes station name, station number, arrival time, cumulative arrival mileage, departure time and cumulative departure mileage.
[0041] Specifically, when calculating the mileage between stations and the running time between stations, the embodiment of the present application is based on the historical arrival and departure data of the corresponding line bus. The historical arrival and departure data include the station name, station number, arrival time, cumulative arrival mileage, departure time and cumulative departure mileage. When the corresponding bus vehicle arrives at a certain station during operation, the cumulative arrival mileage and arrival time will be recorded corresponding to the station name and station number of the station. Similarly, when the bus leaves the station, the cumulative departure mileage and departure time will be recorded corresponding to the station name and station number of the station. It should be noted that a station area will be pre-set for each station. When the on-board positioning device detects that the bus enters the corresponding station area, the bus arrives at the station. Correspondingly, when the on-board positioning device detects that the bus leaves the corresponding station area, the bus leaves the station. On the other hand, the cumulative mileage of the bus in the embodiment of the present application can be measured by the odometer installed on the bus. It can be understood that the difference in the cumulative arrival mileage of the two stations before and after or the difference in the cumulative departure mileage can be determined to determine the difference in the cumulative mileage between the two stations before and after during the operation of the bus. Similarly, the difference in inter-station running time between the two preceding and following stations can be determined based on the difference in arrival time or departure time between the two preceding and following stations during the operation of the current bus trip.
[0042] For example, when calculating the inter-station mileage and inter-station operation time of the "Route 297" bus line, the historical arrival and departure data of all buses on "Route 297" in the previous vehicle operation process are extracted. Among them, a historical arrival and departure data is obtained when the corresponding bus completes a shift of vehicle operation. In the historical arrival and departure data, the corresponding station name and station serial number record the arrival time, cumulative arrival mileage, departure time and cumulative departure mileage of the bus at the station. Based on the above data, the cumulative mileage difference and inter-station operation time difference between the two stations before and after in this shift can be determined.
[0043] In one embodiment, the bus dispatching system also obtains the historical arrival and departure data of the bus on the corresponding route according to the bus number or bus driver. It is understandable that for buses with different numbers, their vehicle conditions are different. When driving buses with different numbers on the corresponding bus routes, the arrival and departure data detected by them will be more or less biased. Similarly, for different bus drivers, their driving habits are different. When different bus drivers drive buses on the corresponding bus routes, the arrival and departure data detected by them will be more or less biased. Therefore, when the embodiment of the present application predicts the arrival of the bus with the corresponding number or the bus driven by the corresponding driver, the historical arrival and departure data of the bus on the corresponding route is obtained by the corresponding bus number or bus driver, and its arrival time can be predicted more accurately based on the historical arrival and departure data.
[0044] S120, dividing the bus operation time period into multiple time blocks according to the passenger flow distribution, calculating the inter-station stage mileage and the inter-station stage operation time based on the historical arrival and departure data, and updating the inter-station stage mileage and the inter-station stage operation time to the inter-station travel data table at a specified time point.
[0045] Furthermore, based on the historical arrival and departure data of the buses on the corresponding routes, the corresponding cumulative mileage difference and inter-station running time difference are determined according to the historical arrival and departure data, and then the average of the corresponding cumulative mileage difference and inter-station running time difference is calculated to obtain the inter-station stage mileage and inter-station stage running time, and the inter-station stage mileage and inter-station stage running time are used as the basic data for the arrival time prediction and scheduling of the buses on the corresponding routes.
[0046] Specifically, according to the historical arrival and departure data of the corresponding bus line, firstly, the arrival cumulative mileage and departure cumulative mileage in the historical arrival and departure data are detected for abnormality, and the abnormal values of the arrival cumulative mileage and departure cumulative mileage are screened out. It is understandable that when the bus records the arrival cumulative mileage and the departure cumulative mileage, it is easy to cause abnormalities in the detected arrival cumulative mileage and departure cumulative mileage due to the influence of detection errors. For example, the arrival cumulative mileage or the departure cumulative mileage between the two stations appears to be an excessively large value, an extremely small value, a negative value, or a zero value, and the calculated cumulative mileage difference is greatly different from the actual running distance between the two stations. At this time, it is considered that the above-mentioned arrival cumulative mileage or departure cumulative mileage is wrong, and this part of the data is screened out to avoid calculation errors and ensure the accuracy of subsequent arrival time prediction.
[0047] In one embodiment, the bus dispatching system also performs anomaly detection on the obtained arrival time and departure time. It is understandable that when the difference in arrival time or departure time between the two stations is abnormal, and the difference in station running time between the two stations is extremely large, extremely small, negative, zero, etc., the calculated difference in station running time is significantly different from the rated running time between the two stations. At this time, it is considered that the calculation of the difference in station running time is wrong, and this part of the data is screened out to avoid calculation errors and ensure the accuracy of subsequent arrival time predictions.
[0048] After filtering out abnormal data, the embodiment of the present application divides the bus operation time period into multiple time blocks according to the passenger flow distribution, and the time blocks include the morning peak period, the evening peak period and the off-peak period, and then calculates the inter-station stage mileage and the inter-station stage operation time corresponding to different time blocks. For example, the morning "08:01-10:00" is divided into the morning peak period, "17:30-20:00" is divided into the evening peak period, and the rest of the time is divided into the off-peak period. According to the above-mentioned divided time, the corresponding historical arrival and departure data is taken to calculate the inter-station stage mileage and the inter-station stage operation time.
[0049] Specifically, refer to Figure 2 , providing a calculation flow chart of the inter-station phase mileage and inter-station phase running time. The calculation flow of the inter-station phase mileage and inter-station phase running time includes:
[0050] S1201, calculating the difference in cumulative arrival mileage, the difference in cumulative departure mileage, the difference in arrival time, and the difference in departure time between the previous and next stations based on the historical arrival and departure data;
[0051] S1202, calculating the inter-station stage mileage based on the corresponding arrival cumulative mileage difference and the departure cumulative mileage difference between the previous and next stations, and calculating the inter-station stage running time based on the corresponding arrival time difference and the departure time difference between the previous and next stations.
[0052] In the historical arrival and departure data of each time block, corresponding to the historical arrival and departure data of a bus shift, according to the station sequence number and station name, the cumulative mileage of arrival at station N+1 is subtracted from the cumulative mileage of arrival at station N to obtain the corresponding cumulative mileage difference at arrival; the cumulative mileage of departure from station N+1 is subtracted from the cumulative mileage of departure from station N to obtain the corresponding cumulative mileage difference at departure. Similarly, the arrival time of station N+1 is subtracted from the arrival time of station N to obtain the corresponding arrival time difference; the departure time of station N+1 is subtracted from the departure time of station N to obtain the corresponding departure time difference. Based on the above calculation method, the cumulative mileage difference between the two stations (i.e., the cumulative mileage difference at arrival and the cumulative mileage difference at departure) and the inter-station running time difference (i.e., the arrival time difference and the departure time difference) can be obtained in each historical arrival and departure data. It should be noted that in the embodiment of the present application, the cumulative mileage difference between the two stations is to calculate the cumulative mileage difference at arrival and the cumulative mileage difference at departure respectively. Similarly, the inter-station running time difference between two stations is calculated by calculating the arrival time difference and the departure time difference respectively. This can increase the amount of basic data, and the confidence of the inter-station stage mileage and inter-station stage running time calculated by accumulating the mileage difference and the inter-station running time difference is higher and closer to the actual detection result.
[0053] It should be noted that, due to the prior data anomaly detection, some stations have missing data due to data screening, and the calculation of the accumulated mileage difference between the two corresponding stations and the difference in running time between stations is ignored at this time.
[0054] Furthermore, based on the above-calculated cumulative mileage difference at the station, cumulative mileage difference at the station, arrival time difference, and departure time difference, the corresponding average can be calculated to obtain the corresponding inter-station stage mileage and inter-station stage running time. Among them, corresponding to the two previous and next stations, all valid data of cumulative mileage difference at the station and cumulative mileage difference at the station are extracted, and these data are accumulated and divided by the number of valid data to obtain the inter-station stage mileage. Similarly, corresponding to the two previous and next stations, all valid data of arrival time difference and departure time difference are extracted, and these data are accumulated and divided by the number of valid data to obtain the inter-station stage running time. Corresponding to the two previous and next stations on a bus line, the historical arrival and departure data of the corresponding time block are extracted, and the inter-station stage mileage and inter-station stage running time are calculated based on the above calculation method, so that the inter-station stage mileage and inter-station stage running time between any two previous and next stations of the corresponding bus line in different time blocks can be obtained.
[0055] After completing the calculation of the above-mentioned inter-station phase mileage and inter-station phase running time, the inter-station phase mileage and the inter-station phase running time are updated to the inter-station travel data table at a specified time point. For example, in the early morning, by extracting the historical arrival and departure data of the bus for a day, the inter-station phase mileage and inter-station phase running time between any two stations before and after are calculated according to different time blocks, and then the data is updated to the inter-station travel data table. When performing subsequent bus arrival prediction and scheduling, arrival prediction and scheduling are performed based on the basic data provided by the inter-station travel data table.
[0056] In one embodiment, the bus dispatching system further writes corresponding attribute information into the trip data table according to the inter-station stage mileage and the inter-station stage running time, and the attribute information includes weather information, date information and passenger flow parameter information. Specifically, the weather information records the weather conditions at the corresponding time. The date information records the day of the week and holiday information. The passenger flow parameter information records the number of passengers boarding the passenger flow, the number of passengers disembarking the passenger flow, and the number of passengers in the current vehicle. It can be understood that according to the above-mentioned recorded attribute information, the attribute information can be used as a reference when performing subsequent scheduling and dispatching of arrival time prediction to achieve better arrival prediction and scheduling and dispatching effects.
[0057] S130: Read the inter-station travel data table, and perform bus operation status prediction and scheduling based on the inter-station travel data table.
[0058] Afterwards, based on the inter-station travel data table updated in real time during the above pre-construction, the bus operation status prediction and scheduling can be performed based on the inter-station travel data table. Exemplarily, when the bus runs between the Nth station and the N+1th station, according to its cumulative mileage at the Nth station, the cumulative mileage at the station, the arrival time and the departure time, by querying the above inter-station travel data table, the corresponding inter-station stage operation time is determined, and the arrival time of the bus at the N+1th station can be determined. Correspondingly, by determining the corresponding inter-station stage mileage, combined with the real-time cumulative mileage of the bus, it can be determined how much mileage the bus needs to travel to reach the N+1th station. In this way, the prediction of the bus operation status can be completed.
[0059] Furthermore, based on the above operation status prediction results, the next bus can be dispatched accordingly. For example, it is set that when the previous bus arrives at a certain station, the next bus can be dispatched from the starting station. Based on the above bus arrival prediction, the next bus can be dispatched at the corresponding time.
[0060] In one embodiment, since the inter-station travel data table records the inter-station stage mileage and inter-station stage running time corresponding to different time blocks, and the inter-station stage mileage and inter-station stage running time will be updated at a specified time point. Therefore, when querying the inter-station stage mileage and inter-station stage running time, the embodiment of the present application needs to perform data query according to the current time block. In addition, according to actual needs, it is also possible to combine the attribute information of the current bus, such as weather information, date information and passenger flow parameter information, and search the inter-station stage mileage and inter-station stage running time with the most similar attribute information in the inter-station travel data table based on the attribute information, and then perform bus operation status prediction and scheduling, so as to achieve more accurate bus operation status prediction and scheduling.
[0061] In one embodiment, the dispatching system also constructs a gradient descent model based on the inter-station travel data table, and performs bus operation status prediction and dispatch according to the gradient descent model.
[0062] Specifically, the embodiment of the present application extracts each basic inter-station stage travel and inter-station stage running time from the inter-station travel data table, uses the above data as model input, and uses the corresponding predicted value as model output to construct a gradient descent model. The gradient descent model uses the gradient descent algorithm of the least squares method. By setting the learning rate and constructing the corresponding prediction function, calculations are performed based on the gradient descent algorithm until the value of the function trough is obtained, which is the predicted value of the model output, thereby completing the bus operation status prediction of the gradient descent model. It should be noted that there are many technical solutions for predicting the arrival time of buses based on the gradient descent model in the prior art. The embodiment of the present application does not impose fixed restrictions on the specific implementation means, which will not be elaborated here.
[0063] Furthermore, when constructing the gradient descent model, the embodiment of the present application also calculates the mean square error loss function of the gradient descent model, and when the mean square error loss function converges to a set value, calls the gradient descent model for bus operation status prediction and scheduling. It can be understood that the mean square error is a measure of the degree of difference between the estimated value and the estimated value. When the degree of difference between the model prediction value and the actual value is less than the set value, that is, the mean square error loss function converges to the set value, it indicates that the gradient descent model meets a certain prediction accuracy. At this time, the gradient descent model is output for the dispatching system to call for bus operation status prediction, so as to provide accurate and efficient bus operation status prediction and scheduling effects.
[0064] As mentioned above, by obtaining the historical arrival and departure data of the corresponding bus line, the historical arrival and departure data includes the station name, station number, arrival time, cumulative arrival mileage, departure time and cumulative departure mileage; the bus operation time period is divided into multiple time blocks according to the passenger flow distribution, and the station-to-station stage mileage and station-to-station stage running time are calculated based on the historical arrival and departure data, and the station-to-station stage mileage and station-to-station stage running time are updated to the station-to-station travel data table at the specified time point; the station-to-station travel data table is read, and the bus operation status is predicted and scheduled based on the station-to-station travel data table. By using the above technical means, by accurately determining the station stage mileage and station stage running time, a more detailed vehicle arrival prediction can be made, the accurate prediction and scheduling of the bus operation status can be achieved, and the driving data processing and vehicle scheduling and dispatching effects can be optimized.
[0065] Embodiment 2:
[0066] Based on the above embodiments, Figure 3 This is a schematic diagram of the structure of a station-to-station vehicle data processing device provided in Example 2 of the present application. Figure 3 The inter-station driving data processing device provided in this embodiment specifically includes: an acquisition module 21, a calculation module 22 and a prediction module 23.
[0067] The acquisition module 21 is used to acquire the historical arrival and departure data of the corresponding bus line, and the historical arrival and departure data includes the station name, station number, arrival time, cumulative arrival mileage, departure time and cumulative departure mileage;
[0068] The calculation module 22 is used to divide the bus operation time period into multiple time blocks according to the passenger flow distribution, calculate the inter-station stage mileage and the inter-station stage running time based on the historical arrival and departure data, and update the inter-station stage mileage and the inter-station stage running time to the inter-station travel data table at a specified time point;
[0069] The prediction module 23 is used to read the inter-station travel data table, and perform bus operation status prediction and scheduling based on the inter-station travel data table.
[0070] As mentioned above, by obtaining the historical arrival and departure data of the corresponding bus line, the historical arrival and departure data includes the station name, station number, arrival time, cumulative arrival mileage, departure time and cumulative departure mileage; the bus operation time period is divided into multiple time blocks according to the passenger flow distribution, and the station-to-station stage mileage and station-to-station stage running time are calculated based on the historical arrival and departure data, and the station-to-station stage mileage and station-to-station stage running time are updated to the station-to-station travel data table at the specified time point; the station-to-station travel data table is read, and the bus operation status is predicted and scheduled based on the station-to-station travel data table. By using the above technical means, by accurately determining the station stage mileage and station stage running time, a more detailed vehicle arrival prediction can be made, the accurate prediction and scheduling of the bus operation status can be achieved, and the driving data processing and vehicle scheduling and dispatching effects can be optimized.
[0071] The inter-station traffic data processing device provided in the second embodiment of the present application can be used to execute the inter-station traffic data processing method provided in the above-mentioned first embodiment, and has corresponding functions and beneficial effects.
[0072] Embodiment three:
[0073] Embodiment 3 of the present application provides an electronic device, referring to Figure 4 The electronic device includes: a processor 31, a memory 32, a communication module 33, an input device 34 and an output device 35. The number of processors in the electronic device can be one or more, and the number of memories in the electronic device can be one or more. The processor, memory, communication module, input device and output device of the electronic device can be connected via a bus or other means.
[0074] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the station-to-station driving data processing method described in any embodiment of the present application (for example, the acquisition module, calculation module and prediction module in the station-to-station driving data processing device). The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0075] The communication module 33 is used for data transmission.
[0076] The processor 31 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory, that is, realizes the above-mentioned inter-station driving data processing method.
[0077] The input device 34 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 35 may include a display device such as a display screen.
[0078] The electronic device provided above can be used to execute the inter-station driving data processing method provided in the above-mentioned embodiment 1, and has corresponding functions and beneficial effects.
[0079] Embodiment 4:
[0080] An embodiment of the present application also provides a storage medium containing computer executable instructions, which are used to execute a method for processing inter-station driving data when executed by a computer processor. The method for processing inter-station driving data includes: obtaining historical arrival and departure data of buses on corresponding routes, wherein the historical arrival and departure data include station name, station serial number, arrival time, cumulative arrival mileage, departure time and cumulative departure mileage; dividing the bus operation time period into multiple time blocks according to passenger flow distribution, calculating the inter-station stage mileage and the inter-station stage operation time based on the historical arrival and departure data, and updating the inter-station stage mileage and the inter-station stage operation time to the inter-station travel data table at a specified time point; reading the inter-station travel data table, and predicting and scheduling the bus operation status based on the inter-station travel data table.
[0081] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0082] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application is not limited to the inter-station traffic data processing method as described above, and can also execute related operations in the inter-station traffic data processing method provided in any embodiment of the present application.
[0083] The inter-station traffic data processing device, storage medium and electronic device provided in the above embodiments can execute the inter-station traffic data processing method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the inter-station traffic data processing method provided in any embodiment of the present application.
[0084] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A method for processing inter-station driving data, characterized in that: include: Acquire the historical arrival and departure data of the bus of the corresponding route, wherein the historical arrival and departure data includes the station name, station number, arrival time, cumulative arrival mileage, departure time and cumulative departure mileage, wherein the acquisition of the historical arrival and departure data of the bus of the corresponding route includes: acquiring the historical arrival and departure data of the bus of the corresponding route from the bus driver; Performing abnormality detection on the arrival cumulative mileage and the departure cumulative mileage in the historical arrival and departure data, and filtering out abnormal values of the arrival cumulative mileage and the departure cumulative mileage; The bus operation time period is divided into multiple time blocks according to the passenger flow distribution, and the inter-station stage mileage and the inter-station stage running time are calculated based on the historical arrival and departure data, and the inter-station stage mileage and the inter-station stage running time are updated to the inter-station travel data table at a specified time point, wherein the calculation of the inter-station stage mileage and the inter-station stage running time based on the historical arrival and departure data includes: calculating the difference in the cumulative arrival mileage, the difference in the cumulative departure mileage, the arrival time difference and the departure time difference between the front and rear stations based on the historical arrival and departure data, calculating the inter-station stage mileage based on the corresponding difference in the arrival mileage and the difference in the departure mileage between the front and rear stations, and calculating the inter-station stage running time based on the corresponding difference in the arrival time and the difference in the departure time between the front and rear stations, wherein the calculation of the inter-station stage mileage based on the corresponding difference in the arrival mileage and the difference in the departure mileage between the front and rear stations, based on the difference in the front and rear stations The said arrival time difference and the said departure time difference corresponding to the stations are used to calculate the station-to-station stage operation time, including: corresponding to the two preceding and following stations, extracting the valid mileage difference data of all the arrival cumulative mileage difference and the departure cumulative mileage difference, accumulating the said mileage difference valid data and dividing it by the number of the said mileage difference valid data, so as to obtain the station-to-station stage mileage; corresponding to the two preceding and following stations, extracting the valid time difference data of all the arrival time difference and the departure time difference, accumulating the said time difference valid data and dividing it by the number of the said time difference valid data, so as to obtain the station-to-station stage operation time, wherein the said updating the station-to-station stage mileage and the station-to-station stage operation time to the station-to-station travel data table at the specified time point includes: writing the corresponding attribute information into the travel data table according to the station-to-station stage mileage and the station-to-station stage operation time, and the attribute information includes weather information, date information and passenger flow parameter information; Read the inter-station travel data table, and perform bus operation status prediction and scheduling based on the inter-station travel data table, including: when querying the inter-station stage mileage and the inter-station stage running time, perform data query according to the current time block, combine the attribute information of the current bus, and search the inter-station stage mileage and inter-station stage running time with the most similar attribute information in the inter-station travel data table according to the attribute information to predict and schedule the bus operation status, wherein the bus operation status prediction and scheduling based on the inter-station travel data table includes: constructing a gradient descent model based on the inter-station travel data table, and predicting and scheduling the bus operation status according to the gradient descent model, wherein the gradient descent model constructed based on the inter-station travel data table includes: calculating the mean square error loss function of the gradient descent model, and when the mean square error loss function converges to a set value, calling the gradient descent model for bus operation status prediction and scheduling.
2. The method for processing inter-station driving data according to claim 1, characterized in that: The time blocks include a morning peak period, an evening peak period and a non-peak period.
3. A station-to-station vehicle data processing device, characterized in that: include: The acquisition module is used to acquire the historical arrival and departure data of the bus of the corresponding route, wherein the historical arrival and departure data include the station name, station number, arrival time, cumulative arrival mileage, departure time and cumulative departure mileage, wherein the acquisition of the historical arrival and departure data of the bus of the corresponding route includes: acquiring the historical arrival and departure data of the bus of the corresponding route from the bus driver; An abnormal value screening module is used to perform abnormality detection on the arrival cumulative mileage and the departure cumulative mileage in the historical arrival and departure data, and screen out abnormal values of the arrival cumulative mileage and the departure cumulative mileage; A calculation module, for dividing the bus operation time period into a plurality of time blocks according to the passenger flow distribution, calculating the inter-station stage mileage and the inter-station stage running time based on the historical arrival and departure data, and updating the inter-station stage mileage and the inter-station stage running time to the inter-station travel data table at a specified time point, wherein the calculation of the inter-station stage mileage and the inter-station stage running time based on the historical arrival and departure data includes: calculating the difference in the cumulative arrival mileage, the difference in the cumulative departure mileage, the difference in arrival time and the difference in departure time between the front and rear stations based on the historical arrival and departure data, calculating the inter-station stage mileage based on the corresponding difference in the arrival mileage and the difference in the cumulative departure mileage between the front and rear stations, and calculating the inter-station stage running time based on the corresponding difference in the arrival time and the difference in the departure time between the front and rear stations, wherein the calculation of the inter-station stage mileage based on the corresponding difference in the arrival mileage and the difference in the departure mileage between the front and rear stations, The inter-station stage operation time is calculated based on the corresponding arrival time difference and departure time difference between the front and rear stations, including: corresponding to the two front and rear stations, extracting the valid mileage difference data of all arrival cumulative mileage differences and departure cumulative mileage differences, accumulating the valid mileage difference data and dividing it by the number of valid mileage difference data to obtain the inter-station stage mileage; corresponding to the two front and rear stations, extracting the valid time difference data of all arrival time differences and departure time differences, accumulating the valid time difference data and dividing it by the number of valid time difference data to obtain the inter-station stage operation time, wherein the updating of the inter-station stage mileage and the inter-station stage operation time to the inter-station travel data table at the specified time point includes: writing corresponding attribute information into the travel data table according to the inter-station stage mileage and the inter-station stage operation time, the attribute information including weather information, date information and passenger flow parameter information; A prediction module is used to read the inter-station travel data table, and predict and schedule the bus operation status based on the inter-station travel data table, including: when querying the inter-station stage mileage and the inter-station stage running time, perform data query according to the current time block, combine the attribute information of the current bus, and search the inter-station stage mileage and inter-station stage running time with the most similar attribute information in the inter-station travel data table according to the attribute information to predict and schedule the bus operation status, wherein the prediction and scheduling of the bus operation status based on the inter-station travel data table includes: constructing a gradient descent model based on the inter-station travel data table, and predicting and scheduling the bus operation status according to the gradient descent model, wherein the construction of the gradient descent model based on the inter-station travel data table includes: calculating the mean square error loss function of the gradient descent model, and when the mean square error loss function converges to a set value, calling the gradient descent model for bus operation status prediction and scheduling.
4. An electronic device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the inter-station driving data processing method as described in any one of claims 1-2.
5. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the inter-station traffic data processing method as described in any one of claims 1-2 when executed by a computer processor.
Citation Information
Patent Citations
System and method for predicting arrival time of buses in real time
CN102708701A
Bus arrival time forecasting method and device
CN105243868A
Public transport intelligent scheduling method, system and medium
CN108615391A
Systems and methods for range prediction
US20210049832A1
