# US 9,721,181 B2 · Cloud detection on remote sensing imagery

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,721,181 B2
- Document ID: US9721181B2
- Status: Granted
- Kind: B2
- Application number: 14/960,921
- Filed: 2015-12-07
- Published: 2017-06-08
- Granted: 2017-08-01
- Earliest claimed: 2015-12-07
- Assignees: Climate LLC
- Applicants: The Climate Corporation
- Inventors: Wei Guan; Pramithus Khadka; Jeffrey Gerard
- Web page: https://patentgrep.com/patent/US9721181B2

## CPC

- G06V 10/771: Feature selection, e.g. selecting representative features from a multi-dimensional feature space
- G06F 18/2148: {characterised by the process organisation or structure, e.g. boosting cascade}
- G06F 18/24: Classification techniques
- G06F 18/2411: based on the proximity to a decision surface, e.g. support vector machines
- G06F 18/285: {Selection of pattern recognition techniques, e.g. of classifiers in a multi-classifier system}
- G06T 7/194: involving foreground-background segmentation
- G06T 7/60: Analysis of geometric attributes
- G06V 10/30: Noise filtering
- G06V 10/42: Global feature extraction by analysis of the whole pattern, e.g. using frequency domain transformations or autocorrelation
- G06V 10/56: relating to colour
- G06V 10/60: relating to illumination properties, e.g. using a reflectance or lighting model
- G06V 10/763: {Non-hierarchical techniques, e.g. based on statistics of modelling distributions}
- G06V 10/87: {using selection of the recognition techniques, e.g. of a classifier in a multiple classifier system}
- G06V 20/13: Satellite images
- G06V 30/19147: {Obtaining sets of training patterns; Bootstrap methods, e.g. bagging or boosting}
- G06V 30/19173: {Classification techniques}
- G06V 30/248: {involving plural approaches, e.g. verification by template match; Resolving confusion among similar patterns, e.g. "O" versus "Q" (G06V30/242 takes precedence)}
- G06T 2207/30192: Weather; Meteorology
- G06V 20/194: {using hyperspectral data, i.e. more or other wavelengths than RGB}
- G06V 30/2528: {Combination of methods, e.g. classifiers, working on the same input data}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A system for detecting clouds and cloud shadows is described. In one approach, clouds and cloud shadows within a remote sensing image are detected through a three step process. In the first stage a high-precision low-recall classifier is used to identify cloud seed pixels within the image. In the second stage, a low-precision high-recall classifier is used to identify potential cloud pixels within the image. Additionally, in the second stage, the cloud seed pixels are grown into the potential cloud pixels to identify clusters of pixels which have a high likelihood of representing clouds. In the third stage, a geometric technique is used to determine pixels which likely represent shadows cast by the clouds identified in the second stage. The clouds identified in the second stage and the shadows identified in the third stage are then exported as a cloud mask and shadow mask of the remote sensing image.

## Claims

### Claim 1

A method comprising:
receiving remote sensing imagery of a geographical area, wherein the remote sensing imagery includes a plurality of pixels and one or more band values for each pixel within the remote sensing imagery;
using a first classifier, identifying one or more cloud seed pixels from the remote sensing imagery based on the one or more band values for each pixel;
using a second classifier, identifying one or more candidate cloud pixels from the remote sensing imagery based on the one or more band values for each pixel, wherein the first classifier favors precision compared to the second classifier and the second classifier favors recall compared to the first classifier;
identifying a set of the one or more candidate cloud pixels that are connected to the one or more cloud seed pixels by one or more of: being a member of the one or more cloud seed pixels, being directly connected to at least one of the one or more cloud seed pixels, or being indirectly connected to at least one of the one or more cloud seed pixels through at least one candidate cloud pixel of the one or more candidate cloud pixels;
generating a cloud mask for the remote sensing imagery based on the set, wherein the cloud mask identifies which pixels within the remote sensing imagery correspond to clouds.

### Claim 2 (depends on 1)

The method of claim 1, wherein the remote sensing imagery is one or more of: RapidEye satellite imagery or Deimos satellite imagery.

### Claim 3 (depends on 1)

