Skip to content
AI.info

Computer vision

Capstone: Design and Defend a Computer Vision System

Apply the complete path to design a multi-camera urban tree-health inspection system with defensible scope, validation, governance, and operations.

By the end you can

Key idea

The brief: inspect urban trees without turning public space into a surveillance system

A city wants to prioritize arborist inspections using images collected from service vehicles and optional resident submissions; the system should flag visible crown decline, trunk damage, and obstruction while estimating uncertainty.

It must not identify pedestrians, infer protected attributes, or automate removal decisions. Arborists remain responsible for diagnosis and action.

Every clause of that scope can be tested against something already published. What a vehicle-borne visual assessment is allowed to conclude is written into an American National Standard. How well faces are actually blurred in street imagery has been measured twice: more than 89% in 2009, 99.9% in 2018. How far a tree model travels between cities has a size — a 21.3% class-averaged-recall gap. The municipal field reference turns out to hold three health values and 31,616 blanks. And one city found out what happens when it tries to switch its cameras off: San Diego, 9 September 2020. The sections below build the design on those numbers instead of on assurances.

The capstone succeeds only if its scope and non-goals remain enforceable.

Visual

The complete system under design

Each component creates evidence, dependencies, and failure modes — and component 2 is where designs quietly overclaim.

Automatic redaction of vehicle-collected street imagery is reported as a measured recall figure, and it has never been 100%. Google described its own system in 2009: a high-recall sliding-window detector followed by a false-positive post-filter. It blurred more than 89% of faces and 94–96% of license plates on evaluation sets sampled from Street View. Nine years later Mapillary published its number for the same problem: “The resulting privacy blurring model is able to detect 99.9% of all identifiable faces and license plates while wrongly blurring only 0.078% of the pixels.” Mapillary states the residual plainly — roughly one miss in a thousand.

So the quality and privacy filter does not remove privacy risk. It reduces it at a rate you have to measure and report. Across a citywide vehicle fleet, one in a thousand is a count rather than a rounding error. The retention, access, and deletion rules downstream must be written for the frames the filter missed.

FigureProcess · 5 steps
  1. 1. Capture

    Vehicle cameras, location, time, weather, view geometry, and consent or notice.

  2. 2. Quality and privacy filter

    Reject unusable frames and redact faces, plates, and private-property regions.

  3. 3. Perception stack

    Detect trees, segment crowns or trunks, estimate attributes, and track repeated observations.

  4. 4. Decision support

    Rank inspection candidates with uncertainty, history, and municipal rules.

  5. 5. Human and field loop

    Arborists review evidence, inspect sites, correct labels, and monitor outcomes.

Comparison

Three candidate product scopes

A narrower scope may create a safer and more useful first release. And the narrow scope here is not an invention of this capstone. It is an existing tier of an American National Standard.

ANSI A300 (Part 9)-2011 defines Level 1 as a limited visual assessment made “from a specified perspective such as foot, vehicle, or aerial patrol”. The standard says it directly: “Level 1 assessments shall be a limited visual assessment of an individual tree or a population of trees near specified targets, such as along roadways or utility rights-of-way, to identify specified conditions or obvious defects.” A 360-degree ground inspection is reserved for Level 2. Instruments — drilling, sounding, pull testing, resistance drilling — are Level 3.

Drive-by imagery is therefore Level 1 evidence before any model touches it. Automated diagnosis is a Level 3 claim resting on Level 1 input. The standard also settles the decision rights this capstone would otherwise have to argue for: clause 93.6.4.1 leaves it to the owner, the owner's agent, or the controlling authority to determine actions and schedule further assessment. Inspection prioritization is the option that keeps the system inside the tier its evidence belongs to.

FigureComparison · 3 columns

Automated diagnosis

Predict disease and recommend intervention from drive-by imagery.

  • High clinical-like claim
  • Weak ground truth
  • Severe shortcut risk
  • Not recommended initially

Inspection prioritization

Rank trees needing human review from visible signals.

  • Matches available evidence
  • Supports abstention
  • Human diagnosis retained
  • Recommended starting point

Image-quality triage only

Identify which observations are usable for later analysis.

  • Low decision risk
  • Builds data foundation
  • Limited immediate value
  • Useful pilot component

Steps

Build the dataset around tree, place, and time

The unit of analysis is not an isolated frame. Two of these steps have measured numbers attached rather than good intentions.

