Method and device for detecting delay of cross-border train

By matching target routes and dividing sections within cross-border freight trains, and statistically analyzing running and dwell times, the accuracy of delay detection for cross-border freight trains has been solved, improving the flexibility of transportation planning and emergency response capabilities.

CN117901917BActive Publication Date: 2026-05-29CHINA ACADEMY OF RAILWAY SCI CORP LTD +2

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA ACADEMY OF RAILWAY SCI CORP LTD
Filing Date
2023-11-30
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing methods for determining train delays are not applicable to international freight trains, and cannot accurately determine whether they arrive as scheduled.

Method used

By matching the originating station, destination station, port stations in the countries through which the international freight train passes, and the trajectory information of the current operation, the target route is identified and divided into multiple intervals. The average travel time of each interval and the average dwell time at each port station are calculated. Combined with the current actual travel time of the international freight train, it is determined whether it is delayed.

Benefits of technology

It enables accurate detection of delays in cross-border freight trains, helping carriers adjust their transportation plans in a timely manner and improve their emergency response capabilities and overall competitiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117901917B_ABST
    Figure CN117901917B_ABST
Patent Text Reader

Abstract

The application provides a method and device for detecting delay of cross-border train, which comprises the following steps: according to the starting station, terminal station, port stations of each country and the trajectory information of the first cross-border train, matching the target route from the route database of the first cross-border train; dividing the target route into multiple sections, counting the average running time of multiple second cross-border trains in each section and the average stay time of multiple third cross-border trains in each port station; according to the running time of the first cross-border train, the average running time of the section passed by the first cross-border train, the average stay time of the port station passed by the first cross-border train and the average running time corresponding to the distance of the first cross-border train in the current section, determining whether the first cross-border train is delayed or not. The application realizes accurate detection of whether the cross-border train is delayed or not.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a method and apparatus for detecting delays in cross-border freight trains. Background Technology

[0002] International rail freight trains between countries are an effective means of connecting domestic and international markets and promoting efficient circulation of the world and domestic economies. Whether cross-border freight trains arrive on schedule is the core concern for shippers.

[0003] Currently, delays for domestic passenger trains are typically determined based on timetable schedules, while delays for domestic freight trains are usually determined based on the train's average speed. However, cross-border freight trains are subject to numerous factors during transport, making their cross-border operations complex and diverse. Existing methods for determining train delays are not suitable for cross-border freight trains.

[0004] Therefore, how to provide a method for detecting delays in cross-border freight trains is an important issue that the industry urgently needs to address. Summary of the Invention

[0005] This invention provides a method and apparatus for detecting delays in cross-border freight trains, which addresses the shortcomings of existing train delay determination methods that are not applicable to cross-border freight trains, and enables the determination of delays in cross-border freight trains.

[0006] This invention provides a method for detecting delays in cross-border freight trains, comprising:

[0007] Based on the originating station, destination station, port stations of the countries the first cross-border freight train passes through, and the trajectory information of the first cross-border freight train's current operation, the target route is matched from the route database of the first cross-border freight train.

[0008] The target route is divided into multiple sections, and the average running time of multiple second cross-border trains on each section and the average dwell time of multiple third cross-border trains at each port station are calculated.

[0009] Based on the time the first cross-border freight train has already traveled, the average travel time corresponding to the section it has already passed, the average dwell time corresponding to the port station it has already passed, and the average travel time corresponding to the distance the first cross-border freight train has traveled in the current section, it is determined whether the first cross-border freight train is currently delayed.

[0010] According to a method for detecting delays in cross-border freight trains provided by the present invention, determining whether the first cross-border freight train is currently delayed based on the train's current running time, the average running time corresponding to the sections it has already passed, the average dwell time corresponding to the port stations it has already passed, and the average running time corresponding to the distance the train has traveled in its current section, includes:

[0011] Determine a first ratio between the distance already traveled by the first cross-border freight train in its current segment and the total distance of the current segment;

[0012] Based on the first ratio and the average running time corresponding to the current interval, determine the average running time corresponding to the distance already traveled in the current interval;

