Occlusion Methods
Occlusion uses a wonderfully blunt test: cover part of the input and run the model again. If the class score drops, the covered region mattered to that prediction.
The same idea works for image patches, words, document passages, and tabular features.
Perturb and measure
For region , an occlusion score can be written:
replaces region with a baseline value. Larger score drops indicate greater sensitivity to that region.
Scan an Occlusion Window
Move a 2×2 cover across a wildlife camera image. Each location requires a new forward pass, producing a score-drop map one patch at a time.

Click any cell to move the 2×2 occlusion patch · gray block = baseline fill
Score-drop map — darker red means covering that patch hurt P(seal) more
Original P(seal)
0.880
Occluded P(seal)
0.460
Score drop
0.420
Patch (row 3, col 2) covers the seal's head.
Occlusion is easy to explain and model agnostic. It can also create inputs the model has never seen. A gray square over an X-ray is an artifact, and deleting one word can break grammar. Choose a replacement that makes sense for the domain and vary patch size so the explanation does not depend on one arbitrary mask.
Why might a large occlusion patch overestimate a region's importance?