The method of claim 1, further comprising displaying the remote sensing imagery with one or more clouds highlighted based the cloud mask.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
identifying one or more clouds within the remote sensing imagery based on the cloud mask;
identifying one or more potential shadow pixels within the remote sensing imagery based on the one or more band values for each pixel within the remote sensing imagery;
for each cloud of the one or more clouds, determining an optimal height of the cloud based on a geometric relationship between a satellite which captured the remote sensing imagery and a sun based on the one or more potential shadow pixels;
for each cloud of the one or more clouds, identifying one or more shadow pixels within the remote sensing imagery representing a shadow cast by the cloud based on the optimal height of the cloud;
generating a shadow mask that identifies shadows cast by the one or more clouds within the remote sensing imagery based on the one or more shadow pixels identified for each cloud of the one or more clouds.

### Claim 5 (depends on 4)

The method of claim 4, wherein for each cloud of the one or more clouds, determining the optimal height of the cloud based on the geometric relationship comprises iterating over height values and, during each iteration, using the geometric relationship to calculate an estimated shadow area of the cloud and counting a number of the one or more potential shadow pixels that fall within the estimated shadow area, wherein the optimal height of the cloud is a height which maximizes the one or more potential shadow pixels that fall within the estimated shadow area.

### Claim 6 (depends on 4)

The method of claim 4, wherein the geometric relationship is based on one or more of: sun elevation angle, sun azimuth angle, or satellite off-nadir angle.

### Claim 7 (depends on 1)

The method of claim 1, wherein the one or more cloud seed pixels are represented in a cloud seed mask and further comprising applying one or more morphological opening operations to the cloud seed mask.

### Claim 8 (depends on 1)

The method of claim 1, wherein the one or more candidate cloud pixels are represented in a candidate cloud mask and further comprising applying one or more morphological opening operations to the candidate cloud mask.

### Claim 9 (depends on 1)

The method of claim 1, further comprising identifying urban areas within the remote sensing imagery based on deviations in whiteness for each pixel across a time series of images of the geographical area and removing pixels corresponding to the identified urban areas from the one or more candidate cloud pixels.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
identifying one or more clouds within the remote sensing imagery based on the cloud mask;
identifying one or more potential shadow pixels within the remote sensing imagery based on the one or more band values for each pixel within the remote sensing imagery;
for each cloud of the one or more clouds, determining an optimal height of the cloud and an optimal sun azimuth angle based on a geometric relationship between a satellite which captured the remote sensing imagery and a sun based on the one or more potential shadow pixels;
for each cloud of the one or more clouds, identifying one or more shadow pixels within the remote sensing imagery representing a shadow cast by the cloud based on the optimal height of the cloud and the optimal sun azimuth angle;
generating a shadow mask that identifies shadows cast by the one or more clouds within the remote sensing imagery based on the one or more shadow pixels identified for each cloud of the one or more clouds.

### Claim 11 (depends on 1)

The method of claim 1, wherein the one or more bands values includes a value for each of one or more of: a red band, a blue band, a green band, a red edge band, or a near infra-red band.

### Claim 12

A non-transitory computer-readable storage medium storing one or more instructions which, when executed by one or more processors, cause the one or more processors to perform steps comprising:
receiving remote sensing imagery of a geographical area, wherein the remote sensing imagery includes a plurality of pixels and one or more band values for each pixel within the remote sensing imagery;
using a first classifier, identifying one or more cloud seed pixels from the remote sensing imagery based on the one or more band values for each pixel;
using a second classifier, identifying one or more candidate cloud pixels from the remote sensing imagery based on the one or more band values for each pixel, wherein the first classifier favors precision compared to the second classifier and the second classifier favors recall compared to the first classifier;
identifying a set of the one or more candidate cloud pixels that are connected to the one or more cloud seed pixels by one or more of: being a member of the one or more cloud seed pixels, being directly connected to at least one of the one or more cloud seed pixels, or being indirectly connected to at least one of the one or more cloud seed pixels through at least one candidate cloud pixel of the one or more candidate cloud pixels;
generating a cloud mask for the remote sensing imagery based on the set, wherein the cloud mask identifies which pixels within the remote sensing imagery correspond to clouds.

