An audio quality automatic scoring method and system combining MFCC and time domain statistical features
By resampling and time-aligning the audio signal and segmenting it by second, MFCC and temporal statistical features are extracted to form a 170-dimensional second-level feature vector, which is then input into the SVM model for scoring. This solves the problems of time resolution and computing power threshold in existing technologies, and achieves efficient and accurate audio quality detection.
Patent Information
- Application Number
- CN202511516445.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-23
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2045-10-23
AI Technical Summary
Existing audio quality assessment technologies have shortcomings in terms of temporal resolution, anomaly localization, computational power threshold, and small sample availability, making it difficult to achieve lightweight deployment and efficient, accurate audio quality detection on industrial control computers.
After resampling and time-aligning the audio signal, it is segmented by second, and each segment is further subdivided into 10 100-millisecond sub-segments. MFCC and time-domain statistical features are extracted to form a 170-dimensional second-level feature vector, which is then input into a support vector machine (SVM) model for scoring, thereby achieving automated quality assessment with high temporal resolution.
It achieves high temporal resolution audio quality assessment and anomaly localization under light computing power conditions, can accurately locate transient anomalies with millisecond-level processing latency, meets the real-time detection needs of production lines, and can be stably deployed on ordinary industrial control computers.
Smart Images

Figure CN120998235B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of audio signal processing and automatic detection, and particularly relates to an audio quality automatic scoring method and system combining MFCC and time domain statistical features. BACKGROUND
[0002] With the rapid iteration of intelligent audio terminals (mobile phones, earphones, sound boxes, wearable devices, etc.), audio quality detection in the production and manufacturing process has become a key process that determines product consistency and user perception. Current common methods include: first, manual listening detection, which is performed by trained quality inspectors to identify defects such as distortion, noise, and popping sounds based on experience, but has the problems of low efficiency, strong subjectivity, and auditory fatigue; second, subjective evaluation (MOS), which is based on ITU-T P.800 series to organize multiple listeners to score, and the average value is taken as the quality index, which is difficult to automate and has insufficient time resolution; third, objective evaluation (PESQ, ITU-T P.862), which gives a single score based on the perceptual difference between the reference and the measured audio, and has the problems of complex algorithm, insufficient sensitivity to short-time transient anomalies, and limited adaptability to music and composite sound fields; and fourth, end-to-end scoring based on deep learning (such as CNN / RNN), which has potential accuracy advantages, but relies on large-scale labeled data and high computing power, and is difficult to deploy stably in production line industrial control machine environments.
[0003] However, for large-scale production, enterprises have higher requirements for detection: to achieve high time resolution scoring with millisecond-level processing delay, accurately locate abnormal time and type, ensure consistency across batches, and maintain usability and maintainability on small sample conditions and general industrial control platforms. Overall, existing technical solutions are difficult to balance automation, high timeliness, lightweight, and small sample robustness.
[0004] CN201911250828.1 discloses an audio quality evaluation method, which inputs the transmission audio into a quality evaluation model and determines the overall quality level in combination with a confidence threshold, has certain robustness and scalability, but mainly outputs the overall level, has a coarse time granularity, is difficult to locate transient defects such as popping and clipping second by second, and the deep model is not friendly to the production line environment in terms of sample size and computing power dependence.
[0005] CN201710498188.0 discloses a no-reference speech quality objective evaluation method based on deep learning speech enhancement, which uses a deep belief network to perform speech enhancement first, and then uses a BP network to regress the objective score based on the difference in MFCC before and after enhancement, has better correlation with subjective scores in no-reference conditions and speech scenarios, but its training and reasoning have high requirements for data and computing power, and it does not optimize the alignment of reference and measured pairs, hierarchical segmentation aggregation, and second-level discrete scoring, nor does it solve the explainable positioning of short-time anomalies in music and composite sound source scenarios.
[0006] In summary, the prior art still has obvious deficiencies in time resolution, abnormal positioning, computing power threshold and small sample availability, and there is still a gap from the comprehensive requirements of fast, accurate, stable and applicable production line. Therefore, the existing audio quality evaluation technology still has the problems of coarse time granularity, easy to miss transient abnormalities, strong dependence on computing power and samples, and difficult to be lightweight deployed on industrial computers. SUMMARY
[0007] This section is intended to summarize some aspects of the embodiments of the present application and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the abstract and title of the specification to avoid obscuring the purpose of this section, abstract and title, and such simplifications or omissions cannot be used to limit the scope of the present application.
[0008] In view of the above-mentioned existing problems, the present application is proposed.
[0009] To solve the above technical problems, the present application provides the following technical solutions: receiving a reference audio signal and a to-be-tested audio signal, resampling the two audio signals to 16000Hz, and performing time alignment;
[0010] The time-aligned audio is segmented by seconds, and each segment is divided into 10 sub-segments;
[0011] Features are extracted for each 100-millisecond sub-segment to obtain a sub-segment feature vector;
[0012] For the 10 sub-segment feature vectors of each 1-second audio segment, the mean and maximum of each dimension are calculated to obtain 85-dimensional mean features and 85-dimensional maximum features, respectively, and the 170-dimensional second-level feature vectors are spliced;
[0013] The second-level feature vectors of the corresponding time segments of the reference audio and the to-be-tested audio are spliced to form a 340-dimensional joint feature vector;
[0014] The joint feature vector is input into a pre-trained support vector machine (SVM) model, and an integer score in the range of 0-5 is output to represent the distortion degree of the second audio.
[0015] As a preferred scheme of the audio quality automatic scoring method combining MFCC and time domain statistical features according to the present application, the feature extraction for each 100-millisecond sub-segment comprises:
[0016] 40-dimensional Mel frequency cepstral coefficients (MFCCs) are extracted, and their mean and standard deviation are calculated to obtain 80-dimensional frequency domain features;
[0017] Root mean square (RMS) energy, zero-crossing rate (ZCR), maximum amplitude, skewness and kurtosis are calculated as five time domain statistical features.
[0018] The frequency domain features and the time domain statistical features are spliced to form a 85-dimensional sub-section feature vector.
[0019] As a preferred scheme of the audio quality automatic scoring method combining MFCC and time domain statistical features, the specific process of the Mel frequency cepstrum coefficient (MFCC) feature extraction comprises the following steps:
[0020] Pre-emphasizing the audio signal;
[0021] Frame division is performed by using a Hamming window, the frame length is 25 milliseconds, and the frame shift is 10 milliseconds;
[0022] Fast Fourier transform is performed on each frame;
[0023] Mel frequency spectrum is calculated by using 40 triangular Mel filters;
[0024] After logarithmic transformation, discrete cosine transformation is performed to obtain 40-dimensional MFCC coefficients.
[0025] As a preferred scheme of the audio quality automatic scoring method combining MFCC and time domain statistical features, when the time domain statistical features are calculated, the RMS, ZCR, maximum amplitude, kurtosis and skewness are respectively multiplied by coefficients 5, 3, 3, 3 and 3 for feature enhancement.
[0026] As a preferred scheme of the audio quality automatic scoring method combining MFCC and time domain statistical features, the SVM model adopts a radial basis function (RBF) kernel, and the kernel function form is as follows:
[0027] K(x,y)=exp(-γ||x-y|| 2 )
[0028] wherein γ>0 is a kernel function parameter, used for controlling the decay rate of the similarity with the distance, the greater γ is, the narrower the kernel distribution is, the model is more sensitive to local differences, the decision boundary is more complex, and the risk of overfitting is increased, the smaller γ is, the wider the kernel distribution is, the similarity decays more slowly, and the decision boundary is smoother; in the model training stage, a soft interval SVM is adopted, the penalty coefficient is taken as C=10, and C is a regularization parameter; K(x,y) is the output of the kernel function, representing the similarity of samples x and y in the implicit high-dimensional feature space; exp(⋅) is an exponential function with the natural constant e as the base, used for mapping the distance metric into the similarity in the interval (0,1]; x and y are two sample vectors to be compared; ||x-y|| 2 is the squared Euclidean distance between the samples.
[0029] As a preferred scheme of the audio quality automatic scoring method combining MFCC and time domain statistical features, the SVM model needs to be trained, and specifically includes:
[0030] Collecting reference audio, audio to be tested, and corresponding artificial annotation scores;
[0031] Performing a joint feature vector generation process on the training data to obtain an initial joint feature vector;
[0032] Standardizing the initial joint feature vector using StandardScaler;
[0033] Training an SVM classification model using the standardized initial joint feature vector and the annotation scores;
[0034] Saving the trained model parameters and the standardized parameters.
[0035] As a preferred scheme of the audio quality automatic scoring method combining MFCC and time domain statistical features, the score grade is defined as:
[0036] 0 points, no difference, the reference audio is almost the same as the audio to be tested;
[0037] 1 point, slight difference, there is a short current sound or weak noise;
[0038] 2 points, slight distortion, but acceptable;
[0039] 3 points, obvious distortion, still acceptable;
[0040] 4 points, serious distortion, the music is obviously distorted or the speech cannot be understood;
[0041] 5 points, very poor, the signal is completely lost or the sound quality is very poor.
[0042] As a preferred scheme of the audio quality automatic scoring system combining MFCC and time domain statistical features, it includes:
[0043] An audio input module for receiving reference audio and audio to be tested;
[0044] A preprocessing module for audio resampling and time alignment;
[0045] A segmentation module for segmenting audio by seconds and subdividing into subsegments;
[0046] A feature extraction module for extracting MFCC features and time domain statistical features;
[0047] A feature aggregation module for calculating the mean and maximum values of subsegment features;
[0048] The model inference module is used to load the SVM model and output a score.
[0049] The results output module is used to generate second-by-second scoring sequences and anomaly location information.
[0050] As a preferred embodiment of the automatic audio quality scoring system combining MFCC and time-domain statistical features described in this invention, the system further includes one or more processors;
[0051] The memory stores operable instructions that, when executed by the one or more processors, cause the one or more processors to perform operations, including the flow of an automatic audio quality scoring method combining MFCC and time-domain statistical features as described above.
[0052] As a preferred embodiment of the computer-readable medium for storing software according to the present invention, the software includes instructions executable by one or more computers, the instructions causing the one or more computers to perform operations, the operations including the flow of an automatic audio quality scoring method combining MFCC and time-domain statistical features as described above.
[0053] The beneficial effects of this invention are as follows: Based on the resampling and time alignment of the reference and test signals, our invention segments the signal by second and further extracts cepstrum and temporal statistical features in 100 ms segments. By performing hierarchical aggregation of the segment features using the mean and maximum values, a 170-dimensional second-level feature is formed, which is then concatenated with the corresponding reference segment to form a 340-dimensional joint feature. This feature is then input into a pre-trained support vector machine model to output a discrete score of 0 to 5 per second, thereby achieving automated quality assessment and anomaly localization with high temporal resolution under conditions of light computing power and small sample size. Attached Figure Description
[0054] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:
[0055] Figure 1 This is a flowchart illustrating the automatic audio quality scoring method combining MFCC and temporal statistical features as shown in this invention.
[0056] Figure 2a This is a schematic diagram of the test results for production line sample a shown in this invention;
[0057] Figure 2b This is a schematic diagram of the test results for production line sample b as shown in this invention;
[0058] Figure 2c This is a schematic diagram of the test results for production line sample c as shown in this invention;
[0059] Figure 2d This is a schematic diagram of the test results for production line sample d as shown in this invention;
[0060] Figure 3 This is a schematic diagram illustrating the module functions of the automatic audio quality scoring system combining MFCC and time-domain statistical features as shown in this invention.
[0061] Figure 4 This is a schematic diagram of the module structure distribution of the automatic audio quality scoring system that combines MFCC and time-domain statistical features as shown in this invention. Detailed Implementation
[0062] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0063] Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without inventive effort should fall within the scope of protection of this invention.
[0064] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0065] According to an embodiment of the present invention, in combination Figure 1 The flowchart shown illustrates an automatic audio quality scoring method that combines MFCC and temporal statistical features, specifically including the following steps:
[0066] S1. Receive the reference audio signal and the audio signal to be tested, resample the two audio signals to 16000Hz, and perform time alignment;
[0067] S2. Divide the time-aligned audio into segments by second, and divide each segment into 10 sub-segments to obtain the original signal sub-segment sampling data: ;
[0068] S3. For each 100-millisecond segment, calculate the 40-dimensional MFCC mean and 40-dimensional standard deviation, and calculate five time-domain statistics: RMS, zero-crossing rate (ZCR), maximum amplitude, skewness, and kurtosis. These statistics form the 85-dimensional feature vector of the m-th segment in the t-th second. :
[0069]
[0070] Where t represents the t-th second, and m represents the m-th 100ms segment within that second. The mean of MFCC in each dimension The standard deviation of MFCC in each dimension, with 5 time-domain characteristics as follows:
[0071] Root mean square energy: Zero crossing rate: Maximum amplitude: Skewness: , The third moment centered, Standard deviation; Kurtosis: , The fourth moment centered, Standard deviation;
[0072] S4. For the feature vectors of the 10 sub-segments in each 1-second audio segment, calculate the mean and maximum value of each dimension to obtain the 85-dimensional mean feature vectors. and 85-dimensional sequential maximum features These are concatenated to form a 170-dimensional feature vector that operates at a second-level speed. ;
[0073] S5. Concatenate the second-level feature vectors of the corresponding time periods of the reference audio A and the audio B to be tested to form a 340-dimensional joint feature vector. ;
[0074] S6. Input the joint feature vector into the pre-trained support vector machine (SVM) model and output an integer score in the range of 0 to 5 to represent the degree of distortion of the audio in that second.
[0075] It should be noted that the method of the present invention achieves high temporal resolution audio detection through a two-layer segmentation strategy. The system receives reference audio and audio to be tested, and after preprocessing, it is segmented into 1-second segments. Each segment is further subdivided into 10 100-millisecond sub-segments. MFCC features and temporal statistical features are extracted for each sub-segment. Second-level features are obtained by aggregating the mean and maximum values. The features of the reference audio and the audio to be tested are concatenated and then input into the SVM model for scoring.
[0076] Preferably, compared with the prior art, the method of the present invention accurately locates transient anomalies of 10 milliseconds by combining second-by-second scoring with 100-millisecond segment division, achieving high temporal resolution; the single-second audio processing time is no more than 10 milliseconds, meeting the real-time detection requirements of the production line; at the same time, the SVM model file is only tens of MB, which can run on ordinary industrial control computers without GPU, achieving lightweight deployment, and a stable model is trained through small sample learning, improving the accuracy and stability of detection.
[0077] The following is combined Figures 2a-2d The schematic diagrams shown, along with some preferred or optional examples of the present invention, more specifically describe the implementation process and / or effects of certain embodiments of the present invention.
[0078] (1) Audio loading and resampling
[0079] First, the input audio file is read and parsed. The system supports stereo audio files in WAV and MP3 formats. The reading process consists of three steps: first, the audio file header information is parsed to extract metadata such as the original sampling rate, number of channels, and bit depth; then, the compressed audio data is decoded into a floating-point array to ensure the accuracy of subsequent processing; finally, the stereo signal is separated into independent left and right channels for easy processing and comparative analysis.
[0080] To ensure that audio files with different sampling rates can have a unified time scale, the sinc interpolation method is used to resample all audio to 16kHz. This standard sampling rate is chosen based on the Nyquist theorem, which can both preserve the main spectral information of the audio and reduce computational complexity.
[0081] (2) Audio segmentation
[0082] The audio is first divided into 1-second segments, each containing 16,000 sampling points. This second-level segmentation captures the mid-range changes in the audio and facilitates real-time processing and scoring output. For segments shorter than 1 second, zero padding is used to ensure consistent processing.
[0083] Each main segment is further subdivided into 10 segments of 100 milliseconds each, with each segment containing 1600 sampling points. This millisecond-level fine-grained analysis can capture the transient characteristics and local anomalies of the audio. Through a two-level segmentation strategy, the system can simultaneously analyze the short-term and medium-term characteristics of the audio.
[0084] (3) Feature extraction
[0085] Mel-frequency cepstral coefficients (MFCCs) are one of the most important features in audio signal processing, effectively characterizing the spectral envelope properties of audio. The steps for extracting MFCCs are as follows:
[0086] Pre-emphasis processing: The signal is pre-emphasized to compensate for the attenuation of high-frequency components. Pre-emphasis is achieved through a first-order high-pass filter. This step enhances the high-frequency components and improves the signal-to-noise ratio.
[0087] Framing and windowing: Each sub-segment is further divided into frames with a frame length of 25ms and a frame shift of 10ms, resulting in 75% overlap. A Hamming window function is applied to each frame to reduce spectral leakage.
[0088] Spectrum analysis: Perform a Fast Fourier Transform (FFT) on the windowed signal to obtain its frequency domain representation, calculate the power spectral density, and provide input for subsequent Mel filtering;
[0089] Mel filter bank: Employs 40 triangular filters uniformly distributed across the Mel frequency scale. The Mel scale simulates the nonlinear frequency perception characteristics of the human ear, offering high low-frequency resolution and low high-frequency resolution. The Mel frequency conversion formula is:
[0090]
[0091] Logarithmic energy and DCT transform: Calculate the logarithmic energy of the output of each filter, and then perform a discrete cosine transform to obtain 40-dimensional MFCC coefficients;
[0092] Statistical feature extraction: Calculate the mean and standard deviation of the MFCC coefficients for all frames within each sub-segment to form an 80-dimensional feature vector;
[0093] Temporal feature extraction: RMS energy is sensitive to volume changes and energy anomalies, and is an important indicator for detecting audio distortion. The calculation formula is RMS = sqrt(Σx 2 [n] / N), where x[n] represents the value of the audio signal at the nth sampling point, and N=1600 represents the total number of sampling points in the sub-segment; the frequency of the signal crossing zero points is counted to reflect the high-frequency component content of the signal. A high zero-crossing rate usually indicates the presence of noise or friction sound; the maximum absolute amplitude in the sub-segment is calculated to measure the intensity of the audio signal; the sharpness of the signal distribution is measured to reflect the impulse characteristics of the signal. A kurtosis value deviating from the normal distribution (kurtosis=3) indicates the presence of abnormal events or distortion; the symmetry of the signal distribution is measured, and the skewness value reflects the degree of asymmetric distortion of the signal; each 100-millisecond sub-segment generates an 85-dimensional feature vector, which contains: the mean and standard deviation of 40-dimensional MFCC (80 dimensions in total), RMS energy, zero-crossing rate, maximum amplitude, kurtosis and skewness (5 dimensions in total). These features are concatenated to form a feature vector containing time-domain and frequency-domain information.
[0094] (4) Feature calculation per second
[0095] For each 1-second audio segment, the mean and maximum values of the features of 10 sub-segments (each with 85 dimensions) are calculated to generate a 170-dimensional feature vector. Then, the 170-dimensional feature vector of the reference audio and the 170-dimensional feature vector of the corresponding degraded audio are concatenated to form a 340-dimensional combined feature vector, which is then fed into the model for training.
[0096] To ensure consistency in the dimensions of different features, StandardScaler is used for standardization. After standardization, the features have zero mean and unit variance, thus avoiding the influence of different feature scales on the classification results.
[0097] (5) Use Support Vector Machine (SVM) for model training. The specific steps are as follows:
[0098] The radial basis function (RBF) kernel is used to map features to a high-dimensional space to achieve nonlinear classification. The RBF kernel function is defined as: K(x,y)=exp(-γ||xy|| 2 In this model, γ > 0 is the kernel function parameter, used to control the rate at which similarity decays with distance. A larger γ results in a narrower kernel distribution, making the model more sensitive to local differences, leading to more complex decision boundaries and a higher risk of overfitting. A smaller γ results in a wider kernel distribution, slower similarity decay, and smoother decision boundaries. Soft-margin SVM is used during model training, with a penalty coefficient of C = 10, where C is the regularization parameter. K(x,y) is the output of the kernel function, representing the similarity between samples x and y in the implicit high-dimensional feature space. exp(⋅) is an exponential function with the natural constant e as its base, used to map the distance metric to the similarity in the interval (0,1]. x and y are two sample vectors to be compared; ||xy|| 2 The squared Euclidean distance between samples;
[0099] The optimal classification hyperplane is determined by solving the following quadratic programming problem:
[0100]
[0101] Where J is the objective function to be optimized, w is the normal vector of the classification hyperplane, and b is the bias term. Let C be the slack variable for the i-th sample, and C be the regularization parameter.
[0102] Audio quality is divided into 6 levels, using a one-to-one strategy, with the following number of classifiers:
[0103]
[0104] The rating levels are defined as follows:
[0105] 0 points, no difference, the reference audio and the audio to be tested are almost identical;
[0106] 1 point, slight difference, with a brief electrical hum or weak noise present;
[0107] 2 points, slightly distorted, but acceptable;
[0108] 3 points, clearly distorted, but still acceptable;
[0109] 4 points, severely distorted, music is obviously distorted or speech is incomprehensible;
[0110] 5 points, extremely poor, signal completely lost or extremely poor sound quality.
[0111] To ensure that the training and test data distributions are consistent, during the test phase, the joint feature vectors of each sample to be tested are normalized dimension by dimension, obtaining the normalized feature vectors:
[0112]
[0113] Among them, is the 340-dimensional joint feature vector obtained in step S5, are the mean and standard deviation statistically obtained dimension by dimension on the training set.
[0114] The audio quality level set of the present invention is , where 0 indicates no difference and 5 indicates a very large difference. The one-to-one strategy is adopted: for any pair of i < j, only these two types of samples are used to train a binary classifier . Under the SVM framework, the discriminant function of this classifier in the prediction phase is:
[0115] ;
[0116] Among them, represents the set of support vector indices of this binary classifier; represents the 340-dimensional joint feature of the k-th support vector; represents the joint feature vector of the sample to be tested; represents the dual coefficient corresponding to the k-th support vector; K is the kernel function, used to measure the similarity of two samples in the feature space; represents the label of the k-th support vector; represents the bias of this binary classifier.
[0117] A binary choice result is output for each binary classifier:
[0118] Among them, is the class output function.
[0119] The voting fusion is used to obtain the final multi-classification result. Denote the indicator function to take 1 when the condition is true and 0 otherwise, and accumulate the votes for each class:
[0120]
[0121] Among them, is the accumulated vote for class c;
[0122] The final predicted class is:
[0123] Among them, , means to maximize the objective.
[0124] For each test audio, the model outputs its second-by-second predicted label and evaluates the prediction accuracy by comparing it with the actual label. At the same time, it generates a second-by-second score sequence and a visualization curve to facilitate the rapid location of abnormal periods.
[0125] To verify its performance in mass production, a scoring system was deployed at the production terminal of the headphone production line. The test audio was an 80-second standard music audio, and the test sample consisted of 200 headphone samples. All samples were first manually listened to and marked with a score per second, which included several abnormal samples to compare and verify the accuracy of the system's detection.
[0126] The artificial ear used in this test was a KEMAR, and the microphone was a Bruel & Kjaer 4138.
[0127] The testing steps are as follows: Step 1: Connect the headphones to the artificial ear and assemble it. Correctly place the headphones under test into the ear canal of the artificial ear. Step 2: Play audio signals. Input a standardized audio test signal into the headphones. Step 3: Audio acquisition. Place the microphone firmly inside the ear canal of the artificial ear to record the audio signal emitted by the headphones. Connect the microphone to an audio analyzer to analyze and save the audio signal in real time. Step 4: Scoring system. Use the input standard audio and the acquired headphone output audio as input to the scoring system. Score the audio per second and output a scoring curve. Step 5: Comparison and verification. Compare the software output by the scoring system with the data manually labeled, especially analyzing the time periods when the score is non-zero, and statistically analyze the accuracy of the scoring.
[0128] Test results show that the system can complete the analysis within 2 seconds for each 80-second test audio. In the batch test of 200 products, the system successfully detected all manually labeled abnormal samples without false alarms.
[0129] Figures 2a-2d Four scoring cases are presented, with blue waveforms representing the left channel and red waveforms representing the right channel. Each set of graphs, from top to bottom, consists of: the original reference audio waveform Original_signal.wav, the damaged audio waveform Corrupted_signal.wav, the manually labeled abnormal location labeled_signal.wav, and the model's output score curve Score.wav. The horizontal axis represents time, and the vertical axis represents the model's output score. The scores have been normalized, mapping 0-5 points to 0-1 points proportionally. This allows for a clear view of the algorithm's sensitive response to distortion, consistent with manual labeling, demonstrating excellent distortion localization capabilities.
[0130] in, Figure 2aThe simulation added brief knocking signals: one knocking sound in the 3-4 second interval, two knocking sounds in the 4-5 second interval, and three knocking sounds in the 6-7 second interval. The knocking sounds were short in duration, and the distortion could not be located by relying solely on MFCC features. After adding multiple instantaneous features, the time periods in which the knocking signals appeared were accurately identified.
[0131] Figure 2b In the audio file being tested, there was a problem of random packet loss. Judging from the scoring results, the time periods when the packet loss occurred were accurately identified. Furthermore, the tiny plosive sounds in the B file were also accurately identified in the 19-20 second and 30-31 second intervals.
[0132] Figure 2c Similarly, the simulation added a tapping signal. It can be clearly seen that the more times the tapping signal is added within one second, the greater the difference and the higher the score. Although there is a difference in amplitude of the time domain waveform in the second half of the AB file, the human ear cannot hear the difference, so the score is 0, and it is considered that there is no difference between the two.
[0133] Figure 2d The model incorporates human voice noise, allowing it to easily identify differences and achieve high scores.
[0134] The aforementioned feature extraction methods can be implemented using existing technologies and techniques, and will not be elaborated upon in this example.
[0135] Reference Figure 3 and Figure 4 Other aspects disclosed in the embodiments of the present invention also propose an automatic audio quality scoring system that combines MFCC and temporal statistical features, including:
[0136] An audio input module is used to receive reference audio and the audio to be tested;
[0137] The preprocessing module is used for audio resampling and time alignment;
[0138] The segmentation module is used to segment audio by second and further subdivide it into sub-segments;
[0139] The feature extraction module is used to extract MFCC features and temporal statistical features;
[0140] The feature aggregation module is used to calculate the mean and maximum value of the features of the sub-segments;
[0141] The model inference module is used to load the SVM model and output a score.
[0142] The results output module is used to generate second-by-second scoring sequences and anomaly location information.
[0143] The system further includes one or more processors and a memory; the memory is used to store operable instructions that, when executed by the one or more processors, cause the one or more processors to perform operations, including the flow of the audio quality automatic scoring method combining MFCC and temporal statistical features of the foregoing embodiments, especially... Figure 1 The flowchart of the method is shown.
[0144] Other aspects disclosed in the embodiments of the present invention also propose a computer-readable medium for storing software including instructions executable by one or more computers, which, upon execution, cause the one or more computers to perform operations including the flow of the audio quality automatic scoring method combining MFCC and temporal statistical features of the foregoing embodiments, particularly... Figure 1 The flowchart of the method is shown.
[0145] It should be recognized that embodiments of the present invention may be implemented or carried out by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer-readable storage medium.
[0146] The method can be implemented using standard programming techniques, including a non-transitory computer-readable storage medium configured with a computer program in the computer program, wherein the storage medium is configured such that the computer operates in a specific and predefined manner.
[0147] Each program can be implemented in a high-level procedural or object-oriented programming language to communicate with the computer system; however, if required, the program can be implemented in assembly or machine language.
[0148] In any case, the language can be either compiled or interpreted.
[0149] Furthermore, for this purpose, the program can run on programmed application-specific integrated circuits.
[0150] The processes described herein (or variations and / or combinations thereof) can be executed under the control of one or more computer systems configured with executable instructions, and can be implemented by hardware or a combination thereof as code (e.g., executable instructions, one or more computer programs, or one or more applications) that commonly executes on one or more processors. The computer program includes a plurality of instructions executable by one or more processors.
[0151] Furthermore, the method can be implemented in any suitable computing platform, including but not limited to personal computers, minicomputers, mainframes, workstations, networked or distributed computing environments, standalone or integrated computer platforms, or in communication with charged particle tools or other imaging devices.
[0152] Various aspects of the present invention can be implemented in machine-readable code stored on a non-transitory storage medium or device, whether portable or integrated into a computing platform, such as a hard disk, optical read and / or write storage medium, RAM, ROM, etc., such that it can be read by a programmable computer, and when the storage medium or device is read by the computer, it can be used to configure and operate the computer to perform the processes described herein.
[0153] Furthermore, machine-readable code, or parts thereof, can be transmitted via wired or wireless networks.
[0154] When such media includes instructions or programs that combine with a microprocessor or other data processor to implement the steps described above, the invention described herein includes these and other different types of non-transitory computer-readable storage media.
[0155] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. An automatic audio quality scoring method combining MFCC and temporal statistical features, characterized in that, include: Receive the reference audio signal and the audio signal to be tested, resample the two audio signals to 16000Hz, and perform time alignment; The time-aligned audio is segmented by second, and each segment is further divided into 10 sub-segments; Extract features from each 100-millisecond segment to obtain the segment feature vector; For each 1-second audio segment, the mean and maximum value of the 10 sub-segments feature vectors are calculated for each dimension, resulting in 85-dimensional mean features and 85-dimensional maximum features, which are then concatenated to form a 170-dimensional second-level feature vector. The second-level feature vectors of the reference audio and the audio to be tested for the corresponding time period are concatenated to form a 340-dimensional joint feature vector; The joint feature vector is input into a pre-trained support vector machine (SVM) model, which outputs an integer score in the range of 0 to 5 to represent the degree of distortion of the audio at that second.
2. The automatic audio quality scoring method combining MFCC and temporal statistical features according to claim 1, characterized in that, The feature extraction for each 100-millisecond segment includes: Extract the 40-dimensional frequency cepstral coefficients (MFCCs) and calculate their mean and standard deviation to obtain 80-dimensional frequency domain features; Calculate five time-domain statistical characteristics: root mean square energy (RMS), zero-crossing rate (ZCR), maximum amplitude, skewness, and kurtosis. The frequency domain features and the time domain statistical features are concatenated to form an 85-dimensional sub-segment feature vector.
3. The automatic audio quality scoring method combining MFCC and time-domain statistical features according to claim 2, characterized in that, The specific process for extracting the Mel frequency cepstral coefficients (MFCC) features includes: Pre-emphasis processing of audio signals; Hamming windows are used for framing, with a frame length of 25 milliseconds and a frame shift of 10 milliseconds. Perform a Fast Fourier Transform on each frame; The Mel spectrum was calculated using a 40-triangular Mel filter bank; After taking the logarithm, a discrete cosine transform is performed to obtain the 40-dimensional MFCC coefficients.
4. The automatic audio quality scoring method combining MFCC and time-domain statistical features according to claim 2, characterized in that, When calculating the time-domain statistical features, RMS, ZCR, maximum amplitude, kurtosis, and skewness are multiplied by coefficients of 5, 3, 3, 3, and 3, respectively, to enhance the features.
5. The automatic audio quality scoring method combining MFCC and time-domain statistical features according to claim 1, characterized in that, The SVM model uses a radial basis function (RBF) kernel, and the kernel function is as follows: K(x,y)=exp(-γ||x-y|| 2 ) Where γ > 0 is the kernel function parameter, used to control the rate at which similarity decays with distance. A larger γ results in a narrower kernel distribution, making the model more sensitive to local differences, leading to a more complex decision boundary and increased risk of overfitting. A smaller γ results in a wider kernel distribution, slower similarity decay, and a smoother decision boundary. Soft-margin SVM is used during model training, with a penalty coefficient of C = 10, where C is the regularization parameter. K(x,y) is the output of the kernel function, representing the similarity between samples x and y in the implicit high-dimensional feature space. exp(⋅) is an exponential function with the natural constant e as its base, used to map the distance metric to the similarity in the interval (0,1). x and y are two sample vectors to be compared; ||xy|| 2 The squared Euclidean distance between the samples is given.
6. The automatic audio quality scoring method combining MFCC and temporal statistical features according to claim 1 or 5, characterized in that, The SVM model needs to be trained, specifically including: Collect reference audio, audio to be tested, and corresponding manually annotated scores; Perform a joint feature vector generation process on the training data to obtain the initial joint feature vector; The initial joint feature vector was standardized using StandardScaler; The SVM classification model is trained using the standardized initial joint feature vector and labeled scores. Save the trained model parameters and standardized parameters.
7. The automatic audio quality scoring method combining MFCC and time-domain statistical features according to claim 1, characterized in that, The rating levels are defined as follows: 0 points, no difference, the reference audio and the audio to be tested are almost identical; 1 point, slight difference, with a brief electrical hum or weak noise present; 2 points, slightly distorted, but acceptable; 3 points, clearly distorted, but still acceptable; 4 points, severely distorted, music is obviously distorted or speech is incomprehensible; 5 points, extremely poor, signal completely lost or extremely poor sound quality.
8. An automatic audio quality scoring system combining MFCC and time-domain statistical features, characterized in that, The system is implemented based on the automatic audio quality scoring method combining MFCC and temporal statistical features as described in any one of claims 1 to 7, including: An audio input module is used to receive reference audio and the audio to be tested; The preprocessing module is used for audio resampling and time alignment; The segmentation module is used to segment audio by second and further subdivide it into sub-segments; The feature extraction module is used to extract MFCC features and temporal statistical features; The feature aggregation module is used to calculate the mean and maximum value of the features of the sub-segments; The model inference module is used to load the SVM model and output a score. The results output module is used to generate second-by-second scoring sequences and anomaly location information.
9. The automatic audio quality scoring system combining MFCC and time-domain statistical features according to claim 8, characterized in that, The system also includes one or more processors; The memory stores operable instructions that, when executed by the one or more processors, cause the one or more processors to perform operations, including the flow of the automatic audio quality scoring method combining MFCC and time-domain statistical features as described in any one of claims 1 to 7.
10. A computer-readable medium for storing software, characterized in that: The software includes instructions executable by one or more computers, which, upon execution, cause the one or more computers to perform operations including the flow of an automatic audio quality scoring method combining MFCC and temporal statistical features as described in any one of claims 1 to 7.
Citation Information
Patent Citations
A No-Reference Objective Speech Quality Assessment Method Based on Deep Learning Speech Enhancement
CN107358966B
Audio quality evaluation methods, devices, electronic equipment, and computer storage media
CN111161759B
Objective evaluating method for audio quality of streaming media
CN102044248A
Abnormal sound detection method and system of neural network based on multiple receptive fields
CN119091909A