Learning

Detect tree wilt with machine learning

Screen satellite-image segments for tree-wilt signatures

This reproducible classification study uses five QuickBird spectral and texture descriptors to distinguish wilt-labelled segments from other land cover. After an explicit 3-IQR outlier-cleaning step, the selected 5–4–1 network classifies 85 of 113 held-out rows correctly (75.2%; ROC AUC 0.820). The result is an internal benchmark for a deliberately rebalanced tutorial subset, not a validated forest-health monitoring system.

75.2%held-out accuracy
77.6%wilt sensitivity
0.820testing ROC AUC
113held-out segments

1. Scientific objective

The objective is to reproduce a binary remote-sensing classifier that assigns a wilt score to a segmented QuickBird image object. The source study targeted foliage discolouration associated with Japanese oak wilt and Japanese pine wilt. In a research workflow, the model can help prioritize image segments for map review and field inspection; it does not identify a pathogen or confirm disease in an individual tree.

Prioritize candidate segments

Rank image objects from routinely derived spectral and panchromatic texture summaries.

Audit preprocessing

Expose the exact subset construction, outlier rule, exclusions and random split before modelling.

Evaluate missed detections

Report sensitivity, specificity and false-negative counts rather than accuracy alone.

Forest-health researchersRemote-sensing specialistsEnvironmental data scientistsGeospatial analysts
Scope. Each row is a segmented satellite-image object, not a longitudinal observation of a tree. The endpoint is the supplied binary label wilt; the page does not model disease progression, causal agents, infestation severity or individual-tree survival.

2. Data and provenance

The downloadable tree_wilt.csv contains 574 rows, five numeric inputs and one binary target, with no missing values.

CSV fieldModel roleDefinitionUnit or coding
glcmInputMean grey-level co-occurrence-matrix texture statistic from the panchromatic bandImage-derived statistic
greenInputMean green-band value inside the image segmentSource-image digital value
redInputMean red-band value inside the image segmentSource-image digital value
nirInputMean near-infrared-band value inside the image segmentSource-image digital value
pan_bandInputStandard deviation of panchromatic-band values inside the segmentSource-image digital value
wiltTargetSupplied segment class1 = diseased-tree segment; 0 = other land cover

Derived tutorial subset

The UCI release provides separate training and testing files. This tutorial table is a derived, rebalanced subset: it contains all 500 rows from the source testing file plus the 74 diseased-tree rows from the source training file. It excludes the 4,265 other-land-cover rows from that training file. The resulting table contains 261 positive and 313 negative rows and must not be compared directly with results from the original UCI split.

Outlier cleaning before modelling

Neural Designer applies Tukey’s rule to the numeric variables: values outside [Q1 − 3×IQR, Q3 + 3×IQR] are flagged. The per-variable counts are shown below; they overlap, so they do not sum to the number of excluded rows.

VariableFlagged values
glcm0
green6
red4
nir1
pan_band1
wilt0

Seven overlapping rows (1.22% of the table) are marked unused. All seven have wilt = 0. The model therefore uses 567 rows: 261 positive and 306 negative.

Green-band distribution before outlier cleaning
Before cleaning, a few extreme green-band values stretch the horizontal scale and compress the central distribution.
Green-band distribution after outlier cleaning
After the flagged rows are marked unused, the distribution of the 567 modelled rows becomes interpretable.
Project roleRowsWiltOther land coverPurpose
Training341150191Estimate model parameters
Selection1136251Compare hidden-layer sizes
Testing1134964Report final internal performance
Unused after cleaning707Excluded before fitting
Provenance. The UCI Wilt dataset was donated by Brian Johnson and is licensed CC BY 4.0 (dataset DOI). It contains segmented, pansharpened QuickBird imagery from the remote-sensing study by Johnson, Tateishi and Hoan. The download on this page preserves source numeric values while renaming the fields and converting the class to 0/1.

3. Model

The initial network standardizes the five inputs, passes them through one dense layer with three tanh neurons and returns one sigmoid score. The 5–3–1 architecture contains 22 trainable parameters and is used as the starting point before hidden-layer selection.

Output contract. A score of at least 0.50 is labelled as a wilt candidate. The sigmoid value has not been independently calibrated as a probability, and the threshold has not been optimized for a forestry decision cost.
Initial tree-wilt classifier with five inputs, three hidden neurons and one output
Initial 5–3–1 architecture used before neuron selection.

4. Training strategy

The classifier minimizes class-weighted squared error with the quasi-Newton method. The stored configuration uses positive and negative weights of 1.0862 and 0.9265, respectively, and no explicit regularization.

For the initial three-neuron network, training error falls from 0.982 to 0.169 over 98 epochs. Selection error reaches its lowest region much earlier—approximately 0.158 near epoch 24—and then rises to 0.548. This divergence is evidence of overfitting in the displayed run; it is one reason not to judge the model from training loss alone.

