Skip to main content
Nature Communications logoLink to Nature Communications
. 2026 Aug 26;17:10199. doi: 10.1038/s41467-026-76915-4

Digital twin based sorting optimization for parcel distribution centers in logistics networks

Ran Li 1,2,3,#, Wei Zhang 1,2,#, Yuanming Tian 4,5,6, Renming Liu 2, Boqun Huang 4,5,6, Le Liao 2, Xiang Song 2, Xiaoqi Qin 7, Han Zhang 7, Shuguang Cui 4,5,6, Chuan Huang 1,5,✉
PMCID: PMC13614937  PMID: 42791242

Abstract

Parcel distribution centers in logistics networks aim to sort inbound parcels for downstream destinations through parcel-sorting systems, where parcels are diverted to assigned grids and packed into bins for outbound truck deliveries. Considering dynamic parcel movements, random packing behaviors, and conveyor congestion, maximizing sorting throughput by assigning grids to destinations presents significant computational challenges. This work establishes a high-fidelity parcel-sorting digital-twin system that models real-time interactions among parcels, sorters, and packers, and simulates throughput performance under specific sorting plans. To address the computational challenges and real-world operational constraints, a digital twin-based structured Monte Carlo tree search optimization framework, combining integer nonlinear programming and geographic destination graph networks, is proposed to optimize sorting plans. The proposed digital twin and optimization framework have been deployed in 146 parcel distribution centers (approximately 30% of SF Express parcel distribution centers in China) and demonstrated their effectiveness through both numerical and field experiments: the proposed framework increases average and peak sorting throughputs by 10.56% and 7.72%, respectively, and reduces recirculated parcels by 60.81%, compared to field-implemented method. Furthermore, it outperforms the basic digital twin-based Monte Carlo tree search baseline by 6.77% and 4.99% in average and peak throughputs, respectively, and reduces recirculated parcels by 54.57%.

Subject terms: Mechanical engineering, Industry, Mechanical engineering


Authors demonstrate a high-fidelity digital twin system for parcel sorting, integrating real parcel-level data and device mechanisms, and proposes a structured Monte Carlo tree search framework that combines integer nonlinear programming and geographic graph modules to optimize grid-to-destination assignments, improving throughput and reducing congestion in large-scale distribution centers.

Introduction

The logistics network is one of the most crucial and indispensable infrastructures for daily life and economic development, connecting industrial production, distribution, and consumption1. In logistics networks, parcel distribution centers (PDCs) serve as the most pivotal hubs2 to facilitate the consolidation, sorting, and distribution of vast volumes of parcels3. Notably, PDCs streamline the flow of parcels by efficiently routing them to their next destinations, ensuring continuous and timely parcel delivery4,5, reducing transportation costs, and achieving economies of scale in logistics networks6.

Specifically, in PDCs, parcels are processed by three sequential procedures: first, parcels are unloaded from the inbound trucks7, then fed to the parcel-sorting system (PSS) and routed to the grids assigned to specific parcel destinations8–11, and finally packed into bins for subsequent outbound truck deliveries12–14. On the one hand, the random arrivals of the inbound trucks introduce stochasticity to parcel arrivals in PSS, posing great challenges for parcel-sorting. On the other hand, parcel-sorting in PSS significantly affects the timely departures of outbound trucks, as failure to complete parcel-sorting within designated time windows causes delayed outbound truck departures that propagate operational bottlenecks to downstream delivery procedures within the logistics network, resulting in substantial economic losses and deteriorated customer satisfaction. Therefore, improving parcel-sorting efficiency in PSS is the most important task to ensure the reliability and timeliness of parcel deliveries in PDCs.

The cross-belt sorter system (CBSS)15 is the predominant PSS used in PDCs, designed to efficiently sort each inbound parcel to one or more predefined grids according to its downstream destination. As depicted in Fig. 1, a CBSS comprises two sorting segments that share one central cross-belt conveyor. Each segment consists of induction stations, parcel scanners, grids, and label printers. Specifically, each parcel randomly arrives at an induction station and is conveyed onto the first passing empty tray on the cross-belt conveyor. The parcel moves along the conveyor and subsequently passes through a parcel scanner, which scans the barcode on the parcel and retrieves its destination. Then, the tray carrying this parcel is informed of the grid index for parcel unloading according to the sorting plan, i.e., the grid-to-destination assignments. When the tray reaches the designated grid, the parcel is unloaded if the grid’s bin is not full. Once the bin is full, the grid is locked, and the bin-packing process is initiated. During the bin-packing process, any parcel that reaches the locked grid will continue moving along the conveyor and attempt to be unloaded in the subsequent conveyor cycles. If a parcel is still not unloaded after the maximum allowable number of conveyor cycles, it is redirected to the “rejection grid” that recalls all these timed-out parcels. When the bin-packing process is initiated, a label with detailed dispatch information is generated by the label printer. Packers first retrieve and affix the printed label to the corresponding bin, and replace it with an empty bin.

Fig. 1. Layout of the cross-belt sorter system (CBSS) in parcel distribution centers (PDCs).

Fig. 1

The CBSS consists of the following key sorting devices: 1. the induction station receives randomly arrived parcels and places each parcel onto the first empty tray passing by; 2. the cross-belt conveyor is equipped with hundreds of trays, each of which carries one parcel at a time. Trays move cyclically with the conveyor and unload parcels into the grids; 3. the parcel scanner scans the barcode on the parcel passing through; 4. the grid receives parcels into the bin with a specific downstream destination, and is locked once the bin reaches its maximum capacity; 5. label printer generates dispatch labels for the bins that reach their maximum capacity.

CBSS sorting optimization aims to maximize the sorting throughput, i.e., the number of sorted parcels per unit time, by assigning the grids to the parcel’s destinations. Specifically, for the parcel-sorting procedure, PDCs typically adopt a two-stage framework10,16,17 to handle the increasing number of parcel destinations in recent years. In the first stage, PDCs perform destination clustering to aggregate the vast number of parcel final destinations into a manageable set of destination groups based on empirical parcel data, geographic proximity, and operational requirements. In the second stage, which is the focus of this paper, the sorting optimization determines the optimal assignment of sorting grids to these pre-clustered destination groups. To maintain consistency, the term “destination” in the paper refers specifically to the pre-clustered destination groups rather than individual delivery endpoints.

Given its central role in PDC operations, the sorting optimization problem considered in this work is important in two respects. First, it captures a real-world planning problem faced by large-scale CBSS in PDCs, where the grid-to-destination assignments must be determined in daily industrial operations. Second, high-quality solutions to this problem, i.e., well-designed mappings from grids to destinations, can deliver significant improvements in sorting throughput and other key performance indicators, which translate directly into economic benefits for logistics companies. Against this background, the sorting optimization problem has drawn considerable attention from both the academic and industrial spheres in recent years. The authors in ref. 18 developed a differentiated probabilistic queuing policy by assuming that customer order (a group of parcels belonging to the same destination) arrivals follow a Poisson distribution, and leveraged an alternating minimization algorithm to reduce the weighted average latency for the customer orders at PDCs. Similarly, the authors in refs. 19,20 developed multi-class block-and-recirculate queueing models by assuming that customer order releases follow exponential distribution, and leveraged approximate aggregation methods to estimate and maximize the system throughput. However, existing works predominantly rely on idealized assumptions on the distributions of parcel arrivals18 and overly simplified representations for PSS (e.g., simplified tote (tray) release logic19,20 and infinite queue capacities21), and thus are limited in capturing the precise behavior of complex, dynamic, and large-scale real-world parcel-sorting scenarios22.

To address these real-world limitations, simulation-based optimization has been widely adopted23. By abstracting the essential dynamics of the system and replicating them in software, it enables the evaluation of existing solutions and the search for improved or even optimal ones without direct interaction with the physical system, thereby substantially reducing both the time and monetary expenditures. Such methods have been extensively applied in PDCs. For instance, the authors of24–26 simulate PSS layout models to identify optimal configurations for general PSSs, including decisions on the number of induction stations and cross-belt conveyors and on the placement of additional conveyor routes. Software platforms, such as Plant Simulation27, are widely utilized in such studies, with real-world PDCs (e.g., PDCs at Friedewald) serving as prototype systems for simulation-based layout optimization. In28–30, truck scheduling simulation models were developed to solve the temporal mapping between inbound and outbound trucks and docking doors in PDCs, thereby facilitating the efficient arrival and departure of parcels. However, the above simulation models predominantly rely on fixed operational parameters and idealized assumptions, including parametric and stationary parcel arrivals, homogeneous or coarse-grained parcel characteristics that neglect the variability in parcel destinations and real-world handling constraints, and simplified routing rules without simulating congestion and equipment failures in real-world operations. Consequently, these models cannot faithfully reproduce the precise temporal and spatial variability of practical parcel-sorting operations, limiting their effectiveness and generalizability in solving practical sorting optimization problems.

To tackle the aforementioned challenges, we turn to the digital twin (DT) approach, which facilitates real-time seamless interactions with the physical environment31–33. DT approaches have been increasingly adopted in logistics, with prior studies exploring DT deployments for various logistics systems, such as warehouse layout design34, logistics transportation systems35, and cold chain logistics platforms36. However, these DT systems predominantly focus on architectural or platform-level designs that synchronize the physical and digital worlds to support real-time management or ensure safety guarantees. In contrast, our approach leverages a different insight by utilizing DT to achieve high-fidelity, parcel-level simulations of the sorting process, which allows us to address the sorting optimization problems within DT, without the need for costly real-world trial-and-error.

Specifically, compared to the conventional simulation-based approaches, our established parcel-sorting DT system (PSDTS) incorporates tens of thousands of real-world parcel data, including arrival timestamps with millisecond resolution, spatial coordinates in the CBSS, and downstream destinations, to replicate the exact parcel arrival time and position in the CBSS. Moreover, real-world parcel-sorting data are systematically sensed and stored via the established Industrial Internet of Things (IIoT) platform, enabling the PSDTS to precisely replicate the sorting operations and thus ensure high-fidelity parcel-level simulation of the considered CBSS. Leveraging these data, we adopt a joint model and data-driven approach that embeds the underlying physical mechanisms to construct DT models of key sorting devices in the CBSS. The established PSDTS integrates multi-scale simulations, including the detailed trajectory of each parcel, operational status of each sorting device, and throughput metrics of the CBSS, to comprehensively simulate the sorting performance of the CBSS with one particular sorting plan. It has been implemented in 146 PDCs with fidelity over 90%, accounting for approximately 30% of all SF Express PDCs in China, enabling data-driven design and rigorous validation of advanced sorting optimization algorithms.

