Unfolded Recursive Expectation-Maximization Neural Network for Speaker Tracking
Abstract
We propose a deep unfolded Recursive EM (REM) network for robust tracking of a single moving speaker in mild reverberant environments. Unlike classical REM algorithms, which rely on fixed-step-size decay schedules, the proposed architecture learns an adaptive update policy by unfolding the iterative procedure into differentiable layers. We introduce a Step Size Network that leverages Feature-wise Linear Modulation (FiLM) and Positional Encoding (PE) to dynamically adjust the recursion weights based on temporal context and convergence state. Experimental results for tracking a single speaker under reverberant conditions demonstrate that the proposed unfolded network outperforms the classical Cappé and Moulines REM (CREM) baseline, which employs a spatial grid search to map the estimated centroids to physical positions. In the single-speaker tracking task, the proposed method achieves a lower Root Mean Square Error (RMSE) than the CREM baseline, highlighting its potential for dynamic acoustic scenarios.
Index Terms— Sound source tracking; Unfolding neural network; Recursive Expectation-Maximization; Pair-wise relative phase ratio.
1 Introduction
Sound Source Localization (SSL) is a fundamental task in modern audio applications, ranging from autonomous robots to smart-home consumer electronics. In realistic environments, estimating the spatial coordinates of a source is significantly complicated by reverberation and ambient noise. Traditional methods, such as Steered Response Power with Phase Transform (SRP-PHAT), Multiple Signals Classification (MUSIC), and Maximum Likelihood Estimation (MLE) [7, 15], often struggle in these adverse conditions. This has motivated a shift toward Deep Neural Network (DNN)-based approaches, which offer superior robustness in complex acoustic scenes [2, 5].
However, purely data-driven DNNs are often criticized for their lack of interpretability. Algorithm unfolding (or unrolling) bridges this gap by casting the iterations of classical algorithms as differentiable network layers [4, 10]. In our previous work [14], we successfully employed an unfolded network to estimate static multi-speaker positions by integrating the batch Expectation-Maximization (EM) procedure—previously used for Pair-Wise Relative Phase Ratio (PRP) clustering [16, 9]—into an unrolled architecture. While effective for static sources, batch-oriented methods lack the temporal consistency required for dynamic speaker tracking.
To address moving-source scenarios, recursive variants of the EM algorithm, e.g., the algorithm proposed by Cappé and Moulines [1] (henceforth denoted the CREM algorithm), update parameters frame-by-frame using recursively accumulated sufficient statistics. Several studies have integrated EM iterations into unfolding frameworks for image segmentation and clustering [3, 13]. Although recursive, a major limitation in the application of CREM is the selection of the step-size parameter , which governs the trade-off between past information and current observations. In static scenarios, a fixed decay schedule should be used. However, in tracking scenarios, where the speaker position changes over time, the step size should adapt to the underlying dynamics and is therefore often chosen empirically.
In this paper, we introduce a deep Unfolded CREM network embedded within an encoder-decoder architecture that learns an adaptive, data-driven step-size policy. By incorporating a conditioning sub-network based on FiLM [12] and sinusoidal PE [17], our model dynamically adjusts the recursion weights based on the current tracking state and temporal context. We demonstrate that this hybrid approach improves tracking accuracy and convergence speed compared to the classical recursive method.
2 Problem Formulation
Consider a single speaker moving in a reverberant enclosure, whose activity is captured by an array of microphone pairs. We assume the speaker moves at a constant velocity along either a linear or a circular path. The analysis is carried out in the Short-Time Fourier transform (STFT) domain. The signal captured at the th microphone of the pair , where and , at time-frame and frequency bin is modeled as:
| (1) |
where is the source signal, is additive noise, and are the Acoustic Transfer Functions relating the source positions and the microphone positions. The ATFs vary over time as the speaker moves along its trajectory . Similar to our previous work [16, 14], we employ the PRP as the localization feature to improve robustness to signal-power variations. The observed PRP for pair is defined as:
| (2) |
and the observation vector at each time-frequency bin is
| (3) |
To model the received PRP, we adopt a Complex Gaussian Mixture Model (CGMM) with two components (): one associated with the moving speaker () and the other with noise or spurious estimates (). The Probability Density Function (p.d.f.) for a single observation is given by:
| (4) |
where is the prior probability of the -th cluster. For the speaker cluster (), the mean should be the expected PRP analytically derived from the current position , where each element is calculated as:
| (5) |
where represents the sound velocity, and the sampling time of the continuous-time signal. For the noise cluster (), the mean does not originate from a specific point source, and hence, we expect this cluster to have a larger variance compared to the speaker’s variance.
Following [16], we assume independence of the PRP features across microphone pairs. We further simplify each covariance matrix to a scaled identity matrix, i.e., . Finally, the p.d.f. of the entire observation set is given by
| (6) |
where denotes the set of time-varying parameters, comprising the Gaussian means, the priors, and variances. In the following section, we derive the REM algorithm, which updates by accumulating the score of the log-likelihood over time, and demonstrate how this procedure is unfolded into a deep neural network to learn optimal, time-adaptive update steps.
3 Proposed Method
For online tracking of a moving speaker, we develop a recursive framework based on the CREM algorithm, which we subsequently unfold into a deep neural network.
The EM Algorithm: The EM algorithm requires defining three components and their probability models: the observations (), the target parameters (), and the hidden data (). In our case, we define the hidden data to be the association of each Time-Frequency (TF) bin with either the source at a particular location or the background noise. Given the hidden data, the probability log-likelihood function of the observations is given by:
| (7) |
The E-step is therefore given by:
| (8) |
For implementing the E-step, it is sufficient to evaluate , given by:
| (9) |
Maximizing (9) with respect to the parameters constitutes the M-step. We stress that this batch formulation assumes static speakers and operates entirely offline, making it unsuitable for real-time tracking in dynamic, time-varying environments.
The CREM Algorithm: The CREM algorithm adapts the batch EM procedure to an online scenario by substituting the iteration index with the time-frame index . The core idea is to recursively estimate the auxiliary function, denoted , using a stochastic approximation step:
| (10) |
where is a time-varying smoothing coefficient (step-size) that determines the balance between past information and the current observation. The complete data log-likelihood is given by:
| (11) |
Given that our CGMM likelihood (11) belongs to the exponential family, the maximization of can be simplified by maintaining a recursive estimate of the sufficient statistics vector, .111Due to space constraints, the derivation is significantly shortened. The update rule for the sufficient statistics at frame is:
| (12) |
where is the expected sufficient statistics computed in the E-step, based on the posterior probability that the -th frequency bin at time belongs to cluster . The term , required for the E-step,222 is related to the definition of the exponential family. can be simplified by calculating:
| (13) |
which is readily given by (9). Using this definition, the expected sufficient statistic can be written as:
| (14) |
where the Hadamard product is applied with implicit broadcasting; specifically, when a dimension is absent in one of the tensors, it is replicated along that dimension to match the size of the other, followed by element-wise multiplication. The recursive sufficient statistic is defined as:
| (15) |
where the updates are:
| (16a) | ||||
| (16b) | ||||
| (16c) | ||||
| (16d) | ||||
The maximization step in the REM is similar to the maximization step in the batch EM. The M-step yields the following parameter updates:
| (17) |
The M-step and the E-step can be merged into one recursion:
| (18a) | ||||
| and for the other parameters: | ||||
| (18b) | ||||
| (18c) | ||||
with is an element-wise division operation. To infer the speaker’s physical 2D position in Cartesian coordinates, denoted as , from the recursively updated parameters, a spatial grid search is performed at each time step. The estimated position is obtained by minimizing the squared error between the estimated PRP and the theoretical PRP:
| (19) |
where is the theoretical value for a candidate location as defined in (5).
The performance of the CREM algorithm is highly dependent on the choice of the step size . Classic stochastic approximation results guarantee convergence to a (static) local optimum given and . A common schedule is , where balances the trade-off between convergence speed (smaller ) and estimation stability (larger ). To further enhance stability, we can adopt a mini-batch approach of size , which interpolates between pure online () and batch () estimation [8]. However, since fixed schedules struggle with dynamic trajectories, we propose an unfolded architecture that learns an adaptive, data-driven step size, as described in the next section.
Unfolding CREM Neural Network: Building upon the interpretable Batch-EM unfolding framework presented in our previous work [14], we propose a deep unfolded architecture for the CREM algorithm. The network embeds the recursive EM steps within an encoder-decoder structure and introduces a data-driven mechanism to learn the optimal time-varying step size (Figure 1).