Step 4, split structurally. The Auto Arborist dataset joins public tree censuses from 23 US and Canadian cities with street-level and aerial imagery: over 2.6M trees, over 9.1M images, 344 genera. Its evaluation protocol holds out one city per region. Beery and colleagues trained a single-view street-level ResNet-101 on one city and then on the full dataset, and class-averaged recall rose by 21.3% on average across cities — 18.3% for regional training alone. Their 2022 paper opens with the reason: “Generalization to novel domains is a fundamental challenge for computer vision. Near-perfect accuracy on benchmarks is common, but these models do not work as expected when deployed outside of the training distribution.” Geographic holdout is not a precaution in urban tree vision. It is the dominant effect. A random split inside one city measures far less than it appears to.

Step 3, create references. The reference a municipal system would actually be validated against is a decadal, volunteer-built inventory with a coarse subjective health field. New York City describes its own street tree census this way: “Data collection ran from May 2015 to October 2016 and the results of the census show that there are 666,134 trees planted along NYC’s streets.” The published table holds 683,788 records — 652,173 Alive, 13,961 Dead, 17,654 Stump. Its perceived-health field takes three values: Good (528,850), Fair (96,504) and Poor (26,818). Another 31,616 records carry no health value at all. Design the schema, the metrics, and the uncertainty story around a three-class field refreshed on a ten-year cycle, not around a continuous ground truth that does not exist.

FigureProcess · 5 steps
  1. 1. Define entities

    Assign stable tree and observation IDs without encoding resident identity.

  2. 2. Sample the city

    Cover species, neighborhoods, seasons, tree ages, road types, and camera routes.

  3. 3. Create references

    Combine arborist field assessments, maintenance records, and explicit uncertainty.

  4. 4. Split structurally

    Hold out neighborhoods, future seasons, vehicles, and entire trees.

  5. 5. Document provenance

    Record capture, redaction, annotation, revisions, and permitted uses.

Example

A label schema that does not pretend the camera knows more than it sees

Separate visible observations from expert diagnoses and actions. Then set the granularity of each visible field at what an observer can actually reproduce.

That boundary has been measured. In 2017 Roman and colleagues compared volunteer and expert street tree data in Lombard IL, Grand Rapids MI, Philadelphia PA and Malmö, Sweden. Volunteers missed 1.2% of trees and counted 1.0% extra. They were about 90% consistent with experts on site type, land use, dieback and genus, and 84.8% consistent on species within a correct genus. Their verdict on the crown fields is blunt: “Crown transparency and wood condition had the poorest performance and participants expressed concerns with these variables; we conclude that these variables should be dropped from future citizen science projects.”

The same boundary shows up independently in a 2018 study by Hallett and Hallett. Defoliation, discoloration and vigor agreed within two classes 100%, 93% and 92% of the time. Crown dieback agreed within 10% only 76% of the time, and transparency within 15% only 76% of the time. About 90% on genus and 76% on crown condition is the schema's design constraint: coarse ordinal classes, and a genuine ungradable option exactly where the humans disagree with each other.

  • Visible crown thinning: Coarse ordinal severity plus an ungradable option, because crown dieback and transparency reached only 76% agreement in both studies.
  • Broken branch or trunk damage: Localized region with confidence, recorded as a visible condition and never as a cause.
  • Obstruction: Crown contact with signs, wires, or structures — the roadway observation Level 1 assessment is defined to capture.
  • Image quality: Occlusion, blur, view completeness, and lighting, stored so that ungradable stays distinguishable from healthy.
  • Field diagnosis: Arborist finding recorded after site inspection at Level 2 or Level 3, never inferred from the drive-by frame.
  • Recommended action: Human decision stored separately, matching clause 93.6.4.1's assignment of that call to the owner, the owner's agent, or the controlling authority.
  • Outcome: Work completed, no action, monitor, or corrected record — the only field that improves on a three-value health reference over time.

A modular model stack makes failure localization possible

Use an input-quality model before tree detection. Segment or localize visible regions, aggregate repeated views, and estimate uncertainty for each attribute rather than collapsing everything into one opaque risk score.

Compare strong baselines: route and maintenance rules, image-quality triage, simple classifiers, and a modular detector-segmenter pipeline. Complexity must earn its operational cost. Auto Arborist sets the honest scale of that comparison, since a ResNet-101 gained 21.3% class-averaged recall from being trained across cities rather than one. That is a data-coverage result, not an architecture result, and no stack change substitutes for it.