Training and selection error history for the initial tree-wilt network
Initial-network learning curve. The widening gap after the minimum selection error should be treated as a model-development warning, not as evidence of improved generalization.

5. Model selection and baseline

Growing-neurons selection evaluates hidden-layer sizes from one to ten, with three trials per size. The lowest reported selection error is 0.1657 at four hidden neurons; the corresponding training error is 0.1380.

Tree-wilt training and selection error by hidden-neuron count
Neuron-selection history. Four tanh neurons provide the lowest selection error in this search.

Selected architecture

The selected 5–4–1 network has 29 trainable parameters and is the model used for the final testing analysis, browser demonstration and downloadable Python export.

Selected tree-wilt classifier with five inputs, four hidden neurons and one output
Final 5–4–1 architecture obtained after growing-neurons selection.
ReferenceTesting accuracyInterpretation
Majority-class baseline56.6%Predict every testing row as other land cover
Selected neural network75.2%18.6 percentage points above the internal baseline

6. Scientific validation

Final performance is calculated once on 113 rows assigned to the testing subset. At the fixed 0.50 threshold, the classifier detects 38 of 49 wilt-labelled segments and correctly rejects 47 of 64 other-land-cover segments.

Actual / predictedWilt candidateOther land coverTotal
Wilt381149
Other land cover174764
Total5558113
Testing metricValueOperational reading
Accuracy75.2%85 of 113 testing segments are classified correctly
Wilt precision69.1%38 of 55 flagged segments are true positives in this split
Wilt sensitivity77.6%38 of 49 wilt-labelled segments are detected
Specificity73.4%47 of 64 other-land-cover segments are rejected
Wilt F10.731Harmonic balance of precision and sensitivity
Balanced accuracy75.5%Mean of sensitivity and specificity
ROC AUC0.820Ranking performance across all score thresholds
Interpretation. The network improves clearly on the 56.6% majority baseline, but it still misses 11 of 49 wilt-labelled testing segments and raises 17 false alerts. Those two error types should be assigned explicit field-review costs before choosing a deployment threshold.

7. Inference and reproducibility

A defensible inference pipeline starts upstream of the neural network. Image segmentation and the five feature definitions must remain identical to the study pipeline, and every prediction must retain acquisition and segment identifiers for spatial review.

QuickBird image segment
Reproduce five descriptors
Schema and range checks
5–4–1 classifier
Score and threshold
Map review and field confirmation

Held-out calculation example

The rounded values below correspond to a row assigned to the testing subset. Its supplied target is other land cover. The exported model returns a wilt score of 0.020051 and therefore assigns the negative class at the 0.50 threshold.

InputValue
glcm101
green190
red81
nir320
pan_band23
Exported-model resultOther land coverWilt score 2.01% · supplied label 0

Try the exported tree-wilt classifier

Research demonstration. The calculation runs locally with the exact exported weights and preprocessing. Enter only features generated with the same segmentation and image-processing definitions. Values outside the validated domain are rejected.

Reproduce the calculation

The Python package contains the exact exported model, ordered input schema and executable example. The Neural Designer package contains the cleaned sample roles, initial and selected architectures, training settings and regenerated analyses.

8. Validity, uncertainty and limitations

  • Derived sampling design. The tutorial table keeps all 500 source testing rows but adds only the 74 positive rows from the source training file. It excludes 4,265 negative training rows, then creates a new random split. The reported metrics are therefore not an evaluation on the official UCI test protocol.
  • Outlier-selection boundary. Tukey thresholds are calculated before the model split and exclude seven negative rows. A confirmatory workflow should estimate cleaning thresholds from training data only and report sensitivity analyses with and without exclusions.
  • Spatial dependence is untested. The table has no coordinates, acquisition blocks or segment-group identifiers. Random row splitting can place nearby or related image objects in different subsets.
  • Image-processing contract is incomplete. The CSV does not package the pansharpening, segmentation, georeferencing or feature-extraction implementation needed to reproduce descriptors from raw imagery.
  • Transfer is untested. Sensor calibration, illumination, season, atmospheric correction, geography, species mix and disease stage may shift the feature distributions.
  • Training-curve warning. The initial run shows increasing selection error after its early minimum. Checkpointing at the best selection epoch and repeated grouped validation should precede any scientific conclusion.
  • Uncalibrated decision score. The sigmoid output ranks candidates but is not demonstrated to be a calibrated probability. The 0.50 threshold has not been selected from surveillance costs.
  • Endpoint boundary. A positive segment is a remote-sensing disease candidate, not laboratory confirmation of Japanese oak wilt, Japanese pine wilt or a causal organism.
Decision boundary. Use the model for reproducible research and candidate prioritization. Confirm consequential forest-health decisions with independent imagery review, field inspection and appropriate diagnostic evidence.

References