(a) Full Unfolded CREM Architecture

(b) Step-Size Network
a) Encoder-decoder framework: The core of the architecture consists of an encoder and decoder. The encoder, implemented as a Fully Connected (FC) network, maps candidate spatial positions to an initial PRP vector. The decoder performs the inverse mapping, translating the refined PRP estimates back to spatial coordinates . By using the decoder at each time step, the network provides online tracking of the speaker’s trajectory. To enhance stability, each layer processes mini-batches of size by interpolating between the online and batch regimes.
b) Dynamic step-size learning via FiLM and PE: The primary innovation in this architecture is the Step-Size Network, which replaces the heuristic schedules of with a learned, adaptive function. Since the optimal update step depends on both the current convergence state and the temporal context, we employ FiLM [12] and PE [17]. To provide the network with information about the current iteration, we use a sinusoidal positional encoding, .The step-size network receives a conditioning vector , which is processed through a Layer-Normalized Multi-Layer Perceptron (MLP) to generate the FiLM parameters, (scaling) and (shifting). The intermediate features are extracted from the concatenation of the current observation and the temporal difference between successive observations . Then, the FiLM parameters modulate the intermediate features to produce the scalar step size used in (12). The architecture of the step-size network is shown in Figure 1.
c) Weighted loss: The network is trained using a time-weighted composite loss function. To account for the initial convergence period of the REM, we introduce a warmup weight that scales the loss at each time step. The spatial accuracy is governed by a logarithmic distance error, which provides a sub-linear penalty to stabilize gradients against large initial offsets:
| (20) |
where denotes the cosine similarity operator.
4 Experimental Study
Data Generation and Setup: We evaluated the proposed unfolded network using a synthetic dataset derived from the Wall Street Journal (WSJ) corpus [11]. The simulations were implemented in Python using the image-method-based signal generator [6]. We simulated a single moving speaker in rectangular rooms with random dimensions (height: 2.2–2.6 m; width/length: 5–7 m) with eight microphone pairs (intra-pair distance: 0.2 m). The speaker moves at a constant velocity of m/s, following either a linear trajectory or a circular path with a radius ranging from to m. Acoustic conditions include either anechoic or reverberant environments with s and additive white noise at dB. The dataset consists of training and validation samples.
Signal Processing and Data Flow: The input signals, sampled at kHz, feature durations of seconds in anechoic scenarios and seconds in reverberant conditions. Transformed into the TF domain using an STFT (window size of , hop size of samples), these configurations yield and time frames, respectively. To optimize efficiency, only frequency bins within the Hz range are considered. Tracking is performed with a mini-batch size of consecutive time frames at each step, employing a sliding window with a step size of frames between consecutive CREM updates to maintain temporal continuity.
Encoder and Decoder Architectures: The FC encoder serves as the initialization block, mapping random room coordinates to the initial PRP vector through layers with increasing widths: . Each layer is followed by LayerNorm and Rectified Linear Unit (ReLU) activation, while the final output uses a tanh activation to ensure the stability of the PRP values. The decoder, which maps the refined PRP back to spatial coordinates, comprises layers with decreasing dimensions: . All layers utilize ReLU activation, except for the final output layer, which provides the continuous D coordinates.
Step-Size Network with FiLM: The adaptive step size is estimated using a multi-branch conditioning network. (i) Parameter Branch: and are mapped to a -dimensional feature; (ii) Manifold Branch: The estimated passes through layers () with ReLU; (iii) Temporal Branch: The time index is encoded via a -dimensional PE. These three branches are concatenated and passed through LayerNorm to generate the FiLM parameters (). Two separate generators are used: a -layer FC () for a -dim modulation, and a -layer FC () for a -dimensional modulation.
The main step-size estimation path concatenates the current observation and the temporal difference . This input is processed through a -dimensional FC layer, followed by the first FiLM block, two FC layers (), the second FiLM block, and finally FC layers (). A sigmoid activation is applied to the final scalar output to bound the learned step size .
Training and Stability: Training was performed using the composite loss in (20) with . To handle the initial convergence period, we employed a linear warmup schedule for the loss weights , increasing from to over the first time steps and remaining constant thereafter. To ensure numerical stability during the unfolding of recursive updates, we applied several regularization techniques: (i) gradient clipping with a threshold of ; (ii) weight decay of ; (iii) a clamp value of on the estimated variances ; and (iv) a small epsilon added to all denominators in the CREM update rules. The network was optimized using Adam with an initial learning rate of .
Results and Discussion: We evaluated the proposed approach against the CREM baseline using unseen speech signals. To demonstrate the impact of our learned model, the baseline performance was tested across multiple fixed step sizes, specifically evaluating , coupled with a spatial grid search. These evaluation scenarios incorporated diverse room sizes and varying trajectory locations to assess localization accuracy, tracking adaptability, and robustness across different acoustic conditions. autoreftab:results summarizes the results. We report the warmup-weighted average RMSE between the estimated and ground-truth speaker positions, along with the percentage of test trajectories for which the time-averaged positional error exceeds m.
| Rever. Level | Unfolded CREM Network | CREM Baseline () | ||
|---|---|---|---|---|
| RMSE (m) | >0.5 m (%) | RMSE (m) | >0.5 m (%) | |
| s | 0.25 | 3 | [0.28, 0.67, 1.44] | [1, 29, 61] |
| s | 0.55 | 56 | [0.74, 0.81, 0.86] | [87, 93, 97] |
Under anechoic conditions, the unfolded network outperforms the baselines with larger fixed step sizes while achieving performance comparable to the baseline. This is consistent with the learned step size dynamically converging to a similar low value. In the more challenging reverberant scenario ( s), the proposed method continues to outperform all fixed-step baselines, although its performance degrades relative to the anechoic case. The advantage over the baseline is further illustrated by the error distribution in Fig. 2, where the unfolded network (blue) exhibits a substantially higher concentration of trajectories with low RMSE than the baseline (orange).
The network’s tracking capabilities are further qualitatively illustrated in Fig. 3, which shows the estimated trajectories under both anechoic and reverberant conditions.
5 Conclusion
We presented an unfolded REM network for speaker tracking that replaces fixed step-size schedules with a learned, adaptive update policy. Experimental results demonstrate that the proposed model outperforms the classical CREM baseline, achieving lower RMSE and improved stability in both anechoic and reverberant environments. Analysis of the learned parameters shows that the step size converges to a distinct range for each acoustic setting. In anechoic scenarios, fluctuates around (peaking at ), whereas in reverberant conditions it decreases to –. The network learns to stabilize the step size, likely because the speaker velocity remains constant. Future work will focus on improving robustness under highly reverberant conditions and extending the model to more complex scenarios with variable speaker velocities and trajectories.
References
- [1] (2009) On-line expectation-maximization algorithm for latent data models. J. R. Statist. Soc.: Ser. B (Statist. Methodol.) 71 (3), pp. 593–613. Cited by: §1.
- [2] (2019) Multi-speaker DOA estimation using deep convolutional networks trained with noise signals. IEEE Journal of Selected Topics in Signal Processing 13 (1), pp. 8–21. Cited by: §1.
- [3] (2017) Neural expectation maximization. In Proceedings of the 31st Conference on Neural Information Processing Systems (NeurIPS), pp. 6694–6704. Cited by: §1.
- [4] (2010) Learning fast approximations of sparse coding. In Proceedings of the International Conference on Machine Learning (ICML), pp. 399–406. External Links: Document Cited by: §1.
- [5] (2022-07) A survey of sound source localization with deep learning methods. J. Acoust. Soc. Am. 152 (1), pp. 107–151. Cited by: §1.
- [6] (2006) Room impulse response generator. Technical report Technische Universiteit Eindhoven. Note: [Online]. Available: https://www.audiolabs-erlangen.de/fau/professor/habets/software/rir-generator Cited by: §4.
- [7] (1976) The generalized correlation method for estimation of time delay. IEEE Transactions on Acoustics Speech and Signal Processing 24 (4), pp. 320–327. Cited by: §1.
- [8] (2009) Online EM for unsupervised models. In Proceedings of Human Language Technologies: The 2009 Annual Conference of the North American Chapter of the Association for Computational Linguistics, Boulder, Colorado, pp. 611–619. Cited by: §3.
- [9] (2007) An EM algorithm for localizing multiple sound sources in reverberant environments. In Advances in Neural Information Processing Systems, Vol. 19, pp. 953. Cited by: §1.
- [10] (2021) Algorithm unrolling: interpretable, efficient deep learning for signal and image processing. IEEE Signal Processing Magazine 38 (2), pp. 18–44. External Links: Document Cited by: §1.
- [11] (1992) The design for the wall street journal-based csr corpus. In Proceedings of the workshop on Speech and Natural Language, pp. 357–362. Cited by: §4.
- [12] (2018-04) FiLM: visual reasoning with a general conditioning layer. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 32. Cited by: §1, §3.
- [13] (2023) Deep expectation-maximization network for unsupervised image segmentation and clustering. Image and Vision Computing 135, pp. 104717. Cited by: §1.
- [14] (2026) Speakers localization using batch EM in unfolding neural network. arXiv preprint arXiv:2603.16278. External Links: Link Cited by: §1, §2, §3.
- [15] (1986) Multiple emitter location and signal parameter estimation. IEEE Transactions on Antennas and Propagation 34 (3), pp. 276–280. Cited by: §1.
- [16] (2014-02) Speaker tracking using recursive EM algorithms. IEEE/ACM Transactions on Audio, Speech, and Language Processing 22 (2), pp. 392–402. External Links: Document Cited by: §1, §2, §2.
- [17] (2017) Attention is all you need. In Advances in Neural Information Processing Systems, Vol. 30, pp. 5998–6008. Cited by: §1, §3.