A kind of audio data processing method and prediction method
By extracting multi-channel feature spectrograms and deep residual convolution layers, an audio neural network model is constructed, which solves the problems in the existing technology of simple audio feature extraction and difficulty in training deep networks, and improves the accuracy and deployment of audio classification models. efficiency.
Patent Information
- Application Number
- CN202211406445.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-10
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-11-10
AI Technical Summary
Existing audio classification algorithms are too simple when extracting audio features, making it difficult to learn deep features, and deep convolutional neural networks are difficult to train and deploy.
By extracting multi-channel feature spectrograms and combining with deep residual convolution layers, a neural network model is constructed, and can be flexibly applied and shared through the model library, and the learning rate is optimized to improve model accuracy and deployment efficiency.
It improves the accuracy of audio models, solves the problems of convolutional network degradation and difficulty in training, enables flexible application and rapid deployment of models, and reduces interference between models.
Smart Images

Figure CN115713945B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of audio processing, and in particular to an audio data processing method and a prediction method. Background Art
[0002] At present, audio classification algorithm technicians extract the Mel-Frequency Cepstral Coefficients (MFCC) spectrogram of the audio, and then use recurrent neural networks or convolutional neural networks to train the audio classification model.
[0003] However, the single extraction of audio MFCC spectrogram is too simple and contains relatively little audio information, making it difficult to learn the deep features of the audio during neural network training.
[0004] Recurrent neural networks have memory functions and tend to handle tasks related to time, such as text context prediction. However, in noise classification models, they tend to consider the target as a whole. Convolutional neural networks have three characteristics: local receptive field, weight sharing, and downsampling. They can reduce the parameters and complexity of the model, but as the number of network layers increases, the model becomes difficult to train and deep networks may not be able to learn deeper content. Summary of the invention
[0005] In view of the shortcomings of the prior art, the present invention provides an audio data processing method and a prediction method, which solves the problem of being able to perform deep learning on multiple features of audio.
[0006] In order to solve the above technical problems, the present invention is solved by the following technical solutions:
[0007] An audio data processing method comprises the following steps:
[0008] Acquire an audio data set, and preprocess the audio data set to obtain a preprocessed audio set;
[0009] Extracting each frame of audio signal of each audio segment in the preprocessed audio set, and extracting a characteristic spectrogram set of each frame of the audio signal, wherein the characteristic spectrogram set includes more than two characteristic spectrograms;
[0010] Normalizing the feature spectrogram set and generating multi-channel features;
[0011] A neural network model is generated, and the multi-channel features are used as input for neural network training.
[0012] Optionally, the audio data set is preprocessed, comprising the following steps:
[0013] Filtering useless audio in the audio data set, and unifying the audio duration of each audio segment in the audio data set;
[0014] Each audio data segment of the filtered audio data set is framed and windowed to obtain a preprocessed audio set.
[0015] Optionally, filtering useless audio in the audio data set includes the following steps:
[0016] Deleting the audio data that cannot be determined from the audio data set;
[0017] A first audio length threshold and a frequency threshold are set, and audio data whose audio length is shorter than the first audio length threshold or whose frequency is lower than the frequency threshold is deleted from the audio data set.
[0018] Optionally, unifying the audio duration of each audio segment in the audio data set includes the following steps:
[0019] Setting a second audio length threshold, and determining a difference between an audio length of the audio data in the audio data set and the second audio length threshold;
[0020] If the audio length of the audio data is greater than or equal to a second audio length threshold, continuously intercepting audio data of a standard duration;
[0021] If the audio length of the audio data is less than the second audio length threshold, a truncation or padding method is used to obtain audio data of standard duration.
[0022] Optionally, extracting a set of characteristic spectrograms of the audio signal of each frame comprises the following steps:
[0023] The power normalized chromatogram, Mel cepstral coefficients, Mel spectrum and constant Q chromatogram of the audio signal are obtained in sequence.
[0024] Optionally, generating multi-channel features includes the following steps:
[0025] Setting the audio frame length, frame shift and maximum audio duration of each segment of audio data in the pre-processed audio set, and calculating the number of audio frames;
[0026] A multi-channel feature is generated based on the audio frame length, the number of audio frames and the feature spectrogram set, wherein the channels of the multi-channel feature and the feature spectrogram in the feature spectrogram set Figure 1 One to one correspondence.
[0027] Optionally, using the multi-channel features as input for neural network training comprises the following steps:
[0028] Inputting the multi-channel features into a multi-channel input layer;
[0029] The deep residual convolution layer of the neural network model trains the multi-channel features of the input according to the residual method to obtain neural network models for different audio classifications and generate a model library.
[0030] Optionally, the following steps are also included:
[0031] An audio verification set is obtained, and a learning rate of the neural network model is optimized based on the audio verification set.
[0032] An audio data prediction method, comprising using any of the audio data processing methods described above to obtain a trained neural network model, and further comprising the following steps:
[0033] Acquire an audio test set, and preprocess the audio test set to obtain a preprocessed audio test set;
[0034] Extracting each frame of test audio signal of each audio segment in the preprocessed audio test set, and extracting a test feature spectrogram set of each frame of the test audio signal, wherein the test feature spectrogram set includes more than two feature spectrograms;
[0035] Normalizing the test feature spectrogram set and generating a multi-channel test feature;
[0036] Calling the trained neural network model and taking the multi-channel test features as input to obtain an audio classification result;
[0037] The format of the audio classification result is modified to a format for display.
[0038] A computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, any one of the above-mentioned audio data processing methods is executed.
[0039] Compared with the prior art, the technical solution provided by the present invention has the following beneficial effects:
[0040] By constructing spectrograms of different audio features for feature fusion, multi-channel features are obtained to ensure that the network can learn more audio features and improve the accuracy of the model; by using the residual method to modify the input of the convolutional layer, the problems of convolutional network degradation and difficulty in training are solved; flexible model application capabilities enable model sharing and rapid deployment through a model library, and the corresponding models are selected according to different actual scenarios to reduce interference between models. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0042] Figure 1 A flowchart of an audio data processing method and a prediction method proposed in the first and second embodiments;
[0043] Figure 2 This is an example diagram of performing frame processing on an audio signal proposed in the first embodiment;
[0044] Figure 3 This is an example diagram of the overlap between two consecutive frames after the audio signal is subjected to windowing processing proposed in the first embodiment;
[0045] Figure 4 It is a multi-channel feature map after the audio feature fusion proposed in the first embodiment;
[0046] Figure 5 This is a structural diagram of the convolutional pooling layer proposed in the first embodiment;
[0047] Figure 6 This is a structural diagram of the multi-channel residual convolutional network proposed in this embodiment 1. DETAILED DESCRIPTION
[0048] The present invention is further described in detail below in conjunction with embodiments. The following embodiments are for explanation of the present invention but the present invention is not limited to the following embodiments.
[0049] Embodiment 1
[0050] like Figure 1 As shown, an audio data processing method includes the following steps: obtaining an audio data set, i.e., a training set, and preprocessing the audio data set to obtain a preprocessed audio set. First, a practical sound level meter is used to collect audio data on-site to obtain an audio data set, wherein the audio data set is preprocessed, including the following steps: filtering useless audio in the audio data set, and unifying the audio duration of each audio segment in the audio data set; framing and windowing each audio segment of the filtered audio data set to obtain a preprocessed audio set.
[0051] Specifically, filtering useless audio in an audio data set includes the following steps: deleting audio data that cannot be judged in the audio data set. The audio data that cannot be judged here refers to audio data with a lot of noise or inability to judge what the specific sound is, which needs to be deleted, and then continuing the standardization process, that is, setting a first audio length threshold and a frequency threshold, and deleting audio data in the audio data set whose audio length is shorter than the first audio length threshold or whose frequency is lower than the frequency threshold. In order to ensure that each audio data has the same feature dimension when generating a spectrogram, according to the adopted theorem, it is necessary to keep The adopted frequency is 2.56 to 4 times of the highest frequency of the signal. Since the sampling frequency affects the quality of the audio, if the sampling frequency is too low, the audio will be distorted. The sampling rate of 48K has the sound quality of a DVD. The highest audio that can be collected by 48KHz is 48000 / 2.56=18750Hz, and the audible range of the human ear is 20Hz to 20KHz. Therefore, in this embodiment, the first audio length threshold can be set to 3 seconds, and the frequency threshold can be set to 48KHz. At this time, audio data with a duration of less than 3 seconds or a sampling frequency lower than 48KHz needs to be deleted.
[0052] Further, the audio duration of each audio segment in the audio data set is unified, including the following steps: setting a second audio length threshold, and determining the difference between the audio length of the audio data in the audio data set and the second audio length threshold; if the audio length of the audio data is greater than or equal to the second audio length threshold, continuously intercepting audio data of standard duration; if the audio length of the audio data is less than the second audio length threshold, adopting an interception or padding method to obtain audio data of standard duration.
[0053] Specifically, for audio data of different durations, the signal length is unified by uniformly truncating or padding at the beginning and end of the audio. In this embodiment, the second audio length threshold can be set to 15 seconds. When the audio length of the audio data is greater than or equal to 15 seconds, 10 seconds of audio is continuously intercepted. Otherwise, audio data of standard duration is obtained by interception or padding. Specifically, the maximum audio duration T can be set to 10 seconds, and the sampling frequency RF can be set to 48KHz. At this time, the maximum audio timing length and the actual audio timing length L can be calculated. wav The difference padding is calculated as follows: padding = RF*T-RF*T wav .
[0054] Among them, T wavis the actual audio duration. If padding>0, a signal of padding / 2 length is intercepted at the beginning and end of the audio. Since interception may cause loss of effective edge audio, boundary padding can be used to increase boundary delay. Both have little impact on the audio result. If padding<0, a boundary signal of |padding| / 2 length is filled at the beginning and end of the signal. If padding is an odd number, padding is divided by 2 and the audio is rounded up at the beginning.
[0055] Since the audio signal has short-term stability, it is necessary to perform frame division and windowing processing on the audio. Specifically, in this embodiment, the frame length L can be set to frame is 25ms, frame shift S frame is 10ms, so the number of audio frames N can be calculated by the following formula frame :
[0056] Among them, L frame -S frame is the overlap duration T of the two frames overlap , [] means rounding, for example: [4.1] = 4, [4.8] = 4, such as Figure 2 As shown, in this embodiment, the audio duration T = 10 seconds, the frame length L frame = 3 seconds, S frame = 2, the overlapping time of two frames is 1s, and the number of frames is N frame =10-(3-2) / 2+1=5, that is, 10 seconds of audio can be divided into 5 frames. Figure 2 As shown, if the last frame is not enough, it can be ignored or supplemented with zeros. The specific adjustment can be made according to the actual situation.
[0057] like Figure 3 As shown, in order to prevent spectrum leakage at the boundary of two consecutive frames, a Ming-Han window is used to perform windowing on each frame. Since the signals at both ends of the frame are weakened after windowing, an overlapping part is set between two consecutive frames, and the overlapping part can be adjusted according to actual conditions, and no specific limitation is made here.
[0058] Furthermore, each frame of audio signal of each audio segment in the preprocessed audio set is extracted, and a set of characteristic spectrograms of each frame of audio signal is extracted to realize audio feature fusion, wherein the set of characteristic spectrograms includes more than two characteristic spectrograms; extracting the set of characteristic spectrograms of each frame of audio signal includes the following steps: sequentially obtaining a power normalized chromatogram, a Mel-cepstral coefficient, a Mel-spectrum spectrum and a constant Q chromatogram of the audio signal.
[0059] Among them, the power normalized chromatogram is often used to identify the similarities between different interpretations of a given piece of music, and is used for audio matching and similarity tasks; the constant Q chromatogram represents the transformation of the time series into the frequency domain, which is related to the Fourier transform because its output amplitude is relative to the logarithmic frequency. The entire spectrum is projected into 12 intervals, representing 12 different semitones or chromaticities of the musical octave; the audio feature embodied by the Mel spectrum is that the Mel-scaled filter group has a high resolution in the low-frequency part, which is consistent with the auditory characteristics of the human ear and plays a role in simulating the human ear; the Mel cepstral coefficient is better described by the nonlinear relationship of log because the human ear's perception of sound is not linear, so the Mel value log is used to analyze the audio features, so that the diversity of audio features is analyzed through the above different spectrograms.
[0060] After generating a variety of spectrograms, all the spectrograms, i.e., the feature spectrogram set, need to be normalized to generate multi-channel features, wherein the generation of multi-channel features includes the following steps: setting the audio frame length, frame shift, and maximum audio duration of each audio data segment in the pre-processed audio set, and calculating the number of audio frames; generating multi-channel features based on the audio frame length, the number of audio frames, and the feature spectrogram set, wherein the channels of the multi-channel features are aligned with the feature spectrograms in the feature spectrogram set. Figure 1 One to one correspondence.
[0061] Specifically, the calculation formula for normalization processing is: Among them, x represents the numerical value corresponding to the point on each spectrogram as the input value, y represents the output value of each spectrogram after normalization, and the output value range is [0, 1]. For example, X=[0, 4, 7], where 0, 4, and 7 are three values of x respectively, which become [1 / 2, 1 / (1+e-4), 1 / (1+e-7)] after normalization, so that all spectrograms are measured by a unified standard. The igmoid function is an S-shaped extrusion function and the amplitude remains unchanged after compression.
[0062] Furthermore, in order to mine deep signal features, this embodiment does not simply splice all features horizontally, but draws on the idea of channels in the image to combine the above features vertically to form a multi-channel N chanle Similarly, in this embodiment, the frame length L of each frame can be set frame The frame length is 30 milliseconds, and the frame length setting range is 20 to 40 milliseconds, which can be adjusted according to the actual data situation. The two-dimensional matrix of each channel is expressed as (N frame , L frame ), and the final multi-channel feature representation is (N frame , L frame , N chanle ), where Figure 4As shown, in this embodiment, the multi-channel embodiment is to use the power normalized chromatogram obtained above as a channel, the Mel cepstral coefficient as a channel, the Mel spectrum as a channel and the constant Q chromatogram as a channel, so that a four-channel multi-channel feature can be obtained.
[0063] Furthermore, a neural network model is generated, and the multi-channel features are used as input for neural network training, which specifically includes the following steps: the multi-channel features are input into the multi-channel input layer; the deep residual convolution layer of the neural network model trains the input multi-channel features according to the residual method.
[0064] like Figure 5 As shown in the figure, in this experiment, edge padding and multiple groups of 3*3 convolution kernels are used for each convolution layer, the activation function is ReLU, and a 2*2 maximum pooling layer. The input layer has the same number of channels as each convolution kernel, and multiple convolution kernels output multiple channels.
[0065] Compared with the traditional convolutional network through local connection and shared weights, it not only cannot learn the local optimal features, but also greatly reduces the number of parameters. As the network depth increases, training becomes more difficult, and the gradient disappearance and gradient explosion problems become more obvious. Figure 6 As shown, in this embodiment, a residual method is introduced to correct and reduce the strong correlation between adjacent layers, and the output of the (n-2) layer is concatenated with the output of the (n) layer as the input of the next layer (n+1).
[0066] Specifically, in this embodiment, taking the network structure including 12 layers, including 8 convolutional layers, 2 maximum pooling layers, and 2 full-link layers as an example, the network structure formed by combining multi-channel features with residual convolution is as follows: Figure 6 shown.
[0067] Furthermore, in order to optimize the learning rate of the neural network model, it is necessary to obtain an audio verification set and optimize the learning rate of the neural network model based on the audio verification set. Specifically, during the training of the neural network model, the model effect is improved and overfitting is prevented by optimizing the learning rate, setting the dropout function and the early stopping mechanism. During the training process, the loss value of the verification set continues to decrease. When the value increases for the first time, the learning rate is reduced by 0.1 times on the original basis, and when the loss value is greater than the value before the increase for 5 consecutive times, the training is stopped. At this time, the saved model is the optimal model, and the loss function used to calculate the loss value is categorical_crossentropy.
[0068] For example, if the initial learning rate is 0.001 and the loss value of the validation set increases for the first time, the learning rate is adjusted to 0.0001, that is, multiply the original learning rate by 0.1. If the learning rate is too small, the model will learn and converge slowly. If the learning rate is too large, the loss value will fluctuate or even increase. The learning rate can be likened to the step size. If the step size is too small, the progress will be slow. If the step size is too large, the model will be unstable and change quickly.
[0069] Specifically, during the training of the neural network model, the following settings can be made: 500 cycles of training, i.e., epochs = 500, and each group of 200 data is trained, i.e., batch_size = 200; assuming that the total number of samples is 1000 data, then 1000 / 200 = 5, i.e., 1 epoch is completed after 5 trainings, 200 each time, and 1000 data are trained after 5 trainings. After each epoch, the validation set is used for prediction, and the loss value and accuracy are calculated respectively. During the training process, the loss value keeps decreasing and the accuracy keeps improving. When the loss value after the i-th epoch is larger than the value of the (i-1)th epoch, the learning rate is adjusted to continue training. When the loss value is smaller than the previous one for 5 consecutive times, the training is stopped, and the early stopping mechanism is triggered. At this time, epochs may be equal to 34, and the optimal model saved is the one of the 29th training.
[0070] During the training process of each batch_size in the training data set, the optimal solution will be found through the back propagation method, that is, the gradient descent method, according to the loss value, and the network parameters will be updated from output to input in sequence.
[0071] The validation set does not participate in the back-propagation process, that is, it does not train the model parameters. It only verifies the accuracy and loss rate of the current model and participates in the "manual parameter adjustment" process, such as changes in the number of network layers, batch_size settings, initial learning rate settings, etc.
[0072] The neural network model trained by the above method will obtain multiple classification neural network models due to different audio classifications. At this time, all different types of neural networks can be collected into a model library for use in the next audio prediction.
[0073] Embodiment 2
[0074] like Figure 1As shown, an audio data prediction method includes using the audio data processing method as described in Example 1 to obtain a trained neural network model, and also includes the following steps: obtaining an audio test set, and preprocessing the audio test set to obtain a preprocessed audio test set; extracting each frame of test audio signal of each audio segment in the preprocessed audio test set, and extracting a test feature spectrogram set of each frame of test audio signal, wherein the test feature spectrogram set includes more than two feature spectrograms; normalizing the test feature spectrogram set and generating multi-channel test features; when performing audio data prediction, the method for preprocessing the audio test set, framing, extracting frame features, and fusing audio features into a test feature spectrogram set is the same as the method in Example 1, except that this embodiment can directly call the trained neural network model and use the multi-channel test features as input to obtain an audio classification result.
[0075] Specifically, different neural network classification models are selected from the model library, and corresponding API interfaces are developed for each neural network model to call the specified model to provide real-time online services. Then, the audio data in the test set is input into the neural network model to obtain the audio classification results, and then the format of the audio classification results is modified to a format for display.
[0076] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the audio data processing method of any one of the first embodiments is executed.
[0077] More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more conductor segments, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk-read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0078] In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless segments, wire segments, optical cables, RF, etc., or any suitable combination of the above.
[0079] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules, modules or units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units, modules or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0080] The units may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0081] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0082] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part, and / or installed from a removable medium. When the computer program is executed by the central processing unit (CPU), the above-mentioned functions defined in the method of the present application are executed. It should be noted that the above-mentioned computer-readable medium of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of an electrical, magnetic, optical, electromagnetic, infrared segment, or semiconductor, or any combination of the above.
[0083] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0084] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. An audio data processing method, characterized in that: The following steps are involved: Acquire an audio data set, and preprocess the audio data set to obtain a preprocessed audio set. Specifically, the audio data set is preprocessed, including the following steps: S1, filter useless audio in the audio data set, and unify the audio duration of each audio segment in the audio data set, wherein unifying the audio duration of each audio segment in the audio data set includes the following steps: set a second audio length threshold, and judge the difference between the audio length of the audio data in the audio data set and the second audio length threshold; if the audio length of the audio data is greater than or equal to the second audio length threshold, continuously intercept audio data of standard duration; if the audio length of the audio data is less than the second audio length threshold, adopt an interception or padding method to obtain audio data of standard duration; more specifically, calculate the maximum audio timing length and the actual audio timing length L wav If padding>0, the signal with the length of padding / 2 is intercepted at the beginning and end of the audio respectively; if padding<0, the signal is filled at the beginning and end of the signal respectively. The length of the boundary signal; if padding is an odd number, the padding is divided by 2 and the beginning of the audio is rounded up. The calculation formula of the difference padding is: padding = RF*T-RF*T wav , RF represents the sampling frequency, T represents the maximum audio duration, T wav Indicates the actual audio duration; S2, each audio data segment of the filtered audio data set is framed and windowed to obtain a preprocessed audio set, wherein the frame number of each frame of audio in the framed processing is calculated as follows: N frame =[ ]+1, T represents the maximum audio duration; Indicates the set frame length; Indicates frame shift; Extracting each frame of audio signal of each audio segment in the preprocessed audio set, and extracting a characteristic spectrogram set of each frame of the audio signal, wherein the characteristic spectrogram set includes more than two characteristic spectrograms; The feature spectrogram set is normalized to generate multi-channel features, wherein the normalization formula is: , x represents the value corresponding to the point on the feature spectrogram as the input value, y represents the output value after normalization of various feature spectrograms, and the multi-channel feature is formed by vertically combining two or more feature spectrograms after normalization; A neural network model is generated, and the multi-channel features are used as input for neural network training.
2. The audio data processing method according to claim 1, characterized in that: Filtering useless audio in the audio data set includes the following steps: Deleting the audio data that cannot be determined from the audio data set; A first audio length threshold and a frequency threshold are set, and audio data whose audio length is shorter than the first audio length threshold or whose frequency is lower than the frequency threshold is deleted from the audio data set.
3. The audio data processing method according to claim 1, characterized in that: Extracting a characteristic spectrogram set of each frame of the audio signal comprises the following steps: The power normalized chromatogram, Mel cepstral coefficients, Mel spectrum and constant Q chromatogram of the audio signal are obtained in sequence.
4. The audio data processing method according to claim 1, characterized in that: Generating multi-channel features includes the following steps: Setting the audio frame length, frame shift and maximum audio duration of each segment of audio data in the pre-processed audio set, and calculating the number of audio frames; A multi-channel feature is generated based on the audio frame length, the number of audio frames and the feature spectrogram set, wherein the channels of the multi-channel feature correspond one-to-one to the feature spectrograms in the feature spectrogram set.
5. The audio data processing method according to claim 1, characterized in that: Using the multi-channel features as input to train a neural network includes the following steps: Inputting the multi-channel features into a multi-channel input layer; The deep residual convolution layer of the neural network model trains the multi-channel features of the input according to the residual method to obtain neural network models for different audio classifications and generate a model library.
6. The audio data processing method according to claim 1, characterized in that: The following steps are also included: An audio verification set is obtained, and a learning rate of the neural network model is optimized based on the audio verification set.
7. An audio data prediction method, characterized in that: The method comprises using the audio data processing method according to any one of claims 1 to 6 to obtain a trained neural network model, and further comprising the following steps: Acquire an audio test set, and preprocess the audio test set to obtain a preprocessed audio test set; Extracting each frame of test audio signal of each audio segment in the preprocessed audio test set, and extracting a test feature spectrogram set of each frame of the test audio signal, wherein the test feature spectrogram set includes more than two feature spectrograms; Normalizing the test feature spectrogram set and generating a multi-channel test feature; Calling the trained neural network model and taking the multi-channel test features as input to obtain an audio classification result; The format of the audio classification result is modified to a format for display.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the audio data processing method according to any one of claims 1 to 6 is performed.
