Skip to main content
← Back to Thoughts

12 Bands vs. NDVI: Sentinel-2 Crop Identification

Guillermo Siesto••15 min read
EN/ES

Published in: Sensors 2023, 23(16), 7132
Authors: Adolfo Lozano-Tello, Guillermo Siesto, Marcos Fernández-Sellers, Andres Caballero-Mancera
Institution: Quercus Software Engineering Group, Universidad de Extremadura
DOI: 10.3390/s23167132 • Open Access • MDPI Full Paper

Abstract: Today, machine learning applied to remote sensing data is used for crop detection. This makes it possible to not only monitor crops but also to detect pests, a lack of irrigation, or other problems. For systems that require high accuracy in crop identification, a large amount of data is required to generate reliable models. The more plots of and data on crop evolution used over time, the more reliable the models. Here, a study has been carried out to analyse neural network models trained with the Sentinel satellite’s 12 bands, compared to models that only use the NDVI, in order to choose the most suitable model in terms of the amount of storage, calculation time, accuracy, and precision. This study achieved a training time gain of 59.35% for NDVI models compared with 12-band models; however, models based on 12-band values are 1.96% more accurate than those trained with the NDVI alone when it comes to making predictions. The findings of this study could be of great interest to administrations, businesses, land managers, and researchers who use satellite image data mining techniques and wish to design an efficient system, particularly one with limited storage capacity and response times.


1. The Architectural Dilemma in Massive Crop Monitoring

When designing an operational satellite crop identification system across an entire region, system architects face a fundamental trade-off between spectral richness and computational efficiency:

  • Option A (Full 12-Band Multispectral Stack): Ingest all 12 operative surface-reflectance bands from Sentinel-2 (B1 through B12, excluding atmospheric band B10) across every date in the growing season. This preserves the complete visible, red-edge, near-infrared (NIR), and short-wave infrared (SWIR) signature of the parcel, but multiplies database storage, I/O bandwidth, and neural network input dimensionality by 12×.
  • Option B (Single-Index NDVI Compression): Compress each multi-band capture into a single scalar per pixel—the Normalized Difference Vegetation Index (NDVI)—cutting feature storage by over 90% and allowing smaller, faster neural networks, at the cost of discarding ten spectral channels.

To give administrations, remote sensing engineers, and agricultural data scientists rigorous empirical benchmarks for this decision, we conducted a head-to-head experiment across the province of Badajoz (Extremadura, Spain)—the largest province in Spain (21,766 km²).

Figure 1: Study area in the province of Badajoz, Extremadura, Spain Figure 1 — Location of the study territory: (left) Extremadura within the Iberian Peninsula; (right) the province of Badajoz partitioned into 977 standardized zones of 5 × 5 km (2,442,500 ha total area).

Territorial Scale & Satellite Dataset:

  • Grid Coverage: 977 zones of 5 × 5 km covering 2,442,500 hectares of territory, containing 1,227,691.87 hectares of declared agricultural land.
  • Ground Truth Parcels: 549,579 agricultural plots extracted from the 2021 Common Agricultural Policy (CAP) campaign.
  • Satellite Acquisitions: 1,483 original Sentinel-2 Level-2A images captured between 1 October 2020 and 15 July 2021.

Figure 2: Geolocation of the 549,579 study plots in Badajoz Figure 2 — Spatial distribution of the 549,579 agricultural plots analyzed across the province of Badajoz during the 2020–2021 campaign.


2. Double-Experiment Pipeline & Preprocessing

To ensure an exact, apples-to-apples comparison, both approaches share a common ingestion, cloud-removal, and parcel-trimming pipeline before diverging into two parallel training branches: one extracting all 12 spectral bands, and the other extracting only the NDVI.

Figure 3: Method overview for the double experiment Figure 3 — Parallel experimental workflow: Sentinel-2 L2A downloads, 5 × 5 km zone trimming, NDVI computation, and ESA cloud masking feed two identical training/validation/testing splits for the 12-band and NDVI neural network models.

