Manuscript Offprint

arXiv:2610.31108

DRAFT: Decoding and Reconstructing 3D Room Layouts from fMRI and Camera Trajectories

Chi-Wei Lee, An-Kai Chen, Cheng-Han Chiang, Yi-Chun Chang, Po-Chih Kuo

ABSTRACT

While functional magnetic resonance imaging (fMRI) decoders reconstruct images and 3D objects, recovering the metric geometry of rooms from a moving viewpoint remains an open challenge. We introduce, to our knowledge for the first time, the task of reconstructing 3D layouts of held-out scenes using only the known camera trajectories and the fMRI signals of participants watching indoor walkthroughs, without any visual frames. The task is hard because of the temporal mismatch between rapid visual changes and blurred fMRI signals. Our method, DRAFT (Decoding and Reconstructing 3D room 1Aayouts from fMRI and Trajectories), extracts a compact layout representation from the early visual cortex and fuses this neural code with the geometric free space derived from camera motion. To evaluate it, we propose layout r, the Pearson correlation between predicted and ray-cast log depths. On ten held-out scenes (20 participants), DRAFT reaches a layout r of 0.480, outperforming the camera path alone (0.446) and seven fMRI decoders (at most 0.429). DRAFT also works as a plug-in that improves all seven decoders without retraining, raising their layout r from 0.171–0.429 to 0.487–0.493. Brain activity and camera motion can thus recover the metric layout of unseen rooms, a first step toward reconstructing the 3D spaces people see.

1 INTRODUCTION

Reconstructing a room needs more than a plausible picture. Walls must sit at the right distances, and views taken from different places must describe the same space. Decoders of functional magnetic resonance imaging (fMRI) now reconstruct images and videos (Ozcelik & VanRullen, 2023; Scotti et al., 2024; Chen et al., 2023b), depth images (Gaziv & Irani, 2021; Xia et al., 2024) and isolated 3D objects (Gao et al., 2024), yet to our knowledge none has recovered metric room geometry as the viewpoint moves. We ask whether fMRI responses to indoor walkthrough videos support layout and surface reconstruction in scenes the model has never seen.

This is hard for three reasons. The viewpoint changes every second, the blood-oxygen-level-dependent (BOLD) signal of fMRI blurs several seconds together, and recordings are few. So we do not decode depth maps directly. We decode a small layout code, 22 numbers per second that describe wall distances, floor extent, openings and depth range. Ridge regressions, the readout, predict it from early visual cortex (EVC) and camera motion. EVC responses map the image point by point, so they carry image structure that correlates with depth. Scene-selective regions also respond to room layout (Section 2), but in our data EVC predicted the code better (Section 5.2). The camera path also helps. Every visited position is free space, just as steps through a dark room show where the walls are not. We use it as a learned prior, not a bound on wall distance.

Our method DRAFT (Figure 2) combines both and, like an architect's draft, fixes the coarse layout first and the details later. It renders the code as coarse depth, and a small generator trained on real readout errors adds detail to eight consecutive views. DRAFT then replaces the broad structure (low spatial frequencies) of the views with a 3×33 \times 3 DRAFT layout, predicted from the code and the camera path, and places the views in 3D at the known poses.

a Four of the eight views of one route

Figure

b Surface from above

Figure

Figure 1: DRAFT recovers where walls and floor are on a held-out route. (a) Four views of scene 4: frame (not an input), furnished (F) and empty-room (E) ground truth, DRAFT (D), Brain-Diffuser (BD) detail with the DRAFT layout (B), and layout r of D and B against F and E. (b) Merged surface of D from above, blue within 25 cm of F. Hand-picked route, ranked 60th in layout r and 94th in F-score of 324 routes. Rule-chosen routes: Figure 7 and Section K.

Across ten held-out scenes, the DRAFT layout’s cell depths correlate with the true ones at 0.480 (layout r, Section 5.1). This is above the best of seven adapted fMRI decoders (0.429), the fixed template (median training-scene depth, 0.324) and the generator alone (0.303). Most of this comes from the camera path (0.446), but the brain adds to it. Adding the readout to the camera path raises layout r in all ten scenes, and brain-input controls lower it in all ten (Section 5.2).

The 3D surfaces tell a weaker story (Section 5.4). Because ridge regressions shrink the depth range, DRAFT ends with a range calibration, whose factor we fixed after earlier results on the same scenes. Even so, unmodified MindEye and Brain-Diffuser have slightly better mean surface scores, and so does the generator alone with a milder calibration. Guided by the DRAFT layout, these two image decoders reach the best fMRI-based mean surface scores, within noise of their unmodified versions.

We contribute a readout of a layout code from EVC and camera motion, and the DRAFT layout, which fuses this code with the camera path and raises the layout r of all seven tested decoders without retraining (five post hoc). We also contribute a held-out-scene test of room geometry from fMRI, with ray-cast ground truth, fMRI-free and wrong-scene references and brain-input controls.

References (49)