Papers
Topics
Authors
Recent
Search
2000 character limit reached

Trip-Based Sampling Optimization

Updated 14 January 2026
  • The paper presents a novel optimization framework that leverages timetabled bus trips and trip chains to maximize spatial-temporal sensor coverage in urban settings.
  • It employs a sequential three-stage formulation—including bus-line pre-selection, minimum-fleet sizing, and sensor allocation—to efficiently manage computational complexity while ensuring high coverage.
  • The joint bi-level formulation co-optimizes scheduling and sensor placement, reducing sensor requirements by up to 22% and substantially increasing grid–time coverage.

Trip-based sampling is an optimization framework for the deployment of a limited number of mobile sensors on fleet buses, aiming to maximize spatial-temporal coverage for drive-by sensing tasks (such as air quality, traffic state, and road roughness monitoring). The methodology explicitly incorporates timetabled bus trips, exploits the structure of trip chains (ordered sequences of trips served by the same bus), and reconciles operational constraints on minimal fleet size with coverage maximization, all while maintaining computational tractability at city scale (Ji et al., 2023).

1. Problem Setting and Definitions

The spatial domain is discretized into grids gGg \in G (e.g., 1km×1km1\,{\rm km} \times 1\,{\rm km}), and time is segmented into intervals tTt \in T of fixed length Δ\Delta (e.g., 60 min). The bus network consists of L|\mathcal{L}| lines, each with a fixed timetable. A trip iIli\in I_l on line ll is specified as (pi,qi,tli,τi)(p^i,q^i,t_{li},\tau_i): start/end terminals, scheduled departure time, and duration. Dead-heading time tlijt_{lij} defines the non-service interval between consecutive trips i,ji,j by the same vehicle.

A trip chain 1km×1km1\,{\rm km} \times 1\,{\rm km}0 is a feasible, time-respecting sequence of timetabled trips a physical bus can serve in a day. Chains are feasible only if the dead-heading constraints are satisfied: 1km×1km1\,{\rm km} \times 1\,{\rm km}1 for all transitions in the chain. Up to 1km×1km1\,{\rm km} \times 1\,{\rm km}2 identical sensors may be installed, each assigned to a trip chain (i.e., bus), conferring sensing ability for the whole chain.

Coverage is defined at the grid–time pair 1km×1km1\,{\rm km} \times 1\,{\rm km}3 level: 1km×1km1\,{\rm km} \times 1\,{\rm km}4 if at least one sensor-equipped bus is in grid 1km×1km1\,{\rm km} \times 1\,{\rm km}5 during 1km×1km1\,{\rm km} \times 1\,{\rm km}6, zero otherwise. Spatial (1km×1km1\,{\rm km} \times 1\,{\rm km}7) and temporal (1km×1km1\,{\rm km} \times 1\,{\rm km}8) weights (normalized to sum to 1) model heterogeneous monitoring priorities. The global coverage (sensing reward) is

1km×1km1\,{\rm km} \times 1\,{\rm km}9

Operational constraints include complete fulfillment of the timetable with the minimal fleet size (minimum-fleet principle), ensuring sensor assignment does not compromise service.

2. Sequential Three-Stage Formulation

Stage A: Bus-Line Pre-Selection

To reduce problem size, a set cover is solved to select a minimal subset tTt \in T0 of lines covering at least a fraction tTt \in T1 of all reachable grids (with tTt \in T2 yielding full coverage). Let tTt \in T3 if line tTt \in T4 covers grid tTt \in T5. The binary program minimizes tTt \in T6 subject to constraints ensuring sufficient grid coverage and logical consistency.

Stage B: Minimum-Fleet Sizing per Line

For each selected line tTt \in T7, a bipartite matching is solved to minimize the number of buses required while chaining trips into feasible sequences. Variables tTt \in T8 indicate whether trip tTt \in T9 is served immediately after Δ\Delta0. The minimum fleet for line Δ\Delta1 is Δ\Delta2, with Δ\Delta3 the number of trips on Δ\Delta4. Matched pairs are extracted to form all trip chains Δ\Delta5.

Stage C: Sensor Allocation to Trip Chains

Sensor assignment is phrased as a 0-1 integer program over all trip chains. Binary variable Δ\Delta6 flags instrumented chains. For each trip and grid–time pair, indicator Δ\Delta7 marks if trip Δ\Delta8 covers Δ\Delta9. Constraints ensure no more than L|\mathcal{L}|0 sensors are assigned, and that every covered grid–time pair is supported by at least one equipped bus.

These distinct stages—pre-selection, fleet sizing, sensor allocation—frame the trip-based sampling approach as a sequence of linked optimization problems.

3. Joint Bi-level Formulation

The joint bi-level model addresses the sub-optimality arising from fixing trip chains in advance, instead co-optimizing scheduling and sensing assignments per line.

  • Upper Level: Across all lines, integer variables L|\mathcal{L}|1 distribute the available L|\mathcal{L}|2 sensors, maximizing total coverage by blending information on how many sensors to assign per line (subject to per-line saturation L|\mathcal{L}|3).
  • Lower Level (per line): For a given L|\mathcal{L}|4, the problem is to select L|\mathcal{L}|5 trip chains to be instrumented, optimizing the coverage contributed by that line. Variables L|\mathcal{L}|6 model which chains and trip transitions are chosen, and their resulting sensing impact.