[0013] Determine the first sum of the average travel time corresponding to the interval already passed, the average dwell time corresponding to the port station already passed, and the average travel time corresponding to the distance already traveled in the current interval;

[0014] If the time already traveled by the first cross-border freight train is greater than the first total time, then the first cross-border freight train is determined to be currently delayed.

[0015] According to a method for detecting delays in cross-border freight trains provided by the present invention, after determining the current delay of the first cross-border freight train, the method further includes:

[0016] Determine a second ratio between the time already traveled by the first cross-border freight train and the first total;

[0017] The second ratio is compared with the first preset threshold to determine the degree of delay of the first cross-border freight train.

[0018] According to the present invention, a method for detecting delays of cross-border freight trains, after calculating the average running time of multiple second cross-border freight trains on each section and the average dwell time of multiple third cross-border freight trains at each port station, further includes:

[0019] Based on the time already traveled by the first cross-border freight train, the average travel time for each section, the average dwell time for each port station, and the average travel time corresponding to the untraveled distance of the first cross-border freight train in its current section, it is determined whether the first cross-border freight train is late when it arrives at the final destination.

[0020] According to a method for detecting delays in cross-border freight trains provided by the present invention, determining whether the first cross-border freight train is delayed upon arrival at the final destination based on the first cross-border freight train's current running time, the average running time corresponding to each section, the average dwell time corresponding to each port station, and the average running time corresponding to the untraveled distance of the first cross-border freight train in its current section, includes:

[0021] Determine a third ratio between the untraveled distance of the first cross-border freight train in its current segment and the total distance of the current segment;

[0022] Based on the third ratio and the average running time corresponding to the current interval, determine the average running time corresponding to the untraveled distance in the current interval;

[0023] Determine the second sum of the average running time corresponding to all the said intervals and the average stay time corresponding to all the said port stations;

[0024] The third sum is determined by the time the first cross-border freight train has traveled so far, the average travel time corresponding to the section it has not yet reached, the average dwell time corresponding to the port station it has not passed through, and the average travel time corresponding to the distance it has not traveled in the current section.

[0025] If the third sum is greater than the second sum, it is determined that the first international freight train was delayed upon arrival at the destination station.

[0026] According to a method for detecting delays in cross-border freight trains provided by the present invention, after determining that the first cross-border freight train is delayed upon arrival at the destination station, the method further includes:

[0027] Determine a fourth ratio between the third sum and the second sum;

[0028] The fourth ratio is compared with the second preset threshold to determine the degree of delay of the first cross-border freight train when it arrives at the destination station.

[0029] The present invention also provides a device for detecting delays in cross-border freight trains, comprising:

[0030] The matching module is used to match the target route from the route database of the first cross-border freight train based on the originating station, destination station, port stations of the countries it passes through, and the trajectory information of the first cross-border freight train in this run.

[0031] The statistics module is used to divide the target route into multiple sections, and to calculate the average running time of multiple second cross-border trains in each section and the average dwell time of multiple third cross-border trains at each port station.

[0032] The determination module is used to determine whether the first cross-border freight train is currently delayed based on the time the first cross-border freight train has already traveled, the average travel time corresponding to the section it has already passed, the average dwell time corresponding to the port station it has already passed, and the average travel time corresponding to the distance the first cross-border freight train has traveled in the current section.

[0033] According to the present invention, a transnational freight train delay detection device is provided, wherein the determining module is specifically used for:

[0034] Determine a first ratio between the distance already traveled by the first cross-border freight train in its current segment and the total distance of the current segment;

[0035] Based on the first ratio and the average running time corresponding to the current interval, determine the average running time corresponding to the distance already traveled in the current interval;

[0036] Determine the first sum of the average travel time corresponding to the interval already passed, the average dwell time corresponding to the port station already passed, and the average travel time corresponding to the distance already traveled in the current interval;

[0037] If the time already traveled by the first cross-border freight train is greater than the first total time, then the first cross-border freight train is determined to be currently delayed.

[0038] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the transnational freight train delay detection method described above.

[0039] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the transnational freight train delay detection method as described above.

[0040] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the transnational freight train delay detection method as described above.

[0041] The present invention provides a method and apparatus for detecting delays in cross-border freight trains. By matching the departure station, destination station, port stations of the countries through which the cross-border freight train passes, and the trajectory information of the current operation, the method divides the target route into multiple sections, calculates the average running time of each section and the average dwell time of each port station, and accurately detects whether the cross-border freight train is currently delayed based on the current actual time and the current statistical time. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0043] Figure 1 This is a flowchart illustrating the method for detecting delays in cross-border freight trains provided by the present invention.

[0044] Figure 2 This is a schematic diagram of the structure of the transnational freight train delay detection device provided by the present invention;

[0045] Figure 3 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0046] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0047] The following is combined with Figure 1 A method for detecting delays in cross-border freight trains according to the present invention includes:

[0048] Step 101: Based on the originating station, destination station, port stations of the countries the first cross-border freight train passes through, and the trajectory information of the first cross-border freight train in this operation, match the target route from the route database of the first cross-border freight train.

[0049] The first cross-border freight train is one that requires monitoring for delays. The originating station, destination station, and border crossings of the countries it passes through can be obtained from the international freight bill of lading. The real-time trajectory information of the first cross-border freight train can be obtained through IoT tracking devices on board.

[0050] The route database for the first international freight train contains multiple routes for its operation. First, a route containing both the train's origin and destination stations can be selected. Since multiple routes may exist, routes including border crossings of various countries are further filtered out. Because multiple routes may exist between border crossings, the route with the highest overlap with the train's current trajectory information is selected as the target route.

[0051] Step 102: Divide the target route into multiple sections, and calculate the average running time of multiple second cross-border trains in each section and the average dwell time of multiple third cross-border trains at each port station.

[0052] Taking into account factors such as station dwell time, road network attributes, and station size, important intermediate stations can be selected, and the target route can be divided into multiple sections based on the important intermediate stations on the target route.

[0053] The second cross-border freight train is a train that historically passed through a certain section of the target route. The third cross-border freight train is a train that historically passed through a certain port station. The second and third cross-border freight trains can be the same train as the first cross-border freight train, or they can be different trains with the same speed.

[0054] The transit time of the first cross-border freight train is affected by factors such as transport distance, transport speed, and transshipment efficiency at port stations. Because the countries along the route use different gauge standards (some use standard gauge, others broad gauge), one to two transshipment operations are required at port stations before the train can continue its journey. Due to limitations in port station infrastructure and a lack of flatcars, the transshipment time is unpredictable.

[0055] Based on historical trajectory information from IoT tracking devices and node logistics tracking information provided by overseas agents, the system can calculate the average travel time of second-tier cross-border freight trains that have operated in each interval within a historical time period. For example, it can calculate the average travel time for each interval over a month. The calculated average travel time for each interval is then stored in an interval database.

[0056] Based on the historical dwell time of each port station in the port station database, calculate the average dwell time of third-party cross-border freight trains passing through each port station within a historical time period at each port station. For example, calculate the average dwell time of each port station within one month. Store the calculated average dwell time of each port station in the port station database.

[0057] The dwell time of the third cross-border freight train at each port station is the time difference between the departure port station time and the arrival port station time of the third cross-border freight train.

[0058] Step 103: Based on the time the first cross-border freight train has already traveled, the average travel time corresponding to the section it has already passed, the average dwell time corresponding to the port station it has already passed, and the average travel time corresponding to the distance the first cross-border freight train has traveled in the current section, determine whether the first cross-border freight train is currently delayed.

[0059] Determine the complete section that the first cross-border freight train has already traveled along the target route, and determine the distance that the first cross-border freight train has traveled in its current section.

[0060] The travel time of the first cross-border freight train can be determined based on its departure time and current time, and this travel time can be used as the current actual travel time of the first cross-border freight train.

[0061] The sum of the average travel time of the train in the current section, the average dwell time of the train in the current port station, and the average travel time of the first cross-border train in the current section is used as the current statistical time for the first cross-border train.

[0062] If the actual travel time of the first cross-border train exceeds the current statistical travel time, it is determined that the first cross-border train is currently delayed; otherwise, the first cross-border train is not currently delayed. This allows for a better understanding of the transportation progress of goods, thereby optimizing inventory management and logistics planning, and improving the efficiency and effectiveness of the overall supply chain.

[0063] This embodiment matches the outbound train's route based on the train's origin, destination, ports of entry in the countries it passes through, and its current trajectory information. The target route is divided into multiple segments, and the average travel time of each segment and the average dwell time at each port of entry are calculated. Based on the train's current actual travel time and current statistical travel time, the system accurately detects whether the train is currently delayed.

[0064] Based on the above embodiments, the method in this embodiment for determining whether the first cross-border freight train is currently delayed, based on the time already traveled by the first cross-border freight train, the average travel time corresponding to the sections already passed, the average dwell time corresponding to the port stations already passed, and the average travel time corresponding to the distance already traveled by the first cross-border freight train in its current section, includes:

[0065] Determine a first ratio between the distance already traveled by the first cross-border freight train in its current segment and the total distance of the current segment;

[0066] Based on the first ratio and the average running time corresponding to the current interval, determine the average running time corresponding to the distance already traveled in the current interval;

[0067] Determine the first sum of the average travel time corresponding to the interval already passed, the average dwell time corresponding to the port station already passed, and the average travel time corresponding to the distance already traveled in the current interval;

[0068] If the time already traveled by the first cross-border freight train is greater than the first total time, then the first cross-border freight train is determined to be currently delayed.

[0069] Assume the distance traveled by the first cross-border freight train in its current interval n is l. n已走 The total distance of the current interval is l n Then the first ratio is l n已走 / l n .

[0070] Assume the average travel time of the first cross-border freight train currently in the statistical section is... The average running time corresponding to the distance already traveled in the current interval.

[0071] Determine the average running time T corresponding to the interval already passed. 已过区间统计 The average dwell time T at the port of entry this time. 已过站停统计 And the average running time T corresponding to the distance already traveled in the current interval. 当前区间已走统计 The first sum.

[0072] The time T that the first cross-border freight train has traveled so far this time 在途实际 Compare with the first total. If the travel time of the first cross-border train is greater than the first total, determine that the first cross-border train is currently delayed; otherwise, the first cross-border train is not currently delayed.

[0073] Based on the above embodiments, this embodiment further includes, after determining the current delay of the first cross-border freight train:

[0074] Determine a second ratio between the time already traveled by the first cross-border freight train and the first total;

[0075] The second ratio is compared with the first preset threshold to determine the degree of delay of the first cross-border freight train.

[0076] The second ratio is the ratio of actual delays on the first international freight train, K. 实际在途 K is the ratio of the total travel time of the first cross-border freight train to the daily total. The daily total includes the time taken for the previous section, the time taken for the previous stop at the port station, and the time taken for the current distance traveled. 实际在途 The calculation formula is as follows:

[0077]

[0078] Among them, T 在途实际 For the actual transit time of the first cross-border freight train, T 已过区间统计 T is the average statistical time taken for the first cross-border freight train to traverse the section. 已过站停统计 The average time taken for the first cross-border freight train to stop at the port station is calculated. 当前区间已走统计 T is the average statistical time taken for the first cross-border freight train to travel the distance in the current operating section. 当前 The time of the current location of the first cross-border freight train, T 出发 Let i be the departure time of the first cross-border freight train at the originating station, i be the section number that the first cross-border freight train has already traversed, j be the port station number that the first cross-border freight train has already passed through, n be the nth section that the first cross-border freight train is currently operating through, and m be the mth port station that it has already passed through. Let be the average running time over one month for the i-th interval. Let l be the average length of stay at port station j within one month. n Let l be the total distance of the nth interval in which the first cross-border freight train is currently operating. n已走 This represents the distance already traveled by the first cross-border freight train on the nth interval.

[0079] The second ratio is compared with a first preset threshold to determine the degree of delay of the first international freight train. For example, if there are two first preset thresholds, 1.2 and 1.4 respectively, then when 1.0... <K 实际在途 When the delay is less than 1.2, it is considered a minor delay for the train; when it is 1.2... <K 实际在途 <1.4 indicates a moderate delay for the train; when it is 1.4... <K 实际在途 A score of <2.0 indicates a serious delay for the train.

[0080] Based on the above embodiments, this embodiment, after calculating the average running time of multiple second cross-border freight trains on each section and the average dwell time of multiple third cross-border freight trains at each port station, further includes:

[0081] Based on the time already traveled by the first cross-border freight train, the average travel time for each section, the average dwell time for each port station, and the average travel time corresponding to the untraveled distance of the first cross-border freight train in its current section, it is determined whether the first cross-border freight train is late when it arrives at the final destination.

[0082] The cross-border freight train delay detection method provided in this embodiment can help carriers respond quickly in emergency situations, adjust transportation plans and allocate resources in a timely manner, enhance emergency response capabilities, and thus improve the overall competitiveness of enterprises.

[0083] In the actual operation of the first cross-border freight train, although the train was in normal transport status, the operation time at each of the multiple technical stations, port stations, and transshipment stations along the way was constantly changing. Therefore, whether the train could arrive at its destination on time was a dynamic prediction process. Thus, it was necessary to determine whether the train would be delayed when it arrived at its destination.

[0084] The predicted arrival time of the first cross-border freight train at its destination station can be obtained based on the time already traveled and the predicted time for the routes not yet traversed. The predicted time for the routes not yet traversed includes the statistical time for the untraversed sections, the statistical time for the recent stops at the untraversed port stations, and the statistical time for the untraversed distance in the current section.

[0085] Based on the average running time for each interval and the average dwell time for each port station, the daily statistical time for the target route is determined.

[0086] If the predicted arrival time of the first cross-border freight train at the destination station is greater than the daily statistical time, it is determined that the first cross-border freight train is late upon arrival at the destination station; otherwise, it is determined that the first cross-border freight train is not late upon arrival at the destination station.

[0087] Based on the above embodiments, the method in this embodiment for determining whether the first cross-border freight train is late upon arrival at the final destination, based on the time already traveled by the first cross-border freight train, the average travel time corresponding to each section, the average dwell time corresponding to each port station, and the average travel time corresponding to the untraveled distance of the first cross-border freight train in its current section, includes:

[0088] Determine a third ratio between the untraveled distance of the first cross-border freight train in its current segment and the total distance of the current segment;

[0089] Based on the third ratio and the average running time corresponding to the current interval, determine the average running time corresponding to the untraveled distance in the current interval;

[0090] Determine the second sum of the average running time corresponding to all the said intervals and the average stay time corresponding to all the said port stations;

[0091] The third sum is determined by the time the first cross-border freight train has traveled so far, the average travel time corresponding to the section it has not yet reached, the average dwell time corresponding to the port station it has not passed through, and the average travel time corresponding to the distance it has not traveled in the current section.

[0092] If the third sum is greater than the second sum, it is determined that the first international freight train was delayed upon arrival at the destination station.

[0093] Assume the distance traveled by the first international freight train in its current segment is l. n已走 The total distance of the current interval is l n Then the distance the first cross-border freight train has not traveled in its current segment is l. n -l n已走 The third ratio is (l) n -l n已走 ) / l n .

[0094] Assume the average travel time of the first cross-border freight train currently in the statistical section is... The average running time corresponding to the untraveled distance in the current interval.

[0095] Second sum T 全程统计 The first cross-border freight train's journey is represented by the average statistical time taken through all sections and border stations it passes through. The third sum represents the total travel time (T) of the first cross-border freight train's current journey. 在途实际 The average running time T corresponding to the interval not reached in this instance. 未走区间统计 The average dwell time T for this trip that did not pass through a port station 未走站停近期统计 The average running time T corresponding to the untraveled distance in the previous interval. 当前区间未走统计 sum.

[0096] If the third sum is greater than the second sum, it is determined that the first cross-border train was delayed upon arrival at its final destination; otherwise, the first cross-border train was not delayed upon arrival at its final destination.

[0097] Based on the above embodiments, this embodiment further includes, after determining that the first cross-border freight train is delayed upon arrival at the final destination:

[0098] Determine a fourth ratio between the third sum and the second sum;

[0099] The fourth ratio is compared with the second preset threshold to determine the degree of delay of the first cross-border freight train when it arrives at the destination station.

[0100] The fourth ratio is the coefficient K for the estimated delay of the first cross-border freight train. 预计到达 It is the ratio of the total travel time of the first cross-border freight train, including the estimated travel time for the untraveled sections, to the sum of the daily statistical values ​​for the entire journey.

[0101] The predicted arrival time of the first cross-border freight train at its destination station includes the estimated time for the untraveled sections, the estimated time for the recent stop at the untraveled port stations, and the estimated time for the untraveled distance in the current section. K 预计到达 The calculation formula is as follows:

[0102]

[0103] Among them, T 在途实际 For the actual transit time of the first cross-border freight train, T 未走区间统计 T is the average statistical time taken before the first cross-border train has traversed the section. 未走站停近期统计 T is the average time taken for the first cross-border freight train to stop at the port station before it passes through the border station. 当前区间未走统计 T is the average statistical time taken for the first cross-border freight train to travel the distance not covered in the current operating section. 全程统计 T is the sum of the average statistical time taken by the first cross-border freight train through all the sections and ports it passes through. 当前 The time of the current location of the first cross-border freight train, T 出发 Let be the departure time of the first cross-border freight train at its originating station, i be the section number along the route of the first cross-border freight train, j be the port station number along the route of the first cross-border freight train, n be the nth section the first cross-border freight train is currently operating through, m be the mth port station the first cross-border freight train has already passed through, r be all the sections included in the route of the first cross-border freight train, and s be all the port stations included in the route of the first cross-border freight train. Let i be the average running time over one month for the i-th interval. Let j be the average length of stay at the j-th port station within one month. Let l be the average stay time at the j-th port station within 7 days. n Let l be the total distance of the nth largest interval currently being operated by the first cross-border freight train. n已走 This represents the distance traveled by the first cross-border freight train in the nth interval.

[0104] The fourth ratio is compared with the second preset threshold to determine the degree of delay of the first international freight train upon arrival at its destination. For example, if there are two second preset thresholds, 1.2 and 1.4 respectively, then when 1.0... <K 预计到达 When the delay is less than 1.2, it is considered a minor delay for the train; when it is 1.2... <K 预计到达 <1.4 indicates a moderate delay for the train; when it is 1.4... <K 预计到达 A score of <2.0 indicates a serious delay for the train.

[0105] The following describes the transnational freight train delay detection device provided by the present invention. The transnational freight train delay detection device described below can be referred to in correspondence with the transnational freight train delay detection method described above.

[0106] like Figure 2 As shown, the device includes a matching module 201, a statistics module 202, and a determination module 203, wherein:

[0107] The matching module 201 is used to match the target route from the route database of the first cross-border freight train based on the originating station, destination station, port stations of the countries it passes through, and the trajectory information of the first cross-border freight train in this run.

[0108] The statistics module 202 is used to divide the target route into multiple intervals, and to count the average running time of multiple second cross-border trains in each interval and the average dwell time of multiple third cross-border trains at each port station.

[0109] The determination module 203 is used to determine whether the first cross-border freight train is currently delayed based on the time the first cross-border freight train has already run, the average running time corresponding to the section it has already passed, the average dwell time corresponding to the port station it has already passed, and the average running time corresponding to the distance the first cross-border freight train has traveled in the current section.

[0110] This embodiment matches the outbound train's route based on the train's origin, destination, ports of entry in the countries it passes through, and its current trajectory information. The target route is divided into multiple segments, and the average travel time of each segment and the average dwell time at each port of entry are calculated. Based on the train's current actual travel time and current statistical travel time, the system accurately detects whether the train is currently delayed.

[0111] Based on the above embodiments, the determining module in this embodiment is specifically used for:

[0112] Determine a first ratio between the distance already traveled by the first cross-border freight train in its current segment and the total distance of the current segment;

[0113] Based on the first ratio and the average running time corresponding to the current interval, determine the average running time corresponding to the distance already traveled in the current interval;

[0114] Determine the first sum of the average travel time corresponding to the interval already passed, the average dwell time corresponding to the port station already passed, and the average travel time corresponding to the distance already traveled in the current interval;

[0115] If the time already traveled by the first cross-border freight train is greater than the first total time, then the first cross-border freight train is determined to be currently delayed.

[0116] Figure 3 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 3As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330, and a communication bus 340, wherein the processor 310, the communication interface 320, and the memory 330 communicate with each other through the communication bus 340. The processor 310 can call logical instructions in the memory 330 to execute a method for detecting delays in cross-border freight trains. This method includes: matching a target route from the route database of the first cross-border freight train based on the originating station, destination station, port stations of the countries it passes through, and the trajectory information of the first cross-border freight train; dividing the target route into multiple intervals, calculating the average running time of multiple second cross-border freight trains in each interval and the average dwell time of multiple third cross-border freight trains at each port station; and determining whether the first cross-border freight train is currently delayed based on the running time of the first cross-border freight train, the average running time corresponding to the interval it has passed, the average dwell time corresponding to the port station it has passed, and the average running time corresponding to the distance traveled by the first cross-border freight train in the current interval.

[0117] Furthermore, the logical instructions in the aforementioned memory 330 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0118] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the cross-border freight train delay detection method provided by the above methods. The method includes: matching a target route from the route database of the first cross-border freight train based on the originating station, destination station, port stations of the countries it passes through, and the trajectory information of the first cross-border freight train in this run; dividing the target route into multiple intervals, and calculating the average running time of multiple second cross-border freight trains in each interval and the average dwell time of multiple third cross-border freight trains at each port station; determining whether the first cross-border freight train is currently delayed based on the running time of the first cross-border freight train in this run, the average running time corresponding to the interval it has passed in this run, the average dwell time corresponding to the port station it has passed in this run, and the average running time corresponding to the distance traveled by the first cross-border freight train in the current interval.

[0119] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the method for detecting delays in cross-border freight trains provided by the methods described above. The method includes: matching a target route from a route database of the first cross-border freight train based on the originating station, destination station, port stations of the countries it passes through, and the trajectory information of the first cross-border freight train in its current operation; dividing the target route into multiple intervals, and calculating the average running time of multiple second cross-border freight trains in each interval and the average dwell time of multiple third cross-border freight trains at each port station; determining whether the first cross-border freight train is currently delayed based on the current running time of the first cross-border freight train, the average running time corresponding to the interval it has passed, the average dwell time corresponding to the port station it has passed, and the average running time corresponding to the distance traveled by the first cross-border freight train in its current interval.

[0120] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0121] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0122] 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 them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for detecting delays in cross-border freight trains, characterized in that, include: Based on the originating station, destination station, port stations of the countries the first cross-border freight train passes through, and the trajectory information of the first cross-border freight train's current operation, the target route is matched from the route database of the first cross-border freight train. The target route is divided into multiple sections, and the average running time of multiple second cross-border trains on each section and the average dwell time of multiple third cross-border trains at each port station are calculated. Based on the time the first cross-border freight train has already traveled, the average travel time corresponding to the section it has already passed, the average dwell time corresponding to the port station it has already passed, and the average travel time corresponding to the distance the first cross-border freight train has traveled in the current section, it is determined whether the first cross-border freight train is currently delayed.

2. The method for detecting delays in cross-border freight trains according to claim 1, characterized in that, The step of determining whether the first cross-border freight train is currently delayed based on the train's current travel time, the average travel time corresponding to the sections it has already passed, the average dwell time corresponding to the ports it has already passed, and the average travel time corresponding to the distance the train has traveled in its current section, includes: Determine a first ratio between the distance already traveled by the first cross-border freight train in its current segment and the total distance of the current segment; Based on the first ratio and the average running time corresponding to the current interval, determine the average running time corresponding to the distance already traveled in the current interval; Determine the first sum of the average travel time corresponding to the interval already passed, the average dwell time corresponding to the port station already passed, and the average travel time corresponding to the distance already traveled in the current interval; If the time already traveled by the first cross-border freight train is greater than the first total time, then the first cross-border freight train is determined to be currently delayed.

3. The method for detecting delays in cross-border freight trains according to claim 2, characterized in that, After determining the current delay of the first cross-border freight train, the process further includes: Determine a second ratio between the time already traveled by the first cross-border freight train and the first total; The second ratio is compared with the first preset threshold to determine the degree of delay of the first cross-border freight train.

4. The method for detecting delays in cross-border freight trains according to any one of claims 1-3, characterized in that, After calculating the average running time of multiple second-level cross-border freight trains on each section and the average dwell time of multiple third-level cross-border freight trains at each port station, the following is also included: Based on the time already traveled by the first cross-border freight train, the average travel time for each section, the average dwell time for each port station, and the average travel time corresponding to the untraveled distance of the first cross-border freight train in its current section, it is determined whether the first cross-border freight train is late when it arrives at the final destination.

5. The method for detecting delays in cross-border freight trains according to claim 4, characterized in that, The step of determining whether the first cross-border freight train is late upon arrival at the final destination based on the time already traveled by the first cross-border freight train, the average travel time corresponding to each section, the average dwell time corresponding to each port station, and the average travel time corresponding to the untraveled distance of the first cross-border freight train in its current section includes: Determine a third ratio between the untraveled distance of the first cross-border freight train in its current segment and the total distance of the current segment; Based on the third ratio and the average running time corresponding to the current interval, determine the average running time corresponding to the untraveled distance in the current interval; Determine the second sum of the average running time corresponding to all the said intervals and the average stay time corresponding to all the said port stations; The third sum is determined by the time the first cross-border freight train has traveled so far, the average travel time corresponding to the section it has not yet reached, the average dwell time corresponding to the port station it has not passed through, and the average travel time corresponding to the distance it has not traveled in the current section. If the third sum is greater than the second sum, it is determined that the first international freight train was delayed upon arrival at the destination station.

6. The method for detecting delays in cross-border freight trains according to claim 5, characterized in that, After determining that the first international freight train was delayed upon arrival at the final destination, the process further includes: Determine a fourth ratio between the third sum and the second sum; The fourth ratio is compared with the second preset threshold to determine the degree of delay of the first cross-border freight train when it arrives at the destination station.

7. A device for detecting delays in cross-border freight trains, characterized in that, include: The matching module is used to match the target route from the route database of the first cross-border freight train based on the originating station, destination station, port stations of the countries it passes through, and the trajectory information of the first cross-border freight train in this run. The statistics module is used to divide the target route into multiple sections, and to calculate the average running time of multiple second cross-border trains in each section and the average dwell time of multiple third cross-border trains at each port station. The determination module is used to determine whether the first cross-border freight train is currently delayed based on the time the first cross-border freight train has already traveled, the average travel time corresponding to the section it has already passed, the average dwell time corresponding to the port station it has already passed, and the average travel time corresponding to the distance the first cross-border freight train has traveled in the current section.

8. The transnational freight train delay detection device according to claim 7, characterized in that, The determining module is specifically used for: Determine a first ratio between the distance already traveled by the first cross-border freight train in its current segment and the total distance of the current segment; Based on the first ratio and the average running time corresponding to the current interval, determine the average running time corresponding to the distance already traveled in the current interval; Determine the first sum of the average travel time corresponding to the interval already passed, the average dwell time corresponding to the port station already passed, and the average travel time corresponding to the distance already traveled in the current interval; If the time already traveled by the first cross-border freight train is greater than the first total time, then the first cross-border freight train is determined to be currently delayed.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the cross-border freight train delay detection method as described in any one of claims 1 to 6.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for detecting delays in cross-border freight trains as described in any one of claims 1 to 6.