AAC Double Compression Audio Detection Algorithm Based on the Difference of Scale Factor

Audio dual compression detection is an important part of audio forensics. It is of great significance to judge whether the audio has been falsified and forged. This study found that the advanced audio coding (AAC) audio scale factor gradually decreases with the number of compressions increases. Based on this, we propose an AAC double compression audio detection algorithm based on the statistical characteristics of the scale factor difference before and after audio re-compression. The experimental results show that the algorithm can accurately classify dual compressed AAC audio. The average accuracy of AAC audio classification between low-bit-rate transcoding to high-bit-rate is 99.91%, and the accuracy rate between the same bit rate is 97.98%. In addition, experiments with different durations, different noises, and different encoders also proved the better performance of this algorithm.


Introduction
In the era of mobile Internet [1], the popularization of mobile smart terminals and the continuous advancement of multimedia technology have made great changes in people's daily lives.People can use mobile phones more conveniently to collect photos, audio and share them on the Internet.This multimedia information constantly penetrates into people's lives, making it difficult to distinguish between true and false.In order to detect the authenticity and integrity of multimedia information, multimedia forensics technology has become one of the hot research issues in the field of information security [2].
Digital audio forensics technology is an important part of digital multimedia forensics technology, and audio double compression detection is one of the hot issues in audio forensics technology [3].Currently on the market for multimedia devices, the audio files are saved in a compressed format.The use of audio editing or processing software to tamper with compressed audio content is accompanied by the creation of double compression.Therefore, audio double compression detection as a previous step in the authenticity assessment of digital content is a necessary condition for judging whether the audio has been falsified or forged [4].
In the MP3 audio double compression detection, Yang et al. [5,6] found that the MP3 audio MDCT coefficients have a significant change in the number of coefficients before and after compression, so that the proportion of the 1 value coefficient in all frequency coefficients is used as a distinguishing feature to realize the effective detection of MP3 audio with low bit rate transcoding to high bit rate.In addition, they studied and analyzed the coefficients of double compressed audio Modified Discrete Cosine Transform (MDCT) coefficients and applied Benford's theorem in image steganalysis to apply to double compressed audio detection.Liu et al. [7] proposed a threshold to achieve single-compressed audio and dual-compressed audio classification by further analyzing the distribution of MDCT coefficients.
The differences in the distribution of zero-valued coefficients in MDCT coefficients and the difference between smoothness and consistency of non-zero-valued coefficients were analyzed [8,9], which greatly improved the detection accuracy of low bit rate transcoding to high bit rate audio.However, the same bit rate compressed audio detection accuracy still needs to be further improved.T. Bianchi et al. [10,11] introduced the recompression correction principle in the image into the audio.The audio to be measured is decoded, the quantization parameters are extracted, the obtained PCM sample values are clipped and recompressed and coded using the extracted quantization steps.With the use of primary and secondary compressed audio, after the recompression correction, the MDCT coefficient distribution and the pre-correction distribution show different rules, which can effectively detect double-compressed MP3 audio.Ren et al. [12] used the difference in the distribution of Quantized Modified Discrete Cosine Transform (QMDCT) coefficients between recompressed calibration audio and test audio.They performed MP3 recompression audio detection and estimated the compressed audio source rate.In the aspect of AMR recompression audio detection, D Luo et al. [13,14] used a deep learning algorithm and most voting strategies to design decisions to detect double-compressed AMR audio.In their further work, a dual-compression AMR audio detection framework based on the stacked automatic encoder (SAE) network, and the universal background model-Gaussian Mixture Model (UBM-GMM) is proposed.
In advanced audio coding (AAC) audio double compression detection, Jin et al. [15] combined the probability of occurrence of the Huffman code table index with its Markov one-step transition probability and used LIBSVM to classify single and double compressed AAC audio.Its detection rate of compressed audio at the same code rate is low.Li et al. [16] found that the AAC audio frequency components and energy values differ greatly during the compression process and use the Stacked Automatic Encoder (SAE) to detect double-compressed audio.
Through the research, it is found that in the AAC audio compression process, the audio scale factor decreases with the increase of the compression times.Based on the difference in the statistical characteristics of the scale factor before and after audio re-compression, we propose an AAC dual compression audio detection algorithm based on the difference of the scale factor.This algorithm combines the probability of difference of the scale factor and the mean value of the differences together as a detection feature.The LIBSVM is used to classify the recompressed AAC audio.Experiments were performed under different durations, different noises, and different encoders.The results show that the proposed algorithm has high detection accuracy and can effectively detect AAC dual-compressed audio.