Spectral Normalization & NDVI Computation:

All 12 Sentinel-2 bands (B1, B2, B3, B4, B5, B6, B7, B8, B8A, B9, B11, B12) are resampled to a uniform 10 × 10 m pixel grid and normalized into the range [0, 1]. For the NDVI branch, the index is computed for every pixel and date from the Near-Infrared (B8) and Red (B4) bands:

NDVI = (NIR - RED) / (NIR + RED) = (B8 - B4) / (B8 + B4)

Note that if Sentinel-2 imagery is downloaded directly in raw band format rather than pre-indexed from a satellite provider, computing the NDVI locally across 977 zones and 12 months of acquisitions required approximately 102 hours of preprocessing time—an important operational factor when budgeting end-to-end system latency.

Cloud Masking, Hampel Filtering & 5-Day Pentads:

Every pixel time series is cleaned using the European Space Agency (ESA) Scene Classification (SCL) mask to remove clouds, cirrus haze, and shadows, followed by a Hampel filter to eliminate residual atmospheric outliers. Finally, both the 12-band reflectance values and the NDVI values are linearly interpolated into uniform 5-day intervals (pentads) (6 dates per month: days 5, 10, 15, 20, 25, and 28), ensuring identical temporal spacing across all 977 zones.

Figure 4: Evolution of the 12 Sentinel-2 bands for a corn plot during 2021 Figure 4 — Temporal evolution of all 12 Sentinel-2 bands for a representative corn plot during 2021, illustrating distinct trajectories across visible, red-edge, NIR, and SWIR wavelengths.

Figure 5: Evolution of the NDVI for the same corn plot during 2021 Figure 5 — Temporal evolution of the single NDVI curve ((B8 - B4) / (B8 + B4)) for the same corn plot over the same 2021 growing period.


3. Ten Crop Categories & Phenological Sensing Windows

We evaluated 10 major agricultural crop categories across Badajoz, grouped into two distinct phenological sensing windows (Period 1 and Period 2) determined via our prior heuristic sensing-period optimization research:

  • Period 1 (1 October 2020 – 15 July 2021, 57 pentads): Covers permanent woody crops and winter/spring-sown crops whose phenological cycle spans autumn through summer (Rapeseed, Chickpea, Alfalfa, Olive, Vineyard, and intercropped Vineyard–Olive).
  • Period 2 (1 April 2021 – 15 July 2021, 21 pentads): Covers spring-sown irrigated summer crops (Corn, Rice, Tomato, and Onion/Garlic/Leek).

Figure 6: Sensing periods per crop across the agricultural campaign Figure 6 — Duration of the multi-temporal sensing windows assigned to each crop group: Period 1 (October 1 to July 15) vs. Period 2 (April 1 to July 15).

Complete Dataset Split (32.83 Million Pixels):

Across all 10 binary crop datasets (each balanced with 50% target crop pixels and 50% competing crop pixels, partitioned into 70% training, 15% validation, and 15% testing), the study processed a combined total of 32,835,530 pixels (23,453,950 training • 4,690,790 validation • 4,690,790 testing):

  • Rapeseed (Period 1: Oct 1 – Jul 15): 133,940 training px • 26,788 validation px • 26,788 testing px.
  • Chickpea (Period 1: Oct 1 – Jul 15): 349,080 training px • 69,816 validation px • 69,816 testing px.
  • Alfalfa (Period 1: Oct 1 – Jul 15): 262,730 training px • 52,546 validation px • 52,546 testing px.
  • Olive (Period 1: Oct 1 – Jul 15): 7,949,940 training px • 1,589,988 validation px • 1,589,988 testing px.
  • Vineyard (Period 1: Oct 1 – Jul 15): 7,986,370 training px • 1,597,274 validation px • 1,597,274 testing px.
  • Vineyard–Olive (Period 1: Oct 1 – Jul 15): 408,400 training px • 81,680 validation px • 81,680 testing px.
  • Corn (Period 2: Apr 1 – Jul 15): 2,420,130 training px • 484,026 validation px • 484,026 testing px.
  • Rice (Period 2: Apr 1 – Jul 15): 1,454,960 training px • 290,992 validation px • 290,992 testing px.
  • Tomato (Period 2: Apr 1 – Jul 15): 2,434,290 training px • 486,858 validation px • 486,858 testing px.
  • Onion / Garlic / Leek (Period 2: Apr 1 – Jul 15): 54,110 training px • 10,822 validation px • 10,822 testing px.

