This repository contains the code for the paper "Empirical Evaluation of ENF Extraction Methods for Accurate Timestamping in Multimedia Forensics" submitted for the CISS 2025 conference.
The extraction of electrical network frequency (ENF) from audio signals has become a vital tool in multimedia forensics, enabling applications such as timestamps, authentication and geolocation estimation. Our goal with this project was to provide a comparative analysis of several prominent ENF extraction methods and their effectiveness for time stamping audio recordings.
This repository provides a tool for:
-
ENF signal extraction using one of the following methods:
- Short Time Fourier Transform (STFT)
- Maximum-likelihood (ML) [1]
- Blackman-Tukey (BT) [2]
- Estimation by Rotational Invariance Techniques (ESPRIT) [2]
- Capon [2]
-
Correlation computations between a measurement signal and a reference signal using Cross-Correlation (CC) and Normalized-Missalignment (NM) criteria.
-
Time stamping of a measurement signal within a reference signal based on the chosen correlation criteria.
-
Viauslizations of the correlation sequence and the aligned ENF signals.
MATLAB: Image Processing Toolbox, Signal Processing Toolbox.
-
Add your measurement and reference signals to the
Datafolder. -
Change the file paths in the
main.mfile to match your file names. -
Edit the
get_params.mfile to match your needs. -
Execute the
main.mfile.
This repository contains code taken from external sources. Small adaptations were made to fit our code, and unused parts were removed.
The original code for the ML method can be found at https://ieeexplore.ieee.org/abstract/document/6482617 under "supplemental items".
The original code for the BT, ESPRIT, and CAPON methods can be found at https://github.com/geokarant/ENF_extraction.
[1] D. Bykhovsky and A. Cohen, “Electrical network frequency (enf ) maximum-likelihood estimation via a multitone harmonic model,” IEEE Transactions on Information Forensics and Security, vol. 8, no. 5, pp. 744–753, 2013.
[2] G. Karantaidis and C. Kotropoulos, “Assessing spectral estimation methods for electric network frequency extraction, ” in Proceedings of the 22nd Pan-Hellenic Conference on Informatics, 2018, pp. 202–207.