Scale Factor in AAC
AAC is an abbreviation of Advanced Audio Coding [17] and is developed based on perceptual audio coding as a basic model.The coding block diagram is shown in Figure 1, and the coding process is as follows.The input PCM signal is time-frequency converted via a filter bank (filter lossless operation).Combined with the psychoacoustic model, the transformed frequency coefficients are quantized and encoded via MDCT processing.Finally, the encoded bit stream is encapsulated to form the final AAC compressed audio.
The AAC encoding is in frames, each frame contains two particles, for two channels each particle contains two channels, for a mono channel each particle contains one channel.Each channel produces 1024 coefficient values after the MDCT transform.AAC has 4 types of transform blocks in MDCT transform: long window block, short window block, start block and end block [18].The long block is used for a relatively smooth data block in the time domain sample signal, the short block is used for a relatively severe block, and the start block and end block are used as transition block types.It should be noted that in our algorithm, we mainly focus on coding in the case of long window blocks.
After the MDCT transformation, the most important link is the iterative loop.In the iterative loop, some noise or high frequency information that people cannot hear will be filtered out.The purpose of the inner loop is to adjust the quantization step size, so that the number of bits of the quantized data after Huffman encoding can satisfy the number of bits required by the current encoding parameters.The quantization function in the inner loop of the AAC encoding is int( ) is a rounding down function, s f decoder represents a quantization step size, and mdct line , x quant are the spectral coefficients before and after quantization.
Adjusting the quantization step size in audio coding will adjust the scale factor representation range to control the quantization distortion of each scale factor band within the maximum allowable distortion range.The reduction in the scale factor is due in part to the increase in the quantization step size [19].The high-frequency signal components in the audio have lower energy values.To preserve the accuracy of high-frequency signals, we use smaller quantization steps in the encoding process.After the audio undergoes the compression operation again, the high frequency information is relatively quantized to a value of 0 [20].Compared with the first compressed audio, the quantization step length is increased, and the scale factor is reduced.By comparing the quantization steps and scale factors of the primary compression and the secondary compression, we believe that the quantization step can reflect the change of each frame of the audio to a certain extent.The scale factor can be used as the feature of AAC double compression audio detection.
Information 2018, 9, x FOR PEER REVIEW 3 of 16 purpose of the inner loop is to adjust the quantization step size, so that the number of bits of the quantized data after Huffman encoding can satisfy the number of bits required by the current encoding parameters.The quantization function in the inner loop of the AAC encoding is ( ) is a rounding down function,  represents a quantization step size, and  ,  are the spectral coefficients before and after quantization.Adjusting the quantization step size in audio coding will adjust the scale factor representation range to control the quantization distortion of each scale factor band within the maximum allowable distortion range.The reduction in the scale factor is due in part to the increase in the quantization step size [19].The high-frequency signal components in the audio have lower energy values.To preserve the accuracy of high-frequency signals, we use smaller quantization steps in the encoding process.After the audio undergoes the compression operation again, the high frequency information is relatively quantized to a value of 0 [20].Compared with the first compressed audio, the quantization step length is increased, and the scale factor is reduced.By comparing the quantization steps and scale factors of the primary compression and the secondary compression, we believe that the quantization step can reflect the change of each frame of the audio to a certain extent.The scale factor can be used as the feature of AAC double compression audio detection.

Analysis of Changes in the Characteristics of the Scale Factor
In this algorithm, the default AAC compressed audio has the following two types: (1) low-bit-rate transcoding to high-bit-rate AAC audio, which is often referred to as false-quality audio,