The bi-level structure is separable by line, allowing parallel solution, with sensor allocation at the upper level guided by lower-level computations of attainable coverage for each L|\mathcal{L}|7.

The two levels interact only through the mappings L|\mathcal{L}|8, with L|\mathcal{L}|9 denoting grid–time coverage from line iIli\in I_l0 equipped with iIli\in I_l1 sensors.

4. Algorithmic Workflow and Computational Properties

The algorithm proceeds as follows:

  1. Line Pre-Selection: The set cover step significantly reduces the problem size, selecting iIli\in I_l2 relevant lines.
  2. Per-Line Optimization: For each chosen line,
    • The fleet sizing (bipartite matching) is solved in iIli\in I_l3 time (max-flow/assignment).
    • Model reduction prunes superfluous link variables iIli\in I_l4 where idle times exceed a threshold iIli\in I_l5, preserving optimal fleet size and saving up to 90% in problem dimensionality.
    • For iIli\in I_l6, the pruned mixed-integer program is solved to find iIli\in I_l7 and associated coverage. Computation stops when further sensors do not increase coverage (at saturation iIli\in I_l8).
  3. Global Sensor Allocation: The upper-level knapsack-like integer program (in iIli\in I_l9 variables) allocates ll0 sensors to lines.

Each line's lower-level problem is independent, and the reduced ll1 after pre-selection enables sub-linear scaling in ll2. In contrast, a naïve vehicle-based approach is combinatorial in the total number of buses or trip chains.

5. Empirical Study: Chengdu Case

A comprehensive real-world test covers ll3 within Chengdu’s 4th Ring Road, with ll4 one-kilometer grids and service from ll5am to ll6pm. Three temporal granularities (ll7 min) are examined, ll8. Spatial weights ll9 are derived from traffic and emission data.

Of (pi,qi,tli,τi)(p^i,q^i,t_{li},\tau_i)0 bus lines, pre-selection (with (pi,qi,tli,τi)(p^i,q^i,t_{li},\tau_i)1) yields (pi,qi,tli,τi)(p^i,q^i,t_{li},\tau_i)2 lines ensuring full grid coverage. These require a minimum fleet of (pi,qi,tli,τi)(p^i,q^i,t_{li},\tau_i)3 buses for (pi,qi,tli,τi)(p^i,q^i,t_{li},\tau_i)4 trips. To achieve (pi,qi,tli,τi)(p^i,q^i,t_{li},\tau_i)5 coverage of grid–time pairs at (pi,qi,tli,τi)(p^i,q^i,t_{li},\tau_i)6 min, the sequential approach requires (pi,qi,tli,τi)(p^i,q^i,t_{li},\tau_i)7 sensors; the joint bi-level model needs only (pi,qi,tli,τi)(p^i,q^i,t_{li},\tau_i)8 (a reduction of (pi,qi,tli,τi)(p^i,q^i,t_{li},\tau_i)9). The number of grids fully covered in every interval increases by tlijt_{lij}0–tlijt_{lij}1 under the joint model. Almost every line saturates at tlijt_{lij}2 sensors for tlijt_{lij}3 min, and tlijt_{lij}4 for tlijt_{lij}5 min.

Computation times are significantly improved after pre-selection: tlijt_{lij}6 for fleet-sizing on all tlijt_{lij}7 lines versus tlijt_{lij}8 on tlijt_{lij}9 lines; sensor allocation MILPs take minutes instead of i,ji,j0. Pruning with i,ji,j1 min (idle time) reduces solution time by i,ji,j2–i,ji,j3 without degrading coverage.

Aspect Sequential Approach Joint Bi-level Approach
Sensors for 90% cover 49 38
Increase in 100% grids Baseline +41–238%
Saturation per line i,ji,j4 (60 min) i,ji,j5 (60 min)

6. Model Extensions and Practical Recommendations

Multiple model extensions are available for operational realism:

  • Service gaps: Dummy trips i,ji,j6 with fixed time windows (e.g., for breaks or charging) can be inserted, with chain assignment constraints.
  • Bus relocations: Forbidden by taking i,ji,j7 or penalized with a multi-objective cost term (i,ji,j8).
  • Operational costs: Additional terms for total fleet size (i,ji,j9) and dead-heading (1km×1km1\,{\rm km} \times 1\,{\rm km}00 or 1km×1km1\,{\rm km} \times 1\,{\rm km}01).
  • Uncertain service times/speeds: Addressable through robust or stochastic variants, or corrected via subsequent data processing.

A practical rule of thumb is to assign one sensor per selected line and prioritize a second sensor to lines with large one-way trip durations, to close temporal coverage gaps for coarse 1km×1km1\,{\rm km} \times 1\,{\rm km}02.

The trip-based methodology thus tightly integrates the combinatorics of fleet scheduling with the needs of optimal spatial-temporal sensor allocation. It achieves near-optimal city-scale coverage under realistic operational constraints and computational budgets, with the decoupling by lines ensuring both tractability and deployment feasibility (Ji et al., 2023).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Trip-Based Sampling.