Building on the developed PSDTS, we propose a DT-based structured Monte Carlo tree search (DT-SMCTS) framework to efficiently derive the sorting plan for CBSS while accommodating some practical operational constraints. Specifically, the sorting throughput maximization problem is formulated as a finite-horizon Markov decision process (MDP), which suffers from a vast solution space and computationally intensive PSDTS evaluations. To address these challenges, we adopt MCTS as the algorithmic backbone, which is widely adopted for solving large-scale combinatorial optimization problems with large branching factors, such as large language model reasoning and planning37–40, robotics planning41–43, multi-objective drug design44,45, and retrosynthesis46–50. Given the high complexity and strong realism requirements of CBSS, we embed a DT-based integer nonlinear programming (DT-INLP) module and a geographic destination graph network (GDGN) module to improve the expansion step of the MCTS, which significantly improves the convergence speed and sorting performance. We demonstrate the operational feasibility and effectiveness through both the DT numerical results and field experiments in real-world PDCs of SF Express. The proposed DT-SMCTS framework increases the average and peak sorting throughputs by 10.56% and 7.72%, respectively, and reduces the number of sorted parcels requiring multiple conveyor cycles by 60.81%, compared to the field-implemented method. Furthermore, it outperforms the basic DT-based MCTS baseline by 6.77% and 4.99% in average and peak throughputs, respectively, and reduces the recirculated parcels by 54.57%.

Results and discussion

IIoT within CBSS

As the foundational enabler of the PSDTS, the IIoT platform is implemented in CBSS to sense the parcel-sorting and bin-packing data and upload them to the cloud storage after they are acquired. Notably, the data acquisition and upload occur concurrently with the parcel-sorting operations. After each sorting shift and once all data from that shift have been uploaded to the cloud, the proposed DT-SMCTS framework retrieves these data and invokes the PSDTS to update the sorting plan. The updated plans are then deployed to the CBSS before the start of the upcoming sorting shifts. Consequently, both the plan update based on the acquired data and the deployment of the updated plan are performed in the interval between two successive sorting shifts, with one shift scheduled per day and lasting several hours (typically around 4 h). As a result, the sorting plan is always updated using data from completed parcel-sorting shifts and is applied only to subsequent sorting shifts.

Data acquisition and hardware configuration of the IIoT platform: specifically, the IIoT platform acquires both the parcel-sorting and bin-packing data. For a sorting shift containing N parcels, we use wn≜{Tndel,Kn,Sn,En,Vn} to record the parcel-sorting data associated with the n-th parcel: Tndel denotes the exact delivery timestamp of the n-th parcel; Kn denotes the index of induction station receiving the n-th parcel, and Tndel is accurately identified using the light curtain at the induction station; Sn denotes the index of parcel scanner, which inspects the n-th parcel’s barcode using a six-sided camera tunnel; En is the scanning error code, and it is logged as “error” if the barcode of the n-th parcel cannot be identified; Vn∈D represents the destination of the n-th parcel and is retrieved during the barcode scanning, with D={1,2,⋯,D} being the destination set and D denoting the total number of destinations in the sorting shift. All parcel-related data are aggregated into the set W ≜ {w1, w2,…,wN}.

Additionally, for a CBSS containing X grids, we use gx≜{Tx,lpack}l=1Lx,{Cx,lpack}l=1Lx to record the bin-packing data associated with the x-th grid: Lx is the total number of packed bins of the x-th grid throughout the sorting shift; Tx,lpack and Cx,lpack represent the overall bin-packing time and the number of collected parcels at the x-th grid during the l-th bin-packing process, respectively, which are measured based on the detection results from the light curtain at the bottom of the grid’s chute and the photoelectric sensor at the top of the grid’s bin. All the bin-packing data are aggregated into the set G ≜ {g1, g2,..., gX}.

During the data acquisition, the adopted sensors in the IIoT platform, including light curtains, six-sided camera tunnels, and photoelectric sensors, are industrial-grade and ensure a millisecond-level sensing latency. These sensors perform data cleaning through built-in signal filtering and denoising to suppress transient noise and unintended sensor triggering, thereby ensuring that the acquired data are clean and reliable. Moreover, when a required data record cannot be successfully acquired, the corresponding sensor automatically triggers its predefined reacquisition procedure and records an error log for subsequent inspection.

Data-transmission protocols and latencies: the acquired parcel-sorting and bin-packing datasets, i.e., W and G, are immediately transmitted to the edge gateway of the IIoT platform using the MQTT51, HTTP52, and CoAP53 protocols, depending on sensor configurations. At the edge gateway, the acquired data are further cleaned through automated consistency checks. In particular, the gateway verifies whether Tndel is temporally consistent with the timestamps of adjacent parcel records. Duplicate parcel records and records that clearly violate the chronological order of the parcel-sorting process are removed. The cleaned data are subsequently uploaded to cloud storage via the HTTPS54 protocol, resulting in an overall sensing-to-cloud latency on the order of several seconds. Once all acquired data are available in the cloud, the DT-SMCTS operates on the PSDTS to perform the sorting optimization. Importantly, this second-scale sensing-to-cloud latency does not affect either the sorting-plan update within the proposed DT-SMCTS framework or the subsequent deployment of the updated plan, as these steps are typically executed only once every 3 days, with nearly 1 day of available time in each update cycle.

DT of CBSS

As the simulation and evaluation backend for the DT-SMCTS, the PSDTS is designed to mimic the real-world parcel-sorting shift as faithfully as possible. Specifically, during each parcel-sorting shift, the IIoT platform identifies parcels, captures the associated parcel-sorting and bin-packing data, and uploads these data to cloud storage via the HTTPS54 protocol. The DT-SMCTS framework subsequently retrieves the stored data from the cloud and invokes the PSDTS to compute an updated sorting plan. In each update cycle, DT-SMCTS iteratively generates candidate sorting plans based on the stored data and evaluates each candidate in the PSDTS through simulation; the candidate with the best simulated performance is selected as the updated sorting plan. This entire updating process is executed in an offline manner, i.e., during the intervals between successive parcel-sorting shifts. As a result, the PSDTS and the IIoT platform are functionally decoupled: the former is a software-based system that operates offline for modeling, simulation, and optimization, whereas the latter is primarily hardware-based and operates online together with the physical parcel-sorting shift. Notably, the online and offline phases of CBSS correspond, respectively, to the data-acquisition and plan-update phases of the DT-SMCTS framework. Accordingly, DT-SMCTS operates as a macroscopic online framework, in which data from the most recent 3 days are continually collected and leveraged to update the sorting plan.

As depicted in Fig. 2, the proposed PSDTS consists of four modules: the virtual parcel generation module leverages practical parcel-sorting data to generate virtual parcels; the CBSS mechanism module simulates the induction station, cross-belt conveyor, parcel scanner, and grid based on their respective operational mechanisms; the sorting simulation module simulates the entire life cycles of virtual parcels with the CBSS mechanism module and computes the sorting performance metrics under the given sorting plan, Π:X→D, which is defined as the mapping from the grid set X to the destination set D; finally, the visualization platform provides a visual interface for comprehensive performance evaluation.

Fig. 2. Overview of the proposed parcel-sorting digital twin system (PSDTS) framework.

Fig. 2

A The virtual parcel generation module takes the practical parcel-sorting dataset W as input and uses the extracted parcel attributes to generate the virtual parcels. B The cross-belt sorter system (CBSS) mechanism module replicates the operational mechanisms of the key sorting devices using the practical bin-packing dataset G and device-specific operational mechanisms. Specifically, in practical bin-packing dataset G, Tx,lpack and Cx,lpack denote the overall bin-packing time and the number of parcels collected at the x-th grid during the l-th bin-packing process, respectively. C The sorting simulation module evaluates a sorting plan Π, defined as the mapping from grids to destinations, by simulating the life cycles of all virtual parcels with the CBSS mechanism module and concurrently computing sorting performance metrics. D The visualization platform provides comprehensive visualization of the parcel-sorting performance.

Virtual parcel generation module

The virtual parcel generation module takes the parcel-sorting data from dataset W as its input and uses the extracted attributes, i.e., delivery time Tndel, induction station Kn, parcel scanner Sn, and scanning error En (if a scanning failure occurred), to generate the n-th virtual parcel, ensuring that it precisely replicates the arrival status and the subsequent sorting process of the n-th real-world parcel.

CBSS mechanism module

The CBSS mechanism module replicates four key sorting components of the CBSS based on their operational mechanisms and practical data.

  • Virtual induction station module: in the physical CBSS, K induction stations are symmetrically located in each sorting segment. When the induction station Kn ∈ {1, 2,..., K} receives the n-th parcel, it records the current timestamp Tndel, and then conveys this parcel onto the first passing empty tray on the cross-belt conveyor. Correspondingly, the virtual induction station module in the PSDTS simulates K virtual induction stations to replicate their operational mechanisms by performing two functions. First, the virtual induction station Kn receives the n-th virtual parcel at time Tndel. Then, it conveys the n-th virtual parcel onto the first passing empty tray on the virtual cross-belt conveyor.

  • Virtual cross-belt conveyor module: the cross-belt conveyor in the physical CBSS is equipped with hundreds of trays, each capable of carrying one parcel at a time. These trays move cyclically along with the conveyor, loading parcels from induction stations, conveying them to the parcel scanners, and unloading parcels at the grids according to the sorting plan. Correspondingly, the virtual cross-belt conveyor module in PSDTS replicates this operational mechanism by simulating a cyclically moving virtual cross-belt conveyor and a set of virtual trays. Specifically, the virtual cross-belt conveyor can be accelerated proportionally to shorten the simulation time. Each virtual tray moves with the virtual conveyor and is designed to perform three functions. First, if the virtual tray is empty, it loads a virtual parcel when passing the virtual induction stations. Second, it unloads the virtual parcel when it reaches the unlocked designated grid. Finally, it records the number of conveyor cycles that the carried parcel has traveled and unloads the parcel into the virtual rejection grid once the maximum allowable number of conveyor cycles is reached.

  • Virtual parcel scanner module: in the physical CBSS, each sorting segment is equipped with one parcel scanner. As the n-th parcel moves along the cross-belt conveyor, it passes through a parcel scanner Sn ∈ {1, 2}, which scans the barcode on the n-th parcel to retrieve its destination Vn. If the scan is successful, the tray carrying the parcel is instantly informed of the grid index corresponding to its destination for parcel unloading; if the scan fails due to improper parcel orientation or a damaged barcode, an error code En is recorded. Correspondingly, the virtual parcel scanner module simulates two virtual parcel scanners, each of which is designed to perform two functions. First, when the n-th virtual parcel passes through, the virtual parcel scanner Sn reads its destination Vn, determines its designated grid according to the sorting plan Π, and notifies its virtual tray of the designated grid. Second, the virtual parcel scanner Sn checks whether a scanning error code En exists: if no error code is detected, the virtual parcel proceeds to its designated grid; if an error code is detected, the designated grid of the n-th virtual parcel is changed to the rejection grid, where it will be unloaded after the maximum number of conveyor cycles is reached.

  • Virtual grid module: each grid in the physical CBSS is connected to a chute that directs the passing parcels from the tray to a bin placed below. When the grid’s bin is not full, all passing parcels with the assigned destination are unloaded; once the bin is full, the grid is locked and initiates the bin-packing process. The overall bin-packing time Tx,lpack and the number of collected parcels Cx,lpack at the x-th grid during the l-th bin-packing process are recorded. Notably, the overall bin-packing time Tx,lpack is composed of two parts: a fixed Tx,lbase and a variable Tx,lwalk, i.e., Tx,lpack=Tx,lbase+Tx,lwalk. Here, Tx,lbase accounts for the base packing time spent on replacing the bin, and Tx,lwalk is the label-fetching time for the packers, which is determined by the distance between the grid and the nearest label printer, and thus varies among the grids. Correspondingly, the virtual grid module simulates X virtual grids to replicate the parcel unloading and bin-packing process. Specifically, at each simulation time step, the virtual grids detect whether their bins have reached the maximum capacity. If so, the corresponding virtual grid transits to the locked status and initiates the bin-packing process. The maximum capacity and overall bin-packing time of the x-th virtual grid’s bin, denoted as C¯xpack and T¯xpack, are modeled as the average number of the collected parcels Cx,lpack and the average bin-packing time Tx,lpack over all bin-packing processes, computed by using the grid-related dataset G. It is noted that the virtual rejection grid is modeled to remain unlocked throughout the sorting shift.