Analysis of Changes in the Characteristics of the Scale Factor
In this algorithm, the default AAC compressed audio has the following two types: (1) low-bit-rate transcoding to high-bit-rate AAC audio, which is often referred to as false-quality audio, and the audio quality of poor audio quality (low-rate) is heavy to form false high-quality (high-rate) audio, and (2) same-bit-rate compressed AAC audio, which is usually an audio tamper recompressed to the original audio format with the same bit rate in order to prevent tampering and other operations from being discovered.For AAC audio with high bit rate transcoding to low bit rate, its meaning in the context of forensics has not been raised, this paper will not discuss.It is worth noting that the AAC compressed audio referred to herein refers only to compressed audio that has experienced two or less times.
To analyze the changes in the AAC audio scale factor, we now randomly select 500 segments of 10 s of WAV audios including various styles such as classical, rock, folk, and pop.We compressed the 500 segments of WAV audios to get AAC first compression audio at 60 kbps and 150 kbps, and then processed the compressed AAC audio to obtain 60 → 60 kbps and 60 → 150 kbps secondary compressed audio.The decoding and encoding operation of the secondary compressed audio results in third compressed audio of 60 → 60 → 60 kbps and 60 → 150 → 150 kbps.Now we extract the scale factor of AAC audio for each compression case and count the information.The scale factor for AAC audio is in the range (0, 255).The value distribution is approximately Laplacian, and the result is shown in Figure 2. In this algorithm, in order to reduce the experimental dimension, we only take the distribution range of the main values of the scale factor in the statistical analysis (140, 200).From Figure 2, we can see that the probability of scale factor decreases with the increase of audio compression times.Through the comparison, it is considered that the AAC double compression audio can be detected by increasing the compression times of the audio to be measured and using the statistical characteristics of the change of the scale factor before and after the audio recompression.worth noting that the AAC compressed audio referred to herein refers only to compressed audio that has experienced two or less times.
To analyze the changes in the AAC audio scale factor, we now randomly select 500 segments of 10 s of WAV audios including various styles such as classical, rock, folk, and pop.We compressed the 500 segments of WAV audios to get AAC first compression audio at 60 kbps and 150 kbps, and then processed the compressed AAC audio to obtain 60 → 60 kbps and 60 → 150 kbps secondary compressed audio.The decoding and encoding operation of the secondary compressed audio results in third compressed audio of 60 → 60 → 60 kbps and 60 → 150 → 150 kbps.Now we extract the scale factor of AAC audio for each compression case and count the information.The scale factor for AAC audio is in the range (0, 255).The value distribution is approximately Laplacian, and the result is shown in Figure 2. In this algorithm, in order to reduce the experimental dimension, we only take the distribution range of the main values of the scale factor in the statistical analysis (140, 200).From Figure 2, we can see that the probability of scale factor decreases with the increase of audio compression times.Through the comparison, it is considered that the AAC double compression audio can be detected by increasing the compression times of the audio to be measured and using the statistical characteristics of the change of the scale factor before and after the audio recompression.

Feature Construction and Extraction
As can be seen from Figure 2, with the increase of compression times, the AAC audio scale factor will be relatively reduced.With this property, the difference between the audio recompressed audio and the original audio scale factor is used as a feature for detecting AAC audio double

Feature Construction and Extraction
As can be seen from Figure 2, with the increase of compression times, the AAC audio scale factor will be relatively reduced.With this property, the difference between the audio recompressed audio and the original audio scale factor is used as a feature for detecting AAC audio double compression.Figure 3 is a feature extraction flow chart.For the AAC audio to be measured, two operations are performed on it.First, we directly extract the scale factor.Second, the AAC audio to be measured is decompressed, recompressed once with the same compression code rate to obtain the recompressed AAC audio, and the scale factor is re-extracted.The statistical information of the two scale factors is analyzed, and the difference characteristics are used as the final detection features.The AAC audio to be measured and recompressed is denoted as M1, M2, and the extracted scale factor matrix is denoted as SF1, SF2.The definition is as follows: n represents the number of scale factor bands.If it is a mono m = 2I, if it is a dual-channel m = 4I, I represents the total number of audio long window frames to be measured.two scale factors is analyzed, and the difference characteristics are used as the final detection features.The AAC audio to be measured and recompressed is denoted as 1, 2, and the extracted scale factor matrix is denoted as S1, S2.The definition is as follows: represents the number of scale factor bands.If it is a mono  = 2, if it is a dual-channel  = 4,  represents the total number of audio long window frames to be measured.

Probability Difference Characteristics
The scale factor decreases as the number of audio compression increases, and its appearance probability will change accordingly as the number of compressions increases.Set the scale factor serial number to .According to the above analysis, the value is mainly concentrated in (140, 200), and it is approximately a Laplacian distribution.Let us denote the probabilities of the scale factors of 1, 2 as  , (),  (), respectively, represent the ratio of the number of the scaling factor  in 1, 2 to the total number of scale factors.Then, the probability difference between the scale factor of the test audio and the re-compressed audio is extracted, denoted as ∆().
For convenience of description, the scale factor probability difference characteristic is denoted as .Randomly choose 300 segments of 10 s WAV audios, which include a variety of styles such as classical, rock, folk, popular, and so on.The first compressed AAC audio of 120 kbps is compressed for the 300 segments of audios, and the compressed audio is decompressed and recompressed to obtain 120 → 135 kbps secondary compressed audio.For the first and second compressed audio, we compress it again at the same code rate.Calculate the scale factor of AAC audio in each case and calculate the difference between the probability of occurrence of the scale factor of the first compressed audio and its recompressed audio ∆ () and the difference of the probability of occurrence of the scale factor of the second compressed audio and its recompressed