Figure 7: Total training pixels per crop category Figure 7 — Distribution of training pixels across the 10 studied crops, dominated by Extremadura's extensive olive groves (7.95M training pixels) and vineyards (7.99M training pixels).


4. Pixel-Level Synthetic Inputs & Neural Network Architectures

For every 10 × 10 m pixel inside a parcel, we construct a multi-temporal synthetic representation:

  • 12-Band Synthetic Input: A 2D matrix stacking all 12 spectral bands across each 5-day pentad of the sensing period (Figure 8).
  • NDVI Synthetic Input: A 1D temporal vector containing only the single NDVI value across each 5-day pentad of the sensing period (Figure 9).

Figure 8: Extraction of 12-band multi-temporal matrix for a single pixel Figure 8 — Construction of the 12-band neural network input for a single pixel: all 12 bands are extracted across every 5-day pentad and assembled into a 2D spectro-temporal matrix.

Figure 9: Extraction of NDVI multi-temporal vector for a single pixel Figure 9 — Construction of the NDVI neural network input for a single pixel: the single NDVI scalar is extracted across every 5-day pentad into a compact 1D vector.

Averaging these inputs across all training pixels reveals why both representations are informative, while highlighting the extra spectral dimensions preserved by the 12-band matrix:

Figure 10: Average 12-band neural network inputs across all 10 crops Figure 10 — Average 12-band spectro-temporal input matrices for each of the 10 crop categories.

Figure 11: Average NDVI neural network inputs across all 10 crops Figure 11 — Average NDVI temporal signatures for each of the 10 crop categories.

Deep Neural Network Topologies:

Because the 12-band input has 12× the feature dimensionality of the NDVI vector, we tuned the hidden layer capacities of the two Deep Neural Network (DNN) architectures in Keras/TensorFlow (Adam optimizer, ReLU activations, Batch Normalization, and Dropout regularization) to match their respective input complexity without underfitting or overfitting:

  • 12-Band DNN Architecture: 3 hidden dense blocks of 128 → 64 → 32 neurons followed by a 2-neuron classification output.
  • NDVI DNN Architecture: 3 hidden dense blocks of 32 → 16 → 8 neurons followed by a 2-neuron classification output.

Figure 12: Neural network architectures for 12-band vs NDVI inputs Figure 12 — Deep Neural Network architectures: (a) 128–64–32 topology used for 12-band inputs; (b) compact 32–16–8 topology used for NDVI inputs.


5. Experimental Results: 59.35% Faster Training vs. 1.96% Higher Accuracy

All 20 binary crop models (10 using 12 bands, 10 using NDVI) were trained on an Intel Core i9-9900K (3.60 GHz) workstation with 64 GB DDR4 RAM and an NVIDIA GeForce RTX 2080 Ti GPU and evaluated on the independent 15% test sets.

Figure 13: Confusion matrices for the 10 models trained with 12 bands Figure 13 — Normalized test confusion matrices for each of the 10 crop models trained with all 12 Sentinel-2 bands.

Figure 14: Confusion matrices for the 10 models trained with NDVI Figure 14 — Normalized test confusion matrices for each of the 10 crop models trained with NDVI alone.