Sorting simulation module

This module takes sorting plan Π as the input and assesses its performance with the CBSS mechanism module by simulating the life cycles of all virtual parcels generated by the virtual parcel generation module at simulation time steps. Notably, we adopt a discrete event simulation approach for the PSDTS since the parcel-sorting shift itself is inherently characterized by discrete operational events (e.g., parcel arrivals, tray loading and unloading, scanning, and bin packing), and the system state remains piecewise constant between two neighboring events. Each simulation time step, denoted as Δt, corresponds to the real-world time required for a tray to advance one position on the conveyor of the physical CBSS. At each simulation time step, the sorting simulation module increments its virtual clock by Δt and faithfully replicates the life cycle of each virtual parcel in the sorting shift. The life cycle of the n-th virtual parcel begins with the virtual tray allocation by the virtual induction station Kn when the virtual clock reaches Tndel. It then proceeds to the determination of its designated grid at the specific virtual parcel scanner Sn, based on its destination Vn, scanning error code En (if it exists), and sorting plan Π. Finally, it is unloaded at its designated virtual grid.

Concurrently, the sorting simulation module computes the performance metrics, e.g., instant throughput, average throughput, and peak throughput, with respect to the real-world minute t ∈ {1, 2, ..., Tend}, where Tend denotes the real-world terminating time of the sorting shift. Instant throughput CΠ(t) quantifies the number of sorted parcels per minute as a moving average over a rolling window of the preceding T minutes, i.e.,

CΠ(t)≜1t−max{t−T,0}∑t0=max{t−T,0}+1tNt0,t=1,...,Tend, 1

where Nt0 represents the number of sorted parcels during the t0-th minute. Based on the instant throughput defined in Eq. 1, the PSDTS computes average throughput Cavg(Π) and peak throughput Cpeak(Π), which are defined as the average number of sorted parcels and the maximum instant throughput over the entire sorting shift, respectively, i.e.,

Cavg(Π)≜1Tend∑t0=1TendNt0, 2
Cpeak(Π)≜maxt∈{1,2,…,Tend}CΠ(t). 3

In practical CBSS, average throughput Cavg(Π) reflects the overall sorting performance, and peak throughput Cpeak(Π) captures the stability during the most intense parcel arrival period within the sorting shift, thereby highlighting the potential performance bottleneck.

Visualization platform

The visualization platform is developed by integrating the real-time data interface of the sorting simulation module with dynamic sorting logic and virtual entities, including virtual parcels and four mechanism modules, implemented within the Unreal Engine environment55, as detailed in Supplementary Movie 1. This integration facilitates continuous monitoring of the sorting performance and the operational status of the virtual mechanism modules.

Remark: to guarantee the effectiveness of the established PSDTS, fidelity is a critical metric to ensure that PSDTS precisely replicates the CBSS in real-world conditions. Considering that the number of sorted parcels per time interval directly quantifies the throughput of the CBSS, fidelity is defined as the weighted average accuracy between the simulated and actual recorded number of sorted parcels over fixed-length time intervals throughout the sorting shift, as detailed in Supplementary Method 1. To maintain high fidelity for the established PSDTS, a continuous calibration mechanism is incorporated that refines the key operational parameters, e.g., maximum capacity C¯xpack and packing time T¯xpack of virtual grids by utilizing practical data collected from the latest sorting shift.

To validate the accuracy and reliability of the established PSDTS, we compare the sorted parcel quantities between the practical sorting process in CBSS and the simulated sorting process in PSDTS across four typical PDCs using real-world parcel data with 17,394, 61,466, 41,643, and 30,207 parcels in each sorting shift, respectively. As observed in Fig. 3, the simulated sorted parcel quantities in each time interval align closely with the real-world parcel numbers in CBSS, underscoring the PSDTS’s capability to precisely replicate the real-world CBSS. Specifically, the PSDTS achieves fidelities of 96.13%, 95.27%, 97.23%, and 96.35% in the four PDCs according to Supplementary Method 1 under 1-min time intervals, underscoring its reliability and applicability as the performance evaluation system for sorting throughput maximization algorithms.

Fig. 3. Sorting time vs. quantities of sorted parcels per time interval for practical sorting process in cross-belt sorter system (CBSS) and simulated sorting process in parcel-sorting digital twin system (PSDTS) across four typical parcel distribution centers (PDCs).

Fig. 3

a–d Represent four typical PDCs. The black square markers and black solid line denote the practical sorting process in CBSS, whereas the blue triangle markers and blue solid line denote the simulated sorting process in PSDTS. Source data are provided as a Source Data file.

Performance evaluation of DT-SMCTS across different PDCs

Empirical parcel data analysis in Supplementary Note 1 shows that the portion of parcels targeted to each destination in the sorting shift remains highly similar across consecutive days, and thus the sorting plan can be derived by inputting historical data into the DT-based optimization framework. Considering the deployment costs, sorting plans are typically re-optimized offline on a 3-day cycle in practical operations, using the real-world parcel-sorting dataset W and bin-packing dataset G collected from the latest sorting shift. Based on the established PSDTS, we propose the DT-SMCTS framework to derive the optimal sorting plan. Specifically, the DT-based MCTS is adopted as the algorithmic framework, which is detailed in the “Methods” section. Then, we improve the expansion step in the basic DT-based MCTS framework to accelerate the convergence of MCTS through two steps: first, the DT-INLP module is developed to determine the number of grids assigned to each destination; then, based on the obtained grid quantity assignment, the GDGN module is proposed to guide the tree expansion. These modules work collaboratively to prune inferior solutions, thereby accelerating the convergence of MCTS.

To evaluate the performance of the proposed DT-SMCTS, we compare it with the following baselines.

  • Expert-Calibrated Rank Correlation Sorting (ECRCS) method56: the field-implemented sorting plan provided by SF Express, which is first generated based on the rank correlation metric computed from the portion of parcels targeted to each destination, and is then slightly adjusted by SF experts in accordance with the PDC’s manual sorting experience. Notably, this approach operates independently of the PSDTS.

  • Balanced-Assignment with the Adaptive Large Neighborhood Search (BA-ALNS): a DT-free baseline that equalizes parcel workloads across grids to prevent regional overloads, thereby reducing parcel recirculation and mitigating sorting throughput deterioration. Specifically, the BA-ALNS is derived by solving the following problem:
    minα1X∑d=1DαdPdαd−1X2,
    where αd is the number of grids assigned to destination d, Pd denotes the proportion of parcels targeted to destination d in the sorting shift, and the objective is solved using the ALNS algorithm57.
  • Basic DT-based MCTS with GDGN: the basic DT-based MCTS algorithm, which directly derives the sorting plan with GDGN, without integrating the DT-INLP module.

  • Simulation-based performance reference (SPR): we consider a relaxed CBSS setting in which bin capacity is unbounded so that grids never lock, while preserving the same parcel-arrival, parcel-sorting, and unloading logic as in the CBSS. Solving this relaxed problem with PSDTS yields a simulation-derived estimate of the maximal attainable Cavg and Cpeak as defined in Eqs. 2 and 3.

The performance of each algorithm was assessed on four representative PDCs that differ in both the geometric layout and operational scale, chosen as representative case studies from 146 real-world datasets collected at distinct PDCs. Specifically, the real-world parcel data comprise 133 (A), 201 (B), 247 (C), and 376 (D) destinations in each sorting shift, respectively. Specifically, the four PDCs contain 177 (A), 270 (B), 354 (C), and 598 (D) grids, respectively. In addition, we include the parcel recirculation count (PRC) as the additional performance metric, which refers to the number of sorted parcels that require more than one conveyor cycle. This metric is crucial as it directly quantifies the sorting congestion and thus reflects the overall sorting performance. Experiments were conducted on a MacBook Pro with Apple M2 Max chip and 32 GB unified RAM, without relying on any GPU clusters or cloud computing infrastructure. Detailed analysis regarding the computational resources and operational feasibility is provided in Supplementary Note 2.

Table 1 presents a comprehensive evaluation of the proposed DT-SMCTS, ECRCS, and basic DT-MCTS across four PDCs. For the average throughput (AT) metric, DT-SMCTS achieves improvements ranging from 3.12 to 10.56% over ECRCS and from 0.29 to 6.77% over basic DT-MCTS, highlighting its effectiveness in maintaining consistently superior sorting performance throughout the sorting shift. For the peak throughput (PT) metric, DT-SMCTS outperforms ECRCS by 4.77–7.72% and basic DT-MCTS by 0.63–4.99%, indicating its superior capability to mitigate congestion and maintain operational stability during the most intense parcel arrival period. For the overall throughput (OT), which is the weighted sum of the average and peak sorting throughput, DT-SMCTS achieves improvements ranging from 3.79 to 9.62% compared to ECRCS and 0.40–6.18% improvements over basic DT-MCTS. Additionally, DT-SMCTS reduces the PRC by 32.13–60.81% relative to ECRCS, and 0.77–54.57% compared to basic DT-MCTS, underscoring its effectiveness in reducing parcel-sorting congestion throughout the entire sorting shift.

Table 1.

Performance comparison of various algorithms across PDCs

A B
ECRCS BA-ALNS Basic DT-SMCTS SPR ECRCS BA-ALNS Basic DT-SMCTS SPR
DT-MCTS DT-MCTS
AT (num/h) 14,566.23 14,359.49 15,005.89 15,049.75 15,815.42 13,941.93 14,354.87 14,436.65 15,413.94 15,975.82
Boost (%) – −1.42 3.02 3.32 8.58 – 2.96 3.55 10.56 14.59
PT (num/h) 16,356.00 16,164.00 17,028.00 17,136.00 17,664.00 16,164.00 16,548.00 16,584.00 17,412.00 17,832.00
Boost (%) – −1.17 4.11 4.77 8.00 – 2.38 2.60 7.72 10.32
OT (num/h) 15,103.16 14,900.84 15,612.52 15,675.62 16,369.99 14,608.55 15,012.81 15,080.86 16,013.36 16,532.68
Boost (%) – −1.34 3.37 3.79 8.39 – 2.77 3.23 9.62 13.17
PRC (num) 1136 1720 777 771 0 3631 3016 2228 1700 0
Boost (%) – −51.41 31.60 32.13 – – 16.94 38.64 53.18 –
C D
ECRCS BA-ALNS Basic DT-SMCTS SPR ECRCS BA-ALNS Basic DT-SMCTS SPR
DT-MCTS DT-MCTS
AT (num/h) 15,800.35 15,234.67 15,912.99 16,293.26 16,638.29 13,872.49 14,070.13 14,239.91 14,686.67 14,820.00
Boost (%) – −3.58 0.71 3.12 5.30 – 1.42 2.65 5.87 6.83
PT (num/h) 17,064.00 17,112.00 17,760.00 18,252.00 18,360.00 15,912.00 15,948.00 16,488.00 17,052.00 17,148.00
Boost (%) – 0.28 4.08 6.96 7.59 – 0.23 3.62 7.16 7.77
OT (num/h) 16,179.44 15,797.87 16,467.09 16,880.88 17,154.80 14,484.34 14,633.49 14,913.09 15,396.27 15,518.40
Boost (%) – −2.36 1.78 4.34 6.03 – 1.03 2.96 6.30 7.14
PRC (num) 1959 2648 1137 878 0 393 357 339 154 0
Boost (%) – −35.17 41.96 55.18 – – 9.16 13.74 60.81 –