### Claim 13 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the remote sensing imagery is one or more of: RapidEye satellite imagery or Deimos satellite imagery.

### Claim 14 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the steps further comprise displaying the remote sensing imagery with one or more clouds highlighted based the cloud mask.

### Claim 15 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the steps further comprise:
identifying one or more clouds within the remote sensing imagery based on the cloud mask;
identifying one or more potential shadow pixels within the remote sensing imagery based on the one or more band values for each pixel within the remote sensing imagery;
for each cloud of the one or more clouds, determining an optimal height of the cloud based on a geometric relationship between a satellite which captured the remote sensing imagery and a sun based on the one or more potential shadow pixels;
for each cloud of the one or more clouds, identifying one or more shadow pixels within the remote sensing imagery representing a shadow cast by the cloud based on the optimal height of the cloud;
generating a shadow mask that identifies shadows cast by the one or more clouds within the remote sensing imagery based on the one or more shadow pixels identified for each cloud of the one or more clouds.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein for each cloud of the one or more clouds, determining the optimal height of the cloud based on the geometric relationship comprises iterating over height values and, during each iteration, using the geometric relationship to calculate an estimated shadow area of the cloud and counting a number of the one or more potential shadow pixels that fall within the estimated shadow area, wherein the optimal height of the cloud is a height which maximizes the one or more potential shadow pixels that fall within the estimated shadow area.

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the geometric relationship is based on one or more of: sun elevation angle, sun azimuth angle, or satellite off-nadir angle.

### Claim 18 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the one or more cloud seed pixels are represented in a cloud seed mask and the steps further comprise applying one or more morphological opening operations to the cloud seed mask.

### Claim 19 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the one or more candidate cloud pixels are represented in a candidate cloud mask and the steps further comprise applying one or more morphological opening operations to the candidate cloud mask.

### Claim 20 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the steps further comprise identifying urban areas within the remote sensing imagery based on deviations in whiteness for each pixel across a time series of images of the geographical area and removing pixels corresponding to the identified urban areas from the one or more candidate cloud pixels.

### Claim 21 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the steps further comprise:
identifying one or more clouds within the remote sensing imagery based on the cloud mask;
identifying one or more potential shadow pixels within the remote sensing imagery based on the one or more band values for each pixel within the remote sensing imagery;
for each cloud of the one or more clouds, determining an optimal height of the cloud and an optimal sun azimuth angle based on a geometric relationship between a satellite which captured the remote sensing imagery and a sun based on the one or more potential shadow pixels;
for each cloud of the one or more clouds, identifying one or more shadow pixels within the remote sensing imagery representing a shadow cast by the cloud based on the optimal height of the cloud and the optimal sun azimuth angle;
generating a shadow mask that identifies shadows cast by the one or more clouds within the remote sensing imagery based on the one or more shadow pixels identified for each cloud of the one or more clouds.

### Claim 22 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the one or more bands values includes a value for each of one or more of: a red band, a blue band, a green band, a red edge band, or a near infra-red band.

### Claim 23

A data processing system comprising:
a memory;
one or more processors coupled to the memory;
cloud seed generator logic stored in the memory, executable by the one or more processors, and configured to cause the one or more processors to:
receive remote sensing imagery of a geographical area, wherein the remote sensing imagery includes a plurality of pixels and one or more band values for each pixel within the remote sensing imagery,
use a first classifier to identify one or more cloud seed pixels from the remote sensing imagery based on the one or more band values for each pixel;
cloud mask generator logic stored in the memory, executable by the one or more processors, and configured to cause the one or more processors to:
use a second classifier to identify one or more candidate cloud pixels from the remote sensing imagery based on the one or more band values for each pixel, wherein the first classifier favors precision compared to the second classifier and the second classifier favors recall compared to the first classifier,
identify a set of the one or more candidate cloud pixels that are connected to the one or more cloud seed pixels by one or more of: being a member of the one or more cloud seed pixels, being directly connected to at least one of the one or more cloud seed pixels, or being indirectly connected to at least one of the one or more cloud seed pixels through at least one candidate cloud pixel of the one or more candidate cloud pixels,
generate a cloud mask for the remote sensing imagery based on the set, wherein the cloud mask identifies which pixels within the remote sensing imagery correspond to clouds.

