Guide to AI and Data Courses · Lecture Notes
Chapter 21: Remote Sensing
To learn how much a forest has shrunk this summer, nobody has to climb every hill; a satellite hundreds of kilometers up measures the same place every few days. But a satellite does not send a photograph. It sends a few numbers for every pixel: how much light came back at different wavelengths. Remote sensing is the course about turning those numbers into trustworthy information on vegetation, water, soil and buildings. These notes introduce the course and work through its three core ideas with small examples you can compute by hand.
Learning outcomes
- Spectral signature
- Compute an index such as NDVI or NDWI from a pixel's band values and interpret the result.
- Correction
- Show with an example why digital values must be converted to reflectance and why the atmosphere must be corrected.
- Classification
- Assign a pixel to a class with the minimum-distance (nearest mean) method.
- Map accuracy
- Compute overall accuracy, producer's and user's accuracy and the kappa coefficient from a confusion matrix.
- Place of the course
- State what separates remote sensing from image processing, computer vision, time series analysis and medical imaging.
21.1What question does the course ask?
What can satellite and aerial images tell us about the Earth?
Remote sensing extracts information about the Earth without touching it, by measuring reflected and emitted energy with sensors on satellites, aircraft or drones. An image is not just a color photo but multiband data, where each band carries a different physical measurement.
In an ordinary photograph every pixel carries three numbers: red, green and blue. In a satellite image a pixel may carry thirteen, or a hundred bands, and many of them lie in the infrared or thermal range that the eye cannot see. Each band measures how much energy the surface reflects or emits at that wavelength. So the image is read not as a picture but as a vector of measurements for every point on Earth.
The course asks two questions. The first is physical: why does the same surface behave differently in different bands, and how closely does the number the sensor records reflect the real surface? The second is about method: how do we get a map from these numbers (which pixel is forest, which is water), and how do we say how much to trust the map? The whole course follows one chain: measure, correct, compute, classify, validate.
21.1.1Four resolutions
Four kinds of resolution describe a sensor, and each is bought at the expense of the others. Spatial resolution is the side length of a pixel on the ground (10 m, 30 m). Spectral resolution is how many bands there are and how narrow they are. Temporal resolution is how often the satellite returns to the same place. Radiometric resolution is how many levels the measurement is recorded in (256 for 8 bits, 4096 for 12). Watching a wide area frequently calls for medium spatial resolution, picking out a single building for very high resolution; so there is no "best" sensor, only the sensor that fits the question.
21.1.2At a glance
| Criterion | Remote Sensing |
|---|---|
| Approach | physical sensing and image analysis |
| Input | multispectral satellite imagery |
| Output | land cover map, change |
| Success measure | map accuracy, kappa |
| Math load | medium |
| Data needs | plenty; labels limited |
21.2A short history
| Year | Milestone |
|---|---|
| 1858 | Nadar photographs Paris from a balloon: the first known aerial photograph. |
| 1960 | The first weather satellite, TIROS-1, is launched; clouds are imaged routinely from space. |
| 1972 | Landsat 1 is launched: the first civilian program to monitor the Earth in multiple bands. |
| 1978 | Seasat becomes the first civilian satellite to collect synthetic aperture radar (SAR) images from space. |
| 2008 | The US Geological Survey (USGS) opens the Landsat archive to everyone for free. |
| 2015 | Sentinel-2A is launched; Copernicus open data starts an era of frequent, free imagery. |
21.3Core concepts
The rest of the course is built on the concepts below. The following sections work through the most important ones with examples.
| Concept | Meaning |
|---|---|
| Electromagnetic spectrum | Visible, infrared, thermal and microwave bands. |
| Passive and active | Optical sensors measure sunlight; radar sends its own signal. |
| Types of resolution | Spatial, spectral, temporal and radiometric. |
| Spectral signature | Water, plants and soil reflect differently in each band. |
| Band indices | NDVI for vegetation, NDWI for water. |
| Corrections | Atmospheric, terrain and geometric correction. |
| Land classification | Labeling each pixel as forest, field, urban or water. |
| Change detection | Comparing images from different dates. |
21.4Spectral signatures, reflectance and band indices
Surfaces reflect light differently at different wavelengths. A healthy leaf absorbs red because of chlorophyll and reflects near-infrared strongly because of its internal structure. Water absorbs almost all near-infrared. Bare soil reflects moderately and similarly in both bands. The curve of reflectance against band is a surface's spectral signature. This difference lets us guess what lies under a pixel by looking at it.
NDVI (normalized difference vegetation index) = (NIR − R) / (NIR + R), where NIR is near-infrared and R is red reflectance. NDWI (McFeeters form) = (G − NIR) / (G + NIR), where G is the green band. Both lie between −1 and +1; because they are ratios, they cancel part of the lighting differences.
What the sensor stores is often a digital number (DN). Products first convert it to reflectance; many products store reflectance as an integer after scaling (for example multiplied by 10,000). The example below uses that scale. The reflectance values are illustrative; real surfaces vary.
Let the corrected reflectances of three pixels be as below (the values are illustrative). With scale 10,000, a red-band DN of 500 means reflectance 500/10,000 = 0.05.
| Pixel | Green | Red | Near-infrared |
|---|---|---|---|
| Vegetation | 0.08 | 0.05 | 0.50 |
| Water | 0.08 | 0.04 | 0.02 |
| Bare soil | 0.22 | 0.25 | 0.30 |
- Vegetation NDVI. (0.50 − 0.05)/(0.50 + 0.05) = 0.45/0.55 ≈ 0.82: high, dense green cover.
- Soil NDVI. (0.30 − 0.25)/(0.30 + 0.25) = 0.05/0.55 ≈ 0.09: near 0, a surface without plants.
- Water NDVI. (0.02 − 0.04)/(0.02 + 0.04) = −0.02/0.06 ≈ −0.33: negative.
- Water NDWI. (0.08 − 0.02)/(0.08 + 0.02) = 0.06/0.10 = 0.60: positive and high; the vegetation pixel's NDWI is (0.08 − 0.50)/0.58 ≈ −0.72, negative.
Two numbers were enough to tell the three surfaces apart: high NDVI means vegetation, NDVI near 0 means soil, high NDWI means water.
21.4.1Why correct for the atmosphere?
Before light reaches the sensor it is scattered and absorbed in the atmosphere. Scattered light adds a haze contribution that does not come from the surface and lifts the band. The contribution is larger at short wavelengths, but for simplicity let us assume the same 0.05 is added to both bands.
Computing an index on uncorrected images and comparing dates. If 0.05 of haze is added to both bands of the vegetation pixel above, red becomes 0.10, near-infrared 0.55, and NDVI = 0.45/0.65 ≈ 0.69; the true value was 0.82. The surface did not change at all, yet the index fell by 0.13. If two dates have different amounts of haze, this is read as a false "loss of vegetation". Atmospheric correction is therefore not a refinement but a precondition for comparison.
21.5Classifying pixels and measuring map accuracy
Turning a measurement vector into a class is the classification problem of machine learning, set up in the same pattern: training pixels are collected from the field or from known areas, the band means of each class are computed, and the remaining pixels are labeled according to these means. The simplest method is the minimum-distance (nearest mean) classifier: the pixel's measurement vector is compared with every class mean by Euclidean distance and the nearest class is chosen.
We use two bands: (red, near-infrared). The class means from training areas are (the values are illustrative): water (0.04, 0.02), vegetation (0.05, 0.50), soil (0.25, 0.30). The pixel to label is P = (0.10, 0.40).
- Distance to water. √(0.06² + 0.38²) = √0.148 ≈ 0.385.
- Distance to vegetation. √(0.05² + 0.10²) = √0.0125 ≈ 0.112.
- Distance to soil. √(0.15² + 0.10²) = √0.0325 ≈ 0.180.
- Decision. The smallest distance belongs to vegetation: P is labeled "vegetation".
For another pixel Q = (0.18, 0.33) the distances are water 0.340, vegetation 0.214, soil 0.076, so Q is soil. The method assumes that the classes form separate clusters in measurement space. When classes overlap, methods that also account for the spread of each class, such as maximum likelihood, or random forests and deep learning are used.
When the map is finished the real question begins: how accurate is it? The answer comes from reference points collected independently of the map and summarized in a confusion matrix. In remote sensing practice, rows are the class on the map and columns the true class confirmed in the field.
Overall accuracy = sum of the diagonal / number of samples. Producer's accuracy (for one class) = diagonal / column total: of the places that really are that class, how many did the map find? (the counterpart of recall). User's accuracy = diagonal / row total: of the places the map shows as that class, how many really are? (the counterpart of precision). Kappa κ = (O − E) / (1 − E), where O is overall accuracy and E the agreement expected by chance: the sum of products of row and column totals divided by N².
100 reference points (rows: map, columns: truth; the values are illustrative):
| Map \ Truth | Forest | Field | Water | Row total |
|---|---|---|---|---|
| Forest | 40 | 6 | 0 | 46 |
| Field | 8 | 30 | 2 | 40 |
| Water | 2 | 0 | 12 | 14 |
| Column total | 50 | 36 | 14 | 100 |
- Overall accuracy. (40 + 30 + 12)/100 = 0.82.
- Forest. Producer's 40/50 = 0.80; user's 40/46 ≈ 0.87.
- Field. Producer's 30/36 ≈ 0.83; user's 30/40 = 0.75.
- Chance agreement. E = (46·50 + 40·36 + 14·14)/100² = 3936/10,000 = 0.3936.
- Kappa. κ = (0.82 − 0.3936)/(1 − 0.3936) ≈ 0.70.
Overall accuracy is 82% while kappa is 0.70: kappa takes into account that some correct labels could be hit by chance. Field has the lowest user's accuracy: a quarter of the places shown as field on the map belong to another class.
Measuring accuracy on the pixels used to train the classifier. Training areas have already been fitted by the map, and neighboring pixels are very similar, so the result is optimistic. Reference points must be independent of the training areas, sufficient in number for each class, and preferably confirmed in the field or with a more detailed source.
21.6Change detection
Comparing images of the same place from two dates is the most powerful use of remote sensing: a burning forest, an overflowing river, a growing city. The simple way is to compute an index on each date and put a threshold on the difference. For forest fires a common index is NBR (normalized burn ratio), the normalized difference of near-infrared and shortwave infrared. Healthy vegetation reflects near-infrared strongly and shortwave infrared weakly; on a burned area this reverses.
NBR = (NIR − SWIR) / (NIR + SWIR), where SWIR is shortwave infrared reflectance. Fire severity is measured by dNBR = NBRbefore − NBRafter. The larger the difference, the more severe the change.
Let a pixel have NIR = 0.40 and SWIR = 0.10 before the fire, and NIR = 0.20 and SWIR = 0.25 after it (the values are illustrative).
- Before. NBR = (0.40 − 0.10)/(0.40 + 0.10) = 0.30/0.50 = 0.60.
- After. NBR = (0.20 − 0.25)/(0.20 + 0.25) = −0.05/0.45 ≈ −0.11.
- Difference. dNBR = 0.60 − (−0.11) ≈ 0.71.
Now take the dNBR values of a 4 × 4 pixel patch and a threshold of 0.5:
| 0.05 | 0.10 | 0.72 | 0.80 |
| 0.08 | 0.65 | 0.75 | 0.70 |
| 0.02 | 0.12 | 0.68 | 0.15 |
| 0.04 | 0.06 | 0.09 | 0.10 |
- Pixels above the threshold. The 6 pixels in bold exceed 0.5.
- Pixel area. The shortwave infrared bands have 20 m resolution; one pixel is 20 × 20 = 400 m², that is 0.04 ha.
- Burned area. 6 × 0.04 = 0.24 ha.
- Mean severity. (0.72 + 0.80 + 0.65 + 0.75 + 0.70 + 0.68)/6 = 4.30/6 ≈ 0.72.
In a real fire the same computation runs over hundreds of thousands of pixels; the logic does not change. The threshold is chosen for the region and vegetation type and validated in the field.
Taking every large difference for real change. If a wheat field has an NDVI of 0.75 in May and 0.20 in July after harvest, the difference is 0.55 (the values are illustrative) and may exceed a fire threshold, yet the field has simply gone through its normal seasonal cycle. Clouds and shadows produce false change in the same way. So dates are chosen from the same season, clouds and shadows are masked, and the result is checked in the field or with a higher-resolution image where possible.
Instead of a single difference, a yearly series of an index can also be built; this is where time series analysis comes in. In cloudy regions, using radar (SAR) instead of optical images is one solution, because radar does not depend on clouds or daylight.
21.7How is the course taught?
21.7.1A typical workflow
Sentinel-2 images taken before and after a forest fire are corrected for the atmosphere. A burn index is computed from the near-infrared and shortwave infrared bands; the difference between the two dates reveals the burned area. The result is measured in hectares and drawn on a map.
21.7.2Topics over the semester
- Electromagnetic radiation and surface interaction
- Sensors, platforms and types of resolution
- Radiometric and atmospheric correction
- Geometric correction, coordinate systems, projections
- Image enhancement and color composites
- Spectral indices: NDVI, NDWI
- Supervised and unsupervised land-cover classification
- Accuracy assessment and ground truth
- Change detection and time-series analysis
- Thermal sensing and LiDAR
- Radar (SAR) imagery and interferometry
- Deep learning for satellite imagery
This is a typical semester; the order and coverage vary between universities.
21.7.3Skills you will gain
- raster and vector layers in QGIS
- time series in Google Earth Engine
- processing imagery with GDAL and rasterio
- land-cover maps with accuracy tables
- interpreting indices such as NDVI
21.7.4Try it yourself
The Try It: Measuring Forest Loss from Space slide in the presentation lets you solve a typical problem of this course yourself: Two satellite images of the same area, from two dates, have red and near-infrared (NIR) bands. Find vegetation with NDVI, slide the threshold and measure how many hectares of forest were lost; click a pixel to see its value.
21.8Are you ready for this course?
21.8.1Prerequisites
| Course | Why it is needed |
|---|---|
| Image Processing | multispectral images, correction |
| Computer Vision | land cover classification, change detection |
| Physics | electromagnetic waves, reflection and absorption |
| Geographic information systems | coordinate systems, map projections and layers |
| Programming | large array and file operations in Python |
21.8.2Ask yourself
For every "no", the right-hand column shows where to start. If you can say "yes" to most of them, you are ready.
| Question | If not, start with |
|---|---|
| Can you explain the visible and infrared parts of the electromagnetic spectrum? | Electromagnetic waves from high-school physics |
| Can you explain latitude/longitude versus projected (meter) coordinates? | A short introductory GIS tutorial with QGIS |
| Can you apply a histogram and thresholding to an image? | Image Processing |
| Can you train a classifier and interpret its confusion matrix? | Machine Learning |
21.9Neighboring courses
21.9.1Where it overlaps
| Relation | Course | Shared ground |
|---|---|---|
| application | This course applies the methods of Image Processing | multispectral images, correction |
| application | This course applies the methods of Computer Vision | land cover classification, change detection |
| shares methods | Shares methods with Time Series Analysis and Forecasting | multitemporal image series |
21.9.2Where it differs
- Image Processing: Image processing provides the general methods; remote sensing applies them to multiband satellite images that carry physical measurements.
- Computer Vision: Vision recognizes objects in ordinary photos; remote sensing maps the Earth using spectral signatures and location.
- Time Series Analysis and Forecasting: Time series analysis provides the general methods; remote sensing tracks change in images of the same place over years.
- Medical Image Processing: Both treat an image as a physical measurement; medical imaging measures the body, remote sensing the Earth.
21.10In practice
21.10.1Applications
| Area | What is done |
|---|---|
| Agriculture | Crop health, yield prediction, irrigation. |
| Forestry | Burned areas, deforestation monitoring. |
| Disaster management | Damage maps after earthquakes and floods. |
| Urban planning | Construction and urban sprawl. |
| Climate and environment | Monitoring glaciers, sea surface and drought. |
| Defense | Reconnaissance and target area analysis. |
21.10.2Risks and ethics
| Risk | Explanation |
|---|---|
| Surveillance and privacy | High-resolution satellite and drone imagery can track people's homes, vehicles and movements without consent. |
| Maps without ground truth | A classification map never checked in the field can mislead farming or disaster decisions despite high reported accuracy. |
| Clouds and shadows | Unmasked clouds and shadows look like forest loss or flooding in change detection. |
| Models that do not transfer | A model trained on European data fails silently in other climates and farming patterns; each region needs validation. |
These issues are discussed in depth in Explainable AI and AI Ethics.
21.10.3Tools and datasets
Tools: Google Earth Engine, QGIS, GDAL, rasterio, ESA SNAP, TorchGeo.
Well-known datasets: Landsat archive, Sentinel-1 and Sentinel-2, EuroSAT, BigEarthNet, SpaceNet, UC Merced Land Use.
Satellite imagery is plentiful and free, but accurate labels are scarce: ground truth means going into the field.
21.11Common misconceptions
A satellite image is an ordinary color photo.
It also has infrared, thermal and radar bands that the eye cannot see.
Higher spatial resolution is always better.
For wide areas and frequent revisits, medium resolution is often more suitable.
If there are clouds, the satellite sees nothing.
Optical sensors cannot; radar (SAR) sees through clouds and at night.
This is just an image processing course.
Sensor physics, the atmosphere, map projections and field validation are also part of it.
21.12Summary
- A satellite image is multiband measurement data; because surfaces reflect differently in each band, every surface has a spectral signature.
- Indices such as NDVI and NDWI are the normalized difference of two bands; a few numbers separate vegetation from water.
- Comparing indices across dates without atmospheric correction can show change when the surface has not changed.
- A classifier such as nearest mean assigns a pixel to the nearest class in measurement space; the map is evaluated with independent reference points by overall, producer's and user's accuracy and kappa.
- Change detection thresholds the index difference between two dates; season, clouds and shadows create false change, so results are checked in the field.
21.13Test Yourself
A pixel has red reflectance 0.08 and near-infrared 0.40. What is its NDVI, and what can be said about the pixel?
Answer
NDVI = (0.40 − 0.08)/(0.40 + 0.08) = 0.32/0.48 ≈ 0.67. A high value: most likely healthy vegetation.
A pixel has green reflectance 0.06 and near-infrared 0.30. What is its NDWI, and can the pixel be water?
Answer
NDWI = (0.06 − 0.30)/(0.06 + 0.30) = −0.24/0.36 ≈ −0.67. Negative: not water; vegetation or soil is likely (in a water pixel green is larger than near-infrared).
The class means (red, near-infrared) from training areas are water (0.04, 0.02), vegetation (0.05, 0.50), soil (0.25, 0.30). With the minimum-distance method, which class does the pixel (0.20, 0.35) get?
Answer
Distances: water √(0.16² + 0.33²) ≈ 0.367; vegetation √(0.15² + 0.15²) ≈ 0.212; soil √(0.05² + 0.05²) ≈ 0.071. The smallest distance belongs to soil: the pixel is soil.
A two-class map has this confusion matrix (rows: map, columns: truth): for places mapped as A, (true A, true B) = (45, 5); for places mapped as B, (10, 40). Compute overall accuracy and kappa.
Answer
Overall accuracy (45 + 40)/100 = 0.85. Row totals are 50 and 50, column totals 55 and 45: E = (50·55 + 50·45)/100² = 0.50. κ = (0.85 − 0.50)/(1 − 0.50) = 0.70. (Also, user's accuracy for A is 45/50 = 0.90 and producer's accuracy is 45/55 ≈ 0.82.)
A burned area appears as 2500 pixels in an image with 20 m resolution. How many hectares is it? How many 10 m pixels cover 1 km²?
Answer
One pixel is 400 m²; 2500 × 400 = 1,000,000 m² = 100 ha (1 km²). Since 1 km² = 1000 m × 1000 m, 10 m pixels cover it with (1000/10)² = 10,000 pixels.
A tropical basin is cloudy for much of the year and deforestation is to be monitored monthly. Is an optical satellite enough, and what else could be used?
Answer
An optical sensor cannot see under clouds, so the monthly series fills with gaps. Radar (SAR) gets past clouds and night and can be combined with optical data. The optical images still have to be cloud-masked and composited.
21.14After this course
Remote sensing is image processing and computer vision applied to the Earth; it joins with time series analysis and big data systems. From here you can move on to climate and agricultural data science, geographic information systems, or satellite image analysis with deep learning.
Related careers: Remote sensing specialist, GIS specialist, Agricultural technology engineer, Environmental and climate data analyst, Geomatics engineer.
21.15Further reading
- T. M. Lillesand, R. W. Kiefer and J. W. Chipman, Remote Sensing and Image Interpretation (7th ed., 2015): covers sensors, spectral behavior and image interpretation at textbook level.
- J. R. Jensen, Remote Sensing of the Environment: An Earth Resource Perspective (2nd ed., 2007): treats corrections, classification and accuracy assessment in detail.
- J. A. Richards, Remote Sensing Digital Image Analysis (5th ed., 2013): presents the numerical methods of classification and image analysis mathematically.
21.16References
- Lillesand, Kiefer and Chipman, Remote Sensing and Image Interpretation, 7th ed., Wiley, 2015.
- Jensen, Remote Sensing of the Environment: An Earth Resource Perspective, 2nd ed., Pearson, 2007.
- Campbell and Wynne, Introduction to Remote Sensing, 5th ed., Guilford Press, 2011.
- Richards, Remote Sensing Digital Image Analysis, 5th ed., Springer, 2013.
Related pages: Slides · Slides (PDF) · Course page