Moreover, as detailed in Table 1, relative to the BA-ALNS baseline that operates independently of the PSDTS, DT-SMCTS achieves AT gains of 4.38–7.38%, PT gains of 5.22–6.92%, and OT gains of 5.20–6.86% across PDCs, while reducing PRC by 43.63–66.84%. These results underscore the importance of the PSDTS, which not only precisely replicates the CBSS parcel-sorting mechanism and evaluates sorting throughput, but also provides adaptive capability for handling different CBSS layouts across PDCs. The integration of the PSDTS enables the DT-SMCTS framework to achieve superior parcel-sorting performance that baselines without PSDTS cannot match.

Figure 4 further illustrates the performance comparison of these algorithms across PDCs, showing the evolution of OT, AT, and PT over episodes. As observed in Fig. 4, DT-SMCTS not only exhibits a substantial initial advantage but also stabilizes at a higher throughput at earlier stages compared to basic DT-MCTS, demonstrating a more rapid convergence. This superior convergence is primarily attributed to the integration of the DT-INLP module, which provides better initial assignments. This allows the DT-SMCTS to concentrate computational efforts on the exploration of high-quality regions of the solution space early in the search process. In contrast, basic DT-MCTS relies heavily on extensive exploration to identify high-quality solutions, resulting in slower convergence, higher variance, and ultimately lower throughput within a limited time.

Fig. 4. Performance comparison among various algorithms across parcel distribution center (PDC) A, B, C, and D.

Fig. 4

a The weighted sum of average throughput with ω1 = 0.7 and peak throughput ω2 = 0.3; b the average throughput; c the peak throughput. The purple dashed line with star markers denotes the simulation-based performance reference (SPR), the orange line with triangle markers denotes the digital twin-based structured Monte Carlo tree search (DT-SMCTS), the blue line with circle markers denotes the basic digital twin-based Monte Carlo tree search (DT-MCTS), the green line with square markers denotes the Expert-Calibrated Rank Correlation Sorting (ECRCS), and the gray line with inverted-triangle markers denotes the Balanced-Assignment with the Adaptive Large Neighborhood Search (BA-ALNS). The shaded areas represent the rollout throughputs at each episode, and the highlighted solid lines mark the throughputs of the best sorting plan selected up to that episode. Source data are provided as a Source Data file.

In conclusion, the evaluation results confirm that DT-SMCTS consistently achieves higher throughput and superior convergence. Additionally, it approaches the SPR for all throughput metrics across PDCs, with only 0.90–4.84% degradation in AT, 0.56–2.99% in PT, and 0.79–4.24% in OT, underscoring its strong adaptability and effectiveness for sorting throughput maximization across diverse PDCs.

Performance evaluation of DT-SMCTS over consecutive days

In practice, PDCs typically update the sorting plan on a 3-day cycle. Accordingly, we evaluate the effectiveness of the proposed DT-SMCTS over 3 consecutive days using an identical sorting plan. Additionally, we include the first segment sorted ratio (FSSR) as a complementary metric to evaluate the sorting performance of the same PDC across consecutive days. The FSSR quantifies the proportion of parcels that are inducted and successfully sorted within their first inducted sorting segment and is defined as

PFSSR(Π)=∑x=1X∑n=1Nx1(n,x)N, 4

where the indicator function 1(n, x) is defined such that it equals 1 if parcel n in grid x is scanned only once and sorted within its first inducted sorting segment; and 0 otherwise. Nx denotes the number of sorted parcels in grid x throughout the sorting shift, and N represents the total number of parcels in the sorting shift. A higher FSSR indicates that more parcels can be successfully sorted in their first inducted sorting segment, which reduces congestion and enables more parcels to be inducted in the subsequent sorting segment, thereby improving the overall sorting performance.

To ensure temporal consistency, the first day of this consecutive-days evaluation aligns with the initial evaluation date of PDC B in the preceding experiment. As depicted in Fig. 5, over consecutive days, DT-SMCTS consistently outperforms the ECRCS, BA-ALNS, and basic DT-MCTS, and aligns closely with the SPR. Specifically, it achieves higher values in AT, PT, OT, and FSSR, along with a reduced PRC. Compared to ECRCS, it achieves average improvements of 7.83, 6.04, 7.24, and 45.72% in AT, PT, OT, and PRC, as detailed in Table 2, demonstrating its effectiveness in reducing sorting congestion and improving the overall sorting performance.

Fig. 5. Sorting time vs. throughput of various algorithms in each sorting shift over consecutive days.

Fig. 5

The purple line with star markers denotes the simulation-based performance reference (SPR), the orange line with triangle markers denotes the digital twin-based structured Monte Carlo tree search (DT-SMCTS), the blue line with circle markers denotes the basic digital twin-based Monte Carlo tree search (DT-MCTS), the gray line with inverted-triangle markers denotes the Balanced-Assignment with Adaptive Large Neighborhood Search (BA-ALNS), and the green line with square markers denotes the Expert-Calibrated Rank Correlation Sorting (ECRCS). Source data are provided as a Source Data file.

Table 2.

Detailed performance comparison of various algorithms over consecutive days

Day 1 Day 2 Day 3
ECRCS BA-ALNS Basic DT-SMCTS SPR ECRCS BA-ALNS Basic DT-SMCTS SPR ECRCS BA-ALNS Basic DT-SMCTS SPR
DT-MCTS DT-MCTS DT-MCTS
AT (num/h) 13,941.93 14,354.87 14,436.65 15,413.94 15,975.82 14,249.79 14,424.39 14,581.55 15,120.06 15,754.24 14,031.82 14,219.65 14,259.94 14,990.10 15,815.73
Boost (%) – 2.96 3.55 10.56 14.59 – 1.23 2.33 6.11 10.56 – 1.34 1.63 6.83 12.71
PT (num/h) 16,164.00 16,548.00 16,584.00 17,412.00 17,832.00 16,104.00 16,356.00 16,368.00 16,992.00 17,784.00 16,236.00 16,320.00 16,320.00 17,028.00 17,820.00
Boost (%) – 2.38 2.60 7.72 10.32 – 1.56 1.64 5.51 10.43 – 0.52 1.26 4.88 9.76
OT (num/h) 14,608.55 15,012.81 15,080.86 16,013.36 16,532.68 14,806.05 15,003.87 15,117.49 15,681.64 16,363.17 14,693.07 14,849.76 14,877.96 15,601.47 16,417.01
Boost (%) – 2.77 3.23 9.62 13.17 – 1.34 2.10 5.91 10.52 – 1.07 1.29 6.18 11.73
PRC (num) 3631 3016 2228 1700 0 4333 5686 2738 2374 0 4293 5172 3206 2628 0
Boost (%) – 16.94 38.64 53.18 – – −31.23 36.81 45.21 – – −20.48 25.32 38.78 –
FSSR (%) 72.20 75.65 74.17 80.63 84.64 70.98 74.45 73.36 79.35 83.31 71.53 74.48 73.70 79.65 83.69

Performance evaluation of DT-SMCTS in practical field tests

To assess the performance of DT-SMCTS in real-world parcel-sorting scenarios, we conducted consecutive practical field tests at a PDC in Shanghai from the 20th to the 25th of the month. During this period, ECRCS was employed from the 20th to the 22nd, while DT-SMCTS was implemented from the 23rd to the 25th. Considering the variability in parcel volumes and parcel arrivals in each sorting shift across consecutive days, we adopt the FSSR as the primary performance metric. As shown in Fig. 6, DT-SMCTS consistently outperformed ECRCS. Specifically, for the conventional ECRCS approach, the FSSR values were 78.14, 77.65, and 77.63% on days 20–22, with an average of 77.81%; DT-SMCTS achieved 81.15, 78.83, and 80.65% on days 23–25, with an average of 80.21%, achieving an average improvement of 2.4% in FSSR. This enhancement indicates more efficient sorting and a more continuous flow of parcels in practical implementations.

Fig. 6. Practical field test performance over consecutive days.

Fig. 6

The orange line with square markers denotes the proportion of parcels sorted within 0–0.5 conveyor cycles in each sorting shift, the green line with circle markers denotes the proportion of parcels sorted within 0.5–1 conveyor cycle, and the blue line with triangle markers denotes the proportion of parcels sorted within 1–1.5 conveyor cycles. Expert-Calibrated Rank Correlation Sorting (ECRCS) was deployed from day 20 to 22, achieving first segment sorted ratio (FSSR) values of 78.14%, 77.65%, and 77.63%, respectively. Digital twin-based structured Monte Carlo tree search (DT-SMCTS) was implemented from days 23 to 25, yielding FSSR values of 81.15%, 78.83%, and 80.65%, corresponding to an average improvement of 2.4%. Source data are provided as a Source Data file.

In summary, we utilize the established PSDTS and real-world parcel data to conduct comprehensive evaluations across PDCs and over consecutive days, and practical field tests to underscore the effectiveness and operational feasibility of the proposed DT-SMCTS framework. By first evaluating its performance through detailed quantitative analyses, then confirming its consistency over consecutive days, and finally verifying its real-world applicability via practical implementations, we provide strong evidence that DT-SMCTS can significantly enhance sorting performance across diverse PDCs over consecutive days.

Methods

In a CBSS, inbound parcels are routed to their assigned grids according to a sorting plan based on their downstream destinations. For a given shift, the sorting plan is formally defined as a grid-to-destination mapping Π:X→D, where X is the set of grids and D is the set of destinations. Each grid x∈X is assigned to a unique destination Π(x)∈D, while multiple grids may be assigned to the same destination. Accordingly, the sorting optimization in a CBSS aims to determine an optimal sorting plan, i.e., an optimal mapping Π.

A direct approach to determine the optimal sorting plan is to generate several sorting plans and subsequently evaluate their performances through practical implementation in the CBSS. However, this approach is costly and risky, since an inappropriate trial deployed in the CBSS may result in substantial financial losses. Another intuitive approach is to model the bin-stacking process of each grid as a bulk-service queue with state-dependent arrival rates58. However, the arrival and departure processes of each grid are determined by real-time tray occupancy and grid-locking statuses, which together induce a high-dimensional state space that is too complex to be precisely captured by tractable mathematical formulations, rendering the queueing theory-based methods inapplicable for the considered problem.