### Claim 24 (depends on 23)

The data processing system of claim 23, wherein the remote sensing imagery is one or more of: RapidEye satellite imagery or Deimos satellite imagery.

### Claim 25 (depends on 23)

The data processing system of claim 23, wherein the data processing system further comprises display logic stored in the memory, executable by the one or more processors, and configured to cause the one or more processors to display the remote sensing imagery with one or more clouds highlighted based the cloud mask.

### Claim 26 (depends on 23)

The data processing system of claim 23 wherein the data processing system further comprises shadow mask generator logic stored in the memory, executable by the one or more processors, and configured to cause the one or more processors to:
identify one or more clouds within the remote sensing imagery based on the cloud mask;
identify one or more potential shadow pixels within the remote sensing imagery based on the one or more band values for each pixel within the remote sensing imagery;
for each cloud of the one or more clouds, determine an optimal height of the cloud based on a geometric relationship between a satellite which captured the remote sensing imagery and a sun based on the one or more potential shadow pixels;
for each cloud of the one or more clouds, identify one or more shadow pixels within the remote sensing imagery representing a shadow cast by the cloud based on the optimal height of the cloud;
generate a shadow mask that identifies shadows cast by the one or more clouds within the remote sensing imagery based on the one or more shadow pixels identified for each cloud of the one or more clouds.

### Claim 27 (depends on 26)

The data processing system of claim 26, wherein for each cloud of the one or more clouds, determining the optimal height of the cloud based on the geometric relationship comprises iterating over height values and, during each iteration, using the geometric relationship to calculate an estimated shadow area of the cloud and counting a number of the one or more potential shadow pixels that fall within the estimated shadow area, wherein the optimal height of the cloud is a height which maximizes the one or more potential shadow pixels that fall within the estimated shadow area.

### Claim 28 (depends on 26)

The data processing system of claim 26, wherein the geometric relationship is based on one or more of: sun elevation angle, sun azimuth angle, or satellite off-nadir angle.

### Claim 29 (depends on 23)

The data processing system of claim 23, wherein the one or more cloud seed pixels are represented in a cloud seed mask and the cloud seed generator logic is further configured to cause the one or more processors to apply one or more morphological opening operations to the cloud seed mask.

### Claim 30 (depends on 23)

The data processing system of claim 23, wherein the one or more cloud seed pixels are represented in a candidate cloud mask and the cloud mask generator logic is further configured to cause the one or more processors to apply one or more morphological opening operations to the candidate cloud mask.

### Claim 31 (depends on 23)

The data processing system of claim 23, wherein the cloud mask generator logic is further configured to cause the one or more processors to identify urban areas within the remote sensing imagery based on deviations in whiteness for each pixel across a time series of images of the geographical area and remove pixels corresponding to the identified urban areas from the one or more candidate cloud pixels.

### Claim 32 (depends on 23)

The data processing system of claim 23, wherein the data processing system further comprises shadow mask generator logic stored in the memory, executable by the one or more processors, and configured to cause the one or more processors to:
identify one or more clouds within the remote sensing imagery based on the cloud mask,
identify one or more potential shadow pixels within the remote sensing imagery based on the one or more band values for each pixel within the remote sensing imagery,
for each cloud of the one or more clouds, determine an optimal height of the cloud and an optimal sun azimuth angle based on a geometric relationship between a satellite which captured the remote sensing imagery and a sun based on the one or more potential shadow pixels,
for each cloud of the one or more clouds, identify one or more shadow pixels within the remote sensing imagery representing a shadow cast by the cloud based on the optimal height of the cloud and the optimal sun azimuth angle,
generate a shadow mask that identifies shadows cast by the one or more clouds within the remote sensing imagery based on the one or more shadow pixels identified for each cloud of the one or more clouds.

### Claim 33 (depends on 23)

The data processing system of claim 23, wherein the one or more bands values includes a value for each of one or more of: a red band, a blue band, a green band, a red edge band, or a near infra-red band.
