WorksEngineering
Influence of Geometrical Acoustic Simulator Complexity on a Trained Multisource Localizer
Abstract
Learning-based acoustic sound source localization and detection (SSLD) requires large labeled datasets covering diverse acoustic conditions. Since obtaining measured data is costly, training commonly uses simulated data, while practical devices must operate under real-world conditions. However, higher simulation complexity increases data-generation cost, and the complexity required for reliable generalization remains unclear. In practice, SSLD methods often rely on efficient geometrical acoustic simulation, typically the image-source method. This work investigates how geometrical acoustic simulation complexity affects the real-world performance of a common multi-source SSLD model. We train the model with simulators ranging from anechoic conditions to high-order image-source simulations, optionally including diffuse reverberation, array simulation, and randomized image-source positions, and evaluate them on three measurement-based test datasets. Results show that anechoic simulation is insufficient, while medium-complexity image-source simulations already provide strong real-world performance. Further increases in complexity yield only marginal gains, with the best performance obtained using the highest tested image-source order, array simulation, and randomized image-source positions. For this configuration, measured-domain performance approaches within-domain simulated performance, suggesting limited benefit from further increasing simulation complexity. These findings show how the complexity-performance trade-off can be exploited in future data-driven SSLD, and highlight image-source randomization as an efficient way to improve generalization.
Introduction
In recent years, many classical audio signal processing tasks, including sound source localization and detection (SSLD), have been increasingly tackled using deep learning methods. This change has shifted the focus of engineers and researchers from deriving parameter estimators toward designing and curating suitable training datasets. For acoustic problems, however, relying solely on measured real-world data is often prohibitively labor-intensive. Acoustic simulators offer a practical alternative, provided that training on the resulting data generalizes well to real-world conditions. Due to their low computational cost, simulators based on geometrical acoustics, in particular Python implementations [1] of the image-source method (ISM) [2], are commonly employed [3].
So far, only [7, 8] have examined how the complexity of geometrical acoustic simulation affects learning-based SSLD performance. However, these studies focus on factors such as source and receiver directivity, diffuse reflections, and frequency-dependent absorption, leaving factors such as image-source order, dedicated late-reverb synthesis, or microphone array transfer functions (ATF) open, which may involve important cost-benefit trade-offs.
In this work, we train a multi-source SSLD model [9] on different simulated datasets. These datasets cover conditions ranging from anechoic environments to different image-source orders, optionally including diffuse late reverberation, measured ATFs for array simulation, and randomized image-source positions, similar to [10]. We then evaluate the models on three real-world, measured datasets and compare their performance with the Multiple Signal Classification (MUSIC) algorithm [11], which is provided with the number of active sources and therefore serves only as a reference for localization performance. Additionally, we discuss the computational cost of the different simulators and its relation to SSLD performance. To foster reproducible research, code for data generation, simulation, training, and evaluation is available online1.
Our results show that increased simulation complexity generally improves real-world SSLD performance, but that medium-complexity geometrical simulation already provides strong generalization, and that randomizing image-source positions yields a slight additional improvement. Together, these findings motivate effective low-cost simulation strategies for future SSLD systems.
Datasets
The following describes both the simulation-based training datasets and the measurement-based test datasets. As detailed in § 3, the employed SSLD model uses third-order Ambisonic [12, 13] input features. Consequently, both the late reverberation and the microphone array simulation are represented in the spherical harmonic (SH) domain.
Simulated Datasets
We simulated 20 training dataset configurations to study the influence of four main simulation factors: ISM reflection order, diffuse late reverberation, image-source randomization, and microphone-array simulation. The full set of configurations is summarized in the top row of Figure 1, which also shows the corresponding evaluation results. Each dataset was split at the room level into training, validation, and test sets using a 70/20/10 split. The held-out test split was used for within-domain evaluation.
Figure 1. Overview of SSLD performance on a simulation-based and three measurement-based test datasets after training with different acoustic simulators (colored columns). Whiskers indicate 95 % confidence intervals.
Geometrical Acoustic Simulation
As a base, we used the ISM implementation from Pyroomacoustics [1], which is among the most widely used geometrical acoustic simulators for training acoustic machine learning models, see e.g., [14, 15, 16]. We generated datasets of 2,000 rooms with randomly sampled, constrained dimensions, each containing eight receiver positions and three sources (see Table 1). For each room, a reverberation time (RT) profile was randomly drawn from the measured impulse responses in [17] to resemble the RT distribution of real-world acoustic environments. Assuming equal absorption for all walls, octave-band absorption coefficients were derived from the room dimensions and the RT profiles using the inverse Eyring equation [18]. The datasets use ISM reflection orders of 0, 1, 2, and 12, corresponding to direct sound, low complexity, and high complexity simulations.
| Parameter | Value |
| Width/length | m, 0.5 m steps |
| Height | m, 0.5 m steps |
| Min. source–receiver dist. | 1.0 m |
| Min. source–surface dist. | 0.5 m |
| Min. receiver–surface dist. | 0.5 m |
| Number of rooms | 2,000 |
| Receivers per room | 8 |
| Sources per receiver | 3, separation |
Table 1. Room Generation Setup
Late Reverberation
In selected datasets, diffuse late reverberation was added to the ISM simulations as uncorrelated, equal-energy noise across all Ambisonic channels, producing an isotropic diffuse sound field [19]. The diffuse noise decay rate was adjusted according to the room RT profile and cross-faded with the simulated spatial room impulse response (SRIR) at the perceptual mixing time , which was fixed at 3.5 ms for zeroth-order ISM simulations and estimated from the room volume for all other simulations using [20]
The decaying noise was scaled to match the late image-source energy, estimated here using an additional 12th-order simulation. Future work could use a more efficient estimation method based on an analytical expression for the late energy.
Randomized Image-Source Positions
The ISM simulations were based on ideal shoebox geometries. To introduce irregularity in selected datasets, image-source positions (excluding direct sound) were randomly perturbed by adding independent offsets in the , , and directions, each drawn uniformly from . Perturbed image sources whose distance to the receiver became shorter than the direct source–receiver distance were discarded, ensuring that no reflected path arrived before the direct sound. Using enabled the investigation of a transition from geometrically determined image sources to effectively uniformly distributed random ones.
Microphone Array Simulation
Two microphone simulation approaches were compared. The first approach modeled an ideal SH receiver following the HARP implementation [21], with coincident virtual microphones corresponding to SH-basis patterns. To mimic the regularization effects observed in measured data [22], the simulated Ambisonic SRIRs were filtered with order-dependent high-pass filters derived from the ratio of regularized to ideal Eigenmike radial-filter magnitude responses, where the regularized responses were obtained using Tikhonov regularization with a maximum gain of 15 dB [23].
The second approach directly simulated an em32 Eigenmike (EM) using measured ATFs from [24]. The resulting signals were encoded into Ambisonics using the discrete SH transform and radial filtering with the aforementioned regularization. By comparing these two approaches, we can assess whether explicitly simulating the characteristics of the real-world microphone improves performance on the measured test datasets.
Measured Test Datasets
Three SRIR datasets measured with the em32 Eigenmike were used as test sets. All three were encoded into Ambisonics using the aforementioned discrete SH transform and Tikhonov-regularized radial filtering with a maximum gain of 15 dB.
Arni: The Arni dataset [25] was recorded in Aalto University’s variable-acoustics room. It contains a total of 585 SRIRs from three Genelec 8010A sources at 65 receiver positions under dry, anisotropic, and reverberant conditions, with positions accurately measured using an OptiTrack system.
MOTUS: The MOTUS dataset [26] contains 830 acoustic configurations of the same seminar room, measured with four Genelec 1030A sources at a single receiver position. We use sources 1–3 and exclude occluded-source measurements, resulting in 2436 SRIRs. Because the tape-measure source labels may be insufficiently precise, we estimate source directions from the direct-sound component of the multichannel SRIRs using the MUSIC algorithm. Validating this approach on the Arni dataset yielded a mean offset of 4.9° and a standard deviation of 2.0° relative to the OptiTrack labels.
AGrid: The AGrid dataset is an unpublished dataset that was recorded in 14 different rooms at Aalto University, with two receiver positions and two source positions per receiver, yielding 56 SRIRs. Ground-truth directions of arrival (DOAs) are estimated using the same MUSIC-based approach as for the MOTUS dataset.
Array Signals
The SRIRs from the different datasets were convolved with TIMIT speech samples [27], following the procedure in [9] with a few modifications. For each receiver position, audio samples were generated at a sampling rate of 16 kHz using three speaker tracks, one for each source SRIR. Each track contained two repetitions of a speech sample, with a random pause of 0–1.5 s inserted before, between, and after the repetitions. The mixture duration was determined by the longest speaker track and rounded up to the next full second. This yielded an approximately uniform distribution of frames containing between zero and three simultaneously active sources. Anechoic babble noise was convolved with a diffuse Ambisonic late-reverberation tail (see § 2.1.2), whose octave-band decay times were obtained by averaging the RTs of the corresponding source SRIRs. The resulting reverberant babble noise was then added to the speech mixture at a signal-to-noise ratio of 20 dB. Finally, the mixture was split into one-second segments, which were used as model input.
SSLD Model
Model Architecture
We adopted a convolutional recurrent neural network (CRNN) architecture, the most common choice for SSLD tasks, and based our model on [9], which extends the SELDnet architecture [28, 29] to higher-order Ambisonic input features. The model used the activity-coupled Cartesian direction-of-arrival (ACCDOA) representation, which compactly encodes both source activity and direction [30].
Input Features
As input features, we computed so-called higher-order pseudointensity vectors (HO-PIVs) and log-mel spectrograms from the channels of third-order () Ambisonic signals, as this was among the best-performing feature combinations in [9]. The HO-PIVs were computed using an STFT with a 640-sample Hann window, a 320-sample hop size, and a 1024-point FFT, resulting in frames and 513 frequency bins. To reduce feature dimensionality, the HO-PIVs were grouped and averaged into mel bands, and normalized as described in [9].
The HO-PIVs were concatenated with 128-band log-mel magnitude spectra of all Ambisonic channels to improve source-number estimation. The resulting input had dimensions , comprising 16 active HO-PIV, 16 reactive HO-PIV, and 16 magnitude-spectrum channels. HO-PIV and magnitude features were separately z-score normalized using training-set statistics.
Training Parameters
We trained the model with Adam using an initial learning rate of and weight decay of , with a batch size of 800 and dropout rate 0.1. The learning rate was halved after five consecutive epochs without validation-loss improvement, and training was terminated after 20 consecutive epochs without validation-loss improvement. With these settings, training typically converged in about 100 epochs.
Evaluation Metrics
To assess both source localization and detection, we report localization error (LE) for localization accuracy, source-count mean absolute error (SC-MAE) for detection performance, and the score as a combined measure.
Active predictions are identified using an ACCDOA activity threshold of and matched to active ground-truth sources with the Hungarian algorithm [31]. The LE is then defined as the mean angular distance over all true-positive (TP) prediction-reference pairs across the evaluation samples,
where indexes the matched TP prediction-reference pairs within evaluation sample .
The SC-MAE measures detection performance as the mean absolute difference between the predicted and ground-truth number of active sources,
As an overall metric for jointly evaluating localization and detection performance, we use the score [9], which combines the location-sensitive error , location-sensitive false positive , the LE, and the localization recall (LR),
where lower values indicate better performance.
Statistical uncertainty in the evaluation metrics is estimated using the leave-one-out jackknife procedure described in [32], from which 95% confidence intervals are estimated.
Results
SSLD Performance
The results are shown in Figure 1. The top row indicates the configuration of the acoustic simulator used to generate the training data, while the bottom three rows report the evaluation metrics. Each column shows model performance on the test split of the corresponding simulated training dataset in gray, together with performance on the three measured test sets. For comparison, the LE of the MUSIC algorithm is shown in the leftmost column.
Overall performance on the simulated test split is similar across training configurations. As expected, models trained under anechoic conditions perform well on the corresponding simulated test set, but performance drops markedly on the measurement-based datasets. Adding diffuse late reverberation to the direct-sound simulations slightly improves generalization, whereas adding first-order image sources yields a substantially larger benefit. Once image sources are included, however, the additional diffuse reverberation tail does not provide a systematic improvement.
Increasing the ISM order further reduces the performance gap on the measurement-based datasets. The largest gains are obtained when moving from anechoic simulation to first- and second-order image sources, while the additional improvement at 12th order is consistent but smaller. Higher ISM orders, however, also reduce performance variability across datasets. The AGrid results show the largest uncertainty, likely due to the smaller dataset size. At low reflection orders, the ideal SH receiver simulation tends to generalize better, whereas the full EM simulation based on measured ATFs performs better at higher ISM orders and yields the best overall SSLD performance. For the highest-order ISM simulations, LE is lower on the measured datasets than on the simulated test set. In contrast, SC-MAE remains lower on the simulated test set, and further analysis confirmed that the lower LE on the measured datasets is associated with underestimation of the number of active sources.
The four rightmost columns in Figure 1 show the results for training sets with different degrees of randomization of the image-source positions. Randomization slightly improves generalization to the measured datasets compared with the corresponding non-randomized simulations, suggesting that perturbing the regular image-source structure of standard shoebox ISM simulations reduces overfitting to idealized geometries. The largest tested randomization range, with image-source displacements of up to ±10 m, yields the best performance on the measured datasets. Across the conditions with randomization, the EM simulation again achieves the best overall performance.
Simulator Complexity
To establish cost-performance trade-offs, computational simulation cost must be considered. In general, the computational complexity of the image-source method grows exponentially with reflection order, but for shoebox rooms it increases only polynomially, specifically cubically [33]. On a test machine (Apple MacBook Pro with an M1 Pro chip and 16 GB RAM), the mean SRIR simulation time per room, averaged over 1000 rooms, was 0.49 s for reflection order 1, 0.55 s for reflection order 2, and 1.26 s for reflection order 12. Thus, increasing the order from one to two, and possibly to 12, may often be justified. In our setup, randomizing image-source positions did not alter computational cost, as it only required displacing already simulated image sources.
In any case, the image-source computation itself contributed only a small fraction of the overall runtime compared with loading the ATFs in the EM-based simulations. For both direct-sound simulation and 12th-order reflection simulation, the EM-based approach was more than 40 times slower than the corresponding SH-based simulation. Given the relatively modest performance improvements achieved with the EM receiver, this substantial additional cost may not be justified in all applications.
Discussion and Conclusion
This work analyzed the sound source localization and detection performance of a convolutional recurrent neural network trained with geometrical acoustic simulators of varying complexity and evaluated on three measurement-based test datasets. The best SSLD performance was obtained with the highest-order ISM simulations combined with ATF-based microphone array simulation. A further improvement was observed when image-source positions were randomized, suggesting better generalization beyond the limitations of standard shoebox simulations. These findings indicate that highly accurate geometric simulations may not always be necessary and could potentially be replaced by a more computationally efficient randomized approach, such as the statistical model in [34] or FRAM-RIR [10], which uses random image-source locations and achieved improved generalization on a speech separation task.
For the best-performing simulators, SSLD performance on the out-of-domain measurement-based test sets was close to that on the within-domain simulated test split, indicating that the benefit of further increasing simulation complexity may be limited. At the same time, the analysis of computational simulation cost revealed a clear complexity-performance trade-off. Higher image-source orders and additional microphone array simulation substantially increased simulation cost while yielding only modest performance gains. Overall, the results indicate how the simulation complexity-performance trade-off can be exploited in future geometrical-acoustic simulation for data-driven SSLD and show that image-source randomization may offer a practical way to simplify geometrical acoustic simulation while improving generalization.
Acknowledgements
Fabian Staub received support from an Erasmus+ traineeship grant from the European Union. Thomas Deppisch was supported by Meta Reality Labs through the research project MaMeLi. The authors acknowledge the use of HUCE infrastructure of Aalto School of Electrical Engineering and the computational resources provided by the Aalto Science-IT project.
References
References
- [1]Robin Scheibler, Eric Bezzam, and Ivan Dokmanić, “Pyroomacoustics: A Python package for audio room simulations and array processing,” in 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Apr. 2018, pp. 351–355.
- [2]Jont B. Allen and David A. Berkley, “Image method for efficiently simulating small-room acoustics,” The Journal of the Acoustical Society of America, vol. 65, no. 4, pp. 943–950, Apr. 1979.DOI
- [3]Lauri Savioja and U. Peter Svensson, “Overview of geometrical room acoustic modeling techniques,” The Journal of the Acoustical Society of America, vol. 138, no. 2, pp. 708–730, Aug. 2015.DOI
- [7]Femke B. Gelderblom, Yi Liu, Johannes Kvam, and Tor Andre Myrvoll, “Synthetic data for DNN-based DOA estimation of indoor speech,” in IEEE International Conference on Acoustics, Speech and Signal Processing, 2021, pp. 4390–4394.
- [8]Prerak Srivastava, Antoine Delforge, Archontis Politis, and Emmanuel Vincent, “How to (Virtually) Train Your Speaker Localizer,” in Proc. INTERSPEECH, 2023, pp. 1204–1208.arxiv.org/abs/2211.16958
- [9]Nils Poschadel, Stephan Preihs, and Jürgen Peissig, “Investigations on higher-order spherical harmonic input features for deep learning-based multiple speaker detection and localization,” EURASIP Journal on Audio, Speech, and Music Processing, vol. 2025, no. 1, pp. 7, Feb. 2025.DOI
- [10]Yi Luo and Rongzhi Gu, “Fast Random Approximation of Multi-Channel Room Impulse Response,” 2024 IEEE International Conference on Acoustics, Speech, and Signal Processing Workshops, ICAS-SPW 2024 - Proceedings, pp. 449–454, 2024.arxiv.org/abs/2304.08052
- [11]Ralph O. Schmidt, “Multiple emitter location and parameter estimation,” IEEE Transactions on Antennas and Propagation, vol. 34, no. 3, pp. 276–280, 1986.DOI
- [12]Boaz Rafaely, Fundamentals of Spherical Array Processing, vol. 16 of Springer Topics in Signal Processing, Springer International Publishing, Cham, 2019.
- [13]Franz Zötter and Matthias Frank, Ambisonics: A Practical 3D Audio Theory for Recording, Studio Production, Sound Reinforcement, and Virtual Reality, vol. 19 of Springer Topics in Signal Processing, Springer International Publishing, Cham, Switzerland, 2019.DOI
- [14]Eric Grinstein, Vincent W. Neo, and Patrick A. Naylor, “Dual input neural networks for positional sound source localization,” Eurasip Journal on Audio, Speech, and Music Processing, vol. 2023, no. 1, 2023.arxiv.org/abs/2308.04169
- [15]Iran R. Roman, Christopher Ick, Sivan Ding, Adrian S. Roman, Brian McFee, and Juan P. Bello, “Spatial scaper: A library to simulate and augment soundscapes for sound event localization and realistic rooms,” in IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2024, pp. 1221–1225.
- [16]Jinbo Hu, Yin Cao, Ming Wu, Qiuqiang Kong, Feiran Yang, Mark D. Plumbley, and Jun Yang, “Selective-memory meta-learning with environment representation for sound event localization and detection,” IEEE/ACM Transactions on Audio, Speech, and Language Processing, vol. 32, pp. 4313–4327, 2024.arxiv.org/abs/2312.16422
- [17]James Traer and Josh H. McDermott, “Statistics of natural reverberation enable perceptual separation of sound and space,” Proceedings of the National Academy of Sciences, vol. 113, no. 48, pp. E7856–E7865, Nov. 2016.DOI
- [18]Carl F. Eyring, “Reverberation time in “dead” rooms,” The Journal of the Acoustical Society of America, vol. 1, no. 2A, pp. 217–241, Jan. 1930.
- [19]Nicolas Epain and Craig T. Jin, “Spherical Harmonic Signal Covariance and Sound Field Diffuseness,” IEEE/ACM Transactions on Audio, Speech, and Language Processing, vol. 24, pp. 1796–1807, 2016.arxiv.org/abs/1607.00211
- [20]Alexander Lindau, Linda Kosanke, and Stefan Weinzierl, “Perceptual Evaluation of Model- and Signal-Based Predictors of the Mixing Time in Binaural Room Impulse Responses,” Journal of the Audio Engineering Society, vol. 60, no. 11, pp. 887–898, 2012.DOI
- [21]Shivam Saini and Jürgen Peissig, “HARP: A large-scale higher-order ambisonic room impulse response dataset,” in 2025 IEEE International Conference on Acoustics, Speech, and Signal Processing Workshops (ICASSPW), 2025.arxiv.org/abs/2411.14207
- [22]Bar Shaybet, Anurag Kumar, Vladimir Tourbabin, and Boaz Rafaely, “Ambisonics Networks - The Effect of Radial Functions Regularization,” in IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2024, pp. 666–670.arxiv.org/abs/2402.18968
- [23]Archontis Politis and Hannes Gamper, “Comparing modeled and measurement-based spherical harmonic encoding filters for spherical microphone arrays,” in 2017 IEEE Workshop on Applications of Signal Processing to Audio and Acoustics (WASPAA), 2017, pp. 224–228.DOI
- [24]Archontis Politis, Microphone Array Processing for Parametric Spatial Audio Techniques, Ph.D. thesis, Aalto University, Finland, 2016, Department of Signal Processing and Acoustics.
- [25]Antonio Figueroa-Duran, Nils Meyer-Kahlen, Efren Fernandez-Grande, and Tapio Lokki, “Spatial room impulse response dataset: em32 along line,” June 2025, https://zenodo.org/records/15161999.
- [26]Georg Götz, Sebastian J. Schlecht, and Ville Pulkki, “A dataset of higher-order Ambisonic room impulse responses and 3D models measured in a room with varying furniture,” in 2021 Immersive and 3D Audio: from Architecture to Automotive (I3DA), 2021.DOI
- [27]John S. Garofolo, Lori F. Lamel, William M. Fisher, Jonathan G. Fiscus, David S. Pallett, Nancy L. Dahlgren, and Victor Zue, “TIMIT acoustic-phonetic continuous speech corpus,” LDC93S1, 1993.DOI
- [28]Sharath Adavanne, Archontis Politis, Joonas Nikunen, and Tuomas Virtanen, “Sound Event Localization and Detection of Overlapping Sources Using Convolutional Recurrent Neural Networks,” IEEE Journal of Selected Topics in Signal Processing, vol. 13, no. 1, pp. 34–48, 2019.DOI
- [29]Archontis Politis, Kazuki Shimada, Parthasaarathy Sudarsanam, Sharath Adavanne, Daniel Krause, Yuichiro Koyama, Naoya Takahashi, Shusuke Takahashi, Yuki Mitsufuji, and Tuomas Virtanen, “Starss22: A dataset of spatial recordings of real scenes with spatiotemporal annotations of sound events,” 2022, arXiv:2206.01948 [eess.AS].arxiv.org/abs/2206.01948
- [30]Kazuki Shimada, Yuichiro Koyama, Naoya Takahashi, Shusuke Takahashi, and Yuki Mitsufuji, “ACCDOA: Activity-Coupled Cartesian Direction of Arrival Representation for Sound Event Localization and Detection,” in IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2021, pp. 915–919.
- [31]H. W. Kuhn, “The Hungarian method for the assignment problem,” Naval Research Logistics Quarterly, vol. 2, no. 1-2, pp. 83–97, Mar. 1955.
- [32]Annamaria Mesaros, Aleksandr Diment, Benjamin Elizalde, Toni Heittola, Emmanuel Vincent, Bhiksha Raj, and Tuomas Virtanen, “Sound Event Detection in the DCASE 2017 Challenge,” IEEE/ACM Transactions on Audio, Speech, and Language Processing, vol. 27, no. 6, pp. 992–1006, June 2019.DOI
- [33]Heinrich Kuttruff, Room Acoustics, CRC Press, Boca Raton, 6 edition, Oct. 2016.
- [34]Roland Badeau, “Common mathematical framework for stochastic reverberation models,” The Journal of the Acoustical Society of America, vol. 145, no. 4, pp. 2733–2745, Apr. 2019.DOI
AI tools statement
No AI-use declaration is available for this version in Valency.
The available record does not establish whether AI systems or models contributed to this work.
