Blog
Back to Blog

Rolling Ball vs Local Background Subtraction for Western Blots

The short answer: local background subtraction (measuring signal just above and below each lane or band) is almost always the better choice for western blot densitometry. Rolling ball background subtraction — borrowed from fluorescence microscopy — can work, but it introduces a radius parameter that's easy to get wrong, and when it's wrong, it distorts your quantification in ways that are hard to detect. If you're doing lane-by-lane normalization to a loading control, local subtraction is simpler, more transparent, and less likely to silently eat your fold changes.

That said, the best method depends on what's actually wrong with your blot's background. Uneven illumination across the membrane? Rolling ball might help. Splotchy ECL noise that varies lane to lane? Local subtraction handles it better. Let's walk through the mechanics of each, when each one fails, and what to actually do.

How Rolling Ball Background Subtraction Works

Rolling ball subtraction was originally described by Sternberg (1983) for brightfield microscopy. The algorithm imagines a sphere of a given radius "rolling" along the underside of your image's intensity surface. Wherever the ball can't reach (because a band is sitting above the local baseline), that signal is preserved. Everything the ball touches gets subtracted as background.

In ImageJ/Fiji, you'll find this under Process → Subtract Background, with a default radius of 50 pixels. Image Lab (Bio-Rad) doesn't expose a rolling ball per se, but its "lane background" option and some of its automatic corrections use related local-fitting approaches.

The critical parameter is the ball radius. Set it too small, and the ball follows the contour of your bands — subtracting actual signal along with background. Set it too large, and it can't track local background variations, defeating the purpose. For a typical western blot image where bands are 20–60 pixels tall, you'd want a radius significantly larger than the band height — usually 200–500 pixels. But here's the problem: the "right" radius depends on band width, membrane size, and the spatial frequency of your background noise. There is no universal value, and most people just leave it at the default.

Where rolling ball works well:

Where rolling ball fails:

The most dangerous failure mode is signal erosion: the ball partially fits under a broad, low-intensity band and subtracts real signal. This disproportionately affects your weakest bands — exactly the ones where accurate quantification matters most for measuring fold changes. A 2× fold change can quietly become 1.4× because the rolling ball shaved the top off your low-abundance condition.

How Local Background Subtraction Works

Local background subtraction measures the background intensity in a region immediately adjacent to each band (or each lane profile) and subtracts that value from the band's integrated signal. The idea is simple: whatever non-specific signal is present right next to the band is a good estimate of the non-specific signal under the band.

There are a few common implementations:

  1. Lane profile baseline: Draw a profile through each lane, then draw a straight line (or spline) connecting the valleys on either side of the peak. The area above that baseline is your band signal. This is what ImageJ's gel analysis tool does, and it's what most manual protocols describe.

  2. ROI-pair method: Place one ROI on the band, place another ROI of the same size in a blank region of the same lane (above or below the band). Subtract the mean intensity of the blank ROI from the mean intensity of the band ROI, then multiply by area. Image Studio (LI-COR) uses a version of this with its "median/average top/bottom" border background setting.

  3. Perimeter median: Measure the median pixel intensity around the perimeter of the band ROI and subtract that from each pixel inside the ROI. This is more robust to occasional hot pixels than using the mean. Image Studio's default border width is typically 2–3 pixels.

Why local subtraction is usually better for westerns:

The main weakness is that local subtraction assumes background is uniform across the band height. If there's a steep gradient exactly where your band sits (e.g., you're quantifying a band right at the edge of a high-background region from a nearby abundant protein), local subtraction from one side will over- or under-correct. In practice, averaging background from both above and below the band handles this well.

The Numbers: How Much Does It Matter?

Let's put some concrete values on this. Say you have a band with a raw integrated density of 50,000 (arbitrary units, 16-bit image) and the true local background under that band contributes 12,000 of those units. Your real signal is 38,000.

Now imagine you're calculating a fold change between a control band (50,000 raw) and a treated band (25,000 raw). True fold change after proper background subtraction: 38,000 / 13,000 = 2.9×. With aggressive rolling ball erosion hitting the smaller band harder: 38,000 / 8,000 = 4.75×. You just inflated your fold change by 60%.

This isn't a contrived scenario. Gassmann et al. (2009) showed that background subtraction method choice can shift apparent ratios by 20–50% depending on the approach, and that local methods generally gave more reproducible results across replicates.

What About "No Background Subtraction"?

Some people skip background subtraction entirely, arguing that if all lanes have similar background, it'll cancel out in the normalization. This is approximately true when:

But it falls apart when background varies lane to lane (common with ECL, less so with near-infrared fluorescence on LI-COR systems) or when your signal-to-background is low. For fluorescent westerns with low, uniform background, skipping subtraction can be reasonable. For chemiluminescent detection, I'd always subtract background — ECL background is too variable not to.

Background subtraction shouldn't require guessing a radius. VoilaBlot uses local background measurement with adjustable ROIs so you can see exactly what's being subtracted — right in your browser, no upload to any server.

Try it on your blot →

Practical Recommendations

Use local background subtraction as your default. Measure background from regions immediately above and below each band within the same lane. Average the two values. This handles gradients, adapts to lane-to-lane variation, and doesn't require you to pick a magic number.

If you must use rolling ball (e.g., you have a severe illumination gradient and want to flatten the whole image before analysis), set the radius to at least 5–10× your largest band height in pixels. Check the subtracted background image (in ImageJ, enable "Create background" in the Subtract Background dialog) to verify it didn't capture any band signal. Then still apply local subtraction on top for lane-to-lane correction.

Document your method. Reviewers and journals increasingly want to know: What software? What background subtraction method? What parameters? "Rolling ball, radius 50" is not the same as "rolling ball, radius 500," and neither is the same as "local, top/bottom average." Write it down. If you change it, re-analyze all your blots with the same settings — don't mix methods within an experiment.

Validate with a dilution series. The ultimate test of whether your background subtraction is working: load a 2-fold dilution series of your lysate (e.g., 2, 4, 8, 16 µg total protein), image, quantify with your chosen method, and check linearity. If your R² drops below 0.98 or the slope deviates significantly from 1.0 on a log-log plot, something is off — and background subtraction method is one of the first things to revisit.

Don't over-subtract. If any of your corrected band intensities come out negative, your background estimate is too high. This usually means your background ROI overlaps with signal from an adjacent band, or your rolling ball radius is too small. Negative values after subtraction should be a hard stop — go back and fix the method before proceeding.

The bottom line: rolling ball subtraction is a solution for microscopy problems (smooth illumination gradients across large fields of view). Western blots have different problems — lane-to-lane variability, splotchy ECL, and bands of varying size and intensity. Local background subtraction matches those problems better. Use it.

References