Abstract
We describe a new method to estimate the geometry of a room given room impulse responses (RIRs). The method utilizes convolutional neural networks (CNNs) to estimate room dimensions and uses the mean square error as the loss function. In contrast to existing methods, we do not require the position or distance of sources or receivers. The method can function with only a single RIR between one source and one receiver. The proposed estimation method achieves an average accuracy of six centimeters and is significantly more computationally efficient than state-of-the-art alternatives.
Introduction
In fields such as Augmented Reality (AR) and spatial audio, creating an "acoustic twin" of a physical environment is essential for immersive experiences. This requires accurate knowledge of room geometry. Traditionally, estimating room shape from audio involves analyzing Room Impulse Responses (RIRs)—the acoustic "fingerprint" capturing how sound travels from a source to a receiver, including direct paths and reflections.
However, existing geometric methods are often impractical for consumer use, requiring multiple microphones at known positions or manual identification of specific wall echoes. This research introduces a deep learning approach that performs blind estimation of room dimensions (length, width, and height) without requiring knowledge of source or microphone locations.
Methodology
The researchers treat room geometry estimation as a regression problem, mapping raw audio signals to physical dimensions.
Model Architecture
The core of the system is a 1D Convolutional Neural Network (CNN) designed to extract translation-invariant features from time-domain RIRs. The architecture, detailed in Table 1, consists of six 1D convolutional layers followed by Batch Normalization and ReLU activations, concluding with two fully connected layers.
To ensure a consistent mapping, target dimensions are pre-processed by sorting (length, width, height) in ascending order. The network is trained using Mean Square Error (MSE) loss. While the model can operate on a single RIR, an "Improved Algorithm" is proposed where predictions from $N$ independent RIRs in the same room are averaged to reduce variance.
Dataset Generation
The model was trained on a massive simulated dataset of 480,000 RIRs generated via the image-source method. The dataset covers "shoe box" rooms ranging from $6 \times 5 \times 4$m to $10 \times 8 \times 6$m. To ensure generalization, the researchers included scenarios with both fixed and varying reflection coefficients, simulating different wall materials and reverberation times (RT60) between 0.4s and 1.0s.
Results and Discussion
The CNN approach demonstrates a significant leap in computational efficiency while maintaining high accuracy.
Accuracy and Efficiency
The proposed method achieved an average estimation error of 6.11 cm. While a state-of-the-art geometric baseline achieved 2.35 cm, it required much stricter hardware constraints. Crucially, the CNN is approximately 10,000 times faster, with an average inference time of 0.32 ms compared to the baseline's 2.43 seconds.
Error Analysis
The researchers observed that errors are often systematic, tied to specific room configurations (bias). As shown in Figure 1, while averaging multiple measurements reduces random variance, the inherent bias for certain room shapes remains.
By averaging 16 RIRs, the median error was reduced to approximately 3.5 cm for length, 3.2 cm for width, and 1.7 cm for height. The study confirms that CNNs can effectively treat reflection coefficients as "nuisance factors," generalizing across various acoustic environments despite changes in wall materials.
Conclusion and Future Work
This work presents a practical, high-speed solution for room geometry estimation suitable for real-time AR applications. Current limitations include the assumption of rectangular "shoe box" rooms and the reliance on simulated training data. Future research will focus on complex room shapes (e.g., L-shaped rooms), robustness to real-world background noise, and architectural improvements to minimize the observed estimation bias.
Summary updated