As such, we propose to adopt the DT of CBSS to evaluate the sorting performance of one candidate sorting plan, and further develop a DT-based optimization framework that facilitates simulation-driven refinement of sorting plans based on the collected real-world data. In particular, we begin by introducing three operational constraints derived from real-world operational requirements of PDCs that maintain load balance across different sorting segments59, minimize additional transportation costs, and ensure equitable grid allocation.

  • Balanced assignment constraint: for each destination d∈D, let αd denote the total number of grids assigned to d; and let αd(1) and αd(2) denote the numbers of assigned grids in sorting segments 1 and 2, respectively, i.e.,
    αd≜∑x=1XI{Π(x)=d},αd(1)≜∑x=1X0I{Π(x)=d},αd(2)≜∑x=X0+1XI{Π(x)=d}, 5
    where X0 denotes the number of grids in the first sorting segment, and the indicator function I{Π(x)=d} equals 1 if Π(x) = d, and 0 otherwise. To ensure balanced assignment of grids across the CBSS, for any destination assigned multiple grids, these grids should be assigned proportionally to the number of grids in each sorting segment, i.e.,
    αdX0X≤αd(1)≤αdX0X,αdX−X0X≤αd(2)≤αdX−X0X,∀d∈D,αd≥2, 6
    where floor function ⌊⋅⌋ returns the greatest integer less than or equal to its argument and ceiling function ⌈⋅⌉ returns the smallest integer greater than or equal to its argument.
  • Adjacent assignment constraint: during the practical sorting process, parcels might be erroneously diverted into the grids adjacent to their designated ones due to inertia or mechanical errors. These misdirected parcels can only be detected by operators at downstream PDCs, by which time they have already undergone line-haul transportation. The resulting economic and time costs of correcting such errors are strongly correlated with the geographical distance between the incorrectly assigned PDC and the intended destination, and they also degrade service quality and customer satisfaction. To minimize such costs, adjacent grids should be assigned to destinations that are geographically close to each other. Specifically, adjacent grids should be assigned primarily to destinations within the same or adjacent provinces. To rigorously formulate the above constraint, we define Mj,u = 1 if grids j and u are adjacent, and 0 otherwise. Let Vi,qsame=1 if destinations i and q are in the same province, and 0 otherwise. Similarly, let Vi,qadj=1 if destinations i and q are in adjacent provinces, and 0 otherwise. Then, it follows
    Mj,u1−VΠ(j),Π(u)same−VΠ(j),Π(u)adj=0,∀j,u∈X\Xiso, 7
    where Xiso denotes the set of grids that PDCs reserve for geographically isolated destinations, i.e., those without any neighbors in the same or an adjacent province in the sorting shift. Let Diso denote the set of these isolated destinations, and for each grid y∈Xiso, the sorting plan Π predetermines its mapping to an isolated destination, i.e., Π(y)∈Diso,∀y∈Xiso.
  • Bounded assignment constraint: each destination must be assigned at least one and no more than a given number of grids, i.e.,
    1≤αd≤γth,∀d∈D, 8
    where γth denotes the maximum number of grids assigned to each destination.

Remark: while these constraints restrict the feasible solution space and could slightly reduce the attainable throughput under a fixed simulation budget, they yield operationally compliant and more robust sorting plans by ensuring balanced assignment across sorting segments, mitigating the additional transportation costs induced by unavoidable parcel misrouting, and avoiding extreme grid assignments. In particular, although relaxing the adjacent assignment constraint may increase sorting throughput, it can simultaneously incur substantial transportation and delay costs at downstream PDCs by amplifying the consequences of inevitable mechanical misrouting. Retaining this constraint therefore provides a more robust and economically sound design and constitutes a strict operational requirement in practice (see Supplementary Note 3).

Subject to the above constraints, the objective of the sorting throughput maximization problem in CBSS is to maximize the weighted sum of the average and peak sorting throughputs defined in Eqs. 2 and 3, respectively, thereby ensuring sustained overall sorting performance throughout the sorting shift and stability during the most intense parcel arrival period. Accordingly, the sorting throughput maximization problem for the CBSS is formulated as

(P1)maxΠω1Cavg(Π)+ω2Cpeak(Π)s.t.(6),(7),(8), 9

where ω1 and ω2 ∈ (0, 1), satisfying ω1 + ω2 = 1, are the importance factors of the average and peak throughputs, respectively.

Remark: the sorting throughput maximization problem (P1) presents significant challenges primarily due to the following reasons.

  • Problem (P1) involves assigning each of the X grids to one of the D destinations, thus it is a combinatorial problem and NP-hard60, and the cardinality of its solution space is upper bounded by DX+∑k=1D−1(−1)kDk(D−k)X, as shown in Supplementary Method 2. Conventional approaches to solve such problems, such as branch and bound61, dynamic programming (DP)62 (e.g., value iteration, policy iteration, limited lookahead, and approximate DP), integer programming63, genetic algorithm64, and Monte Carlo tree search (MCTS)65, incur prohibitive computational costs, particularly when both the number of destinations D and grids X are large.

  • The practical operational constraints in Eqs. 6, 7, and 8 pose additional challenges for conventional DP or MCTS methods, as the intrinsic trial-and-error mechanism of these methods makes it almost unavoidable to select infeasible actions, leading to increased evaluations and computational overhead, significantly reducing the convergence speed66.

  • Solving problem (P1) is inherently time-consuming, since its objective function Eq. 9 can only be evaluated by using the proposed PSDTS to simulate the sorting process over the entire sorting shift. Consequently, considering the time sensitivity of sorting optimization in practical deployment, the method for solving problem (P1) has to be data-efficient, aiming to find the best feasible solution within a limited time.

Based on the established PSDTS, we propose the DT-SMCTS to derive the optimal sorting plan as depicted in Fig. 7. Specifically, DT-SMCTS utilizes DT-based MCTS as its algorithmic framework, which is detailed in Fig. 7C. It then modifies the expansion step of the DT-based MCTS through two steps: first, the DT-INLP module is developed to determine the number of grids assigned to each destination using the parcel-sorting data (as described in Fig. 7A); second, based on the obtained grid quantity assignment, the GDGN module is proposed to guide the tree expansion (as outlined in Fig. 7B). These two steps work collaboratively to prune inferior solutions, thereby accelerating the convergence of MCTS.

Fig. 7. Framework of the digital twin-based structured Monte Carlo tree search (DT-SMCTS).

Fig. 7

A Digital twin-based integer nonlinear programming (DT-INLP) module generates candidate grid quantity assignments for all destinations. Pd denotes the portion of parcels targeted to destination d during a sorting shift, and Jd(αd) measures the discrepancy between the assigned grid quantity and the demand-proportional target. For each pair of sensitivity rank k and penalty factor β, DT-INLP constructs a candidate assignment α(k, β) by sequentially assigning the remaining grids according to the largest discrepancy value. All candidates are subsequently evaluated by the parcel-sorting digital twin system (PSDTS), and the assignment that maximizes the sorting objective is selected as α*. B The geographic destination graph network (GDGN) module guides tree expansion based on the grid quantity assignment α* from the DT-INLP module. For each sorting segment e ∈ {1, 2}, graphs Ge,1 and Ge,2 are constructed to model the geographic adjacency among destinations in the same province and in adjacent provinces, respectively. X0 denotes the boundary between the two sorting segments, and x denotes the current decision stage. C The framework of the DT-based Monte Carlo tree search (MCTS) that constructs a tree representation of the sorting plan. The destination assignment of the x-th grid is determined at the x-th stage. The action at the x-th stage is denoted as ax and defined as the assigned destination of the x-th grid. The state sx at the x-th stage is the ordered sequence of mappings from the first x − 1 grids to their assigned destinations.

Basic DT-based MCTS

To address these challenges, we first reformulate the sorting throughput maximization problem (P1) as an equivalent finite-horizon MDP, which consists of the following components.

  • Stage: there are X + 1 stages in the formulated MDP. The destination assignment of the x-th grid is determined at the x-th stage, and stage X + 1 is the terminal stage.

  • Action: the action at the x-th stage is denoted as ax and defined as the assigned destination of the x-th grid.

  • State: the state at the x-th stage is the ordered sequence of mappings from the first x − 1 grids to their assigned destinations, represented as a tuple with x − 1 elements: sx ≜ (a1,a2,..., ax − 1).

  • Transition: The state at the (x + 1)-th stage is derived by appending action ax taken at stage x to the previous state sx, i.e., sx+1 ≜ (sx, ax).

  • Reward: for any intermediate stage x < X + 1, reward rx is set as 0; for the terminal stage X + 1, reward rX + 1 equals ω1Cavg(Π) + ω2Cpeak(Π) as the objective function of problem (P1), where both Cavg and Cpeak are obtained from the PSDTS.

Based on the above MDP formulation, we propose a DT-based MCTS framework to derive the optimal sorting plan, which adopts a tree structure of depth X to simulate the X decision stages of the MDP. In particular, nodes at depth x correspond to distinct values of sx + 1, while the edges connecting nodes at depth x − 1 and x correspond to different values of ax. Each node in the tree stores four attributes: s, N(s), N(s, a), and Q(s, a). s represents the state of the node; N(s) denotes the cumulative number of visits to the node s, which is initialized as 0 and increases as the tree grows; N(s, a) indicates the number of times action a has been selected at node s and also is initialized as 0; Q(s, a) represents the estimated expected reward of selecting action a at node s.

Specifically, at the initial stage, the tree contains only the root node and simulates the first stage of the MDP. Subsequently, it grows to a depth of X by recursively performing the following four steps, as depicted in Fig. 7.

Selection: if the current tree contains only the root node, we directly terminate the selection step; otherwise, we select a path from the root node to a leaf node (i.e., a node with no child nodes) based on the values N(s), N(s, a), and Q(s, a) stored in the nodes of the current tree. Specifically, we start from the root node, denoted as s1, and determine the value of a1 using upper confidence bound (UCB)67 by

ax=argmaxa∈A(sx)Q(sx,a)+u(sx,a),∀x∈{1,2,...,X}, 10

where A(sx) denotes the set of actions corresponding to all the existing edges between node sx and the nodes at depth x of the current tree, and

u(sx,a)=c2lnN(sx)N(sx,a), 11

with c being the exploration coefficient. Once a1 is determined, we reach the node at depth 1, denoted by s2, and then a2 can be determined similarly to Eqs. 10 and 11. This selection process is repeated until a leaf node is reached.

Expansion: suppose reaching the leaf node sL + 1 at depth L, where L < X, the tree is expanded by adding a child node sL + 2 to node sL + 1, corresponding to a feasible action selected at random. After the expansion step, the attributes of sL + 2 are initialized as N(sL + 2) = 0, N(sL + 2, a) = 0, and Q(sL + 2, a) = 0.

Simulation: after the expansion, nodes from depth L + 2 to depth X are selected by using a trivial rollout policy65 that randomly selects actions satisfying the constraints in Eqs. 6, 7, and 8. Then, the obtained sorting plan Π is evaluated through the PSDTS, which returns Cavg(Π) and Cpeak(Π).

Backpropagation: based on Cavg(Π) and Cpeak(Π), the attributes of each node are backwardly updated from the leaf node to the root node as

