← Latest papers
💻 computer science

BathyFacto: Refraction-Aware Two-Media Neural Radiance Fields for Bathymetry

BathyFacto is a refraction-aware neural radiance field extension that models air-water light propagation using Snell's law to generate metrically accurate underwater point clouds from UAV imagery, significantly outperforming standard NeRF and naive correction methods in both depth accuracy and geometric completeness across varying camera angles.

Original authors: Markus Brezovsky, Anatol Günthner, Frederik Schulte, Lukas Winiwarter, Boris Jutzi, Gottfried Mandlburger

Published 2026-07-17
📖 6 min read🧠 Deep dive

Original authors: Markus Brezovsky, Anatol Günthner, Frederik Schulte, Lukas Winiwarter, Boris Jutzi, Gottfried Mandlburger

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 trying to take a photo of a treasure chest sitting at the bottom of a swimming pool. If you look straight down, the chest looks pretty much where it is. But if you look at it from the side, the water acts like a weird, invisible lens. It bends the light rays traveling from the chest to your eye, making the chest look like it's floating higher up and in a different spot than it really is. This bending of light is called refraction, and it happens because light travels at different speeds through air and water.

For decades, scientists have used cameras on drones to map the ocean floor and rivers, a process called photogrammetry. They stitch together thousands of photos to build a 3D model of the world. But there's a catch: the standard computer programs used to build these 3D models assume that light travels in perfectly straight lines, like a laser beam in a vacuum. When those programs try to map underwater scenes, they get confused by the bending light. They build a 3D map that is systematically wrong, making the bottom of the river look shallower and shifted to the side. It's like trying to draw a map of a room while wearing glasses that distort everything you see.

To fix this, researchers have been experimenting with Neural Radiance Fields (NeRFs). Think of a NeRF not as a camera, but as a super-smart, digital "ghost" that learns what a scene looks like from every possible angle. You feed it a bunch of photos, and it learns a continuous 3D volume of the world, allowing you to generate new photos from angles the camera never even visited. However, most of these digital ghosts were trained in a world where light only travels straight. They don't know how to handle the "bendy" physics of water. This is where the new research comes in, trying to teach these digital ghosts how to see through water correctly.


The Paper: BathyFacto – Teaching AI to See Through Water

The paper introduces a new tool called BathyFacto (a playful mashup of "Bathymetry," which is measuring water depth, and "Nerfacto," a popular type of NeRF). The team, led by Markus Brezovsky and colleagues, built a special version of this AI that understands the physics of light bending at the air-water surface.

Here is the core problem they solved: When a drone flies over a river, the light from the riverbed has to travel through water, hit the surface, and then bend as it enters the air to reach the camera. Standard AI models assume the light went straight the whole way, leading to a "ghost" map that is about 1.37 meters too shallow and shifted. BathyFacto fixes this by explicitly telling the AI: "Hey, the light ray travels straight in the air, hits the water, and then bends according to Snell's Law (the rule of refraction) before hitting the bottom."

How it works (The "Kinked" Ray)
Imagine you are drawing a path for a laser pointer. In the air, you draw a straight line. When the line hits the water surface, you don't stop; you bend the line at a specific angle and continue drawing underwater. BathyFacto does exactly this, but in a very clever way. Instead of trying to manage two separate worlds (one for air, one for water), it uses a "single-sampler" architecture. It draws a "virtual" straight line through the whole scene for the AI to learn from, but then it uses a "kinked density wrapper." This is like a magical ruler that instantly corrects the position of any point it measures once it crosses the water line, ensuring the AI calculates the density and color at the true underwater location, not the fake straight-line location.

The Results: From Simulation to Reality
The team tested BathyFacto on a simulated world created with computer graphics (Blender), where they knew the exact, perfect depth of everything (the "ground truth"). The results were striking:

  • The Old Way (Standard NeRF): The AI guessed the depth was off by +1.370 meters (too shallow) and only managed to reconstruct 11.6% of the underwater scene accurately. Even if they tried to manually fix the depth later, it was still off by about 0.4 meters.
  • The New Way (BathyFacto with Refraction): The AI got the depth almost perfectly right, with a deviation of just -0.001 meters (that's one millimeter!). It successfully reconstructed 85.7% of the underwater scene within a tolerance of 0.2 meters.

The paper also compared their method to a traditional "Multi-View Stereo" (MVS) approach, which is the standard way surveyors do this today. They found that while the traditional method works well if the drone is looking straight down (nadir), it falls apart when the drone looks at the water from an angle. In their simulated tests, BathyFacto recovered consistent geometry across the full range of camera angles, from straight down to steep side-views, whereas the traditional method was only reliable for near-nadir viewing. The authors emphasize that this success was demonstrated on simulated data, and they note that validating the method on real-world UAV imagery is planned for future work.

What This Means (and What It Doesn't)
The authors are very clear about the limits of their work. They proved that BathyFacto works incredibly well on simulated data where the water surface is a flat, calm plane and the water is clear. They explicitly argue against the idea that you can just "fix" the depth later with a simple math trick; the paper shows that without modeling the bending light during the training process, the 3D geometry remains fundamentally broken.

However, they also admit that real-world water is messy. Their simulation didn't include murky water, floating leaves, or waves that ripple the surface. They note that for real rivers and oceans, the water surface might not be a perfect flat plane, and the water might be cloudy, which could confuse the AI. They suggest that future work needs to tackle these "wavy" and "murky" challenges.

In short, BathyFacto is a major step forward in teaching AI to see the underwater world as it truly is, not as a distorted reflection. It turns a blurry, shifted guess into a precise, metrically accurate map, but for now, it's a champion in the controlled environment of a computer simulation, waiting for its turn to dive into the real, choppy world.

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 →