← Latest papers
💻 computer science

Multi-Conditioned Diffusion Synthesis of Sand Boils for Low-Resource Earthen-Levee Inspection

This paper presents a multi-conditioned diffusion synthesis pipeline using Stable Diffusion XL, DreamBooth, and ControlNet to generate high-quality, diverse synthetic sand boil imagery with reliable segmentation labels for low-resource earthen-levee inspection, overcoming the limitations of scarce annotations and prior compositing methods.

Original authors: Padam Jung Thapa, Abdullah Bin Naeem, Ayon Dey, Anav Katwal, Md Tamjidul Hoque

Published 2026-07-13
📖 7 min read🧠 Deep dive

Original authors: Padam Jung Thapa, Abdullah Bin Naeem, Ayon Dey, Anav Katwal, Md Tamjidul Hoque

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a detective trying to spot a very specific, sneaky problem on a giant dirt wall (an earthen levee) that protects a city from floods. This problem is called a "sand boil." It happens when water pushes up through the dirt, creating a small, wet, sandy dome on the surface. If you ignore it, the whole wall could collapse.

The problem? There are almost no photos of these sand boils to teach a computer how to spot them. It's like trying to learn to identify a rare bird when you've only ever seen three blurry pictures of it.

This paper introduces a clever way to solve that shortage. Instead of waiting for nature to give us more photos, the authors built a digital art studio that can paint thousands of new, realistic sand boil pictures from scratch. But they didn't just let the computer guess; they built a very strict, rule-following system to make sure the fake pictures are perfect for training.

Here is how their "magic studio" works, broken down into simple parts:

1. The Artist: A Specialized Painter

The team started with a famous AI painter called Stable Diffusion XL. Normally, if you ask this AI to "draw a sand boil," it gets confused. It might draw a volcano, a sandbox, or a beach because it has never seen a real levee defect.

To fix this, they gave the AI a "specialized tutor" using a technique called DreamBooth. They showed it a tiny, curated collection of just 39 real sand boil photos. They taught the AI a secret trigger word, "sbx", so that whenever it sees that word, it knows to ignore volcanoes and draw a levee defect instead. They didn't retrain the whole AI (which would take forever); they just added a small, lightweight "adapter" (about 10 million parameters) that acts like a specialized lens.

2. The Blueprint: Don't Just Guess the Shape

A painter can be creative, but for a sand boil, the shape matters. It needs to look like a small dome rising from flat ground. If the AI just guesses, the dome might look flat or float in the air.

To stop this, the team used four "ControlNet" guides (like a carpenter using a ruler, a level, and a template):

  • Canny Edges: Traces the outline of the dome.
  • Depth Map: Tells the AI how high the dome bulges.
  • Surface Normals: Shows the angle of the dirt surface.
  • Soft Edges: Captures the fuzzy texture where wet sand meets dry mud.

They tested different combinations of these guides. They found that no single preset dominates; each one trades off between perfect shape, background variety, and label reliability. While a curated mixture of these presets is the ideal "natural" augmentation strategy for the future, for the specific dataset evaluated in this paper, they explicitly released the label-reliable preset (V4) as the default. This preset guarantees the most reliable labels, even though other presets might offer slightly different diversity or fidelity.

3. The "Invisible Ink" Trick: Keeping the Real Parts Real

Here is the most important part. In the past, people tried to paste a fake sand boil onto a real photo. This often left an ugly, hard line where the two images met, or the colors would bleed and look wrong (like a bad Photoshop job).

This team invented a "Soft-Mask Inpainting" trick. Imagine you have a real photo of a levee. You cover the actual sand boil with a piece of invisible, fuzzy tape. You tell the AI: "Don't touch the part under the tape. Only repaint the dirt around it."

Because the tape has fuzzy edges, the AI can gently blend the new background into the old dome. The result? The real sand boil stays exactly as it was (pixel-for-pixel), but the surrounding scene changes to look like a different day, weather, or location. This avoids the ugly seams and color mistakes of the old methods.

4. The Prompt Librarian: No More Guessing Words

To get the AI to paint different scenes (rainy days, sunny days, different types of dirt), you need to give it good instructions (prompts). Writing these by hand is slow and prone to mistakes.

The team built a Prompt Atlas. It's like a recipe book generator. You give it one simple file describing what a sand boil is, and it automatically writes 91 different, scientifically accurate descriptions. It checks each one to make sure it doesn't accidentally ask for a "volcano" or a "cartoon." It uses a smart filter (CLIP) to ensure the words match the pictures it's supposed to make.

5. The Quality Control: The "Bouncer"

The studio produced 1,020 new synthetic images. But not all of them were good enough. Some looked too weird (out of distribution), and some looked too much like the original 39 photos (memorization).

They used a CLIP Admissibility Filter as a bouncer. It compared every new image to the average of the real photos.

  • The Result: 815 images passed the test and were kept.
  • The Rejection: 205 images were thrown out because they were too strange or too repetitive.
  • The Safety Check: They also checked to make sure none of the new images were just copies of the original 39. The closest any new image got to an original was a similarity score of 0.925 (where 1.0 would be a perfect copy), so they were safe from "cheating."

What They Explicitly Ruled Out (What They Said "No" To)

  • No "Magic" Segmentation: The paper does not claim that these new pictures automatically make a better sand-boil detector. They explicitly state that testing how well these images help a computer find real sand boils is left for future work. They only proved the pictures are good quality.
  • No "Poisson Cloning" for Training: They compared their new method against an older technique called "Poisson seamless cloning" (which just pastes images together). They showed that while the old method got slightly better scores on some math tests (because it just reused real parts), it produced ugly seams and couldn't create new shapes. They used it as a baseline for evaluation and a reference for their earlier work, but they ruled it out as a good choice for generating the new training data needed for this study.
  • No "Rectified-Flow" Models: They considered using a newer, fancier AI model (Stable Diffusion 3.5) but decided against it. They found that the older SDXL model was better at not "memorizing" the few training photos and had better tools for controlling the shape of the image.

How Sure Are They?

The authors are very sure about the quality of the images they generated.

  • They measured the images using strict math tests (FID, KID, LPIPS) and compared them to the real photos.
  • They proved that their "Soft-Mask" method creates cleaner edges than the old "Poisson" method.
  • They proved that their "Prompt Atlas" creates a diverse set of instructions without human error.

However, they are careful about what comes next. They say: "We made great fake data. We know it looks real. We know it has the right labels. But we haven't tested if using this data actually helps a computer spot real sand boils in the wild yet." That is the next step.

The Bottom Line

This paper is a recipe for making 815 high-quality, scientifically accurate fake photos of sand boils to help train computers. They used a specialized AI painter, a fuzzy-tape blending trick, and a smart librarian to ensure the fake photos are diverse and safe to use. They didn't solve the final problem of detecting leaks, but they built the perfect training gym for the detectives who will.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →