A cargo transportation delay risk monitoring method and device based on transit time consumption dynamic evolution and a medium
By establishing a first-in-first-out queue and updating it in real time, and dynamically monitoring cargo events at transit stations, the problem of delay risks caused by changes in transit station processing capacity has been solved, enabling accurate prediction and risk warning of cargo transportation delays.
Patent Information
- Application Number
- CN202611564648.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-10
- Publication Date
- 2026-11-20
AI Technical Summary
In multimodal freight transport, the processing capacity of transit stations is limited, and transit time is not a fixed value. Existing technologies lack a mechanism to perceive the dynamic changes in the future backlog status of transit stations, which makes it impossible to guarantee the timeliness of freight transport. The risk of delay can only be passively discovered when the actual delay occurs, and there is a lack of dynamic risk monitoring methods.
By acquiring the operational capacity parameters of the transfer station, a first-in-first-out queue is established, cargo events are monitored in real time, and the queue is updated when cargo events are added or canceled. The loading time period is calculated to dynamically estimate the transfer time and identify the risk of delay.
It enables real-time monitoring of the processing time at transit stations as backlog changes, can identify goods that cannot be transshipped as planned in advance, outputs delay risk monitoring results, and improves transportation timeliness and the accuracy of risk warning.
Smart Images

Figure CN123140809A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of cargo transportation technology, and in particular to a method, equipment, and medium for monitoring cargo transportation delay risks based on the dynamic evolution of transit time. Background Technology
[0002] In multimodal freight transport, transit stations have limited processing capacity, and the transit time for a single container is not a fixed value but dynamically changes depending on the backlog of goods waiting to be processed at the station. When new or cancelled goods are added, the future backlog status at the transit station changes, leading to an increase or decrease in the queuing time for existing goods, which in turn affects whether the goods can be transshipped before the next transport leg departs. After the existing freight transport route is planned, transit time is usually estimated based on the static state at the planning time, lacking a mechanism to perceive the dynamic changes in the future backlog status of the transit station, and there is no effective means to manage the loading time of goods in a time-series manner. When the addition or cancellation of new goods causes changes in the allocation of transit station processing capacity, the timeliness of the existing goods connecting to the next transport leg may not be guaranteed, and such delay risks are often only passively discovered through manual review after actual delays occur, lacking a method to dynamically extrapolate based on real-time changes in the transit station's status and output risk monitoring results in advance. Summary of the Invention
[0003] To address the aforementioned technical problems, the technical solution adopted by this invention is as follows:
[0004] According to a first aspect of this application, a method for monitoring cargo transportation delay risks based on the dynamic evolution of transit time is provided, the method comprising the following steps:
[0005] S100, obtain the operational capacity parameters of each transfer station;
[0006] S200, based on the operational capacity parameters of each transfer station, establish a first-in-first-out queue for each transfer station within a preset time window; the preset time window is a preset number of future days; each node in the first-in-first-out queue stores the loading time period corresponding to the goods in the current plan;
[0007] S300 monitors cargo events at each transit station in real time; the cargo events include new cargo events or canceled cargo events.
[0008] S400, when the cargo event is detected, the first-in-first-out queue is updated; if it is a new cargo event, the loading time period corresponding to the new cargo is inserted into the first-in-first-out queue. If the inserted loading time period overlaps with the loading time period of existing cargo in the queue, the overlap duration is calculated, and the loading time periods of all subsequent cargoes after the overlap are extended by the overlap duration; if it is a canceled cargo event, the node corresponding to the canceled cargo is removed from the queue, and the loading time periods of all subsequent cargoes after the removed node are advanced.
[0009] S500, based on the loading time period of each cargo after the postponement or advancement and the aforementioned operational capacity parameters, determine the latest transit time of each affected cargo at the current transit station;
[0010] S600 identifies goods at risk of delay based on the latest transit time and outputs the delay risk monitoring results.
[0011] According to another aspect of this application, a non-transient computer-readable storage medium is also provided, wherein at least one instruction or at least one program is stored in the storage medium, and the at least one instruction or at least one program is loaded and executed by a processor to realize the above-mentioned cargo transportation delay risk monitoring method based on the dynamic evolution of transit time.
[0012] According to another aspect of this application, an electronic device is also provided, including a processor and the aforementioned non-transitory computer-readable storage medium.
[0013] The present invention has at least the following beneficial effects:
[0014] The present invention provides a cargo transportation delay risk monitoring method based on the dynamic evolution of transit time. This method manages cargo loading time sequentially within a preset time window at the transit station, based on the expected loading time period. When a new cargo event is detected, the method automatically postpones subsequent cargo loading times if there is overlap. When a cancelled cargo event is detected, the method automatically moves subsequent cargo loading times forward. This allows for real-time updates of the loading time periods for all affected cargo based on changes in the transit station's planned status caused by cargo events, eliminating the need for separate global simulations for each cargo. Furthermore, based on the updated loading time periods and operational capacity parameters, the latest transit time for each affected cargo at the current transit station is dynamically calculated, thus identifying target cargo with delay risks. This invention also addresses the issue of transit station processing time varying with cargo backlog, enabling early identification of cargo that cannot be transshipped before the next shift's departure and timely output of risk monitoring results. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 A flowchart of a cargo transportation delay risk monitoring method based on the dynamic evolution of transit time, provided in an embodiment of the present invention. Detailed Implementation
[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] It should be noted that, based on this disclosure, those skilled in the art will understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects set forth herein can be used to implement the device and / or practice the method. Furthermore, this device and / or practice the method can be implemented using other structures and / or functionalities besides one or more of the aspects set forth herein.
[0019] The following will refer to Figure 1 The flowchart shown is a method for monitoring cargo transportation delay risks based on the dynamic evolution of transit time, which introduces a method for monitoring cargo transportation delay risks based on the dynamic evolution of transit time.
[0020] This method for monitoring cargo transportation delay risks based on the dynamic evolution of transit time includes the following steps:
[0021] S100: Obtain the operational capacity parameters of each transfer station.
[0022] In this embodiment, step S100 is the initial action of the entire delay risk monitoring method, aiming to obtain the hard physical operational capacity data of each transfer station. Specifically, the system accesses the transfer station's operation management database via a data interface, or reads pre-configured equipment ledger parameters from the system, extracting physical limitation parameters such as the transfer station's maximum operational throughput per unit time and the operation time of a single container. These parameters serve as the data benchmark for subsequent time-series model building and extrapolation calculations. For example, the system reads from the configuration file of a port transfer station that the station's maximum container processing capacity per unit time is 50 containers / hour, and the fixed operation time for a single container from hoisting to placement is 20 minutes. These raw values provide specific physical boundaries for subsequent calculations.
[0023] Obtaining these capability parameters enables the system to be constrained by the actual physical operating conditions of the transfer station, avoiding fictitious calculations that are detached from the actual equipment load capacity. This provides accurate, quantifiable, and on-site operational specifications-compliant underlying data support for the subsequent establishment of the first-in-first-out queue.
[0024] Furthermore, step S100 includes the following steps:
[0025] S110, obtain the maximum box processing capacity Cap and the minimum basic operation time T of the transfer station per unit time. min .
[0026] Based on preset field mapping rules, the system extracts the maximum processing capacity (Cap) and the minimum basic operation time (T) from the data read from the transfer station. min Among them, Cap represents the maximum processing efficiency of the transfer station when there is no external interference and the equipment is operating at full capacity; the larger the value, the stronger the throughput capacity; T min The minimum basic operating time represents the fixed operating time required for a single container to complete loading from its arrival at the transfer station without queuing, including unloading, storage preparation, transfer, and loading actions themselves; T min It is a physical constant that does not change with the queuing situation.
[0027] T trans =T min +T wait Among them, T trans Total transit time per container; T wait The time spent waiting in line; T wait =Q / Cap.
[0028] For example: The equipment parameters of a railway transfer station show a Cap of 100 boxes / hour, indicating that the maximum number of boxes that the transfer station can handle per unit time is 100 boxes; the basic minimum operation time T minA value of 0.5 hours indicates that regardless of the length of the queue at this transfer station, each container must consume half an hour of basic operation time.
[0029] Obtaining these two parameters provides definite numerical inputs for constructing the dynamic transfer time formula in the next step. This ensures that the time consumption model can distinguish between incompressible physical operation time and variable queuing time, making the subsequent dynamic calculation logic rigorous and having clear physical meaning.
[0030] S120, according to Cap, T min And to estimate the number of backlogged containers Q, a dynamic transshipment time model is established; where T trans =T min +T wait Among them, T trans Total transit time per container; T min The minimum basic operation time represents the transshipment operation time for a single container without queuing; T wait The time spent waiting in line; T wait =Q / Cap.
[0031] This step involves obtaining Cap and T. min Based on this, and combined with the estimated number of backlogged containers Q at the transit station, a dynamic transit time model was established. Specifically, the system continuously calculates or predicts the total number of containers Q awaiting processing at the transit station at the current estimated arrival time of the goods, and uses the formula T... trans =T min +T wait To calculate the total transit time for a single container, including the queuing time T. wait The formula is T wait =Q / Cap. The underlying logic of this formula is the time required to clear the current backlog of boxes according to the processing speed of the transfer station. The larger Q is, the longer the queue waits; the larger Cap is, the shorter the queue time.
[0032] For example: a certain transfer station T min The time is 0.5 hours, and the Cap is 40 boxes / hour. If the current predicted arrival time backlog of boxes Q is 80 boxes, then T wait For 2 hours, T trans The time is 2.5 hours; if Q increases to 120 boxes due to the addition of new goods during this period, then T... wait It becomes 3 hours, T trans It has been changed to 3.5 hours.
[0033] The model can mathematically and accurately map the dynamic impact of transit station congestion on the time taken to handle a single container. It decouples the incompressible basic transshipment time from the queuing time that fluctuates with the backlog, thus providing a dynamic and real-time calculation basis for predicting the loading time of each cargo in the queue. This ensures the accuracy of the loading time estimation and improves the reliability of the overall delay risk monitoring results.
[0034] S200, based on the operational capacity parameters of each transfer station, establish a first-in-first-out queue for each transfer station within a preset time window; the preset time window is a preset number of future days; each node in the first-in-first-out queue stores the loading time period corresponding to the goods in the current plan.
[0035] Based on the operational capacity parameters of each transfer station, this step establishes a first-in-first-out (FIFO) queue structure for time scheduling and subsequent dynamic simulation. In implementation, the system allocates a memory space for each transfer station to construct a linked list or array-based data container. This container manages all planned operations within a preset number of future days. Each node in the queue corresponds to a loading time period for goods in the current plan, recording the estimated arrival time, planned start loading time, and planned completion loading time. The system uses this queue as the baseline for time-series operation management at the transfer stations. All subsequent logical adjustments after cargo events are based on this queue, thus unifying the discrete arrival of goods and the dynamically changing operational capabilities of the transfer stations through the queue structure.
[0036] By establishing this queue, the system transforms the future operation plan of the transfer station into a visualized, ordered time series. It can quickly locate affected goods without relying on complex global simulations, providing a data structure for batch operations to facilitate subsequent delayed or advanced operations, and greatly improving the response speed of dynamic adjustments.
[0037] Furthermore, step S200 includes the following steps:
[0038] S210, Get the current time point T cur Determine the start time T of the preset time window. start =T cur and the end time T of the preset time window. end =T cur +W, where W is the duration corresponding to the preset number of days in the future.
[0039] This step specifically defines the boundaries of the preset time window. The system first reads the system clock to obtain the current time point T. cur Then T curThe start time is used as the starting time, and the duration W corresponding to the preset number of days is added to the start time to obtain the end time, thus determining the current management time window. This time window is a dynamically sliding interval. As the system clock advances, the start and end times of the window move synchronously to always maintain control over all cargo plans within the preset number of days to come.
[0040] For example: If the current system time T cur If the start time is 10:00 on September 5, 2026, and the preset number of days is 7 days, then the start time of the time window is 10:00 on September 5, 2026, and the end time is 10:00 on September 12, 2026. The system only manages goods arriving within this interval.
[0041] By defining the boundaries of the time window, the system limits the size of the queue to a manageable range, avoiding ineffective management of goods with high uncertainty in long-term plans. At the same time, it concentrates scheduling resources on operations that need to be performed in the near future, ensuring the system's operational efficiency and response speed.
[0042] S220, obtain the estimated arrival time t of all currently scheduled goods within the preset time window. arr For any cargo H, based on the dynamic transshipment time model and the estimated number of backlogged containers HQ when H arrives at the transshipment station, determine the total transshipment time HT per container of H. trans Therefore, the loading time period for H is determined to be [t]. arr +HT trans -HT load ,t arr +HT trans ]; among them, HT trans HT is the sum of the queuing time and the basic minimum job time determined by HQ. load The fixed loading time for H to complete the transshipment operation.
[0043] It should be noted that HT load It is T min The components of T min Including loading operations, HT load It is the duration cut out from the middle to define the loading period; among which, HT load It can be preset according to container type, cargo type or transfer station equipment operation quota, and different container types correspond to different fixed loading times.
[0044] This step details how to calculate the transit time for a single container and determine the loading time period based on the dynamic transit time model. In implementation, the system iterates through all currently planned goods within the time window and reads the estimated arrival time t for each good. arrFor any cargo H, the system, based on a dynamic transshipment time model, simulates the estimated number of backlogged containers HQ at the transshipment station at the estimated arrival time of H. Then, HQ is substituted into the calculation formula established in step S120 to obtain the sum of the queuing time and the basic minimum operation time HT corresponding to H. trans The HT trans This is the total time required for goods to travel from arrival at the transit station to completion of the transshipment operation. The system then adds this total time to the estimated arrival time as the loading completion time, and subtracts the fixed loading duration HT from the loading completion time. load Then, the loading start time is taken as the complete loading time period for cargo H.
[0045] For example, if cargo H is expected to arrive at a transit station at 08:00 on September 6th, and the station's minimum basic operating time is 0.5 hours, with an estimated queuing time of 2 hours, then HT trans The loading time is 2.5 hours, and the loading start time is 10:30 on September 6th. If the fixed loading time is 0.2 hours, then the loading start time is 10:18 on September 6th, and the loading period is from 10:18 to 10:30. This time interval is the node content of goods H in the first-in-first-out queue.
[0046] This step combines the dynamic capabilities of the transfer station with the physical operation time of a single cargo through precise calculation logic, so that the time interval of each node in the queue matches the actual operating status of the transfer station, avoiding the deviation caused by static estimation, and ensuring that the subsequent delayed or advanced operation is based on an accurate benchmark when an event occurs.
[0047] S230, the loading time periods of all goods within the preset time window are sequentially inserted into the nodes of the first-in-first-out queue according to the expected arrival time of each goods from morning to evening, thus completing the construction of the first-in-first-out queue.
[0048] After calculating the loading time period for all goods within the time window, the system calculates the loading time t for each good. arr The system sorts the goods according to their arrival time, and then inserts the sorted loading time periods into the nodes of the queue in sequence, forming the first ordered queue. The loading time periods for each good in this queue do not overlap. Since the queue nodes are arranged according to the arrival time of the goods, when a new good is inserted and the time overlaps, the system can simply start searching sequentially from the overlapping position and move forward, without traversing the entire queue. For example, if good A is expected to arrive at 08:00 on September 6th, and good B is expected to arrive at 09:00 on September 6th, then the node corresponding to A is located before the node corresponding to B; if good C is expected to arrive at 08:30, then the node corresponding to C is inserted between A and B.
[0049] By arranging the data in an orderly manner, the work plan of the transfer station is transformed into a data structure with a clear time sequence and easy maintenance. This provides an index foundation with a clear sequence relationship for subsequent event-driven adjustments, reduces the traversal and positioning costs when adding or canceling operations, and ensures the efficiency and accuracy of queue operations.
[0050] S240, during the operation of the first-in-first-out queue, the current time point is compared with the loading time period of each node in real time. If the current time point has exceeded the end time of the loading time period of a certain node, the node is removed from the first-in-first-out queue. At the same time, when the sliding time window of the first-in-first-out queue moves forward, the node corresponding to the newly added goods falling into the current preset time window is inserted into the first-in-first-out queue.
[0051] After the queue is established, the system continuously runs a monitoring loop, reading the current time point in real time and comparing it with the loading time periods of each node in the queue. If the current time point has exceeded the loading end time of a node, it indicates that the goods have completed loading or have expired, and the system removes the node from the queue to free up storage space. Simultaneously, the system recalculates the boundary of the sliding time window based on the current time point. If new goods fall into the current preset time window after the new time window boundary advances, the system triggers the node insertion operation for that new goods.
[0052] For example, when the current time advances to 00:00 on September 7, the cargo node that arrived on September 5 in the original queue has finished loading and the system removes it; at the same time, cargo that newly falls into the window before September 12 is scanned and inserted into the queue.
[0053] By cyclically executing this step, the system ensures that the data managed in the queue is always active, avoiding expired data from occupying resources and interfering with subsequent judgments. At the same time, it ensures that the time window always covers the nearest planned deadline, making the simulation of delay risk monitoring timely.
[0054] S300 monitors cargo events at each transit station in real time; the cargo events include new cargo events or canceled cargo events.
[0055] The system deploys an event monitoring module at each transit station. This module interfaces with the transit station's production operation system, customer order placement interface, and plan change interface, respectively. When new goods complete route planning and enter the transit station's operation plan, a "New Goods" event is triggered; when existing goods are cancelled from their transportation plan, a "Cancelled Goods" event is triggered. After capturing these events, the event monitoring module extracts the associated fields such as goods identifier, transit station code, and estimated arrival time, and pushes the event message to the queue management module to activate subsequent queue update operations.
[0056] For example, a customer submitted a new cargo plan on the afternoon of September 5th. The cargo is expected to arrive at transit station A on September 7th. The event listening module immediately captures the new cargo event and pushes the relevant information of cargo H to the queue management module of transit station A.
[0057] Through this step, the system establishes a real-time perception capability for changes in the cargo plan status at the transit station. It transforms dynamic logistics events occurring during the transit station's production operations into signal triggers within the system, ensuring that subsequent queue adjustment logic can be initiated the instant the cargo plan changes, without waiting for manual reporting or periodic scanning. This greatly improves the real-time performance and response speed of delay risk monitoring, enabling subsequent delay, advance, and risk assessment operations to be executed based on the latest and most accurate cargo status, avoiding missed detections due to information lag.
[0058] S400, when the cargo event is detected, the first-in-first-out queue is updated; if it is a new cargo event, the loading time period corresponding to the new cargo is inserted into the first-in-first-out queue. If the inserted loading time period overlaps with the loading time period of existing cargo in the queue, the overlap duration is calculated, and the loading time periods of all subsequent cargoes that overlap are extended by the overlap duration; if it is a canceled cargo event, the node corresponding to the canceled cargo is removed from the queue, and the loading time periods of all subsequent cargoes after the removed node are advanced.
[0059] This step is the core action after an event is triggered, responsible for batch correction of the queue. When a cargo event is detected, the system directly retrieves the corresponding first-in-first-out (FIFO) queue data structure for that transfer station. For new events, the system uses the cargo data carried by the event to calculate the loading time period of the cargo and attempts to insert it into the queue node; for canceled events, the system uses the cargo identifier to locate the corresponding queue node and executes the deletion action. The entire process is based on the judgment of overlapping time periods, and is completed by extension or advance calculation, achieving a one-time correction of the queue node status.
[0060] It should be noted that in this embodiment, the addition of new goods to the queue and the subsequent postponement of goods are predicated on the new goods having a higher transportation priority than existing goods in the queue. Examples of new goods include urgent goods, expedited orders, or goods with contractual priority shipping rights. For new goods with a transportation priority no higher than existing goods in the queue, the system can also choose to add their loading time period to the end of the queue without triggering the postponement of subsequent goods. Therefore, the queue follows a first-in, first-out (FIFO) principle among goods of the same priority, with higher-priority goods being inserted and processed first.
[0061] This step establishes a unified event response entry point, encapsulating the two different types of events, addition and cancellation, into operations of inserting, deleting, and shifting intervals on queue nodes. This eliminates the need for complex branching logic written for different event types, simplifies the system implementation process, and enables efficient batch correction of transfer station operation plans.
[0062] Furthermore, if step S400 involves a new cargo event, updating the first-in-first-out queue specifically includes the following steps:
[0063] S410, Based on the expected arrival time of the new cargo and the estimated transit time calculated by the dynamic transit time model, determine the loading time period for the new cargo.
[0064] This step calculates the loading time period based on the information of the newly added cargo. Specifically, the system first extracts the estimated arrival time t of the cargo from the newly added cargo event. arr Subsequently, according to the dynamic time consumption model in step S120, the system calculates the sum of the queuing time and the basic time of the goods based on the estimated backlog at the transfer station at the expected arrival time, and obtains the estimated total transfer time HT. trans Add HT to the estimated arrival time. trans The time when loading of the goods begins is obtained, plus the corresponding fixed loading time HT. load The loading time is then determined.
[0065] For example: If a certain shipment is expected to arrive at 10:00, and the estimated queuing time and basic time total 2 hours, and the fixed loading time is 0.5 hours, then the loading time for this shipment is determined to be from 12:00 to 12:30.
[0066] This step directly converts the calculation results of the dynamic transit time model into a specific time window for newly added goods in the queue, ensuring that the time period inserted into the queue can truly reflect the current congestion status of the transit station and avoid time deviations caused by static estimation.
[0067] S420, insert the loading time period of the newly added goods into the first-in-first-out queue, and determine whether the inserted loading time period overlaps with the loading time period of goods already existing in the queue.
[0068] This step inserts the loading time period of the new goods into the queue. Specifically, the system locates the corresponding sorting position in the queue based on the start time of the new goods' loading. Then, the system compares the start and end times of this time period with the loading time periods of existing nodes in the queue to determine if there is any overlap.
[0069] For example, if the loading time for new cargo C is from 12:00 to 12:30, and the queue already has cargo A from 11:30 to 12:10, and cargo B from 12:10 to 12:40, then C overlaps with A from 12:00 to 12:10 and with B from 12:10 to 12:30. If there is indeed an overlap, the subsequent continuation operation is triggered; if there is no overlap, the node is directly inserted.
[0070] This step accurately identifies the set of goods affected by the new goods in the queue and their overlapping specific intervals through precise interval comparison, providing a clear target for subsequent extension operations and avoiding invalid operations caused by blind extension.
[0071] S430, if there is overlap, identify all existing goods that overlap with the inserted loading time period, calculate the difference between the end time of the inserted loading time period and the earliest loading start time among the overlapping goods, and use it as the extension amount; extend the loading time period of the goods corresponding to the earliest loading start time among the overlapping goods and all subsequent goods backward by the extension amount.
[0072] After confirming that the time period for inserting new goods overlaps with multiple nodes in the queue, the system identifies all existing goods that overlap with the inserted loading time period and finds the earliest loading start time among these overlapping goods. Subsequently, the system calculates the difference between the end time of the inserted loading time period and this earliest loading start time as a shift amount. The system then shifts the goods corresponding to the earliest loading start time, as well as all goods after it, backwards by this shift amount. In this way, the new goods can be inserted completely without overlapping with any existing goods.
[0073] For example, the loading time for new cargo C is from 11:20 to 12:20, which overlaps with cargo A (11:00 to 11:40) and cargo B (11:50 to 12:30) already in the queue. The system takes the difference between the end time of the inserted time slot (12:20) and the earliest start time of the overlapping nodes (11:00 for A), resulting in a delay of 80 minutes. The system then delays the loading time slots of A, B, and all subsequent cargoes by 80 minutes, updating A to 12:20 to 13:00 and B to 13:10 to 13:50. At this point, the end time of C (12:20) coincides with the updated start time of A (12:20), allowing C to be successfully inserted into the queue without overlapping with B.
[0074] This step ensures that the insertion of new goods does not disrupt the planned order of existing goods by uniformly shifting the overlapping area and all subsequent goods, thus maintaining the continuity and logical consistency of the overall timeline of the queue and avoiding the problem of subsequent disconnection caused by disordered order.
[0075] Furthermore, if step S400 involves a cancellation event, updating the first-in-first-out queue specifically includes the following steps:
[0076] S440, remove the node corresponding to the cancelled goods from the queue.
[0077] The system searches forward through the first-in, first-out (FIFO) queue based on the cargo identifier carried in the cargo cancellation event. Once the node is found, the system removes it from the linked list and releases the storage space it occupies. Simultaneously, the system updates the removal position of the node, as well as the pointers (or indices) of the previous and next nodes, ensuring the integrity of the queue structure. For example, if cargo W is cancelled for any reason, the system finds the W node in the queue and deletes it, maintaining the continuity of the queue.
[0078] This step releases the original time resources by directly deleting nodes, creating physical space for subsequent nodes to move forward, ensuring that the queue can reflect the actual plan status in a timely manner, and avoiding invalid nodes that occupy resources.
[0079] S450 advances the loading time of all goods after the node is removed to fill the time gap when the cancelled goods node is released.
[0080] This step performs a forward shift operation. After removing a node, the system advances the loading time of all nodes following that node by the duration of the time gap released by the removed node. Specifically, the system reads the original start and end times of the removed node, calculates its duration, and then subtracts this duration from the start and end times of subsequent nodes.
[0081] For example: If the loading time of cargo W is from 12:00 to 12:30, and the loading time of its subsequent cargo V was originally from 12:30 to 13:00, after W is removed and the advance operation is performed, the loading time of V is modified to 12:00 to 12:30.
[0082] This step, by shifting the loading time of subsequent nodes forward, makes full use of the time window released by canceled goods, allowing subsequent goods to be connected according to earlier, originally scheduled shifts, thus greatly improving the utilization rate of transfer station operation resources.
[0083] Furthermore, after a shipment cancellation event occurs, the system removes the node corresponding to the cancelled shipment from the queue. For each subsequent shipment after the removed shipment, the system no longer uses a complete transfer method, but instead re-determines its loading time period one by one according to the queue order.
[0084] Specifically, for the first subsequent shipment after the removed shipment, the system obtains the following three times:
[0085] The earliest time when loading of the goods can begin is determined by adding the fixed preparation time required after arrival until the conditions for loading can be met.
[0086] Previous task completion time: that is, the loading completion time of the goods immediately preceding the cancelled goods. If the cancelled goods are at the head of the queue, then the current time is used.
[0087] Resource availability time: The time during which the corresponding operational resources can be allocated to loading the goods after the transfer station completes the previous operation.
[0088] The system takes the maximum value of the three times mentioned above as the new loading start time for the goods, and adds the fixed loading duration of the goods to this value to obtain the new loading end time, thereby updating the loading time period.
[0089] For each subsequent shipment after the first shipment, the system sequentially uses the loading completion time of the previous shipment as the new "previous job completion time," repeating the above process until all affected shipments in the queue have been updated.
[0090] For example, if the queue originally contained goods A, W, B, and C, and W was cancelled, the system would remove W and then recalculate the loading start time for B: taking the maximum value among B's earliest available loading start time, A's loading completion time, and resource availability time, and adding B's fixed loading duration to obtain B's new loading end time. Subsequently, B's new loading end time would be used as the completion time of the previous job for C, and a new loading time period would be recalculated for C. This process would continue until all subsequent goods were updated.
[0091] Through this preferred embodiment, the time gap released after canceling goods can be reasonably utilized by subsequent goods, while avoiding the problem of goods being arranged for loading before they arrive or the preceding operations are completed due to simple forward movement, making the queue update results more consistent with the actual operation situation.
[0092] In an exemplary embodiment, the above scheme pushes all overlapping orders back. However, in actual operation, if a certain item is nearing its arrival (e.g., only 2 hours left), further delaying its arrival has little physical significance (because there is no time to load it), and forcibly delaying it would cause the queue to expand indefinitely. To solve this problem, the following steps are added before calculating the overlap duration and preparing for the delay:
[0093] Get the current time point T cur And calculate the remaining time Δt between the current arrival time and the estimated arrival time for each affected cargo.lock =t arr -T cur Determine Δt lock Is it less than the preset near-end operation freeze threshold T? lock (For example, T) lock The preset time is 2 hours, which indicates that the goods have entered the irreversible preparation period for operation.
[0094] If the remaining time Δt lock Less than the near-end operation freeze threshold T lock If the cargo is in a near-end frozen state, the backward extension operation (i.e., freezing its loading time period) will not be performed, and the cargo will be directly marked as a high-risk delay state and sent to the replanning task queue.
[0095] If the remaining time Δt lock Greater than or equal to the near-end operation freeze threshold T lock If so, then the standard backwards operation will be performed on the goods.
[0096] This solution addresses the lack of boundaries in the original scheme by introducing a cutoff threshold based on "physical remaining time" before the postponement operation. If the goods are close to loading time, postponement not only fails to solve congestion but also leads to endless chain reactions of waiting at the back of the queue. By freezing and pre-planning weight delivery, goods with no room for further action are directly separated, significantly reducing the system's wasted computing power and improving its robustness.
[0097] S500 determines the latest transit time of each affected cargo at the current transit station based on the loading time period of each cargo after the postponement or advancement and the aforementioned operational capacity parameters.
[0098] This step is the core calculation in the dynamic simulation, aiming to transform the adjusted queue time into quantifiable transit time data. Specifically, the system first identifies all delayed or advanced cargo nodes in the FIFO queue as the "affected cargo set." For any cargo H in this set, the system reads its updated loading time period and extracts the updated loading start time. Then, using this start time as a baseline, the system performs a reverse simulation based on the transit station's operational capacity parameters: subtracting the estimated arrival time from the loading start time yields the total dwell time of the cargo within the transit station; subtracting this from the minimum basic operational time allows for the deduction of the actual queuing time for the cargo under the current adjustment state. This queuing time value can also be used to deduce the actual backlog of containers at the transit station upon the cargo's arrival.
[0099] For example, cargo H is expected to arrive at 09:00, with a planned loading start time of 11:00. Due to the insertion of subsequent cargoes, the loading start time is delayed by 30 minutes and updated to 11:30. The system calculates the total dwell time as 2.5 hours, subtracts the minimum basic operation time of 0.5 hours, and arrives at an actual queuing wait time of 2 hours, corresponding to the backlog caused by the new event. The system performs the above calculation on all affected cargoes in the set sequentially to obtain the latest transit time for each affected cargo in the current queue state.
[0100] This step indirectly perceives the real-time backlog status of the transfer station by extracting the queuing time from the adjusted loading time period. It obtains operation time data that is completely consistent with the current queue status without relying on a complex independent simulation engine. At the same time, this calculation process is only performed on the affected cargo nodes, without repeating the calculation for all cargo. This significantly reduces computing power costs while ensuring the accuracy and logical closed loop of the time calculation results, providing direct and reliable data input for subsequent delay risk assessment.
[0101] S600 identifies goods at risk of delay based on the latest transit time and outputs the delay risk monitoring results.
[0102] This step is the final judgment and output stage of delay risk monitoring. After obtaining the latest transit time of affected goods in the queue, the system inputs the latest time data into the risk judgment logic. By comparing the dynamic safety margin with the latest safety margin, it identifies goods that cannot be connected to the next transport shift as originally planned, and outputs the judgment result to the operation terminal in the form of early warning information, providing dispatchers with direct and actionable intervention basis.
[0103] Furthermore, step S600 includes the following steps:
[0104] S610, determine the dynamic safety margin M = α × N × T for the affected goods. avg Where α is the historical cargo cancellation rate within a preset time window, N is the number of goods in the first-in-first-out queue preceding the affected goods, and T is the number of goods in the first-in-first-out queue. avg The average loading time for each cargo preceding the affected cargo.
[0105] This step is used to calculate the dynamic safety margin M, which serves as an adaptive tolerance threshold for filtering out minor fluctuations. Specifically, the system reads the historical cargo cancellation rate α of the transit station within a preset time window from the historical database; then, the system counts the number N nodes preceding the affected cargo in the current FIFO queue; finally, the system calculates the average loading time T for these N nodes. avg Finally, multiplying the three together yields the dynamic safety margin M = α × N × Tavg .
[0106] For example: If the historical cancellation rate of a certain transit station within a preset time window is 10% (α=0.1), and there are 20 goods (N=20) ahead of the target goods in the queue, and the average loading time for these 20 goods is 2 hours (T... avg =2), then the dynamic safety margin M = 0.1 × 20 × 2 = 4 hours. The physical meaning of this value is: based on historical statistics, there is a probability that the goods preceding the target goods will be canceled before they arrive, and on average, it is expected to release 4 hours of processing time. Therefore, even if the current goods are delayed, as long as the delay is within 4 hours, it is highly likely that it can be absorbed by the cancellation of the preceding goods, without triggering an alarm.
[0107] By introducing historical cargo cancellation rates as a calculation factor, the system can adaptively set a "tolerance range" based on the actual business fluctuation patterns of the transit station, transforming statistical probability predictions into specific dynamic time margins. This effectively filters out minor time fluctuations caused by potential future order cancellations, avoids generating a large number of invalid alarms due to subtle queuing changes, and significantly reduces the system's false alarm rate.
[0108] S620, determine the latest safety margin for the affected goods. new =t next_dep -(t arr +T trans_new ); where t next_dep t is the departure time of the next transport trip. arr T represents the estimated time when the affected goods are expected to arrive at the transit station. trans_new The latest confirmed transit time.
[0109] This step is used to calculate the latest safety margin for the affected goods in their current state. new In specific processing, the system extracts the departure time t of the next transport segment from the route planning file of the cargo. next_dep Extract the estimated arrival time t of the cargo from the queue node. arr And read the latest transit time T calculated in step S500. trans_new Substitute the three into the formula Margin new =t next_dep -(t arr +T trans_new ) to perform calculations.
[0110] For example: the estimated time t for a certain shipment to arrive at the transit station arr The latest transit time T is calculated at 9:00 AM via step S500. trans_newThe timeframe is 4 hours (including basic operations and waiting in line), and the departure time t of the next transport trip is... next_dep If it is 2:00 PM, then the latest safety margin is... new =14:00-(9:00+4:00)=1 hour. This means that although the goods can catch the train, there is only a 1-hour buffer time left.
[0111] This step precisely aligns the dynamically evolving queuing time at the transfer station with the fixed shift schedule, transforming it into a highly business-meaning quantitative indicator of "remaining time." This allows delay assessment to move beyond simple time comparisons and directly reflect the core business issue of whether goods can catch the next shift, providing an accurate and indisputable basis for risk classification.
[0112] S630, based on M and Margin new The delay risk level of the affected goods is determined.
[0113] This step determines the risk level based on the two margins calculated above. In specific processing, the system will use the margin... new Logically compare it with the dynamic safety margin M, and combine it with the margin. new The absolute value of Margin determines the risk level: if Margin new Greater than 0 and Margin new If the margin is greater than or equal to M, it is judged as "normal" or "low risk," indicating that the current margin is sufficient and there is enough redundancy to cancel later; if the margin is... new Greater than 0 and Margin new If the margin is less than M, it is considered a "yellow alert," indicating that although the current situation can connect shifts, the margin has been compressed below the dynamic tolerance line, posing a potential risk of further deterioration. The system will output a reminder message to the operations staff, but will not automatically trigger replanning; if the margin is less than M, it is considered a "yellow alert." new If the value is less than or equal to 0, it is judged as "red high risk". This means that the completion time of the transfer station after dynamic evolution is later than the departure time of the next train. The original route is not feasible. The system will trigger a strong alarm and mark the cargo route as invalid, and automatically send it to the replanning task queue.
[0114] For example: If the calculated dynamic safety margin M for a certain cargo is 4 hours, the latest safety margin is... new If the timeframe is 3 hours, and 3 hours is greater than 0 but less than 4 hours, the system will issue a yellow alert; if the timeframe for the goods is affected by subsequent new orders, the system will issue a yellow alert. trans_new Increase, Margin new If the time drops to -0.5 hours, the system will classify it as a red high-risk condition and trigger a replanning process.
[0115] This step, by introducing a multi-level risk assessment logic, ensures that risks can be detected in advance when they are about to occur, while avoiding excessive consumption of system computing power and human effort during minor fluctuations. At the same time, the mandatory replanning mechanism for red high-risk items ensures that goods that cannot be connected can enter the scheduling process as soon as possible, minimizing the risk of transportation link interruption caused by delays.
[0116] Furthermore, after step S610, the method further includes the following steps:
[0117] S611, Get the current time point T cur And the remaining time Δt=t for the affected goods to arrive at the transit station. arr -T cur ; where t arr The estimated time when the affected goods are expected to arrive at the transit station.
[0118] This step is used to obtain the benchmark for calculating time urgency. Specifically, the system reads the current system clock to obtain the current time point T. cur And extract the estimated arrival time t of the affected goods from the queue node of the transit station. arr The system then calculates the difference between the two values to obtain the remaining time Δt. Δt represents the remaining execution time before the goods actually arrive at the transfer station.
[0119] For example: If the current system time T cur The estimated arrival time (t) of a certain affected shipment at the transit station is as follows: 08:00 on September 5th. arr If the system time is 08:00 on September 8th, then the remaining time Δt is 72 hours; if the system time advances to 20:00 on September 7th, then the remaining time Δt is reduced to 12 hours. The purpose of this step is to link the risk assessment with the specific execution time, so that subsequent calculations can dynamically change according to the real-time progress.
[0120] This step transforms static margin calculation into dynamic time-varying calculation by acquiring the remaining time in real time, giving the delay risk monitoring a clear dimension of time urgency. This provides accurate calculation input for subsequent safety margin decay correction, ensuring that the system's judgment results can be continuously updated as the goods approach the transit station, accurately reflecting the gradual shrinking of the actual adjustable window.
[0121] S612, Based on Δt, determine the time decay coefficient β, and correct the dynamic safety margin M to M×β; where β=min(1,Δt / T) near );T near is the preset near-end time threshold; min() is the preset minimum value function.
[0122] This step is used to decay and correct the dynamic safety margin based on time urgency. Specifically, the system reads a preset near-end time threshold T. near (This threshold represents the timeframe at which stricter risk control measures need to be implemented, such as 24 hours or 48 hours.) Using the formula β=min(1,Δt / T) near Calculate the time decay coefficient β.
[0123] When the remaining time Δt is greater than or equal to the near-end time threshold T near When β is 1, it indicates that there is still a long time before the goods arrive, and the probability of changes in the goods ahead is relatively high. Therefore, the original dynamic safety margin M can be maintained without attenuation correction. When the remaining time Δt is less than the near-end time threshold T... near When β takes the value Δt / T near Furthermore, β decreases linearly as Δt decreases. At this point, the system multiplies the originally calculated dynamic safety margin M by β to obtain the corrected dynamic safety margin M. Since β is less than 1, the corrected dynamic safety margin will be smaller than the original dynamic safety margin, meaning the risk assessment threshold becomes more stringent.
[0124] For example: If the near-end time threshold T of a certain transfer station near If the time remaining for the goods is set to 24 hours, and the current remaining time Δt is 12 hours, then β = 12 / 24 = 0.5. The system will multiply the calculated dynamic safety margin M by 0.5. If the remaining time is reduced to 6 hours, then β = 6 / 24 = 0.25, and the dynamic safety margin is further reduced. When the remaining time approaches 0, β approaches 0, and the dynamic safety margin approaches 0. At this point, any slight delay in the goods' journey will trigger a delay risk assessment.
[0125] This step introduces a time decay coefficient β to scale the dynamic safety margin in real time, realizing an adaptive control logic that "the closer to the arrival time, the stricter the risk judgment threshold." This effectively solves the problem that the original fixed threshold would miss high-risk reports due to excessive tolerance when the shift is close to the arrival time. At the same time, it avoids excessive sensitivity to minor fluctuations when there is ample time, ensuring the rationality and rigor of the delay risk monitoring strategy in the time dimension.
[0126] Furthermore, although the steps of the method in this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.
[0127] Embodiments of the present invention also provide a non-transitory computer-readable storage medium that can be disposed in an electronic device to store at least one instruction or at least one program related to implementing a method in the method embodiments, wherein the at least one instruction or the at least one program is loaded and executed by the processor to implement the method provided in the above embodiments.
[0128] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0129] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0130] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0131] Program code for performing the operations of this application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0132] Embodiments of the present invention also provide an electronic device, including a processor and the aforementioned non-transitory computer-readable storage medium.
[0133] The electronic device is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments in this application.
[0134] Electronic devices are manifested in the form of general-purpose computing devices. Components of an electronic device may include, but are not limited to: at least one processor, at least one memory, and a bus connecting different system components (including memory and processor).
[0135] The memory stores program code that can be executed by the processor, causing the processor to perform the steps in the various embodiments described in this specification.
[0136] The memory may include readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read-only memory (ROM).
[0137] The memory may also include programs / utilities having a set (at least one) of program modules, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0138] A bus can represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus that uses any of the various bus structures.
[0139] Electronic devices can also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable user interaction with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., routers, modems, etc.). This communication can be achieved through input / output (I / O) interfaces. Furthermore, electronic devices can communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapters. The network adapter communicates with other modules of the electronic device via a bus. It should be understood that other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0140] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.
[0141] Embodiments of the present invention also provide a computer program product including program code, which, when the program product is run on an electronic device, causes the electronic device to perform the steps of the methods described above in various exemplary embodiments of the present invention.
[0142] While specific embodiments of the invention have been described in detail by way of examples, those skilled in the art should understand that the examples are for illustrative purposes only and are not intended to limit the scope of the invention. Those skilled in the art should also understand that various modifications can be made to the embodiments without departing from the scope and spirit of the invention.
Claims
1. A method for monitoring cargo transportation delay risks based on the dynamic evolution of transit time, characterized in that, The method includes the following steps: S100, obtain the operational capacity parameters of each transfer station; S200, based on the operational capacity parameters of each transfer station, establish a first-in-first-out queue for each transfer station within a preset time window; the preset time window is a preset number of future days; each node in the first-in-first-out queue stores the loading time period corresponding to the goods in the current plan; S300 monitors cargo events at each transit station in real time; the cargo events include new cargo events or canceled cargo events. S400, when the cargo event is detected, the first-in-first-out queue is updated; if it is a new cargo event, the loading time period corresponding to the new cargo is inserted into the first-in-first-out queue. If the inserted loading time period overlaps with the loading time period of existing cargo in the queue, the overlap duration is calculated, and the loading time periods of all subsequent cargoes after the overlap are extended by the overlap duration; if it is a canceled cargo event, the node corresponding to the canceled cargo is removed from the queue, and the loading time periods of all subsequent cargoes after the removed node are advanced. S500, based on the loading time period of each cargo after the postponement or advancement and the aforementioned operational capacity parameters, determine the latest transit time of each affected cargo at the current transit station; S600 identifies goods at risk of delay based on the latest transit time and outputs the delay risk monitoring results.
2. The method for monitoring cargo transportation delay risk based on the dynamic evolution of transit time according to claim 1, characterized in that, Step S100 includes the following steps: S110, obtain the maximum box processing capacity Cap and the minimum basic operation time T of the transfer station per unit time. min ; S120, according to Cap, T min And to estimate the number of backlogged containers Q, a dynamic transshipment time model is established; where T trans =T min +T wait Among them, T trans Total transit time per container; T min T represents the minimum basic operation time, indicating the time required for a single container to complete the transshipment operation without queuing. wait The time spent waiting in line; T wait =Q / Cap.
3. The method for monitoring cargo transportation delay risk based on the dynamic evolution of transit time according to claim 2, characterized in that, Step S200 includes the following steps: S210, Get the current time point T cur Determine the start time T of the preset time window. start =T cur and the end time T of the preset time window. end =T cur +W, where W is the duration corresponding to the preset number of future days; S220, obtain the estimated arrival time t of any cargo H in the current plan within the preset time window. arr Based on the dynamic transshipment time model and the estimated number of backlogged containers HQ when H arrives at the transshipment station, the total transshipment time HT per container of H is determined. trans Therefore, the loading time period for H is determined to be [t]. arr +HT trans -HT load ,t arr +HT trans ]; among them, HT trans HT is the sum of the queuing time and the basic minimum job time determined by HQ. load The fixed loading time for H to complete the transshipment operation; S230, The loading time periods of all goods within the preset time window are sequentially inserted into the nodes of the first-in-first-out queue according to the expected arrival time of each goods from morning to night, thus completing the construction of the first-in-first-out queue; S240, during the operation of the first-in-first-out queue, the current time point is compared with the loading time period of each node in real time. If the current time point has exceeded the end time of the loading time period of a certain node, the node is removed from the first-in-first-out queue. At the same time, when the sliding time window of the first-in-first-out queue moves forward, the node corresponding to the newly added goods falling into the current preset time window is inserted into the first-in-first-out queue.
4. The method for monitoring cargo transportation delay risk based on the dynamic evolution of transit time according to claim 2, characterized in that, If step S400 involves a new cargo event, updating the first-in-first-out queue specifically includes the following steps: S410, Based on the expected arrival time of the new cargo and the estimated transit time calculated by the dynamic transit time model, determine the loading time period of the new cargo; S420, insert the loading time period of the newly added goods into the first-in-first-out queue, and determine whether the inserted loading time period overlaps with the loading time period of goods already existing in the queue; S430, if there is an overlap, calculate the overlap duration and extend the loading time of all goods after the start time of the overlap duration by the overlap duration.
5. The method for monitoring cargo transportation delay risk based on the dynamic evolution of transit time according to claim 1, characterized in that, If step S400 involves a cancellation event, updating the first-in-first-out queue specifically includes the following steps: S440, Remove the node corresponding to the cancelled goods from the queue; S450 advances the loading time of all goods after the node is removed to fill the time gap when the cancelled goods node is released.
6. The method for monitoring cargo transportation delay risks based on the dynamic evolution of transit time according to claim 1, characterized in that, Step S600 includes the following steps: S610, determine the dynamic safety margin M = α × N × T for the affected goods. avg Where α is the historical cargo cancellation rate within a preset time window, N is the number of goods in the first-in-first-out queue preceding the affected goods, and T is the number of goods in the first-in-first-out queue. avg The average loading time for each cargo preceding the affected cargo; S620, determine the latest safety margin for the affected goods. new =t next_dep -(t arr +T trans_new ); where t next_dep t is the departure time of the next transport trip. arr T represents the estimated time when the affected goods are expected to arrive at the transit station. trans_new The latest confirmed transit time; S630, based on M and Margin new The delay risk level of the affected goods is determined.
7. The method for monitoring cargo transportation delay risk based on the dynamic evolution of transit time according to claim 6, characterized in that, Following step S610, the method further includes the following steps: S611, Get the current time point T cur And the remaining time Δt=t for the affected goods to arrive at the transit station. arr -T cur ; where t arr The estimated time when the affected goods are expected to arrive at the transit station; S612, based on Δt, determine the time decay coefficient β, and correct the dynamic safety margin M to M×β; where β=min(1,Δt / T) near );T near is the preset near-end time threshold; min() is the preset minimum value function.
8. A non-transitory computer-readable storage medium, wherein the storage medium stores at least one instruction or at least one program segment, characterized in that, The at least one instruction or the at least one program segment is loaded and executed by the processor to implement the cargo transportation delay risk monitoring method based on the dynamic evolution of transit time as described in any one of claims 1-7.
9. An electronic device, characterized in that, Includes a processor and the non-transitory computer-readable storage medium as described in claim 8.