Probability Difference Characteristics
The scale factor decreases as the number of audio compression increases, and its appearance probability will change accordingly as the number of compressions increases.Set the scale factor serial number to k.According to the above analysis, the value is mainly concentrated in (140, 200), and it is approximately a Laplacian distribution.Let us denote the probabilities of the scale factors of M1, M2 as P SF1 , P SF1 (k), P SF2 (k), respectively, represent the ratio of the number of the scaling factor k in SF1, SF2 to the total number of scale factors.Then, the probability difference between the scale factor of the test audio and the re-compressed audio is extracted, denoted as ∆p(k).
For convenience of description, the scale factor probability difference characteristic is denoted as SFPD.Randomly choose 300 segments of 10 s WAV audios, which include a variety of styles such as classical, rock, folk, popular, and so on.The first compressed AAC audio of 120 kbps is compressed for Information 2018, 9, 161 6 of 16 the 300 segments of audios, and the compressed audio is decompressed and recompressed to obtain 120 → 135 kbps secondary compressed audio.For the first and second compressed audio, we compress it again at the same code rate.Calculate the scale factor of AAC audio in each case and calculate the difference between the probability of occurrence of the scale factor of the first compressed audio and its recompressed audio ∆p 1 (k) and the difference of the probability of occurrence of the scale factor of the second compressed audio and its recompressed audio ∆p 2 (k).The Figure 4 is a scatter plot of the probability of occurrence of the scale factor difference ∆p 1 (k), ∆p 2 (k).In the figure, "o" and "+" respectively represent ∆p 1 (k), ∆p 2 (k).It can be seen that if the "o" distribution is more discrete, the value is larger, and if the "+" distribution is more concentrated, the value is smaller.The distribution distinction is more obvious, and we think it can be used for AAC double compression audio detection.

Characteristics of Average Difference
The variation law of the scale factor of the corresponding position after AAC audio first compression and second compression is not obvious.In order to highlight the differences, we extract the mean difference between the current AAC sample and the recompressed audio sample scale factor after decompression in the corresponding frame, which is denoted as ∆.
For ease of description, the characteristic of the average value of the scale factor is denoted as .Now we randomly choose 400 segments of audios, including 200 segments of once-compressed audios, re-compressed audio, and 200 segments of secondary-compressed audios, re-compressed audio.The secondary compressed audio includes 100 segments of same-bit-rate compressed audios and 100 segments of low-bit-rate transcoding to high-bit-rate audios.The mean value of the difference between the primary and secondary compressed and recompressed audio scale factors is denoted as ∆1, ∆2.The Figure 5 shows a scatter plot of 400 segments of audios averages.As can be seen, ∆1, ∆2 are more distinctive.In particular, the difference is very prominent.For the last 200 segments of AAC audios, the difference between encoding and decoding between the same-bit-rate audio compression is relatively small, the difference performance in Figure 5 is poor, but it can still be distinguished.Through analysis, it is considered that the average value of the scale factor difference can reflect the influence of the recompression scale factor globally, which can be used as an effective measure of AAC double compression audio.

