← All technology

Technology / 01 / Route prediction & shortest-path research

Route prediction on directed graphs.

UZUSKE ranks routes from a start node to a destination using historical transitions, edge weights, and recent observations. The broader research compares candidate-generation methods with learned route selection.

Local evaluation build + research framework

01 / The question

How are routes ranked?

A directed graph specifies which moves are allowed. Historical traces count how often each transition occurred. The route model combines these inputs to rank paths between a start and a destination.

Keep three layers distinct: the runnable UZUSKE evaluation build, the earlier aircraft next-node prototype, and the broader candidate-generation and learned-selection framework.

02 / Inputs

A graph, a history, and a destination.

  • A directed graph with positive structural edge priors.
  • A start node and destination contained in the graph.
  • Historical traces: ordered sequences of visited nodes.
  • Recent observations that can strengthen matching transitions.
  • Explicit search limits: retained Top-K, beam width, and maximum hops.

In UZUSKE 1.0, larger weights mean stronger structural preference. Converting distance, travel time, or resistance into a prior requires a deliberate modelling choice.

03 / Calculation

Calculate transition scores and search routes.

For each transition, the local build blends a smoothed empirical frequency with the edge's normalized structural prior. A decaying recency bonus then rewards recently observed transitions.

Loop-free beam search expands promising routes within a fixed budget. Scores add logarithms of transition values along a path. The retained Top-K scores are exponentiated relative to their maximum and normalized to sum to one.

Inspect the mathematics
base(u,v) = 0.72 × (count(u,v) + 1)
                    / (outgoing_count(u) + outdegree(u))
          + 0.28 × weight(u,v) / Σ outgoing_weights(u)

bonus(u,v) = 1 + Σmatching observations 0.18 × exp(−0.55 × age)
score(route) = Σedges log(base × bonus)
share(i) = exp(score(i) − max_score) / Σretained exp(score − max_score)

Smoothing gives unseen historical transitions a nonzero contribution. The recency adjustment is a scoring bonus, so it does not constrain candidates to an observed prefix. Defaults: K=4, beam width=48, maximum hops=8.

04 / Outputs

Return the ranked route candidates.

Return each route's node sequence, rank, log score, and relative share among retained candidates. The bundled example ranks A → C → F → J → N first with a 36.2938% share across the Top-4.

Changing K changes the normalization. Changing an observation or structural prior can change the ranking. These shares describe the candidate set; independent calibration would be required to interpret them as real-world confidence levels.

Inspect the downloadable model ↗

05 / Broader framework

Separate path generation from path selection.

The broader research first generates feasible candidates using minimum-cost paths, loopless K-path methods, transition history, node frequency, destination progress, context-dependent resistance, or stochastic proposals. A learned selector then compares features for those candidates.

  1. Graph & contextConnectivity, observations, restrictions, and resistance definitions.
  2. Feasible candidatesSeveral ways to propose valid next moves or routes.
  3. Candidate featuresHistory, cost, frequency, progress, and context.
  4. Learned selectorCompare candidates within a precisely defined prediction task.
  5. Ranking & uncertaintyInspect alternatives, calibration, and abstention.

Terrain and logistics resistance are research extensions requiring their own measurement and validation. In the earlier aircraft implementation, BigQuery stored candidate features, NumPy and pandas handled numerical processing, and a neural selector used one 16-unit ReLU hidden layer with a sigmoid output. One Monte Carlo feature in the code was a proxy.

Read the framework and evidence ↗

06 / Interactive RPA lab

Run the specification-aligned RPA laboratory.

The dedicated RPA workspace keeps the active destination hidden by default and exposes Bayesian destination inference, the documented 18-feature candidate vector, calibrated conditional-logit ranking, conformal uncertainty, path-size-corrected beam forecasting, ETA quantiles, domain adapters, controlled feedback and a separate live-telemetry evidence layer.

Live device location is not treated as proof of real-world predictive accuracy. Real-map scoring requires a compatible geographic graph and held-out map-matched outcomes.

Open the full RPA laboratory ↗

07 / Evidence & evaluation

The earlier aircraft paper reports a separate next-node experiment. Its sample size and reported validation result appear together on the historical evidence page. That experiment has not been independently reproduced here.

Evaluation definitions, rather than additional measured results
MeasureQuestion it answers
Candidate recallDid candidate generation include the observed answer?
Top-K coverageWas the observed answer in the K highest-ranked outputs?
Next-node accuracyDid the highest-ranked next node match the next observation?
Full-route agreementDid the predicted sequence match the complete observed route?
Geometric errorHow far apart were predicted and observed positions?
Brier scoreHow close were forecast probabilities to observed binary outcomes?
CalibrationDid events occur as often as their assigned probability suggested?

Interactive calculation

Change the inputs.
Compare the output.

Interactive evaluationCalculated in your browser
UZUSKE directed route network14 nodes and 29 directed edges. Rank 1: A to C to F to J to N, 36.2938 percent relative share. Rank 2: A to D to G to K to N, 24.8425 percent relative share. Rank 3: A to B to E to H to N, 21.3910 percent relative share. Rank 4: A to D to G to L to N, 17.4727 percent relative share.ABCDEFGHIJKLMNSTART: ADESTINATION: N
Rank / candidate routeRelative share

Shares are normalized over the returned Top-4 routes. They change with K and represent this candidate set. A larger edge prior gives an edge more structural weight.

14 nodes · 29 directed edges · beam width 48 · maximum 8 hops · port of UZUSKE 1.0

Project enquiries

Discuss a modelling
or software
project.

Project work can include graph algorithms, data processing, route prediction, and scenario simulation.

Describe your input data, required output, technical constraints, and timeline.

Discuss a project