N(sx)=N(sx)+1,N(sx,ax)=N(sx,ax)+1,Q(sx,ax)=Q(sx,ax)+ω1Cavg(Π)+ω2Cpeak(Π)−Q(sx,ax)N(sx,ax), 12

for all x ∈ {1, 2,..., L + 2}.

DT-based structured MCTS

Then, we improve the expansion step in the basic MCTS framework to accelerate the convergence of MCTS through two steps: first, the DT-INLP module is developed to determine the number of grids assigned to each destination; then, based on the obtained grid quantity assignment, the GDGN module is proposed to guide the tree expansion. These modules work collaboratively to prune inferior solutions, thereby accelerating the convergence of MCTS.

Grid quantity assignment

Let Pd denote the portion of parcels targeted to destination d in the sorting shift. To optimize the sorting performance, the grid quantity assigned to destination d should be proportional to Pd, i.e., the discrepancy between αd and PdX should be minimized. Based on this intuition, we propose the following discrepancy metric

Jd(αd)=βαdαd−PdXk,ifαd=1,αdαd−PdXk,if2≤αd≤γth,0,ifαd>γth, 13

where rank k adjusts the penalty sensitivity and β serves as the penalty factor.

Utilizing this metric, the optimal grid quantity assignment α ≜ [α1,..., αD] can be approximated by solving the following problem

(P2)minα∑d=1DJd(αd)s.t.(6),(7),(8).

Notably, problem (P2) is still NP-hard with the cardinality of the solution space bounded by (X−1)!(D−1)!(X−D)!, as shown in Supplementary Method 2. To efficiently approximate its optimal solution, we introduce a heuristic DT-INLP algorithm summarized in Box 1. Specifically, given any k and β, we denote the solution to problem (P2) as α(k,β)≜[α1(k,β),α2(k,β),...,αD(k,β)]. To construct α(k, β), we adopt X − D + 1 rounds of grid quantity assignments. In the first round, each of the D destinations is initially assigned one grid. With a slight abuse of notation, we use α(k, β) to denote the assigned grid quantities to D destinations up to the current round. Hence, after the first round, α(k, β) = [1, 1,..., 1] holds. In each of the following X − D rounds, we first calculate Jd(αd(k,β)) for each destination based on Eq. 13, and select the destination d* with the largest Jd(αd(k,β)) value. Then, α(k, β) is updated by αd*(k,β)=αd*(k,β)+1. In this paper, we restrict the values of k and β to be within the empirical sets K and B. Therefore, we can derive at most ∣K∣∣B∣ candidate solutions. Each candidate is then evaluated via PSDTS, with α(k, β) replacing the grid quantity assignment in the reference sorting plan Πref (i.e., the latest sorting plan implemented in the PDC). Finally, α* is selected as the one that maximizes the objective function of problem (P1).

Box 1 DT-INLP for grid quantity assignment.

Input: Portion of parcels targeted to each destination {Pd}d=1D, reference sorting plan Πref, number of grids X, importance factors ω1, ω2, and empirical sets K,B.

Candidate generation via DT-INLP:

1: Initialize solution set S=∅;

2: For each (k,β)∈K×B

3: Initialize αd(k,β)=1, ∀d∈D;

4: For z = 1 to X − D

5: For d = 1 to D

6: Compute Jd(αd(k,β)) using Eq. 13;

7: End for

8: Select d*=argmaxdJd(αd(k,β));

9: Update αd*(k,β)=αd*(k,β)+1;

10: End for

11: S=S∪{α(k,β)};

12: End for

Evaluation via PSDTS:

13: For each candidate α(k,β)∈S

14: Evaluate Πα(k,β)ref through the PSDTS;

15: End for

16: α*=argmaxα(k,β)∈S{ω1Cavg(Πα(k,β)ref)+ω2Cpeak(Πα(k,β)ref)}.

Output: Grid quantity assignment α*

Tree expansion

After obtaining the grid quantity assignment α* from the proposed DT-INLP module, we introduce the GDGN module to specify the procedure for tree expansion while satisfying the constraints in Eqs. 6, 7, and 8. First, we construct and initialize the graphs to model the geographic adjacency among the destinations in the same province and in adjacent provinces, respectively. Then, these graphs are utilized to guide the tree expansion.

Graph initialization: for each sorting segment e ∈ {1, 2}, we construct graphs Ge,1, Ge,2. Each graph contains D vertices, each corresponding to one of the D destinations. In Ge,1, edges are added between vertices i and q if Vi,qsame=1; in Ge,2, edges are added if Vi,qadj=1. Specifically, each vertex in Ge,1 and Ge,2 stores a grid quantity attribute, which is initialized to αd(e) as given by the DT-INLP module and consistent with the balanced assignment constraint Eq. 6.

Graph-guided tree expansion: for each stage x, we first check whether x∈Xiso. For such special cases, ax is randomly assigned to a destination in Diso. For all other cases, based on the constructed graphs Ge,1 and Ge,2, the tree expansion is summarized in Box 2 and specified as follows.

  • If 1 ≤ x ≤ X0, we input ax − 1 to the GDGN and check whether the vertex corresponding to destination ax − 1 has any incident edges in G1,1: if incident edges exist, we prioritize setting ax = ax − 1 in the presence of a self-loop; if no self-loop is present, we randomly select one of the incident edges connected to ax − 1 and set the connected vertex as ax. If vertex ax − 1 has no incident edges in G1,1, we randomly select an edge incident to ax − 1 in G1,2 and set its connected vertex as ax. After the selection, we decrease the grid quantity attribute of vertex ax in each graph by 1. Once the grid quantity attribute of a vertex reaches 0, all its incident edges are removed from both G1,1 and G1,2.

  • If X0 < x, we apply the same procedure, and replace G1,1 and G1,2 by G2,1 and G2,2.

By sequentially exploring the edges in the constructed graphs, the GDGN module ensures that the selected actions satisfy the constraints in Eqs. 6, 7, and 8, effectively pruning inferior solutions, thereby accelerating convergence.

Box 2 GDGN for tree expansion.

Input: Graphs G1,1, G1,2, G2,1, G2,2, number of grids in the first sorting segment X0, and previous action ax − 1.

1: Set the sorting segment index e as 1 if 1 ≤ x ≤ X0, and as 2 otherwise;

2: If the vertex corresponding to ax − 1 has incident edges in Ge,1

3: If self-loop exists at vertex ax − 1

4: Set ax − 1 as ax;

5: Else

6: Randomly select one edge incident to ax − 1 in Ge,1 and set its connected vertex as ax;

7: End if

8: Else

9: Randomly select one edge incident to ax − 1 in Ge,2 and set its connected vertex as ax;

10: End if

11: Decrease the grid quantity attribute of vertex ax by 1 in both Ge,1 and Ge,2;

12: If the grid quantity attribute of ax = 0

13: Remove all edges incident to ax from Ge,1 and Ge,2;

14: End if

Output: Selected action ax.

Overall DT-SMCTS framework

Now, we summarize the complete proposed DT-SMCTS framework. We first provide a detailed timeline of how and how often simulations are carried out using the PSDTS within the integrated DT-SMCTS optimization framework. We then describe the DT-SMCTS procedure in detail, clarifying how data flow is handled in each update and how the sorting plans are updated. Finally, we discuss the deployment challenges and limitations of the proposed framework.

Timeline in CBSS: the CBSS timeline can be divided into two parts: the online phase and the offline phase. The parcel-sorting shift corresponds to the online phase, during which the IIoT platform acquires and uploads parcel-sorting data W and bin-packing data G. At the end of the sorting shift, the online phase terminates, and W and G have been fully uploaded to the cloud. Since a sorting shift occurs daily, the online phase recurs once per day. The interval between two successive sorting shifts constitutes the offline phase, during which the sorting plan is updated and then deployed to the CBSS. Specifically, plan updates are performed once every three offline phases (i.e., every 3 days). In each updating offline phase, DT-SMCTS aggregates the uploaded data from the most recent three shifts and invokes the PSDTS to perform simulation-based sorting optimization, thereby producing the updated sorting plan. Notably, the online and offline phases of CBSS correspond, respectively, to the data-acquisition and plan-update phases of the DT-SMCTS framework. Accordingly, DT-SMCTS operates as a macroscopic online framework, in which data from the most recent 3 days are continually collected and leveraged to update the sorting plan.

Data flow and plan update in DT-SMCTS: after each parcel-sorting shift, parcel-sorting data W and bin-packing data G are uploaded to the cloud via the IIoT platform. Once these data have been collected over three consecutive sorting shifts (i.e., 3 days), DT-SMCTS triggers a sorting plan update as detailed in Box 3 and in Fig. 7.

During each update cycle, the PSDTS first uses parcel-sorting data W to reset and calibrate the virtual parcel-generation module and uses bin-packing data G to update the maximum-capacity and bin-packing time parameters of the virtual grid module, so that the PSDTS reflects the most recent parcel-arrival and bin-packing characteristics. The DT-INLP module in DT-SMCTS also takes the new parcel-sorting data W as input and uses it to compute the empirical distribution of parcel volumes over parcel destinations. Based on this distribution, DT-INLP determines an appropriate number of grids to allocate to each destination. Next, leveraging this grid-quantity information, the GDGN module in DT-SMCTS produces a grid-selection rule, which serves as the expansion policy for MCTS and helps ensure both high search efficiency and high-quality solutions. Finally, the MCTS component in DT-SMCTS executes its standard four-step iterations (i.e., selection, expansion, simulation, and backpropagation). In each iteration, a candidate sorting plan is evaluated by the PSDTS, and the evaluation result is used to update the node values in MCTS. Once the iterations terminate, we obtain an updated sorting plan.

Notably, in each update cycle, the four-step MCTS procedure is not initialized from a fully stochastic sorting plan generated from scratch. Instead, we keep approximately 80% of the grid-to-destination mappings from the previous sorting plan (obtained 3 days earlier) and allow DT-SMCTS to rearrange only about 20% of the mappings. This design is motivated by an empirical trade-off observed in real-world parcel-sorting data from SF Express, as detailed in Supplementary Note 1. Selecting approximately the top 20% destinations by parcel volume already covers a substantial fraction of both the total parcel volume and demand drift, where the latter is quantified by the variance of destination-share fluctuations within the window. In contrast, increasing the fraction of destinations updated in each cycle further improves coverage but incurs higher computational cost. Thus, there is no need to substantially modify their associated grid-to-destination mappings, and the resulting partial update is computationally more efficient.

Deployment challenges: the deployment of our proposed method involves several practical considerations, including packer training, hardware integration with legacy systems, and coordination with downstream systems.

First, packers in PDCs are responsible for retrieving and affixing printed labels to packed bins. In this study, we assume that all packers are well-trained, so the total bin-packing time is calculated as the sum of the base packing time for replacing the bin and the label-fetching time, which depends on the distance between the grid and the nearest label printer. However, if the sorting plan is updated more frequently (e.g., every 2 days or less), packers may not receive sufficient training, which could reduce efficiency and slightly increase label-fetching times. To address this challenge, it is essential to adjust the label-fetching time simulated in our model according to the sorting plan’s update frequency, rather than treating it as a constant function of the grid-to-printer distance.

