{'fraction_non_alphanumeric': 0.02141802067946824, 'fraction_numerical': 0.0007385524372230429, 'mean_word_length': 5.103603603603603, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Electrical Network Frequency (ENF) Maximum-Likelihood Estimation Via a Multitone Harmonic Model

Estimation of the parameters of the electric network signal, usually present in many audio and video recordings, is known to have several important forensic applications. In this paper, we consider the problem of estimating the base frequency and signal to noise ratio (SNR). Although the electric network signal is present via its base frequency and its integer multiplies, recent estimators in the literature focus on single-tone models. In this work, we offer a multitone harmonic model for the electric network signal. We use the Cramer-Rao bound for the frequency estimation problem and show that this approach can lead to a theoretical O(M3) factor improvement in the estimation accuracy, where M is the number of harmonics. We then derive the computationally efficient form of the maximum-likelihood estimator, applicable in the limit of large number of measurements. The problem of estimating the SNR of the signal is also discussed. Through extensive tests on real data and data sets reported in the current literature, the performance of the new estimators is evaluated. Results indeed show a significant gain compared to the single-tone model, and are better than previously reported estimators in the literature for moderate and high SNR values.