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
- Translate a real-world objective into a complete vision system specification
- Choose sensing, labels, architectures, metrics, and thresholds with explicit assumptions
- Design human review, privacy, security, deployment, and monitoring
- Defend the system using evidence, failure analysis, and stop conditions
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 much a tree model gains from seeing more cities has a size — 21.3% in class-averaged recall, on each city's own test set, from training on all cities rather than one. The municipal field reference turns out to hold three health values, recorded for living trees only. 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.” The residual follows from that figure: roughly one face or plate in a thousand missed.
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.
1. Capture
Vehicle cameras, location, time, weather, view geometry, and consent or notice.
2. Quality and privacy filter
Reject unusable frames and redact faces, plates, and private-property regions.
3. Perception stack
Detect trees, segment crowns or trunks, estimate attributes, and track repeated observations.
4. Decision support
Rank inspection candidates with uncertainty, history, and municipal rules.
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.
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 on each city's own test set rose by 21.3% on average — 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.” Coverage is not a detail in urban tree vision; it is a large effect, so a score measured inside one city should not be read as a score for the next one.
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, one more than the 13,961 dead trees and 17,654 stumps, which have no health to record. 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.
1. Define entities
Assign stable tree and observation IDs without encoding resident identity.
2. Sample the city
Cover species, neighborhoods, seasons, tree ages, road types, and camera routes.
3. Create references
Combine arborist field assessments, maintenance records, and explicit uncertainty.
4. Split structurally
Hold out neighborhoods, future seasons, vehicles, and entire trees.
5. Document provenance
Record capture, redaction, annotation, revisions, and permitted uses.
Predict first
Genus or crown?
Trained volunteers and professional arborists assess the same street trees independently. Two of the things they record are the tree's genus and how thin its crown looks.
On which do you expect volunteers and experts to agree more often, and roughly how much more?
Settle on an answer, then read on — the next section is the reveal
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, estimated there in fine 5% classes, agreed within 10% only 76% of the time, against about 90% (exact class agreement) for the coarse 25% classes Roman's volunteers used, and transparency, which that study measured from photographs by automated processing, within 15% only 76% of the time. Roman's own tables give the gap inside one study, 90.7% agreement on genus against 71.5% on crown transparency, and that gap 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 volunteers matched experts on crown transparency only 71.5% of the time in Roman's study, which advised dropping it from volunteer projects altogether, and dieback estimated in 5% classes agreed within 10% only 76% of the time in the Hallett study, against about 90% (exact class agreement) for Roman's 25% classes.
- 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 nothing in this lesson shows a stack change buying the same gain.
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 0.1% of faces and plates that 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 says nothing about the next city, and in this domain coverage alone moved class-averaged recall by 21.3%. And the arborist-agreement row carries a ceiling of its own. Volunteers and experts agree only 71.5% of the time on crown transparency in Roman's study, and within 10% on dieback estimated in 5% classes only 76% of the time in Hallett's, so a model scored against those labels cannot be credited with more precision than the reference itself holds.
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, recorded only for living trees. 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.
1. Offline validation
Use locked geographic and temporal holdouts with species and neighborhood slices.
2. Silent field trial
Generate rankings without changing inspection schedules.
3. Controlled assistance study
Compare arborist workflow with and without prioritized evidence.
4. Limited operational pilot
Deploy in selected districts with monitoring, appeal, and rollback.
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
Turning a redaction rate into a daily count
The fleet and its numbers are invented: 20 service vehicles whose cameras capture about 30,000 identifiable faces and licence plates a day across the city.
- 1. At the best published detection rate, 99.9%, about 30 faces and plates a day go unblurred — some 900 in a 30-day month.
- 2. At the Swiss court's ceiling of 1%, the figure would be 300 a day, ten times as many, and lawful there only while the rate keeps falling and the improvements are documented.
- 3. The retention rule has to be written for those frames: for instance, raw frames deleted within seven days once redaction has been audited, and never released unredacted.
- 4. The stop condition becomes a number with a denominator: audit a sample of 2,000 faces and plates each week, and pause capture if more than 4 are missed — a rate above 0.2%.
- 5. Near the sensitive sites the court named, the threshold is zero: complete anonymisation before anything is published, which the design has to enforce by place, not by average.
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 records with no health value, nearly all of them dead trees and stumps.
- 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 71.5% volunteer–expert agreement on crown 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 coverage has a measured size in this exact domain: class-averaged recall rose 21.3% from single-city to full-dataset training. The reference has a measured coarseness — three health values, recorded for living trees only — and a measured volunteer–expert agreement of 71.5% on crown transparency. Privacy filtering has a measured miss rate, 99.9% detection at best published and roughly one face or plate 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
- A complete vision system integrates sensing, privacy, data, models, decision policy, people, deployment, and monitoring — and each layer owes a measured number rather than an assurance.
- Scope must match the evidence tier. ANSI A300 (Part 9)-2011 makes drive-by observation a Level 1 limited visual assessment, and clause 93.6.4.1 leaves the decision to act with the owner, the owner's agent, or the controlling authority.
- Geographic coverage is a large effect here. Auto Arborist holds out one city per region across 23 US and Canadian cities, and multi-city training raised class-averaged recall on each city's own test set by 21.3% on average.
- Field references are coarse and slow. TreesCount! 2015 recorded 666,134 street trees with three health values, recorded for living trees only. Label schemas must stay inside what observers reproduce: about 91% on genus against 71.5% on crown transparency in the same study.
- Redaction reduces privacy risk at a measurable rate and never removes it: more than 89% of faces in 2009, 99.9% in 2018. The Swiss Federal Supreme Court fixed one per cent as the maximum tolerable error rate, under a ratchet.
- Stop conditions need thresholds, named owners, and a physical path. San Diego's cameras shared a power supply with the streetlights and had no off switch when the mayor ordered access cut on 9 September 2020.