The surrounding cost was named in 2015. Sculley and nine colleagues argued that “it is common to incur massive ongoing maintenance costs in real-world ML systems”. Their paper on hidden technical debt lists the ML-specific risk factors: “boundary erosion, entanglement, hidden feedback loops, undeclared consumers, data dependencies, configuration issues, changes in the external world, and a variety of system-level anti-patterns”. None of that lives in the perception stack. All of it lands in the operations plan.

Modularity is valuable when it creates testable boundaries and safer fallback.

Analogy

A survey crew preparing leads for specialists

A survey crew photographs many trees and marks which sites deserve an arborist visit. The crew records visible clues and poor evidence without claiming a definitive diagnosis. That is Level 1 work. The standard already draws the line the analogy is reaching for: the assessment identifies specified conditions or obvious defects, while the decision to act belongs to the owner or the controlling authority.

A crew's mistakes stay with the sites it visited. Automated capture repeats its errors at city scale, and it creates privacy risks — including the roughly one frame in a thousand whose faces or plates the best published blurring model still misses. What the survey clarifies is the line between triage and expert judgment.

The system should route evidence, not impersonate the specialist.

Visual

The release scorecard

Approval requires evidence across model, workflow, and city operations. Every row should be a number another team can reproduce.

Three rows already have published comparators. Capture validity includes redaction recall, and the public reference points are more than 89% of faces in 2009 and 99.9% in 2018. Report yours the same way — a rate with a denominator, not a checkbox. Perception performance must be reported across held-out cities or districts, because a within-city score is precisely what conceals the 21.3% class-averaged-recall gap. And the arborist-agreement row carries a ceiling of its own. Assessors agree only 76% of the time on crown dieback and transparency, so a model scored against those labels cannot be credited with more precision than the reference itself holds.

FigureHierarchy · 5 levels
  • Capture validity

    Usable view rate, redaction quality, registration, and route coverage.

    • Perception performance

      Detection, segmentation, attribute recall, calibration, and slice results.

      • Triage utility

        High-risk recall, ranking quality, arborist agreement, and review time.

        • Equity and privacy

          Neighborhood coverage, false escalation, redaction failures, and complaints.

          • Operational outcome

            Inspections found useful, delays, avoided incidents, cost, and rollback readiness.

Steps

Run the evaluation in stages

Do not deploy citywide on one retrospective score. Lock the geographic holdout before the first fit — Auto Arborist holds out one city per region across its 23 cities for exactly this reason. Treat each later stage as a new question rather than a confirmation of the previous one.

The retrospective stage scores against a census with three health classes and 31,616 records carrying no health value. That is why stages 2 through 5 exist. A silent field trial, a controlled assistance study, and a limited district pilot generate evidence about coverage, workflow, and disagreement that no locked historical table can supply.

FigureProcess · 5 steps
  1. 1. Offline validation

    Use locked geographic and temporal holdouts with species and neighborhood slices.

  2. 2. Silent field trial

    Generate rankings without changing inspection schedules.

  3. 3. Controlled assistance study

    Compare arborist workflow with and without prioritized evidence.

  4. 4. Limited operational pilot

    Deploy in selected districts with monitoring, appeal, and rollback.

  5. 5. Expansion review

    Require fresh evidence before adding seasons, cameras, attributes, or automation.

Key idea

Define stop conditions before incentives favor continuation

Pause the pilot if redaction failures exceed tolerance, geographic coverage creates systematic neglect, an acquisition change invalidates calibration, or field findings contradict model rankings; also pause after a security incident or unreviewed model update.

That tolerance has a judicially fixed value. The Federal Data Protection and Information Commissioner took Google Street View to court, and on 31 May 2012 the Swiss Federal Supreme Court held that automatic anonymisation of faces and vehicle number plates need not be complete. Luxembourg's data protection commission summarised the conditions: “Nun hielt das Bundesgericht fest, daß die Fehlerquote maximal ein Prozent betragen darf, und auch nur, wenn Google die Software laufend verbessert, diese Fehlerquote weiter reduziert und diese Verbesserungen laufend gegenüber dem EDÖB zu dokumentieren.” At most one per cent, and only on condition that the error rate keeps falling and the improvements are documented to the Commissioner. Near sensitive facilities — women's shelters, prisons, schools, courts and hospitals — complete anonymisation before publication was required. A tolerance with a ratchet and a stricter rule by geography is a threshold someone has already had to defend.

