Abstract
Autonomous driving is a key technology towards a brighter, more sustainable future. To enable such a future, it is necessary to utilize autonomous vehicles in shared mobility models. However, to evaluate, whether two or more route requests have the potential for a shared ride, is a compute-intensive task, if done by rerouting. In this work, we propose the Dynamic Longest Common Subsequences algorithm for fast and cost-efficient comparison of two routes for their compatibility, dynamically only incorporating parts of the routes which are suited for a shared trip. Based on this, one can also estimate, how many autonomous vehicles might be necessary to fulfill the local mobility demands. This can help providers to estimate the necessary fleet sizes, policymakers to better understand mobility patterns and cities to scale necessary infrastructure.
Introduction
As autonomous vehicles (AVs) move toward integration into public transport, "shared mobility"—pooling multiple passengers in one vehicle—becomes essential for sustainability. However, matching passengers is a massive computational challenge. The gold standard for checking compatibility is calculating the exact "detour" a vehicle must take to pick up a second passenger. Performing this for every possible pair of requests requires a routing engine to perform constant re-calculations, which is too slow for real-time, large-scale applications.
Existing similarity metrics like the Fréchet distance or standard Longest Common Subsequence (LCSS) often fall short. They either compare routes in their entirety, ignoring partial overlaps, or lack a temporal understanding, potentially matching points that are geographically close but occur at different times in the journey. The Dynamic Longest Common Subsequences (DLCSS) algorithm offers a fast, parameter-free alternative. By acting as a high-performance "pre-filter," it can reject nearly 90% of unsuitable route pairs without expensive rerouting, maintaining a zero false-negative rate.
Methodology
The authors propose DLCSS, a dynamic and parameter-free evolution of the LCSS algorithm. The core innovation is a two-stage minimization approach:
- Spatial Matching: For every coordinate in a requested route ($R$), the algorithm identifies the closest coordinate on the autonomous vehicle's route ($A$).
- Temporal Constraint: Unlike standard spatial matching, DLCSS introduces a
StartJvariable. This ensures that the algorithm only considers points that lie ahead of the previously matched segment, preventing physically impossible "backtracking" matches.
To turn these matched segments into a decision, the authors developed a similarity metric, $sm_{DLCSS}$. This score factors in the percentage of the route that overlaps and the sum of the distances between the matched line segments. A lower $sm_{DLCSS}$ score indicates a better match. If a direct match is poor, the algorithm can also evaluate "meeting points"—locations where a passenger might walk to join the AV's route.
Experimental Setup
The researchers evaluated their approach using two primary sources:
- Aachen Area Dataset: A collection of 180 routes in Aachen, Germany, generated from publicly available data.
- Artificial Scenarios: Nine specific scenarios ranging from simple shared starts to complex "meeting and separation" points to prove the algorithm's versatility.
Key Insights and Results
DLCSS is designed to be parameter-free, adapting to specific route geometries without manual distance threshold tuning. By enforcing a forward-moving sequence, it avoids the "geographical trap" of matching routes that pass through the same intersection at opposite times.
The algorithm was tested against a baseline of actual detour calculations (assuming a 50% detour limit):
- High Rejection Rate: Using a specific threshold ($sm_{DLCSS} = 20k$), the algorithm successfully rejected 87.2% of the entries in the dataset.
- Safety and Accuracy: The results showed 47.82% true positives and, crucially, zero false negatives. This ensures no valid ride-sharing opportunity is accidentally discarded.
- Efficiency: Expensive routing-based comparisons were only necessary for the remaining 12.8% of the data, significantly reducing the computational workload.
Conclusion and Future Work
While DLCSS is highly effective as a pre-filter, it currently focuses on two-passenger matching. Future work includes detailing "greedy merge" approaches for three or more passengers and refining the $sm_{DLCSS}$ metric for greater stability in complex urban environments. While the algorithm is fast, further benchmarking is needed for city-scale deployments involving thousands of simultaneous requests.
Summary updated