← Back to Contributions

PaceMap AI

May 2026 | Product Requirements Document | Draft v1.0 | AI & Sports-Tech

Help runners understand their pace, learn from their running history, and plan their next route through a clear, GPX-based analysis experience.

Runner on a training route

Product Brief

Product: PaceMap AI
Owner: Zhen Wei Yap
Document status: Draft requirements for the next product iteration.

PaceMap AI turns recorded runs into useful decisions: where did my pace change, what does my running history show, and what route should I try next? The core experience brings GPX analysis, a personal run library and route recommendations into one web interface.

This PRD is grounded in the local prototype. Requirements and release gates below describe the intended experience; they are not claims that every acceptance criterion has already been validated.

1. Problem & Opportunity

A run summary shows distance and time, but it does not always make pace variation easy to interpret or connect past runs to the next route choice. Analysing exported GPS data manually requires technical tools and repeated preparation.

Product hypothesis: if runners can inspect their route, understand pace changes and reuse their history in one workflow, they can make a more informed choice about their next run. This hypothesis still needs validation with runners.

2. Target Users & User Needs

  • Primary user — recreational runner: has GPX exports from a watch or running app and wants to understand a completed run without writing code.
  • Secondary user — runner planning a route: wants suggestions informed by previous runs and a chosen starting location.
  • Advanced user — data-focused runner: wants exported results and transparent model evaluation for deeper analysis.

Core job: “After a run, help me see where my pace changed and use what I learn to plan the next one.” These user groups are working assumptions, pending interviews and usability testing.

3. Goals & Scope

Must-have: the core runner journey

  • Import a GPX file and receive a clear, usable run summary.
  • Explore pace on a route map and a distance-based chart.
  • Build a reusable run library and derive a runner profile.
  • Request and compare route recommendations from a chosen location.
  • Recover from invalid files, insufficient history and external-service failures.

Next: evaluated prediction and deeper analysis

Finish-time estimation, batch exports and model diagnostics extend the core experience. Prediction should enter the runner-facing journey only after it meets the evaluation gate below.

Outside this release

Live race tracking, a native mobile app, automatic Strava or Garmin synchronisation, social features and automated training prescriptions are outside the proposed release scope.

4. Primary User Journey

  1. Import: the runner selects a GPX file and receives validation feedback.
  2. Understand: the summary shows distance, duration, average pace and elevation gain.
  3. Explore: the runner inspects pace changes on the map and chart.
  4. Build history: the runner adds runs to the library and generates a profile.
  5. Plan: the runner chooses a starting location, requests routes and compares the suggestions.

5. Functional Requirements

FR-01 · GPX import and validation · Must-have

User story: As a runner, I want to import my recorded activity so that I can analyse it without preparing the data myself.

Acceptance criteria: a valid track produces a summary; an empty, malformed or unusable track produces an actionable error. Missing or invalid timestamps must not produce misleading pace values. A failed import must leave the interface ready for another file.

FR-02 · Run summary and pace exploration · Must-have

User story: As a runner, I want to see where I sped up or slowed down so that I can interpret the run in the context of the route.

Acceptance criteria: show distance, duration, pace and elevation with explicit units; display a route map with start and finish markers, a pace legend and segment details; provide a pace-over-distance chart. State how pauses and GPS smoothing affect the calculations. Do not rely on colour alone to communicate pace.

FR-03 · Run library and profile · Must-have

User story: As a returning runner, I want to reuse my previous runs so that I do not have to upload the same history for every planning session.

Acceptance criteria: support multiple GPX files, report accepted and rejected imports, show the library count and let the runner generate a profile. Explain when there is insufficient usable history. Resetting the library requires a clear confirmation and updates the visible profile state.

FR-04 · Route recommendations · Must-have

User story: As a runner planning my next session, I want route options from a chosen location that reflect my running history.

Acceptance criteria: resolve the selected starting location, generate route candidates using the available profile and let the runner preview each route on a map. Show distance and the basis for the recommendation. Handle an unknown location, unavailable routing service or lack of suitable candidates without showing a false success.

FR-05 · Finish-time estimation · Next

User story: As a runner considering a target distance, I want an estimated finish time with enough context to judge whether it applies to me.

Acceptance criteria: use only information available before the target run; distinguish supplied, missing and estimated inputs; display the estimate with its limitations. If history or model support is insufficient, explain why an estimate is unavailable. Do not use the target run’s actual average pace or duration as prediction inputs.

FR-06 · Export and diagnostics · Next

User story: As a data-focused runner, I want reusable outputs so that I can investigate my results further.

Acceptance criteria: provide labelled CSV analysis and interactive HTML map exports. Model evaluation reports must identify the dataset, split method, baseline and metrics, with predicted-versus-actual plots and feature importance where supported.

6. Quality Requirements

  • Clarity: use consistent units and explain elapsed versus moving time, missing elevation and unreliable pace segments.
  • Responsiveness: show progress during analysis and recommendations; prevent duplicate submissions and preserve useful results when a later request fails.
  • Accessibility: support keyboard navigation, labelled controls, readable charts and usable layouts on mobile and desktop.
  • Data handling: explain where GPX files are stored, how to remove them and what location data is sent to map or routing providers.
  • Reliability: a bad file or external-service error must not interrupt unrelated runs or erase the existing library.

7. Success Metrics & Release Gates

The following are proposed validation targets. No user-adoption or usability results are claimed yet.

  • First-run usability: at least four of five pilot users independently import a valid file and correctly identify one pace change in a moderated task.
  • Analysis reliability: every valid file in an agreed representative GPX test set produces a summary; every invalid fixture produces an actionable error without a crash.
  • Route-planning usability: at least four of five pilot users generate and select a route, and can explain why they chose it.
  • Performance: measure time from upload to a usable result on agreed file sizes and hardware; set the latency threshold after establishing that baseline.
  • Prediction quality: outperform a historical-pace baseline on held-out runs using MAE and RMSE, with chronological separation and no target leakage. Report sample size and error by distance range before release.
  • Continued value: measure repeat analysis and route-planning use during an opt-in pilot; define a retention target after the first cohort establishes a baseline.

8. Existing Prototype & Delivery Plan

The local codebase includes a FastAPI web app for run analysis, library upload, profile generation and route recommendations. The Python analysis layer includes GPX parsing, pace calculations, map generation and machine-learning utilities. These provide the starting point for the requirements above.

  • Milestone 1 — validate the core journey: audit import, summary, map and chart behaviour against FR-01 and FR-02; resolve failure states and calculation definitions.
  • Milestone 2 — validate planning: test library, profile and route recommendation flows with representative runs and pilot users.
  • Milestone 3 — qualify predictions: audit feature provenance and dataset splits, compare against a baseline, then decide whether predictions are ready for the web experience.
  • Milestone 4 — iterate: prioritise changes from pilot observations and usage evidence.

Earlier documentation includes example model scores and test-coverage figures. This PRD does not treat those examples as verified product performance or release evidence.

9. Risks & Open Decisions

  • Data quality: agree the supported GPX variants, file-size limit, pause handling and minimum usable track length.
  • Cold start: determine the minimum history needed for a useful profile and the fallback for a first-time runner.
  • Prediction validity: verify that training features are available at prediction time and that evaluation represents future runs.
  • Route relevance: validate route suitability and recommendation explanations with runners; confirm provider availability and usage limits.
  • Product direction: decide whether the initial release remains a personal local tool or becomes a hosted multi-user service, with corresponding storage and account requirements.

Links