Methodology
Rendered from the engine's METHODOLOGY.md at commit 7509ed882202
This page explains how every number on The Wear Report is made, how sure it is, and what it does not show. The London aggregate data is published in the engine repository. Changes are listed at the end. The separate initial Calgary annotation queue described below does not supply the London percentages.
In short
- Who is counted: people seen on London’s public traffic cameras (TfL JamCam) in daylight. The detector counts everyone it finds at least 31 pixels tall. Each sweep of the cameras is counted separately, so one person can appear in several sweeps.
- What is measured automatically: how many people are out at each temperature, and open umbrellas (umbrella figures are not shown until they have been checked in rain).
- What is checked by hand: whether a person’s outermost layer is a coat or jacket, and whether their legs are bare. A person looks at crops of people at least 46 pixels tall and answers yes, no or “can’t tell”. On the site, “checked by hand” means judged yes or no. These answers are the only source of the coat and bare-legs percentages.
- When a percentage appears: only after at least 200 people have been checked by hand, in at least 10 spot checks on at least 5 different days, for that temperature band. Before that, pages show how many people have been checked so far.
What we measure
For each sweep of London’s traffic cameras we record:
- People: the people the detector finds that are at least 31 pixels tall in the camera’s 352×288 image (our “near-field” people; see the limits below).
- Umbrellas: open umbrellas the detector finds. The figure is umbrellas per person, not the share of people holding one, because two people can share an umbrella.
- Weather: temperature, feels-like temperature and precipitation from the Met Office hourly forecast for central London nearest the sweep.
From spot checks we record, for each person shown:
- Outer layer: yes if the outermost layer is a coat or jacket that opens at the front and has sleeves (overcoats, puffer jackets, raincoats, blazers, denim, leather and fleece jackets); no if it is a T-shirt, shirt, sweater, cardigan, hoodie (with or without a zip) or a sleeveless vest; “can’t tell” otherwise.
- Bare legs: yes for shorts or a short skirt.
We do not measure anything finer (colours, brands, sleeve length). At this image size it is not reliable.
How the numbers are made
The table and time window in this section describe the London pipeline.
| Step | What happens |
|---|---|
| Cameras | The current list of TfL JamCam cameras is downloaded every sweep; only cameras TfL lists as available are used. |
| Fetch | The latest still from each camera is downloaded into memory. A camera that fails is counted and skipped. |
| Detect | YOLOX-m (Apache-2.0) runs on CPU and finds people and umbrellas. |
| Count | People at least 31 pixels tall are counted. Sweeps that start when the sun is more than 6° below the horizon are not counted. |
| Weather | Each sweep is joined to the Met Office hourly forecast nearest to it. |
| Spot checks | A person runs one pass over a current sweep of London cameras. Every person at least 46 pixels tall is shown, one crop at a time, in a window on their own computer, and is answered. Only the answers and each crop’s height in pixels are kept. |
| Join | Each spot check takes the temperature of the counted sweep that started closest to it, within 20 minutes. Spot checks with no such sweep are left out. |
| Publish | Counts and answers are added up by temperature band. Only these totals are published. |
Since 4 October 2026, spot checks start between 09:30 and 15:00 London time, at most four a day and at least 30 minutes apart. Four earlier pilot spot checks (30 September to 2 October 2026) started between 09:32 and 17:21 London time and are included. Pages that show a percentage list how many spot checks were made at each hour of the day.
Separate initial Calgary annotation
This private queue prepares and fact-checks our own original aggregate clothing reporting and editorial guides. It does not supply London percentages, publish Calgary results, run a new AI experiment or establish a formal Calgary temperature product. A system timer runs a single CPU collector on a Tencent Cloud virtual server in Shanghai, mainland China. Whole camera images are processed in application memory, with no application media files, service swap or core dumps. Only selected PNG crops are uploaded over authenticated HTTPS through an upload-only Cloudflare Worker to the existing private queue and EU-jurisdiction R2 storage for later US review. GitHub hosts the software and runs constructed-fixture software checks, rather than this queue’s operational image acquisition.
The collector uses the City of Calgary’s Open Data Traffic Cameras dataset (k7p9-kppz) and the existing downtown area: latitude 51.040–51.056 and longitude −114.095 to −114.045. It takes the first 100 valid in-area rows in catalogue order, then removes repeated resolved still URLs without refilling those slots. It attempts at most 100 distinct URLs in one sequential pass. This is a convenience sample, not randomly selected cameras, a city-wide sample or a camera-quality ranking. Different URLs are not verified to be different physical cameras.
Both JPEG headers and decoded images must be 840×630. The existing CPU detector identifies eligible person boxes at least 46 pixels tall. Each box receives a margin of 50% of its original width on each side and 50% of its original height above and below, clipped to the frame; exact whole-frame crops are excluded. A fixed green one-pixel rectangle marks the intended detection. There is no enlargement, face masking, identification or tracking. A crop can contain background or nearby people, and excluding whole-frame geometry adds selection bias rather than proving accuracy.
A deterministic reservoir selects at most 100 eligible crops independently of clothing predictions, then restores acquisition order. Detection and eligibility are still model-dependent, and the sample is not deduplicated into distinct people. Lossless PNGs are limited to 128 KiB each and 8 MiB per group. A selected image that fails encoding or the byte limit causes failure rather than a substitute image. Each admission reserves 100 crop slots, even if it fails or is empty; no more than one group per Calgary day and 700 reserved slots per rolling 168 hours are admitted. An active, unresolved or unhealthy group prevents new admission.
The initial window is 17:45 inclusive to 18:15 exclusive UTC, with positive solar elevation, under the versioned fixed UTC−6 policy (11:45–12:15 in that policy). Actual Calgary civil time can differ seasonally; the policy and timer do not automatically shift with daylight saving time. Delayed runs are skipped, not replaced. These are initial operating limits, not a permanent one-group-per-day design. Collection is bounded to ten minutes and the window end. A locked system service targets no more than 20 minutes for runtime checks, collection and upload combined and terminates its process group on timeout. The timer has no automatic restart or catch-up run. Local process termination does not cancel an upload already accepted by the remote service or prove deletion of any crop already stored in the queue.
Acquisition times record when the collector finished receiving and decoding the source images used for retained crops, before detection. They are not verified camera exposure times, HTTP Date or scheduled times. The stored acquisition range describes selected crops, not all attempted images. Complete results record saving time separately; individual keypress times and original camera exposure times are not recorded. No camera URL, coordinates or weather is included in queue results. Private numeric records identify the VM’s daily run, sanitized counts/timing and source/runtime versions; they are not GitHub Actions execution records.
Each crop has an acquisition-plus-24-hour deadline, and the entire group closes at the earliest one. For a successful complete Save, the immutable numeric result is committed and exactly read back before media deletion. Expired unsaved media is closed and deleted without creating or padding human answers. Independent cleanup retries deletion and continues when collection or review is off. Missed, empty, failed or expired groups are missing data, never zero observations, invented labels or completed human observations. Storage, access and physical-deletion limits are described in the privacy notice.
How sure are the percentages?
- Every number is shown with its sample size, date range and source.
- Coat and bare-legs percentages come with a 95% interval: a Wilson interval computed on an effective sample size that allows for differences between spot checks. From 4 October 2026, spot checks on the same London day are grouped together, because they share the same weather and the same crowd.
- When the intervals of two neighbouring temperature bands overlap, the page says the difference is not clear.
- Below the minimum (200 people, 10 spot checks, 5 days), no percentage is shown. Nothing is imputed, padded or estimated.
What the percentages do and do not show
- Only people whose clothing could be seen. Many crops are too small or blurred to judge, and those people are left out. In London spot checks from 30 September to 4 October 2026, 69 of 175 people (39%) could be judged for an outer layer. If people in coats were easier or harder to judge than others, the percentage would lean one way.
- One person checks. All answers so far come from one person following the written rules above. How consistently those rules are applied has not been measured yet; a repeat-crop check is planned before we publish any study.
- Near the camera, on roads. Traffic cameras watch roads, so people close to the camera are over-represented and distant people are missed. Detection depends on distance, not clothing, so this should change the counts more than the shares.
- London only. Clothing at a given temperature differs between cities and cultures. Every page says where its data comes from.
- A forecast for one point. The temperature is the Met Office hourly forecast for central London, not a measurement at each camera.
How accurate are the counts?
- Detection precision: one person judged, box by box, whether each near-field box (at least 31 pixels tall) was a person. In London, in three sessions on 28–29 September 2026 (two in daylight, one at dusk, none in rain), 207 of 208 judged boxes were people (99.5%; 95% lower bound 97.3%); 47 more could not be judged. Target: at least 90%; below 85% raises an alert. We have not yet reached the 300 boxes, including rain, that we planned before launch. We plan to re-check 100 boxes a month (first by 31 October 2026) and after every change to the detector.
- Umbrellas: to be checked during rain (at least 30 umbrellas) before umbrella figures appear.
- Automatic clothing labels: from 30 September to 3 October 2026, the same crops were also sent to an open-weights vision model (Qwen3-VL, hosted by DeepInfra). On 132 crops a person could not judge, it still gave an answer on 97; of its “coat” answers checked against a person’s, 9 of 14 were right. It is not used for any published number.
Privacy
- Whole camera images are processed in application memory. Ordinary London sweeps and window-mode checks do not save images. The Calgary collector application writes no camera frames or crops to its server disk, caches, snapshots or backups. Its separate private queue may retain only the bounded person crops described above, until completed-result verification or expiry. No media enters git, CI logs, summaries, artifacts, application caches or analytics services.
- No face detection, face recognition, re-identification or tracking across images. Payload integrity hashes are not person identifiers.
- Camera images and crops are never published. Only aggregate results are published, and this initial phase keeps Calgary queue results separate and private. To see a London camera, follow TfL’s own camera page.
- London accuracy checks use the checker’s own computer. The separately permitted one-off automatic-label tests may pass single-person crops in memory to an open-weights vision model at a provider whose terms exclude storing, logging or training on them, or to a local model that retains only answers and totals. The Calgary queue does not enable new AI tests or reuse its images or answers for independent model evaluation or training, raw-image or per-person data services, identity searches or advertising profiles.
CI enforces the no-image-storage rule for ordinary sweeps through static checks and a full sweep against a local fake camera server. The Calgary collector and queue have separate constructed-fixture checks for source boundaries, the upload-only adapter, run provenance, admission, payload integrity, durable numeric saving, expiry and cleanup. Constructed-pixel CPU boot checks validate runtime compatibility rather than camera accuracy. Fixture and boot checks do not prove exact native cancellation, indefinite scheduling, remote failure timing or physical erasure from provider media. The privacy notice explains processing in Shanghai, global Cloudflare services, EU object storage, US review and deletion limits.
Sources and attribution
- London camera images: Transport for London JamCam feed. Powered by TfL Open Data.
- Calgary annotation source: The City of Calgary, Open Data Traffic Cameras (
k7p9-kppz). Contains information licensed under the Open Government Licence – City of Calgary. Licence. - Weather (UK): Met Office Weather DataHub. Powered by Met Office data.
- Weather (US visitors, home page forecast): National Weather Service (public domain).
- Detector: YOLOX by Megvii, Apache-2.0.
- Data: London sweep totals and spot-check answers are published in the engine repository. This phase keeps Calgary queue results separate and private; images are never published.
Changelog
- 2026-10 — Coat and bare-legs percentages come from hand spot checks only (one person, written rules, crops at least 46 pixels tall); display rule set to 200 people, 10 spot checks and 5 days. An automatic vision model was tested and is not used. Counts are described as detections per sweep; the weather is a forecast.
- 2026-09 — Detection precision measured by hand: 207 of 208 near-field boxes were people. Counts limited to people at least 31 pixels tall.
- 2026-09 — Detector switched from YOLOX-s to YOLOX-m after a same-frame comparison.
- 2026-09 — Method drafted; feasibility tested with two full sweeps.