Characteristics of Average Difference
The variation law of the scale factor of the corresponding position after AAC audio first compression and second compression is not obvious.In order to highlight the differences, we extract the mean difference between the current AAC sample and the recompressed audio sample scale factor after decompression in the corresponding frame, which is denoted as ∆SF.
For ease of description, the characteristic of the average value of the scale factor is denoted as SFD.Now we randomly choose 400 segments of audios, including 200 segments of once-compressed audios, re-compressed audio, and 200 segments of secondary-compressed audios, re-compressed audio.The secondary compressed audio includes 100 segments of same-bit-rate compressed audios and 100 segments of low-bit-rate transcoding to high-bit-rate audios.The mean value of the difference between the primary and secondary compressed and recompressed audio scale factors is denoted as ∆SF1, ∆SF2.The Figure 5 shows a scatter plot of 400 segments of audios averages.As can be seen, ∆SF1, ∆SF2 are more distinctive.In particular, the difference is very prominent.For the last 200 segments of AAC audios, the difference between encoding and decoding between the same-bit-rate audio compression is relatively small, the difference performance in Figure 5 is poor, but it can still be distinguished.Through analysis, it is considered that the average value of the scale factor difference can reflect the influence of the recompression scale factor globally, which can be used as an effective measure of AAC double compression audio.
difference between the primary and secondary compressed and recompressed audio scale factors is denoted as ∆1, ∆2.The Figure 5 shows a scatter plot of 400 segments of audios averages.As can be seen, ∆1, ∆2 are more distinctive.In particular, the difference is very prominent.For the last 200 segments of AAC audios, the difference between encoding and decoding between the same-bit-rate audio compression is relatively small, the difference performance in Figure 5 is poor, but it can still be distinguished.Through analysis, it is considered that the average value of the scale factor difference can reflect the influence of the recompression scale factor globally, which can be used as an effective measure of AAC double compression audio.

Experiment Settings
We randomly selected 2000 segments of 10-s WAV audios as the original audio sample of this database.This 2000 segments of WAV audio contains various styles, such as blues, pop, classical, country, folk and so on.In this experiment, the AAC codec encodes and decodes audio using the most widely used open source software, FAAC-1.28 and FAAD2-2.7.The first compressed AAC audio is obtained by compressing 2000 segments of WAV audio of the above database using FAAC-1.28.A total of 2000 segments of (60, 75, 90, 120, 135, 150) kbps were obtained each.Secondary compressed audio is audio that is compressed once by FAAD2-2.7 and then encoded by FAAC-1.28.We have a total of 28 types of secondary compressed audios.For the above first and second compressed audio, the compression operation is performed again at the same-code-rate to obtain a re-compressed audio sample library.This algorithm selects LIBSVM as a classifier and randomly selects 70% of the above samples for the training model and the remaining 30% as a test model.In order to make the test result more accurate, the detection accuracy in the paper is the average of the results after 10 repetitions of the experiment.

Feature Set SFPD Feature Detection Results
Table 1 shows the result of the detection of AAC audio by the SFPD.In the table, BR1 and BR2 indicate the audio compression code rate set in the first and second compression, and the values in the table represent the specific detection accuracy.Taking the 98.33% value of the seventh row and the eighth column of the table as an example, this value indicates that the method has achieved a combined detection rate of 98.33% for double-compressed AAC audio that uses 120 kbps and 150 kbps code rate compression (FAAC/FAAD2).
In Table 1, FAAC is an MPEG-4 and MPEG-2 AAC encoder.We can see that the average detection accuracy of low-bit-rate transcoding to high-bit -rate audio is 98.46%, and the same bit rate compressed audio detection is 92.67%.The SFPD achieves better detection results at low-code-rate transcoding to high-code-rate.However, for the same bit rate of compressed audio, the detection rate is relatively low by about 5.79 percentage points, which is due to the relatively small change in the scale factor when the same-bit-rate audio is compressed.When the audio is compressed at the same code rate, the accuracy rate of (60, 75, 90) kbps is relatively higher than that when the code rate is (105, 120, 135, 150) kbps.The compressed code rate is high, the loss during compression will be relatively large.We use the difference in the probability of the scale factor after the audio recompression.It will reduce the difference between the primary and secondary compression characteristics.

Feature Set SFD Feature Detection Results
Table 2 shows the detection result of the SFD for AAC audio.The average detection accuracy of the low-bit-rate transcoding to high-bit-rate AAC audio is 99.3%, and the average accuracy rate between the same bit rate is 95.32%.From the table, we can see that the SFD achieves better detection results at low-bit-rates transcoding to high-bit-rates, and all exceed 98%.Similar to the SFPD, the detection rate is relatively low about 3.98 percentage points for compressed audio at the same code rate.From the comparison between Tables 1 and 2, it can be seen that the SFPD detection accuracy rate is lower than the SFD.It is considered that the AAC audio scale factor gradually decreases with the increase of the number of compressions, and its appearance probability also decreases relatively.It is more intuitive to use the difference of appearance probability of the scale factor to detect without directly using the scale factor difference.