Second, DT-SMCTS relies on the IIoT platform for sensing and storing specific parcel data, which introduces system-level requirements. As detailed in the Results and Discussion section, the IIoT platform must collect the following data: (i) delivery timestamp with millisecond resolution, (ii) index of the induction station, (iii) scanning error code, (iv) index of the parcel scanner, and (v) parcel destination. For PDCs with legacy systems, adopting our proposed method requires updating the system to enable the sensing and storage of these data. Specifically, this may involve upgrading hardware components, such as scanners and sensors, as well as modifying communication protocols to ensure seamless data flow between the IIoT devices and the central system. These updates are essential for the successful adoption of our method in PDCs.

Finally, the deployment of DT-SMCTS will also impact downstream systems, such as truck scheduling. Specifically, DT-SMCTS assigns destinations to grids and updates these assignments every 3 days. Consequently, downstream systems must be informed of these updates on a three-day cycle to make necessary schedule adjustments, ensuring the overall efficiency of the logistics network.

Limitations: the proposed DT-SMCTS is subject to several limitations, including data dependency, computational complexity, and limited adaptability.

First, the establishment of the PSDTS requires key operational data from the PDCs, such as the positions of key sorting devices, conveyor travel speeds, bin capacity, and bin packing times. Additionally, the DT-SMCTS framework relies on historical parcel data collected by IIoT systems. Any inaccessibility of these data or discrepancies in their quality may adversely affect the performance of the proposed method.

Second, numerical results show that our method performs well for PDCs with up to 600 grids, which is currently considered a large PSS by SF Express. However, as the number of grids continues to increase over time, the computational demands and processing times of DT-SMCTS will rise significantly due to its tree-search nature. Should the sorting plan generation time exceed the update period, the effectiveness of our method would be compromised.

Finally, the proposed DT-SMCTS is developed for the CBSS in PDCs, and its adaptability depends on the underlying sorting mechanism of the PSS. For other conveyor-based sorting systems, the overall PSDTS pipeline can be largely transferred with system-specific re-parameterization and limited mechanism-level customization. In particular, the IIoT platform can be reused with minor adjustments to sensor placement and data interfaces, and the virtual parcel generation module remains directly applicable as long as parcel-level event logs (e.g., induction timestamps) are available. Besides, the sorting simulation module and visualization platform are also reusable, while the CBSS mechanism module primarily requires customization to match the target system’s conveyor layout, tray and chute configurations, scanning positions, and grid locking and packing rules.

Meanwhile, extending PSDTS to AGV-based sorting systems requires a more substantial redesign of the mechanism module to capture AGV motion, routing, dispatching, and interaction-induced congestion, together with corresponding adjustments of the IIoT instrumentation to record AGV trajectories and key operational events for DT calibration. Nevertheless, the virtual parcel generation module remains applicable, and the sorting simulation module and the visualization platform can be retained after being adapted to interface with the redesigned mechanism module. Importantly, for both the conveyor-based and AGV-based sorting systems, the underlying grid-to-destination assignment sorting optimization problem remains well defined, and DT-SMCTS can be applied as the DT-based optimization framework once the system-specific DT simulator is available for evaluating candidate plans.

Box 3 Overall DT-SMCTS framework.

Input: Portion of parcels targeted to each destination {Pd}d=1D, number of grids X, importance factors ω1, ω2, and terminating iterations threshold Hth.

DT-INLP module construction:

1: Determine the grid quantity assignment α* based on {Pd}d=1D according to Box 1;

GDGN module construction:

2: For each sorting segment e = 1, 2, construct graphs Ge,1,Ge,2 based on the geographic adjacency and α*;

Sorting plan derivation via DT-SMCTS:

3: Denote Π* as the currently best sorting plan and initialize its throughput performance as R* = − ∞;

4: Let current_episode = 0;

5: While current_episode < Hth

6: Begin from the root node s1;

Selection:

7: While the node at the current depth is not the leaf node

8: Select the node at the next depth according to Eqs. 10 and 11;

9: End while

10: Denote the depth of the reached leaf node as L;

Expansion:

11: Input aL to Ge,1,Ge,2, and derive aL + 1 according to Box 2;

Simulation:

12: Randomly select one action for each depth from L + 2 to X that satisfies the constraints in Eqs. 6, 7, and 8,

thereby obtaining the sorting plan Π;

13: Send Π to the PSDTS and acquire Cavg(Π) and Cpeak(Π);

Backpropagation:

14: Update the attributes of the nodes from sL + 2 to s1 using Eq. 12;

15: If ω1Cavg(Π) + ω2 Cpeak(Π) > R*

16: Π* = Π, R* = ω1 Cavg(Π) + ω2 Cpeak(Π);

17: End if

18: current_episode = current_episode + 1;

19: End while

Output: Sorting plan Π*.

Supplementary information

41467_2026_76915_MOESM3_ESM.pdf (66KB, pdf)

Description of Additional Supplementary Files

Supplementary Movie 1 (26.5MB, mp4)

Source data

Source Data (2.1MB, zip)

Author contributions

R. Li, W. Zhang, and C. Huang conceived the project. R. Li, W. Zhang, Y. Tian, and C. Huang wrote the manuscript. R. Li, W. Zhang, and C. Huang performed the modeling, algorithm design, and DT-based numerical experiments. W. Zhang, R. Liu, L. Liao, and X. Song supported the industrial implementation, data acquisition, and field tests. Y. Tian, R. Liu, B. Huang, L. Liao, and C. Huang contributed to data analysis and visualization. X. Qin, H. Zhang, S. Cui, and C. Huang provided critical revisions and supervised the study. All authors reviewed and approved the final manuscript. R. Li and W. Zhang contributed equally to this work and are listed alphabetically by last name. Both authors reserve the right to list their name first in their resumes.

Peer review

Peer review information

Nature Communications thanks the anonymous reviewer(s) for their contribution to the peer review of this work. A peer review file is available.

Funding

The authors disclose support for the research of this work from the Shenzhen High-Tech Zone Development Special Program Innovation Platform, under the auspices of the Nanshan District Science, Technology and Innovation Bureau of Shenzhen, in Shenzhen High-Tech Zone Project with Grant No. KC2022KCCX0041; the Basic Research Project No. HZQB-KCZYZ-2021067 of Hetao Shenzhen-HK S & T Cooperation Zone; the Guangdong Provincial Key Laboratory of Future Networks of Intelligence (Grant No. 2022B1212010001); and the Shenzhen Key Laboratory of Big Data and Artificial Intelligence (Grant No. SYSPG20241211173853027).

Data availability

The anonymized data associated with this study have been deposited in the Zenodo repository68 under https://doi.org/10.5281/zenodo.21319488. These data include the anonymized proportions of parcels destined for each destination during the sorting shifts at the four parcel distribution centers reported in the paper, and the anonymized proportions of parcels destined for each destination over 8 consecutive days. The parcel-related raw operational data are available under restricted access because they contain proprietary and commercially sensitive information owned by SF Express and are subject to strict confidentiality restrictions under the data use agreement with the data provider. Access can be obtained by contacting songxiang1@sf-express.com. Requests will be reviewed by the corresponding author and SF Express within 60 days. Access may be granted for non-commercial research purposes and for verification of the results reported in this study, subject to approval by SF Express and completion of a data use agreement. Once access has been granted, the data will be available for an initial period of 1 month, renewable upon approval. Source data are provided with this paper.

Code availability

The source code for the proposed DT-SMCTS framework has been deposited in a GitHub repository and archived in Zenodo68 under https://doi.org/10.5281/zenodo.21319488. The source code for the PSDTS is proprietary to SF Express and is available under restricted access because it contains proprietary and commercially sensitive implementation details of the company’s operational system and is subject to confidentiality restrictions under the data use agreement with the data provider. Access to the PSDTS source code may be requested by contacting songxiang1@sf-express.com and is subject to approval by the corresponding author and SF Express and completion of a confidentiality agreement.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

These authors contributed equally: Ran Li, Wei Zhang.

Supplementary information

The online version contains supplementary material available at https://doi.org/10.1038/s41467-026-76915-4.