Assign named owners with authority to disable collection, inference, or downstream use. Then verify that the disable path physically exists. San Diego deployed a little more than 3,000 “smart streetlights”. On 9 September 2020 Mayor Kevin Faulconer ordered access cut off, and the city discovered it could not simply switch the cameras off: “But turning off the cameras would have also forced hundreds of streetlights to go dark, because the two rely on the same power supply.” The units had never been designed with an off switch. The vendor, Ubicquia, kept camera footage available to police while an unpaid $771,480 invoice was outstanding. The city's own later account confirms the devices were deactivated in 2020 “due to concerns over how the program was rolled out and questions about privacy protection”, and any return had to pass a Privacy Advisory Board and the City Council under the city's surveillance ordinance. Authority with no wire to cut is an org chart, not a control.

A credible deployment plan includes reasons and mechanisms to stop.

Example

Final deliverables for the system review

A design is defendable when another team can inspect its evidence and assumptions.

Two of those deliverables have published templates. Mitchell and colleagues proposed model cards in 2019 as “short documents accompanying trained machine learning models that provide benchmarked evaluation in a variety of conditions, such as across different cultural, demographic, or phenotypic groups (e.g., race, geographic location, sex, Fitzpatrick skin type) and intersectional groups”. They also “disclose the context in which models are intended to be used, details of the performance evaluation procedures, and other relevant information”. Gebru and colleagues proposed datasheets for datasets by analogy with electronics: “In the electronics industry, every component, no matter how simple or complex, is accompanied with a datasheet that describes its operating characteristics, test results, recommended uses, and other information. By analogy, we propose that every dataset be accompanied with a datasheet that documents its motivation, composition, collection process, recommended uses, and so on.” That proposal reached the Communications of the ACM in 2021.

NIST published a framework for the governance half. The Artificial Intelligence Risk Management Framework (AI RMF 1.0) was released on 26 January 2023, and it organises the work into four functions: govern, map, measure and manage. The framework “is intended for voluntary use and to improve the ability to incorporate trustworthiness considerations into the design, development, use, and evaluation of AI products, services, and systems”. On a project like this one, its value is the vocabulary rather than the authority.

  • System card: Intended use, exclusions, users, decisions, dependencies, and non-goals — stated as Level 1 triage, with automated diagnosis listed as an exclusion.
  • Data dossier: Sampling, entities, labels, splits, provenance, rights, and known gaps, including the three-value health reference and its 31,616 blank records.
  • Model report: Baselines, architectures, thresholds, calibration, slices, and ablations, with held-out-city or held-out-district results reported separately from in-domain results.
  • Workflow study: Arborist interaction, correction, workload, disagreement, and outcomes, read against the 76% human agreement on crown dieback and transparency.
  • Risk register: Privacy, security, fairness, failure severity, controls, and owners, with the measured redaction miss rate carried as a live entry rather than a residual.
  • Operations plan: Versioning, telemetry, incidents, retraining, rollback, retention, and deletion — including a tested physical path to stop capture.
  • Decision memo: Evidence for launch, unresolved uncertainty, stop conditions, and next review, with the one per cent redaction ceiling and its documentation ratchet written in.

Key idea

Defend the weakest assumption, not the prettiest metric

A final presentation should identify where the design is most likely to fail: incomplete views, uncertain references, geographic shift, privacy filtering, seasonality, or human overreliance. Show what evidence would change the decision.

None of those candidates is hypothetical, and each has a number to be defended against. Geographic shift has a measured size in this exact domain: 21.3% class-averaged recall between single-city and full-dataset training. The reference has a measured coarseness — three health values, 31,616 records with none — and a measured human ceiling of 76% on crown condition. Privacy filtering has a measured miss rate, 99.9% detection at best published and roughly one frame in a thousand missed, against a legal ceiling of one per cent. Rollback has a documented failure mode: a city whose cameras could not be switched off without darkening hundreds of streetlights.

A mature capstone can conclude that a narrower pilot or a non-ML workflow is the better choice.

The strongest design makes uncertainty actionable rather than hiding it.

Key takeaways