Detection Results of Fusion Feature Sets
Insufficient detection of the same code rate double compression audio for feature set SFD in the previous section.In combination with the construction method of feature set SFPD in Section 4.2, this section improves the classification performance of the method at the same code rate by adding SFPD statistical features to the SFD.Now we use the different weight ratios of SFPD and SFD, update the fusion weights of different features iteratively, and finally use the fusion weights to classify the output of different feature sets.The iterative process is as follows.
(1) Different feature sets initialize the fusion weight coefficient M is the number of different feature sets, here M = 2, W i = 0.5 during initialization.That is, at the initial iteration, the SFPD and SFD are assigned a weight coefficient of 0.5. (

2) Iteratively updates W i
Assume that the actual tag of AAC audio is Lable(X), X = 0, 1.Where X = 1 means that the sample is a positive sample that is a single compressed AAC audio, and X = 0 represents that the sample is a negative sample that is double compressed AAC audio.And the classification tag of its feature fusion is identity(X).If Lable(X) = identity(X), the classification tag of feature fusion is compared with the classification tag of each feature.For sub-features that are judged to be incorrect (that is, the classification tag of feature fusion is inconsistent with the classification tag of sub-feature-SFPD or SFD), the weight coefficient is subtracted from ε, and the correct sub-feature is judged (that is, the classification tag of the feature fusion is consistent with the classification tag of the sub-feature-SFPD or SFD), with the weight coefficient plus ε. ε represents the error constant ERR indicates the integrated error rate of two sub-features when the classification is detected, and N represents the total number of samples.Get updated weight coefficient For the SFPD and SFD initial weight coefficients W 1 , W 2 are 0.5, 0.5.For example, one AAC audio sample, the actual tag is Lable(X), and the tagged note of its fusion feature set is identity(X).If Lable(X) = identity(X), we compare the fusion feature set classification results with the SFPD and SFD feature set classification results.Assume that for a certain AAC audio sample, the classification label of the fusion feature set is 1 and the classification label of the sub-feature set SFPD is 0, and the weight coefficient W 1 is updated.W 1 = W 1 − ε.In this case, in order to maintain the weight coefficient and always be 1, the weight coefficient W 2 of the SFD is also updated accordingly, If Lable(X) = identity(X), discard the sample, perform the above operation on the next sample, and repeat the above steps until all samples have been traversed.The resulting fusion feature set is recorded as Feature f usion Feature f usion Table 3 shows the detection accuracy of the fusion feature, W 1 = 0.463, W 2 = 0.537.The average detection accuracy of low-rate transcoding to high-rate AAC audio is 99.91%, and the average accuracy of same-rate compression detection is 97.98%.Table 3 compares Table 1 with Table 2 and finds that for the detection rate of AAC recompressed audio, the Feature f usion further improves it.Compared with the SFPD and SFD, the detection accuracy of AAC audio with low bit rate transcoding to high bit rate increased by 1.45 and 0.61 percentage points, respectively.Compared with the SFPD and SFD, the detection accuracy of compression between the same-rate AAC audio increased by 5.31, 2.66 percentage points, respectively.The experimental results show that Feature f usion integrates SFPD and SFD together well, which makes up for some deficiencies of the sub-feature set in AAC double compression audio detection.
In this paper, the first compressed AAC audio is a positive sample and the second compressed AAC audio is a negative sample.True Positives (TP) indicates that the positive class is positive, True Negatives (TN) indicates that the negative class is negative, False Positives (FP) indicates that the negative class is positive, and False negatives (FN) indicates that the positive class is negative class.
The data in Table 3 is the accuracy of the test, that is, the ratio of the number of samples correctly classified by the classifier to the total number of samples for a given test data set.

ACC =
TP + TN TP + FN + FP + TN (12) The precision (P), which is for the prediction result, indicates that the prediction result is the number of positive samples that have positive samples.There are two possibilities for the prediction.One is to predict the positive class as a positive class (TP) and the other is to predict the negative class as a positive class (FP).
The recall (R) indicates the proportion of positive samples in the sample that are predicted correctly.There are two possibilities.One is to predict the positive class as a positive class (TP), and the other is to predict the original positive class as a negative class (FN).
The Fα value is an evaluation index that combines the precision rate and the recall rate and is used to comprehensively reflect the overall indicators.When α = 1, it is the most common F1 value.
Table 4 shows the F1 values detected under the scale factor fusion feature set.