References

  • 1.Winkelhaus, S. & Grosse, E. H. Logistics 4.0: a systematic review towards a new logistics system. Int. J. Prod. Res.58, 18–43 (2020). [Google Scholar]
  • 2.Nam, H.-S. & Song, D.-W. Defining maritime logistics hub and its implication for container port. Marit. Policy Manag.38, 269–292 (2011). [Google Scholar]
  • 3.Droździel, P., Wińska, M., Madleňák, R. & Szumski, P. Optimization of the post logistics network and location of the local distribution center in selected area of the Lublin province. Procedia Eng.192, 130–135 (2017). [Google Scholar]
  • 4.Higginson, J. K. & Bookbinder, J. H. Distribution centres in supply chain operations. in (eds. Langevin, A. & Riopel, D.) Logistics Systems: Design and Optimization, 67–91 (Springer, 2005).
  • 5.Frazelle, E.World-Class Warehousing and Material Handling (McGraw-Hill, 2016).
  • 6.Brandimarte, P. & Zotteri, G. Network design and transportation. in Introduction to Distribution Logistics, 53–90 (John Wiley & Sons, 2007).
  • 7.Liu, Y., Tao, X., Li, X., Colombo, A. W. & Hu, S. Artificial intelligence in smart logistics cyber-physical systems: state-of-the-arts and potential applications. IEEE Trans. Ind. Cyber Phys. Syst.1, 1–20 (2023). [Google Scholar]
  • 8.Xu, X., Chen, Y., Zou, B. & Gong, Y. Assignment of parcels to loading stations in robotic sorting systems. Transp. Res. Part E Logist. Transp. Rev.164, 102808 (2022). [Google Scholar]
  • 9.Mukherjee, T., Sangal, I., Sarkar, B. & Almaamari, Q. A. Logistic models to minimize the material handling cost within a cross-dock. Math. Biosci. Eng.20, 3099–3119 (2023). [DOI] [PubMed] [Google Scholar]
  • 10.Khir, R., Erera, A. & Toriello, A. Robust planning of sorting operations in express delivery systems. Eur. J. Oper. Res.306, 615–631 (2023). [Google Scholar]
  • 11.Miao, Z., Cai, S. & Xu, D. Applying an adaptive tabu search algorithm to optimize truck-dock assignment in the crossdock management system. Expert Syst. Appl.41, 16–22 (2014). [Google Scholar]
  • 12.Chen, J. C., Anggrahini, D. & Chen, T.-L. Current research and future challenges in parcel hub towards logistics 4.0: a systematic literature review from a decision-making perspective. Int. J. Prod. Res.62, 8562–8593 (2024). [Google Scholar]
  • 13.Yang, K. K., Balakrishnan, J. & Cheng, C. H. An analysis of factors affecting cross docking operations. J. Bus. Logist.31, 121–148 (2010). [Google Scholar]
  • 14.Stephan, K. & Boysen, N. Vis-à-vis vs. mixed dock door assignment: a comparison of different cross dock layouts. Oper. Manag. Res.4, 150–163 (2011). [Google Scholar]
  • 15.McGuire, P. M. Belt conveyors. in (ed. Badiru, A.) Conveyors: Application, Selection, and Integration, 44–80 (CRC Press, 2023).
  • 16.Khir, R., Erera, A. & Toriello, A. Two-stage sort planning for express parcel delivery. IISE Trans.53, 1353–1368 (2021). [Google Scholar]
  • 17.Novoa, L. J., Jarrah, A. I. & Morton, D. P. Flow balancing with uncertain demand for automated package sorting centers. Transp. Sci.52, 210–227 (2018). [Google Scholar]
  • 18.He, Z., Aggarwal, V. & Nof, S. Y. Differentiated service policy in smart warehouse automation. Int. J. Prod. Res.56, 6956–6970 (2018). [Google Scholar]
  • 19.Van Der Gaast, J. P., De Koster, R. B. & Adan, I. J. Conveyor merges in zone picking systems: a tractable and accurate approximate model. Transp. Sci.52, 1428–1443 (2018). [Google Scholar]
  • 20.Van Der Gaast, J. P., De Koster, R. B., Adan, I. J. & Resing, J. A. Capacity analysis of sequential zone picking systems. Oper. Res.68, 161–179 (2020). [Google Scholar]
  • 21.Osorio, C. & Bierlaire, M. An analytic finite capacity queueing network model capturing the propagation of congestion and blocking. Eur. J. Oper. Res.196, 996–1007 (2009). [Google Scholar]
  • 22.Worthington, D. Reflections on queue modelling from the last 50 years. J. Oper. Res. Soc.60, S83–S92 (2009). [Google Scholar]
  • 23.Gosavi, A. Simulation-Based Optimization (Springer, 2015).
  • 24.McWilliams, D. L., Stanfield, P. M. & Geiger, C. D. The parcel hub scheduling problem: a simulation-based solution approach. Comput. Ind. Eng.49, 393–412 (2005). [Google Scholar]
  • 25.Fedtke, S. & Boysen, N. Layout planning of sortation conveyors in parcel distribution centers. Transp. Sci.51, 3–18 (2017). [Google Scholar]
  • 26.Chen, T.-L., Chen, J. C., Huang, C.-F. & Chang, P.-C. Solving the layout design problem by simulation-optimization approach—a case study on a sortation conveyor system. Simul. Modell. Pract. Theory106, 102192 (2021). [Google Scholar]
  • 27.Bangsow, S. Tecnomatix Plant Simulation (Springer, 2020).
  • 28.Boysen, N., Fedtke, S. & Weidinger, F. Truck scheduling in the postal service industry. Transp. Sci.51, 723–736 (2017). [Google Scholar]
  • 29.Boysen, N. & Fliedner, M. Cross dock scheduling: classification, literature review and research agenda. Omega38, 413–422 (2010). [Google Scholar]
  • 30.Van Belle, J., Valckenaers, P. & Cattrysse, D. Cross-docking: state of the art. Omega40, 827–846 (2012). [Google Scholar]
  • 31.Grieves, M. Digital twin: manufacturing excellence through virtual factory replication. White Paper1, 1–7 (Michael W. Grieves, LLC, 2014).
  • 32.Lu, Y. et al. Digital twin-driven smart manufacturing: connotation, reference model, applications and research issues. Robot. Comput. Integr. Manuf.61, 101837 (2020). [Google Scholar]
  • 33.Shafto, M. et al. Draft modeling, simulation, information technology & processing roadmap. Technol. Area. 11, 1–32 (2010). [Google Scholar]
  • 34.Korth, B., Schwede, C. & Zajac, M. Simulation-ready digital twin for realtime management of logistics systems. In Proc. 2018 IEEE International Conference on Big Data (Big Data) 4194–4201 (IEEE, 2018).
  • 35.Li, J. & Wang, J. Digital twin-driven management strategies for logistics transportation systems. Sci. Rep.15, 12186 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Wu, W. et al. Internet of everything and digital twin enabled service platform for cold chain logistics. J. Ind. Inf. Integr.33, 100443 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Wan, Z. et al. AlphaZero-like tree-search can guide large language model decoding and training. In Proc. International Conference on Machine Learning235, 49890-49920 (PMLR, 2024).
  • 38.Xie, Y. et al. Monte Carlo tree search boosts reasoning via iterative preference learning. In Proc. NeurIPS 2024 Workshop on System-2 Reasoning at Scale (2024).
  • 39.Park, S., Liu, X., Gong, Y. & Choi, E. Ensembling large language models with process reward-guided tree search for better complex reasoning. In Proc. 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technology (Vol. 1: Long Papers), 10256–10277 (ACL, 2025).
  • 40.Song, X., Zhang, S. & Yu, T. ReKG-MCTS: reinforcing LLM reasoning on knowledge graphs via training-free Monte Carlo tree search. In Proc. Findings of the Association for Computational Linguistics: ACL 2025, 9288–9306 (ACL, 2025).
  • 41.Rivière, B., Lathrop, J. & Chung, S.-J. Monte Carlo tree search with spectral expansion for planning with dynamical systems. Sci. Robot. 9,eado1010 (2024). [DOI] [PubMed]
  • 42.Kim, B., Lee, K., Lim, S., Kaelbling, L. & Lozano-Pérez, T. Monte Carlo tree search in continuous spaces using Voronoi optimistic optimization with regret bounds. In Proc. AAAI Conference on Artificial Intelligence Vol. 34, 9916–9924 (AAAI, 2020).
  • 43.Chen, W. & Liu, L. Pareto Monte Carlo tree search for multi-objective informative planning. In Proc. Robotics: Science and Systems XV (2019).
  • 44.Yang, Y. et al. Enabling target-aware molecule generation to follow multi objectives with Pareto MCTS. Commun. Biol.7, 1074 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Southiratn, T., Koo, B., Lu, Y. & Kim, S. CombiMOTS: combinatorial multi-objective tree search for dual-target molecule generation. In Proc. 42nd International Conference on Machine Learning Vol. 267, 56650–56691 (PMLR, 2025).
  • 46.Blackshaw, T. M., Davies, J. C., Spoerer, K. T. & Hirst, J. D. Enhancing Monte Carlo tree search for retrosynthesis. J. Chem. Inf. Model.65, 6537–6546 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Lai, H. et al. Multi-objective synthesis planning by means of monte carlo tree search. Artif. Intell. Life Sci.7, 100130 (2025). [Google Scholar]
  • 48.Hong, S., Zhuo, H. H., Jin, K., Shao, G. & Zhou, Z. Retrosynthetic planning with experience-guided Monte Carlo tree search. Commun. Chem.6, 120 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Zhao, D., Tu, S. & Xu, L. Efficient retrosynthetic planning with MCTS exploration enhanced A* search. Commun. Chem.7, 52 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50.Genheden, S. et al. AiZynthFinder: a fast, robust and flexible open-source software for retrosynthetic planning. J. Cheminform.12, 70 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.Banks, A., Briggs, E., Borgendale, K. & Gupta, R. MQTT Version 5.0. OASIS Standard http://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html (2019).
  • 52.Fielding, R. T., Nottingham, M. & Reschke, J. HTTP Semantics. RFC 9110 https://www.rfc-editor.org/info/rfc9110 (2022).
  • 53.Shelby, Z., Hartke, K. & Bormann, C. The Constrained Application Protocol (CoAP). RFC 7252 https://www.rfc-editor.org/info/rfc7252 (2014).
  • 54.Rescorla, E. HTTP Over TLS. RFC 2818 https://www.rfc-editor.org/info/rfc2818 (2000).
  • 55.Epic Games. Unreal Engine 5. Epic Games. Accessed 1 April 2022, https://www.unrealengine.com/ (2022).
  • 56.Kendall, M. G. & Gibbons, J. D. Rank Correlation Methods (Oxford University Press, 1990).
  • 57.Ropke, S. & Pisinger, D. An adaptive large neighborhood search heuristic for the pickup and delivery problem with time windows. Transp. Sci.40, 455–472 (2006). [Google Scholar]
  • 58.Bailey, N. T. On queueing processes with bulk service. J. R. Statist. Soc.16, 80–87 (1954). [Google Scholar]
  • 59.Johnson, M. E. & Meller, R. D. Performance analysis of split-case sorting systems. Manuf. Serv. Oper. Manag.4, 258–274 (2002). [Google Scholar]
  • 60.Wolsey, L. A. & Nemhauser, G. L. Computational complexity. in Integer and Combinatorial Optimization, 114–145 (John Wiley & Sons, 1999).
  • 61.Lawler, E. L. & Wood, D. E. Branch-and-bound methods: a survey. Oper. Res.14, 699–719 (1966). [Google Scholar]
  • 62.Bertsekas, D. Dynamic Programming and Optimal Control (Athena Scientific, 2012).
  • 63.Wolsey, L. A. Integer Programming (John Wiley & Sons, 2020).
  • 64.Mitchell, M. An Introduction to Genetic Algorithms (MIT Press, 1998).
  • 65.Sutton, R. S. & Barto, A. G. Planning and learning with tabular methods. in Reinforcement Learning: An Introduction, 185–188 (MIT Press, 2018).
  • 66.Ye, D. et al. Mastering complex control in MOBA games with deep reinforcement learning. In Proc. AAAI Conference on Artificial Intelligence Vol. 34, 6672–6679 (Association for the Advancement of Artificial Intelligence, 2020).
  • 67.Kocsis, L. & Szepesvári, C. Bandit based Monte-Carlo planning. In Proc. European Conference on Machine Learning 282–293 (Springer, 2006).
  • 68.Zhang, W. et al. Digital twin based sorting optimization for parcel distribution centers in logistics networks. DT-SMCTS. Zenodo, 10.5281/zenodo.21319488 (2026). [DOI] [PubMed]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

41467_2026_76915_MOESM3_ESM.pdf (66KB, pdf)

Description of Additional Supplementary Files

Supplementary Movie 1 (26.5MB, mp4)
Source Data (2.1MB, zip)

Data Availability Statement

The anonymized data associated with this study have been deposited in the Zenodo repository68 under https://doi.org/10.5281/zenodo.21319488. These data include the anonymized proportions of parcels destined for each destination during the sorting shifts at the four parcel distribution centers reported in the paper, and the anonymized proportions of parcels destined for each destination over 8 consecutive days. The parcel-related raw operational data are available under restricted access because they contain proprietary and commercially sensitive information owned by SF Express and are subject to strict confidentiality restrictions under the data use agreement with the data provider. Access can be obtained by contacting songxiang1@sf-express.com. Requests will be reviewed by the corresponding author and SF Express within 60 days. Access may be granted for non-commercial research purposes and for verification of the results reported in this study, subject to approval by SF Express and completion of a data use agreement. Once access has been granted, the data will be available for an initial period of 1 month, renewable upon approval. Source data are provided with this paper.

The source code for the proposed DT-SMCTS framework has been deposited in a GitHub repository and archived in Zenodo68 under https://doi.org/10.5281/zenodo.21319488. The source code for the PSDTS is proprietary to SF Express and is available under restricted access because it contains proprietary and commercially sensitive implementation details of the company’s operational system and is subject to confidentiality restrictions under the data use agreement with the data provider. Access to the PSDTS source code may be requested by contacting songxiang1@sf-express.com and is subject to approval by the corresponding author and SF Express and completion of a confidentiality agreement.


Articles from Nature Communications are provided here courtesy of Nature Publishing Group

RESOURCES