Global Benchmark Averages (12 Bands vs. NDVI):

  • Overall Accuracy: 0.9334 (93.34%) with 12 Bands vs. 0.9141 (91.41%) with NDVI (+1.96% relative accuracy gain for 12 Bands).
  • Precision: 0.9471 with 12 Bands vs. 0.9152 with NDVI.
  • Recall: 0.9184 with 12 Bands vs. 0.9133 with NDVI.
  • F-Score: 0.9319 with 12 Bands vs. 0.9136 with NDVI (+1.83 percentage points for 12 Bands).
  • Test Loss: 0.2630 with 12 Bands vs. 0.2474 with NDVI.
  • Average Training Time per Crop: 12 min 23 s with 12 Bands vs. 05 min 02 s with NDVI (59.35% faster training with NDVI).

Per-Crop Breakdown (F-Score, Accuracy & Training Time):

  • Rapeseed:
    • 12 Bands: Accuracy 0.9557 • Precision 0.9718 • Recall 0.9386 • F-Score 0.9549 • Time 07m 37s
    • NDVI: Accuracy 0.9424 • Precision 0.9277 • Recall 0.9596 • F-Score 0.9434 • Time 00m 59s (87.09% faster)
  • Chickpea:
    • 12 Bands: Accuracy 0.9317 • Precision 0.9571 • Recall 0.9039 • F-Score 0.9297 • Time 12m 11s
    • NDVI: Accuracy 0.8965 • Precision 0.9056 • Recall 0.8853 • F-Score 0.8954 • Time 02m 42s (77.84% faster)
  • Alfalfa:
    • 12 Bands: Accuracy 0.9209 • Precision 0.9585 • Recall 0.8799 • F-Score 0.9175 • Time 09m 59s
    • NDVI: Accuracy 0.8796 • Precision 0.9102 • Recall 0.8424 • F-Score 0.8750 • Time 02m 23s (76.13% faster)
  • Olive:
    • 12 Bands: Accuracy 0.9499 • Precision 0.9543 • Recall 0.9451 • F-Score 0.9497 • Time 26m 43s
    • NDVI: Accuracy 0.9218 • Precision 0.9242 • Recall 0.9190 • F-Score 0.9216 • Time 16m 42s (37.50% faster)
  • Vineyard:
    • 12 Bands: Accuracy 0.9410 • Precision 0.9355 • Recall 0.9473 • F-Score 0.9414 • Time 26m 48s
    • NDVI: Accuracy 0.9182 • Precision 0.9234 • Recall 0.9122 • F-Score 0.9178 • Time 07m 41s (71.33% faster)
  • Vineyard–Olive:
    • 12 Bands: Accuracy 0.8958 • Precision 0.9287 • Recall 0.8573 • F-Score 0.8916 • Time 09m 09s
    • NDVI: Accuracy 0.8594 • Precision 0.8424 • Recall 0.8842 • F-Score 0.8628 • Time 02m 29s (72.86% faster)
  • Corn:
    • 12 Bands: Accuracy 0.9489 • Precision 0.9435 • Recall 0.9551 • F-Score 0.9493 • Time 07m 55s
    • NDVI: Accuracy 0.9562 • Precision 0.9569 • Recall 0.9554 • F-Score 0.9561 • Time 04m 30s (43.16% faster)
  • Rice:
    • 12 Bands: Accuracy 0.9613 • Precision 0.9488 • Recall 0.9752 • F-Score 0.9618 • Time 08m 06s
    • NDVI: Accuracy 0.9647 • Precision 0.9589 • Recall 0.9710 • F-Score 0.9649 • Time 04m 44s (41.56% faster)
  • Tomato:
    • 12 Bands: Accuracy 0.9213 • Precision 0.9357 • Recall 0.9048 • F-Score 0.9200 • Time 07m 51s
    • NDVI: Accuracy 0.9110 • Precision 0.9118 • Recall 0.9101 • F-Score 0.9109 • Time 06m 41s (14.86% faster)
  • Onion / Garlic / Leek:
    • 12 Bands: Accuracy 0.9078 • Precision 0.9370 • Recall 0.8744 • F-Score 0.9046 • Time 07m 33s
    • NDVI: Accuracy 0.8914 • Precision 0.8907 • Recall 0.8922 • F-Score 0.8915 • Time 01m 29s (80.35% faster)