Comparison Test
In order to fully evaluate the performance of the algorithm proposed in this paper, this section reconstructs the features of Jin et al. [15] and conducts comparative experiments.The specific method of Jin feature construction is to use the Huffman code table to use the difference in single compression and double compression of AAC audio and take the probability of occurrence of the Huffman code table index as the first feature.The Markov one-step transition probability is taken as the second feature.The first feature is merged with the second feature and reduced in dimension to obtain the third feature.The LIBSVM is used to classify the single and double compressed AAC audio.Its low bit rate transcoding to high bit rate audio detection rate of 99.72%, the same bit rate audio compression detection rate of 77.38%.Table 5 compares the result of the Jin method with the algorithm of this paper, where "+" indicates that the algorithm detection rate of the algorithm is higher than that of the Jin method detection rate, and "−" indicates that the detection rate of the algorithm is lower than the detection rate of the Jin method.It can be seen from Table 5 that the detection rate of the AAC audio Jin feature with low bit rate transcoding to high bit rate is high, which is not much different from that of the scale factor difference and occurrence probability difference in the algorithm of this paper.However, the detection effect between the same code rate in the literature [15] is poor.The algorithm in this paper solves similar problems and increases the detection rate of the same-rate compressed audio by nearly 20 percentage points.For a better comparison with this algorithm, Table 6 shows the comparison of F1 values between this algorithm and literature [15].The AAC and MP3 codec are highly similar in principle.This section also reconstructs the features of the Yang et al. [6] method.It is worth noting that the Yang method is a typical method for detecting MP3 double compression.Its characteristic structure is as follows: the MDCT coefficients of 576 bands of MP3 audio are divided into 32 sub-bands on an average, and each sub-band contains 18 frequency line coefficients.The distribution of the first significant digits of each frequency band coefficient in the first 5, 10, 15 and 20 frequency bands is calculated (1~9).According to the Yang construction characteristics of the idea and the differences between MP3 and AAC, in this section, when reconstructing the Yang method, the first 10 frequency band coefficients are selected, and the first significant digits are counted.As a result, a 90-dimensional feature was constructed for each AAC sample.Table 7 shows the accuracy of the modified Yang method for detecting AAC double-compressed audio.
The results in Table 7 show that the detection of AAC double compressed audio has a better detection result in the detection of low-bit-rate transcoding to high-bit-rate recompressed audio.The detection rate at the same-bit-rate compressed audio and 60 → 90 kbps, 60 → 75 kbps is lower.This algorithm solves the problem of poor detection rate, and the detection rate is significantly improved.Table 8 shows the comparison of the F1 value of this algorithm compared with the literature [6].In the above experiments, the samples used were all 10 s AAC audio.To verify the performance of the algorithm in this paper, this section discusses the performance of the Feature f usion at different times.AAC audio samples of different durations were obtained from 2000 segments of 10 s WAV audio in the above sample library.We cut out the WAV audio clips of 0.5 s, 1 s, 2 s, 3 s, 4 s, 5 s, 6 s, 7 s, 8 s, and 9 s and reproduced AAC audio sample libraries and re-compressed audio sample libraries of different durations.According to the above experimental process, the features of this paper were extracted, and the Feature f usion was obtained.
Table 9 shows the classification accuracy of the AAC audio double compression with the AAC audio at different durations.The same bit rate compression refers to the recognition rate when the bit rates of single and double compression are the same, and the low bit rate transcoding to high bit rate refers to the recognition rate when the second compression rate is higher than the first compression rate.As the audio duration increases, the detection accuracy of this algorithm also increases, indicating that the algorithm is still valid for AAC audio detection of different durations.In the 4.1 sample setup above, we randomly selected 2000 segments of WAV audio for 10 s.The WAV audio was clean audio.To further verify the robustness of this algorithm, this section discusses the performance of this algorithm in the case of noise addition.We added Gaussian white noise with different signal-to-noise ratios to 2000 original clean audio.We added noise with SNR of 0 dB, 10 dB, 15 dB, 20 dB, and 25 dB to recreate the sample library and re-compressed audio sample library.According to the above experimental process, the features of this paper were extracted, and the Feature f usion was obtained.Table 10 shows the classification accuracy of AAC audio double compression with the fusion feature of AAC audio at different SNRs.At different signal to noise ratios, the detection accuracy of AAC audio double compression is still high, and when the signal to noise ratio is low, the accuracy rate is higher, indicating that the noise has little impact on the performance of the algorithm to a certain extent.This algorithm has better anti-noise performance.Although the same standard is followed for different encoders, there may be some differences in the specific implementation.To verify that the features selected in this paper are still valid for other encoders, this section selects another popular AAC codec, NeroAACCodec-1.5.1.According to Section 4.1 on the construction of the audio database, NeroAAC's single-compressed audio is obtained by using neroAacEnc (encoder for NeroAACCodec-1.5.1) to compress 2000 segments of 10 s WAV audio, and then the compressed audio is decompressed by neroAacDec (decoder for NeroAACCodec-1.5.1) and then compressed by neroAacEnc into the corresponding dual-compressed audio.The recompressed audio of once and twice compressed audio is consistent with the above construction method.In the final training and testing, the used classifiers and classifier settings are the same as in Section 4.1.
Table 11 shows the detection accuracy of NeroAAC double compressed audio using the Feature f usion .From the table, we can see that for the AAC audio of different encoders, the Feature f usion still has a good detection accuracy.The double compressed audio performance of the feature set at low bit rate transcoding to high bit rate is still better than that at the same bit rate compressed audio.From the comparison of Tables 3 and 12, it is found that the Feature f usion is more accurate in detection of FAAC double compressed audio than in NeroAAC.The analysis found that the change in the scale factor of the NeroAAC audio before and after the first and second compression is smaller than that of the FAAC audio Therefore, the detection rate of the NeroAAC audio is slightly lower when the scale factor feature is used for detection.To further test the validity of the features presented in this algorithm, crossover experiments between different encoders were also performed in this section.That is, the following two cases are (1) compress the 2000 segments of 10 s WAV audios using FAAC-1.28 to obtain the once compressed audio, use FAAD2-2.7 to decompress it and then use neroAacEnc to compress the corresponding secondary compressed audios and (2) use neroAacEnc to compress 2000 segments of WAV audios to get compressed audios once.Use neroAacDec to decompress and then use FAAC-1.28 to compress the corresponding second compressed audio.
Tables 12 and 13 are the results of crossover experiments in the above two cases.Although the results of the crossover experiments between different encoders are significantly lower than the experimental results of a single encoder, it still has a certain detection effect.For FAAC-NeroAAC crossover experiments, the average recognition accuracy rate of low bit rate transcoding to high bit rate is 91.40%.The average recognition rate of the same-rate audio compression is 81.21%.For NeroAAC-FAAC crossover experiments, the average recognition accuracy of low bit rate transcoding to high bit rate is 88.94%.The average recognition rate of the same-rate audio compression is 76.74%.The Feature f usion performs relatively well on low bit rate transcoding to high bit rate audio, but it has a large difference in the detection of some AAC double compressed audio.As shown in Table 12, the detection rate of double compressed audio for 60 → 135 kbps is 96%, while the detection rate for double compressed audio at 75 → 90 kbps is only 83.35%, which is nearly 12.65 percentage points lower.The same is true for Table 13, where the detection rate for double compressed audio at 60 → 150 kbps is 94.56%, while the detection rate for double compressed audio at 75 → 90 kbps is only 79.59%, which is nearly 14.97 percentage points lower.From Tables 3 and 11, Tables 12 and 13, we find that there is a large difference in the detection rate of the Feature f usion for the AAC double compressed audio of different codecs.Among them, the double-compression audio detection for the FAAC/FAAD2 processing by the codec has higher accuracy.Although the crossover results are lower than those of a single codec, the experimental results indicate that double compressed AAC audio can still be detected.

Conclusions
In this paper, an AAC double compression audio detection algorithm based on statistical characteristics of scale factor difference is proposed for recompressed AAC audio.By studying the change of the scale factor in the compression process, the double compression AAC audio is classified using the difference feature of the scale factor before and after the audio recompression.Experimental results show that the feature of this paper has better detection performance.The accuracy of AAC audio detection between low code rate transcoding to high code rate is 99.91%, and the detection accuracy rate between audio code compression rate of the same code rate is 97.98%.Experiments with different durations, different noises, and different encoders have proved that the proposed algorithm has strong robustness.

Information 2018, 9 ,
x FOR PEER REVIEW 4 of 16

Figure 4 .
Figure 4. Distribution of probability difference of audio and recompression audio scale factor.

Figure 4 .
Figure 4. Distribution of probability difference of audio and recompression audio scale factor.

Figure 5 .Figure 5 .
Figure 5. Randomly select the mean of the difference between 400 AAC audio.