Digital audio tampering passive detection method and device based on power grid frequency phase timing representation
Through a deep learning method based on power grid frequency phase timing representation, Bi-LSTM network and DNN classifier are used to solve the problem of low recognition rate in the existing technology, achieve higher detection accuracy and generalization ability, and improve digital Performance of audio tampering detection.
Patent Information
- Application Number
- CN202210448675.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-26
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-04-26
AI Technical Summary
Existing digital audio tampering detection methods have the problems of too many empirical components, strong pertinence, and insufficient recognition rate, and fail to fully utilize the timing information of the grid frequency (ENF) signal.
A deep learning method based on power grid frequency phase timing representation is used to train the ENF signal through the Bi-LSTM network. After frame processing, the DNN classifier is used for tampering detection. The detection accuracy is improved by combining the structure of the bidirectional LSTM network and the fully connected layer. .
The identification performance and model generalization ability of digital audio tampering detection are improved, the system structure is optimized, and the identification ability of the device is enhanced.
Smart Images

Figure CN114822590B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of digital audio tampering detection, and in particular relates to a digital audio tampering passive detection method and device based on power grid frequency phase timing representation. Background Art
[0002] Digital audio is one of the most easily accessible digital media in people's daily lives. In addition to purchasing and downloading audio files, audio / voice files can also be generated through real-time recording. However, the continuous development and improvement of audio editing and processing software has made the editing and modification of audio easier and cheaper. At the same time, it is difficult for the human ear to detect the traces left by such modifications. Therefore, how to effectively verify the originality, integrity and authenticity of digital audio has become an urgent problem that digital audio passive forensics technology needs to solve.
[0003] Passive detection of digital audio tampering is a technology that does not need to add any information, but only relies on the characteristics of the audio itself to analyze and judge the authenticity and integrity of digital audio. It has practical significance for complex forensic environments. When the recording equipment is powered by the power grid, the recorded audio file will have residual power grid frequency (ENF) signals. When the digital audio is tampered with, this ENF signal will also change with the tampering operation. Therefore, there are two research ideas for passive detection of audio tampering using the uniqueness and stability of the ENF signal. The first is to compare the ENF signal extracted from the audio with the ENF database of the power supply department. This method is difficult to implement and costly; the second is to extract certain features from the ENF signal and perform consistency and regularity analysis. At present, the research method of using ENF signals for audio tampering forensics mainly uses traditional machine learning methods to classify the phase change, phase discontinuity, instantaneous frequency mutation and other features of the ENF signal, so as to achieve the purpose of tampering detection.
[0004] Most of the existing digital audio detection methods set thresholds for corresponding features for detection or use machine learning methods for classification. These methods often have problems such as too much experience or too strong targeting of a certain tampering method and insufficient recognition rate.
[0005] In recent years, with the improvement of machine learning algorithm performance and the improvement of computer storage and computing power, deep neural network (DNN) has been applied to the field of audio tampering detection. In deep neural networks, DNN deep nonlinear transformation can better fit the characteristics of audio tampering, realize automatic learning and detection, and have the advantage of high recognition rate. Therefore, the present invention uses Bi-LSTM network to train the grid frequency phase timing representation, divides the ENF phase into frames, so that each frame represents the change information of ENF over a period of time. Then, the state of each time step is output by using the bidirectional LSTM network (Bi-LSTM), and the information of the time steps before and after the ENF mutation point can be used to jointly determine whether the abnormal area is a tampering area. Finally, the DNN classifier is used to fit and then judge the output. Make full use of ENF timing information to obtain higher detection accuracy. Summary of the invention
[0006] The above technical problems of the present invention are mainly solved by the following technical solutions:
[0007] A digital audio tampering passive detection method based on power grid frequency phase timing representation, characterized by comprising:
[0008] The audio data to be detected is processed to obtain the power grid frequency (ENF) component, based on DFT 1 Transform the ENF component to obtain the ENF phase Calculate the number of frames and frame length based on the longest audio duration to be detected, and adjust the ENF phase Perform frame processing to obtain phase timing representation;
[0009] The ENF timing information is obtained from the ENF phase timing representation using a neural network and classified after fitting.
[0010] In the above-mentioned digital audio tampering passive detection method based on power grid frequency phase timing representation, the original voice signal is processed to obtain the power grid frequency (ENF) component, which specifically includes:
[0011] Downsampling sets the signal resampling frequency to 1000HZ or 1200HZ;
[0012] A 10000-order linear zero-phase FIR filter is used for narrowband filtering, with a center frequency at the ENF standard, a bandwidth of 0.6 Hz, a passband ripple of 0.5 dB, and a stopband attenuation of 100 dB.
[0013] In the above-mentioned digital audio tampering passive detection method based on power grid frequency phase timing representation, obtaining the ENF phase includes:
[0014] Step 2.1: Calculate the ENF signal XENFC [n] Approximate first-order derivative at point n
[0015] X′ ENFC [n] = f d (X ENFC [n]-X ENFC [n-1]) (1)
[0016] where f d (*) indicates the approximate derivation operation, X ENFC [n] represents the value of the nth point of the ENF component;
[0017] Step 2.2: X ENFC [n] and X′ ENFC [n] Frame division and windowing are performed, and the frame length is 10 standard ENF frequency cycles The frame shift is 1 standard ENF frequency cycle Use the Hanning window w(n) to calculate X ENFC [n] and X′ ENFC [n] Windowing
[0018] X N [n] = X ENF [n]w(n) (2)
[0019] X′ N [n] = X′ ENFC [n]w(n) (3)
[0020] Hanning Window
[0021]
[0022] Step 2.3, each frame signal X N [n] and X′ N [n] Perform N-point discrete Fourier transform (DFT) to obtain X(k) and X′(k);
[0023] Step 2.4: Let k peak is the index of the peak value of |X(k)|; k peak Used to solve
[0024] Step 2.5: Estimated frequency f of ENF signal DFT , the ENF phase characteristic can be obtained
[0025]
[0026] Step 2.6: Re-estimate DFT 1 Transformed ENF phase Re-order kpeak is the index of the peak value of |X′(k)|; and multiplies |X′(k)| by a scale factor F(k)
[0027]
[0028] Get DFT 0 [k] = X(k), DFT 1 [k] = F(k)|X′(k|; therefore the estimated frequency value is
[0029]
[0030] Step 2.7, k peak Should be closest The integer (f d is the resampling frequency), so is a reasonable frequency value; Expressed as
[0031]
[0032] in For the value of θ, we can obtain it by linear interpolation of X′(k), floor[a] represents the largest integer less than a, and ceil[b] represents the smallest integer greater than b;
[0033] because Therefore, in (k low ,θ low ) = arg[X′(k low )] and (k high ,θ high ) = arg[X′(k high )] Linear interpolation can approximate the point The value obtained is consistent with the value of θ in the above formula;
[0034]
[0035] Step 2.8: Calculated using the above method has two possible values, so use For reference, select The closest The value of
[0036] In the above-mentioned digital audio tampering passive detection method based on power grid frequency phase timing representation, in step 3, the specific method of calculating the ENF phase timing representation includes:
[0037] Step 3.1, obtaining the longest duration audio data in the audio data to be detected;
[0038] Step 3.2: For the longest duration audio, use DFT transformation to obtain the phase
[0039] Step 3.3, set the frame length m and Calculate the number of frames
[0040] Step 3.4, for all audio data, calculate the frame shift overlap = m-floor (length (φ) / n);
[0041] Step 3.5: Since there is a situation where the number cannot be divided evenly, divide the frame into two parts Frame Shift Ratio Frame size is smaller than 1; k = length(φ)-(m-overlap)×n
[0042] Step 3.6, ENF phase timing is characterized as
[0043] In the above-mentioned digital audio tampering passive detection method based on power grid frequency phase timing representation, in step 4, the network model part includes:
[0044] Step 4.1, use two bidirectional long short-term memory neural network Bi-LSTM modules to train the ENF phase timing representation and output the state of each time step; each Bi-LSTM module contains a bidirectional LSTM layer, a layerNormalization layer and an activation function leakyrelu;
[0045] Step 4.2, fit and classify the state features of each time step output by the Bi-LSTM network; use two fully connected layers to fully fit the features (the number of neurons is 1024 and 256 respectively, and the activation function is Relu); add a Dropout layer (Dropout rate = 0.2) between the two fully connected layers to prevent overfitting; finally, use the fully connected layer (the number of neurons is 2, and the activation function is Softmax) as the output layer;
[0046] Step 4.3: The probability obtained by the final output layer can be used to determine whether the speech to be tested has been tampered with, and the probability of correctly identifying whether all test speech has been tampered with is calculated, that is, the recognition rate of the system.
[0047] A digital audio tampering passive detection device based on power grid frequency phase timing representation, characterized by comprising
[0048] The first module: Process the audio data to be detected to obtain the power grid frequency (ENF) component based on DFT 1 Transform the ENF component to obtain the ENF phase ENF Phase Perform frame processing to obtain phase timing representation;
[0049] The second module: Use neural network to obtain ENF timing information from ENF phase timing representation and classify it after fitting.
[0050] Therefore, the present invention has the following advantages: Compared with the traditional digital audio tampering detection, the present invention proposes to classify the ENFS phase timing characterization using a deep learning method. In view of the problem that the traditional method does not express enough features and does not fully utilize the ENF timing information. The ENF phase timing characterization is designed, and the ENF phase is divided into frames, so that each frame represents the change information of ENF over a period of time. The state of each time step is output by a bidirectional LSTM network (Bi-LSTM), and the information of the previous and next time steps of the ENF mutation point can be used to jointly determine whether the abnormal area is a tampered area. Finally, the DNN classifier is used for fitting and then the judgment output is made. Compared with the traditional digital audio tampering detection method, the digital audio tampering detection method of the present invention can effectively improve the recognition performance of the system, improve the generalization ability of the model, optimize the system structure, and improve the competitiveness of the corresponding device source identification products. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a schematic flow chart of the method of the present invention.
[0052] Figure 2 It is a neural network structure diagram. DETAILED DESCRIPTION
[0053] The technical solution of the present invention is further specifically described below through embodiments and in conjunction with the accompanying drawings.
[0054] Example:
[0055] The present invention provides a digital audio tampering passive detection method based on power grid frequency phase timing characterization. The algorithm flow chart of the present invention is as follows: Figure 1 As shown, it can be divided into four parts: 1) ENF component acquisition; 2) ENF phase feature extraction; 3) ENF timing representation acquisition; 4) neural network training.
[0056] Step 1: Obtain ENF components. The steps are as follows:
[0057] A. Downsample the audio and set the resampling frequency to 1000HZ or 1200HZ;
[0058] B. Use a 10000-order linear zero-phase FIR filter for narrowband filtering, with a center frequency at the ENF standard (50 Hz or 60 Hz), a bandwidth of 0.6 Hz, a passband ripple of 0.5 dB, and a stopband attenuation of 100 dB;
[0059] Step 2: ENF phase feature extraction, the steps are as follows:
[0060] A. Calculate the first-order derivative of the signal, frame windowing, discrete Fourier transform, linear interpolation to estimate the phase, and calculate the phase fluctuation characteristics:
[0061] (A-1) Calculate the ENF signal X ENFC [n] Approximate first-order derivative at point n
[0062] X′ ENFC [n] = f d (X ENFC [n]-X ENFC [n-1]) (1)
[0063] where f d (*) indicates the approximate derivation operation, X ENFC [n] represents the value of the nth point of the ENF component.
[0064] (A-2) to X ENFC [n] and X′ ENFC [n] Frame division and windowing are performed, and the frame length is 10 standard ENF frequency cycles The frame shift is 1 standard ENF frequency cycle Use the Hanning window w(n) to calculate X ENFC [n] and X′ ENFC [n] Windowing
[0065] X N [n] = X ENF [n]w(n) (2)
[0066] X′ N [n] = X′ ENFC [n]w(n) (3)
[0067] Hanning Window L is the window length.
[0068] (A-3) Each frame signal X N [n] and X′ N [n] Perform N-point discrete Fourier transform (DFT) to obtain X(k) and X′(k).
[0069] (A-4) Let k peak is the index of the peak value of |X(k)|. peak Used to solve
[0070] (A-5) Estimated frequency f of ENF signal DFT , the ENF phase characteristic can be obtained
[0071]
[0072] (A-6) Re-estimate DFT 1 Transformed ENF phase Re-order k peak is the index of the peak value of |X′(k)|. And multiply |X′(k)| by a scale factor F(k)
[0073]
[0074] Get DFT 0 [k] = X(k), DFT 1 [k] = F(k)|X′(k|. Therefore, the estimated frequency value is
[0075]
[0076] (A-7)k peak Should be closest The integer (f d is the resampling frequency), so is a reasonable frequency value. Expressed as
[0077]
[0078] in For the value of θ, we can obtain it by linear interpolation of X′(k), floor[a] represents the largest integer less than a, and ceil[b] represents the smallest integer greater than b.
[0079] because Therefore, in (k low ,θ low ) = arg[X′(k low )] and (k high ,θ high ) = arg[X′(k high )] Linear interpolation can approximate the point The obtained value is consistent with the value of θ in the above formula.
[0080]
[0081] (A-8) obtained by the above method has two possible values, so use For reference, select The closest The value of
[0082] Step 3: Obtain ENF phase timing characterization. The steps are as follows:
[0083] A. Calculate ENF phase timing characterization
[0084] (A-1) Obtain the longest duration audio data in the audio data to be detected.
[0085] (A-2) For the longest duration audio, DFT transform to obtain the phase
[0086] (A-3) Set the frame length m and Calculate the number of frames
[0087] (A-4) For all audio data, calculate frame shift overlap = m-floor (length (φ) / n).
[0088] (A-5) Since there is a situation where it cannot be divided evenly, the frame is divided into two parts Frame Shift Ratio The frame is smaller than 1. k = length (φ) - (m-overlap) × n
[0089] (A-6) ENF phase timing is characterized by
[0090] Step 4: Network model, the steps are as follows:
[0091] A. Obtain the state of each time step of the Bi-LSTM network. Use two bidirectional long short-term memory neural network Bi-LSTM modules to train the ENF phase timing representation and output the state of each time step. Each Bi-LSTM module contains a bidirectional LSTM layer, a layerNormalization layer and an activation function leakyrelu.
[0092] B. Fit and classify the state features of each time step output by the Bi-LSTM network. Use two fully connected layers to fully fit the features (the number of neurons is 1024 and 256 respectively, and the activation function is Relu). Add a Dropout layer (Dropout rate = 0.2) between the two fully connected layers to prevent overfitting. Finally, use a fully connected layer (the number of neurons is 2, and the activation function is Softmax) as the output layer.
[0093] C. The probability obtained by the final output layer can be used to determine whether the speech to be tested has been tampered with, and the probability of correctly identifying whether all test speech has been tampered with is calculated, that is, the recognition rate of the system.
[0094] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.
Claims
1. A passive detection method for digital audio tampering based on power grid frequency phase timing characterization, characterized in that: include The audio data to be detected is processed to obtain the power grid frequency (ENF) component. Transform the ENF component to obtain the ENF phase ; Calculate the number of frames and frame length based on the longest audio duration to be detected, and adjust the ENF phase Perform frame processing to obtain phase timing representation; The ENF timing information is obtained from the ENF phase timing representation using a neural network and classified after fitting; Obtaining the ENF phase includes: Step 2.1: Calculate the ENF signal Approximate first-order derivative at point n (1) in represents the approximate derivative operation, Indicates ENF component The value of a point; Step 2.2: and Frame division and windowing are performed, and the frame length is 10 standard ENF frequency cycles , frame shift is 1 standard ENF frequency cycle , using the Hanning window right and Add window (2) (3) Hanning Window , is the window length; Step 2.3, each frame signal and Perform N-point discrete Fourier transform (DFT) to obtain , ; Step 2.4, order for The index of the peak value; Used to solve Step 2.5: Estimated frequency of ENF signal , the ENF phase characteristic can be obtained (4) Step 2.6: Re-estimate Transformed ENF phase , re-order for The index of the peak of Multiply by a scale factor (5) get , ; therefore the estimated frequency value is (6) Step 2.7 Should be closest integer, is the resampling frequency, so is a reasonable frequency value; Expressed as (7) in ;for The value of Perform linear interpolation to obtain , , represents the largest integer less than a, represents the smallest integer greater than b; because , so in and Linear interpolation can approximate the point , the value obtained is the same as The value of remains the same; (8) Step 2.8: Calculated using the above method , has two possible values, so use For reference, select The closest The value of ; The specific method for calculating the ENF phase timing characterization includes: Step 3.1, obtaining the longest duration audio data in the audio data to be detected; Step 3.2: For the longest duration audio, use DFT transformation to obtain the phase ; Step 3.3, set the frame length And according to Calculate the number of frames ; Step 3.4: For all audio data, calculate the frame shift ; Step 3.5: Since there is a situation where the number cannot be divided evenly, divide the frame into two parts , Frame Shift Ratio Frame size 1; Step 3.6, ENF phase timing is characterized as ; The network model part includes: Step 4.1, use two bidirectional long short-term memory neural network Bi-LSTM modules to train the ENF phase timing representation and output the state of each time step; each Bi-LSTM module contains a bidirectional LSTM layer, a layerNormalization layer and an activation function leakyrelu; Step 4.2, fit and classify the state features of each time step output by the Bi-LSTM network; use two fully connected layers to fully fit the features, with the number of neurons being 1024 and 256 respectively, and the activation function being Relu; add a Dropout layer between the two fully connected layers, with Dropout rate = 0.2, to prevent overfitting; finally, use the fully connected layer as the output layer, with the number of neurons being 2 and the activation function being Softmax; Step 4.3: The probability obtained by the final output layer can be used to determine whether the speech to be tested has been tampered with, and the probability of correctly identifying whether all test speech has been tampered with is calculated, that is, the recognition rate of the system.
2. According to claim 1, a digital audio tampering passive detection method based on power grid frequency phase timing characterization is characterized in that: The original speech signal is processed to obtain the electric network frequency (ENF) component, which includes: Downsampling sets the signal resampling frequency to 1000HZ or 1200HZ; A 10000-order linear zero-phase FIR filter is used for narrowband filtering, with a center frequency at the ENF standard, a bandwidth of 0.6 Hz, a passband ripple of 0.5 dB, and a stopband attenuation of 100 dB.
3. A digital audio tampering passive detection device based on power grid frequency phase timing characterization, using the method described in any one of claims 1 to 2, characterized in that: include The first module: Process the audio data to be detected to obtain the power grid frequency (ENF) component, based on Transform the ENF component to obtain the ENF phase , for ENF phase Perform frame processing to obtain phase timing representation; The second module: Use neural network to obtain ENF timing information from ENF phase timing representation and classify it after fitting.
Citation Information
Patent Citations
Digital audio tamper automatic detection method based on feature fusion
CN107274915A
Digital audio tampering passive detection method based on convolutional neural network
CN112151067A
Tampering detection and location identification of digital audio recordings
US20170200457A1