Figure 15: Comparison of F-Score and Loss between 12 Bands and NDVI Figure 15 — Side-by-side comparison of test F-score and test Loss across all 10 crops for the 12-band models vs. the NDVI models.

Figure 16: Comparison of Training Time between 12 Bands and NDVI Figure 16 — Training time comparison (in minutes) across all 10 crops, showing consistent speedups ranging from 14.86% to 87.09% (59.35% average reduction) when training with NDVI.

Permanent vs. Summer Crops — Where Do the 12 Bands Matter Most?

A critical insight emerges when disaggregating results by crop permanence:

  • Permanent Woody Crops (Olive, Vineyard, Vineyard–Olive, Alfalfa): The 12-band models outperform NDVI models substantially, achieving a mean F-score of 0.9173 vs. 0.9004. Because woody crops have exposed inter-row soil, woody bark, and subtler seasonal leaf variation, SWIR and red-edge bands (B5, B6, B7, B11, B12) capture structural and moisture differences that NDVI alone misses.
  • Summer Irrigated Crops (Corn, Rice, Tomato, Onion/Garlic/Leek): Both approaches achieve virtually identical accuracy, with mean F-scores of 0.9304 (12 Bands) vs. 0.9325 (NDVI). For vigorous summer crops with rapid canopy closure—or flooded crops like rice (0.9649 NDVI vs. 0.9618 12 Bands) and corn (0.9561 NDVI vs. 0.9493 12 Bands)—the NDVI trajectory alone captures enough phenological contrast to match or slightly edge out the 12-band network.

Figure 17: F-Score vs Training Time scatter plot per crop Figure 17 — Joint trade-off plot of F-score vs. training duration across all 10 crops for 12-band (blue) and NDVI (orange) neural networks.


6. Practical Guidelines for Remote Sensing System Designers

Based on our experimental findings across 549,579 plots, we recommend the following architectural decision rules when building large-scale crop identification systems:

  1. Choose the 12-Band Architecture when:
    • Maximum classification precision (+1.96% overall accuracy, and up to +4.25% F-score on complex perennial or forage crops like alfalfa, chickpea, and vineyard–olive) is a strict regulatory requirement.
    • Your pipeline downloads raw Sentinel-2 L2A bands directly and you want to avoid the ~102 hours of local preprocessing required to compute NDVI rasters prior to pixel extraction.
    • Storage capacity and GPU training time are plentiful.
  2. Choose the NDVI Architecture when:
    • Your satellite data provider (e.g., Sentinel Hub or Google Earth Engine) serves pre-computed NDVI layers directly, cutting download bandwidth and local database storage by ~91.6% (1 value vs. 12 values per pixel-date).
    • Fast model iteration, hyperparameter search, or frequent seasonal retraining is needed (59.35% faster neural network training on average).
    • Your monitoring targets primarily irrigated summer crops (such as corn and rice), where NDVI models match or slightly surpass 12-band F-scores at a fraction of the compute cost.

If you use these benchmarks or methodology in your remote sensing or agricultural machine learning research, please cite the original article:

@article{lozano2023evaluation,
  title={Evaluation of the Use of the 12 Bands vs. NDVI from Sentinel-2 Images for Crop Identification},
  author={Lozano-Tello, Adolfo and Siesto, Guillermo and Fern{\'a}ndez-Sellers, Marcos and Caballero-Mancera, Andres},
  journal={Sensors},
  volume={23},
  number={16},
  pages={7132},
  year={2023},
  publisher={MDPI},
  doi={10.3390/s23167132}
}