A deep learning equalizer parameter automatic generation method, device and medium

Through deep learning technology, sensors and microphones are used to collect data and automatically generate equalizer parameters, solving the problems of traditional equalizer configuration being cumbersome and relying on professionals, and achieving fast and stable automatic configuration.

CN118227079BActive Publication Date: 2024-09-03GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410261407.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-07
Publication Date
2024-09-03
Estimated Expiration
2044-03-07

AI Technical Summary

Technical Problem

Traditional equalizer configuration parameters require manual adjustment by professional audio engineers. The process is cumbersome and relies on experience, resulting in long configuration cycles and unstable effects, making it difficult to adapt to different scenarios and program needs.

Method used

Using deep learning methods, we build models through convolutional neural networks and recurrent neural networks, use sensors and microphones to collect scene data, and automatically generate equalizer parameters, including spatial recognition models and equalizer prediction models, to achieve automatic configuration.

Benefits of technology

It reduces dependence on professionals, improves configuration speed and stability, is applicable to a wide range of scenarios, and simplifies the equalizer configuration process.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The present invention relates to the field of equalizer configuration, and specifically discloses a deep learning equalizer parameter automatic generation method, device and medium, which are used to automatically generate equalizer parameters according to the scene where the audio equipment is located and the recording data of the audio equipment playing audio, and use a convolutional neural network to establish a spatial recognition model; use a recurrent neural network to establish an equalizer prediction model; set sensors and microphones at the location of the audio equipment where the equalizer parameters need to be generated; import the sensor data into the spatial recognition model to obtain the third spatial data of the current scene; import the audio data collected by the microphone together with the third spatial data into the equalizer prediction model to obtain the equalizer prediction parameters. The present invention collects scene data through a camera and a microphone, provides a parameter basis for adaptive configuration, and calculates the configuration parameters of the equalizer through a trained intelligent model. The professional requirements for configuration personnel are low, the configuration speed is fast, and the configuration effect is stable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of equalizer configuration, and in particular to a deep learning equalizer parameter automatic generation method, device and medium. Background Art

[0002] Traditional equalizer configuration parameters require professional audio engineers to configure and debug in order to adjust parameters for venue environments and equipment, and the debugging process is usually very cumbersome. In response to different scenes, environments, and program needs, equalizer parameters often need to be debugged and configured repeatedly, and the final effect is extremely dependent on the experience and technology of audio engineers, which is time-consuming and labor-intensive, and the debugging effect is unstable.

[0003] Therefore, how to achieve automatic configuration of the equalizer is an important research and development direction in the field of stage effects. However, due to the complex structure of stage scenes and diverse program effect requirements, even if an automatic configuration algorithm is designed, it is still necessary to enter a large amount of stage scene data, equipment parameters and debugging feedback data when using it. The requirements for users are no lower than those for professional audio engineers, and the applicable scenarios are limited, the debugging cycle is long, and it is difficult to promote. Summary of the invention

[0004] In order to overcome the problems of long configuration cycle of existing equalizers and high professional requirements for configuration personnel, the present invention provides a deep learning equalizer parameter automatic generation method, device and medium.

[0005] The present invention provides a deep learning equalizer parameter automatic generation method, which is used to automatically generate equalizer parameters according to the scene where the audio device is located and the recording data of the audio played by the audio device, including the following steps:

[0006] Establishing a first model for identifying spatial features of a scene based on data collected by the sensor using a convolutional neural network;

[0007] Sensors are respectively set in several different scenes, and first sensor data of the scene is collected through the sensors, and first spatial data of the scene is imported at the same time, and the sensor data is stored in pairs with the first spatial data of the same scene after data normalization processing;

[0008] Using the spatial data set to train, verify and test the first model, to obtain a spatial recognition model;

[0009] establishing a second model for predicting equalizer parameters using a recurrent neural network;

[0010] By setting microphones in several different scenes, first audio data of several different scenes are collected, and second spatial data of the scene corresponding to each first audio data and existing equalizer configuration data of the audio equipment are obtained;

[0011] Performing data normalization processing on all first audio data, and storing each processed first audio data and its corresponding second spatial data and equalizer configuration data in a group into a fusion data set;

[0012] Using the fused data set to train, verify and test the second model, to obtain an equalizer prediction model;

[0013] Set up sensors and microphones at the location of the audio equipment where equalizer parameters need to be generated;

[0014] Acquire second sensor data of the current scene through the sensor, and acquire second audio data in the current scene through the microphone;

[0015] Importing the second sensor data into the space recognition model to obtain third space data of the current scene;

[0016] After data normalization, the second audio data is imported into the equalizer prediction model together with the third spatial data to obtain prediction parameters of the equalizer, and the configuration parameters of the equalizer are modified according to the prediction parameters.

[0017] Preferably, the method of using the fused data set to train, verify and test the second model to obtain the equalizer prediction model also includes the following steps:

[0018] Randomly shuffle the data in the feature fusion dataset into groups;

[0019] Each data group in the fusion data set is divided into several different categories of samples based on the classification algorithm;

[0020] Determine the division ratio of training set, validation set and test set to 70%:15%:15%;

[0021] According to the division ratio, the shuffled fusion data set is divided into training set, validation set and test set, and the sample ratios of each category in the training set, validation set and test set are the same.

[0022] Preferably, the step of modifying the configuration parameters of the equalizer according to the prediction parameters further comprises the following steps:

[0023] Establishing an equalizer parameter library, and recording therein commonly used equalizer standard parameters; wherein the commonly used equalizer standard parameters include 31-band equalizer commonly used parameters, 15-band equalizer commonly used parameters, 10-band equalizer commonly used parameters and 5-band equalizer commonly used parameters;

[0024] Compare the predicted parameters with the parameter differences in the corresponding equalizer parameter library, and modify the configuration parameters of the equalizer based on the parameter differences.

[0025] Preferably, the step of modifying the configuration parameters of the equalizer according to the prediction parameters further comprises the following steps:

[0026] The parameter difference between the predicted parameter and the existing equalizer configuration parameter of the audio device is calculated by using one of a fuzzy logic algorithm and a genetic algorithm, and the configuration parameter of the equalizer is modified according to the parameter difference.

[0027] Preferably, the first spatial data includes object recognition data, scene classification data, scene area data, spatial concavity and convexity data and contour recognition data.

[0028] Preferably, the sensor is a camera, and the first sensor data is first video data; the method of performing data normalization processing on the sensor data specifically comprises the following steps:

[0029] Converting a plurality of frames of the first video data into grayscale images, resizing the plurality of grayscale images, and normalizing the images to obtain second video data;

[0030] The histogram of the image in the second video data is calculated, and the brightness mean and brightness variance of the image are obtained through the histogram, and the output is the normalization processing result of the sensor data.

[0031] Preferably, the image normalization method is one of maximum and minimum value normalization and Z-score normalization.

[0032] Preferably, the steps of setting microphones in several different scenes, collecting first audio data of several different scenes, and obtaining second spatial data of each scene corresponding to the first audio data and existing equalizer configuration data of the audio equipment are as follows:

[0033] By setting microphones and sensors at the locations of audio equipment in several different scenarios;

[0034] Collecting several groups of first audio data and third sensor data of different scenes, and obtaining existing equalizer configuration data of corresponding audio equipment,

[0035] Each third sensor data is respectively imported into the space recognition model to obtain the second space data of the audio device.

[0036] The present invention also provides a deep learning equalizer parameter automatic generation device, comprising: a space recognition model training module, an equalizer prediction model training module, a data acquisition module, a space recognition module and a parameter generation module;

[0037] The spatial recognition model training module is used to use a convolutional neural network to establish a first model for identifying scene spatial features based on data collected by sensors; sensors are respectively set in a number of different scenes, first sensor data of the scene is collected by the sensors, and first spatial data of the scene is imported at the same time, and the sensor data is stored in pairs with the first spatial data of the same scene after data normalization processing; the first model is trained, verified and tested using the spatial data set to obtain a spatial recognition model;

[0038] The equalizer prediction model training module is used to establish a second model for predicting equalizer parameters using a recurrent neural network; by setting microphones in a number of different scenes, first audio data of a number of different scenes are collected, and second spatial data of the scene corresponding to each first audio data and existing equalizer configuration data of the audio equipment are obtained; all the first audio data are normalized, and each processed first audio data and its corresponding second spatial data and equalizer configuration data are stored in a fused data set in groups; the second model is trained, verified and tested using the fused data set to obtain an equalizer prediction model;

[0039] The data acquisition module is used to set a sensor and a microphone at the location of the audio device where the equalizer parameters need to be generated; obtain the second sensor data of the current scene through the sensor, and obtain the second audio data in the current scene through the microphone;

[0040] The space recognition module is used to import the second sensor data into the space recognition model to obtain the third space data of the current scene;

[0041] The parameter generation module is used to import the second audio data into the equalizer prediction model together with the third spatial data after data normalization processing, obtain the prediction parameters of the equalizer, and modify the configuration parameters of the equalizer according to the prediction parameters.

[0042] The present invention provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned deep learning equalizer parameter automatic generation method.

[0043] The beneficial effects of the present invention are:

[0044] Scene data is collected through cameras and microphones to provide parameter basis for adaptive configuration. The configuration parameters of the equalizer are calculated through the trained intelligent model. It has low professional requirements for configuration personnel, fast configuration speed and stable configuration effect. DETAILED DESCRIPTION

[0045] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] The following is a first implementation of the present invention, which is used for equalizer configuration parameter work of audio equipment in indoor public scenes such as performance halls, academic lecture halls, and lecture halls.

[0047] The sensors / equipment required to be set up on site in this embodiment include cameras and microphones; the algorithm models include recurrent neural networks (RNNs) and convolutional neural networks (CNNs), and the Matlab R2023a software platform is used as the data analysis software; the equalizer parameter library includes parameters of 31-band equalizers, 15-band equalizers, 10-band equalizers and 5-band equalizers.

[0048] In this embodiment, a device equipped with a microphone and a camera is placed at the location where the audio equipment is placed in the scene, and data is collected through the camera and the microphone; the algorithm model analyzes and calculates the collected data to obtain the predicted parameters of the equalizer, and the on-site debugging personnel can accurately adjust the equalizer of the audio equipment according to the predicted parameters.

[0049] Through data collection from cameras and microphones, combined with convolutional neural networks and spectral feature extraction technology, parameter information of audio equipment can be extracted accurately and efficiently.

[0050] The specific deep learning equalizer parameter automatic generation method of this embodiment includes the following steps:

[0051] S1. Using a convolutional neural network, establish a first model for identifying scene spatial features based on data collected by a sensor;

[0052] S2, respectively setting sensors in a number of different scenes, collecting first sensor data of the scene through the sensors, and importing first spatial data of the scene at the same time, and storing the sensor data in pairs with the first spatial data of the same scene into a spatial data set after data normalization;

[0053] S3, using the spatial data set to train, verify and test the first model to obtain a spatial recognition model;

[0054] S4, establishing a second model for predicting equalizer parameters using a recurrent neural network;

[0055] S5. Collecting first audio data of several different scenes by setting microphones in several different scenes, and obtaining second spatial data of each scene corresponding to the first audio data and existing equalizer configuration data of the audio device;

[0056] S6, performing data normalization processing on all the first audio data, and storing each processed first audio data and its corresponding second spatial data and equalizer configuration data in a group into a fused data set;

[0057] S7. Train, verify and test the second model using the fused data set to obtain an equalizer prediction model;

[0058] S8. Setting a sensor and a microphone at a location where the audio equipment for which equalizer parameters need to be generated is located;

[0059] S9, obtaining second sensor data of the current scene through the sensor, and obtaining second audio data in the current scene through the microphone;

[0060] S10, importing the second sensor data into the space recognition model to obtain third space data of the current scene;

[0061] S11. After performing data normalization processing on the second audio data, the second audio data is imported into an equalizer prediction model together with the third spatial data to obtain prediction parameters of the equalizer, and the configuration parameters of the equalizer are modified according to the prediction parameters.

[0062] This embodiment can solve the configuration problem of the equalizer in different scenarios. Through the built-in intelligent algorithm and self-learning function, it can automatically adjust the parameters according to the environment and equipment of the venue, and the equalizer configuration work can be performed without the guidance of professionals. This means that anyone can use the method or device of this embodiment to adapt the audio system without relying on the experience and technical guidance of professionals, reducing the cost and workload of stage layout, improving configuration efficiency, and improving the stability of the equalizer configuration effect.

[0063] This embodiment also discloses a deep learning equalizer parameter automatic generation device, which specifically includes: a space recognition model training module, an equalizer prediction model training module, a data acquisition module, a space recognition module and a parameter generation module;

[0064] The spatial recognition model training module is used to use a convolutional neural network to establish a first model for identifying scene spatial features based on data collected by sensors; sensors are respectively set in a number of different scenes, first sensor data of the scene is collected by the sensors, and first spatial data of the scene is imported at the same time, and the sensor data is stored in pairs with the first spatial data of the same scene after data normalization processing; the first model is trained, verified and tested using the spatial data set to obtain a spatial recognition model;

[0065] The equalizer prediction model training module is used to establish a second model for predicting equalizer parameters using a recurrent neural network; by setting microphones in a number of different scenes, first audio data of a number of different scenes are collected, and second spatial data of the scene corresponding to each first audio data and existing equalizer configuration data of the audio equipment are obtained; all the first audio data are normalized, and each processed first audio data and its corresponding second spatial data and equalizer configuration data are stored in a fused data set in groups; the second model is trained, verified and tested using the fused data set to obtain an equalizer prediction model;

[0066] The data acquisition module is used to set a sensor and a microphone at the location of the audio device where the equalizer parameters need to be generated; obtain the second sensor data of the current scene through the sensor, and obtain the second audio data in the current scene through the microphone;

[0067] The space recognition module is used to import the second sensor data into the space recognition model to obtain the third space data of the current scene;

[0068] The parameter generation module is used to import the second audio data into the equalizer prediction model together with the third spatial data after data normalization processing, obtain the prediction parameters of the equalizer, and modify the configuration parameters of the equalizer according to the prediction parameters.

[0069] This embodiment uses a recurrent neural network as the main algorithm model to calculate and train the data after feature extraction, and realizes accurate prediction and optimization of audio equipment parameters. By establishing and using an equalizer library, the predicted parameters can be compared with the standard parameters to obtain the parameter difference, and guide the on-site debugging personnel to accurately adjust the audio equipment.

[0070] The following is a second implementation of the present invention, which is a specific application example of the first embodiment. In order to solve the overfitting problem that is commonly found in the application of existing machine learning algorithms, which is one of the common problems in machine learning, it occurs when the model performs well on the training set but performs poorly on new data. Overfitting is usually caused by the model learning the noise and details in the training set, while ignoring the general rules and potential patterns.

[0071] Overfitting can be caused by the model being too complex and adapting too much to the noise in the training set, or by the training set being too small and not providing enough representative data for the model to learn.

[0072] For different audio equipment and environments, the effects of feature extraction and training models may vary, resulting in certain limitations in the accuracy of prediction parameters. Secondly, the system's algorithm model requires a large amount of training data and computing resources, as well as continuous optimization and adjustment of the model, which may increase the development and maintenance costs of the system.

[0073] The parameters related to the image obtained by the camera in this embodiment mainly include the size and number of channels of the image. Image size refers to the width and height of the image, usually in pixels. The number of channels refers to the number of color channels that make up the image. For color images, the number of channels is usually 3, corresponding to the three colors of red, green and blue respectively. For grayscale images, the number of channels is 1. The processing here is mainly to make the collected image data adaptable to the pre-trained CNN model. Make certain features in the image more obvious and easier to be recognized by the model. CNN models usually require input images of fixed size and number of channels, so the collected images must be preprocessed, including resizing and normalization. Resizing is to make the image size consistent with the model input, and normalization is to make the pixel values ​​of the image within a uniform range, which is helpful for model training and prediction.

[0074] Some specific codes in this embodiment using the deep learning algorithm (convolutional neural network (CNN) to extract image features) are as follows:

[0075] % Preprocessing parameters

[0076] imageSize = [64 64]; % image size

[0077] numChannels=3;%Number of image channels

[0078] %Create image acquisition object

[0079] cam = webcam;

[0080] % Initialize the image storage array

[0081] imageData=zeros([imageSize numChannels]);

[0082] % Collect images and perform preprocessing and feature extraction

[0083] while true

[0084] % Collect image

[0085] img = snapshot(cam);

[0086] % Resize the image

[0087] img=imresize(img,imageSize);

[0088] % Normalize the image

[0089] img = double(img) / 255;

[0090] %Store the image into the image data array

[0091] imageData(:,:,:;,1)=img;

[0092] %Use CNN to extract features

[0093] features=cnnFeatureExtractor(imageData);

[0094] % Here you can use the features for subsequent processing

[0095] % Display image

[0096] imshow(img);

[0097] %Wait for any key on the keyboard to exit the loop

[0098] if waitforbuttonpress

[0099] break;

[0100] end

[0101] end

[0102] % Close the image acquisition object

[0103] clear cam;

[0104] %Custom function: CNN feature extractor

[0105] function features=cnnFeatureExtractor(imageData)

[0106] % Load the pre-trained CNN model

[0107] net=alexnet;

[0108] % Extract features

[0109] features=activations(net,imageData,'fc7','OutputAs','rows');

[0110] end

[0111] In this Matlab code, the preprocessing parameters are first defined, including the image size and the number of channels. Then, an image acquisition object cam (camera) is created, and an image storage array imageData (image data name) is initialized to store the acquired image data. In the loop, images are acquired from the camera through the snapshot function (get the image at the current time), and the images are preprocessed, including resizing and normalization. Then, the processed images are stored in the image data array, and the pre-trained CNN model is used to extract image features using a custom cnnFeatureExtractor function (the characteristics of the function depend on the CNN model, and VGG16, ResNet, and MobileNet are used in this embodiment). The characteristics of the CNN model are as follows:

[0112] 1.Convolutional Layers: Convolutional layers are used to extract spatial features from images;

[0113] 2.Pooling Layers: Pooling layers are used to reduce dimensionality and prevent overfitting;

[0114] 3.Fully Connected Layers: Fully connected layers are used for classification tasks, which maps the previous features to the target category;

[0115] 4.Activation Functions: Activation functions are used to increase the nonlinearity of the model;

[0116] 5.Dropout Layers: Dropout: layers are used to prevent overfitting;

[0117] 6.Batch Normalization Layers: Batch normalization layers are used to speed up training and prevent overfitting.

[0118] Finally, the processed image is displayed on the display interface and waits for the operator to press any key on the keyboard to exit the loop. After the loop ends, the image acquisition object cam (camera) is automatically closed.

[0119] More specifically, the image data processing method of this embodiment is as follows:

[0120] The camera collects the image data of the indoor environment, and then performs grayscale processing on the image data. Grayscale processing can convert color images into grayscale images, which can reduce the computational complexity and highlight the brightness information of the image while ignoring the color information. The pixel value of the grayscale image is between 0 (black) and 255 (white).

[0121] Then, the histogram of the grayscale image can be calculated to obtain the brightness distribution of the image. A histogram is a graph that represents the brightness distribution of an image, with the horizontal axis representing the brightness level and the vertical axis representing the number of pixels at the corresponding brightness level. Through the histogram, the brightness mean and brightness variance of the image can be obtained, and these two parameters can be regarded as the parameters of the equalizer.

[0122] Next, these parameters are normalized so that the parameter values ​​are within a certain range. Data normalization is a commonly used data preprocessing method that can eliminate the dimensionality effects between data, allowing fair comparisons between different parameters. Common methods of data normalization include maximum and minimum value normalization and Z-score normalization.

[0123] Finally, the image features are extracted by inputting the standardized parameters into the pre-trained CNN model. The model will extract features related to the target task (such as object recognition, scene classification, area, convexity, contour, etc.) from the grayscale image based on the standardized equalizer parameters. These features can be used for further image analysis and interpretation, so as to finally obtain the spatial data of the scene.

[0124] This embodiment uses a microphone to obtain audio-related parameters in the scene, pre-processes the data collected by the microphone, uses the Librosa library (audio and music signal analysis tool library) to extract audio feature parameters, and uses spectrogram, Mel spectrum features, Mel cepstral coefficients, and power spectrum density as feature parameter selection, where spectrogram: A spectrogram is a two-dimensional representation of an audio signal, where one axis is frequency and the other is time, and the color represents the intensity of the sound. A spectrogram can provide frequency and time information of a signal. Feature parameters: frequency range, decibel (dB) level.

[0125] Mel Spectrogram: Mel spectrum is a method of representing the audio spectrum, where the frequency scale is the Mel scale, which simulates the human ear's perception of pitch. It provides a graphical representation of audio characteristics. Feature parameters: Mel frequency range, decibel (dB) level. Mel Cepstral Coefficients (MFCCs): Mel Cepstral coefficients are a type of feature widely used in audio processing and speech recognition. They are obtained by applying discrete cosine transform (DCT) to the spectrum of an audio signal.

[0126] Feature parameters: Usually, we extract a certain number (such as 13 or 26) of MFCCs as features.

[0127] Power spectral density (PSD): Power spectral density is a function that represents the power distribution of a signal in the frequency domain. In audio signal processing, it can provide information about how the sound energy is distributed across different frequencies.

[0128] Characteristic parameters: frequency range, power level.

[0129] More Features:

[0130] 1. Pitch: Pitch is the fundamental frequency of an audio signal, which reflects the high or low pitch of the sound. The piptrack function in the Librosa library can be used to extract the pitch of the audio.

[0131] 2. Chroma: Chroma feature is a feature that maps audio signals to 12 different scales (i.e. 12 semitones). The chroma_stft function in the Librosa library can be used to extract chroma features.

[0132] 3. Zero Crossing Rate: The zero crossing rate is the number of times the audio signal changes from positive to negative or from negative to positive. The zero_crossings function in the Librosa library can be used to calculate the zero crossing rate.

[0133] 4. Harmonic Ratio: The harmonic ratio is the ratio of the harmonic energy to the total energy in the audio signal. It can be calculated using the harmonic function in the Librosa library.

[0134] 5. Loudness: Loudness is the loudness of a sound, which is usually related to the energy of the sound. The rmse function of the Librosa library can be used to calculate the root mean square energy of an audio signal as an estimate of the sound intensity.

[0135] 6. Sound texture: Sound texture is the statistical characteristics of an audio signal over a period of time. It can be described by calculating the statistics of the audio signal (such as mean, variance, skewness and kurtosis).

[0136] The following is part of the code for using Matlab to preprocess microphone data and extract audio feature parameters using the Librosa library (audio and music signal analysis tool library):

[0137] %Import Librosa library

[0138] addpath(genpath(librosa'));

[0139] Preprocessing parameters

[0140] sampleRate=44100;% sampling rate

[0141] frameSize=2048;% frame size

[0142] hopSize=512;% frame shift

[0143] %Create a microphone object

[0144] recorder=audiorecorder(sampleRate,16,1);

[0145] %Start recording

[0146] disp('Start recording...);

[0147] recordblocking(recorder,5); %Record 5 seconds of audio

[0148] Get recording data

[0149] audioData=getaudiodata(recorder);

[0150] % Normalize audio data

[0151] audioData=audioData / max(abs(audioData));

[0152] % Extract audio features

[0153] %Mel spectrum characteristics

[0154] melSpec=melSpectrogram(audioData,sampleRate,'Window',hamming(frameSize),'OverlapLength',frameSize-hopSize,'FFTLength',frameSize);

[0155] %Mel-frequency cepstral coefficients (MFCC)

[0156] mfcc=mfcc(audioData,sampleRate,'Window',hamming(frameSize),

[0157] 'OverlapLength',frameSize-hopSize,'FFTLength',frameSize,'NumCoeffs',13);

[0158] % Spectrogram

[0159] spectrogramData=abs(spectrogram(audioData,hamming(frameSize),

[0160] frameSize-hopSize,frameSize,sampleRate));

[0161] % Power Spectral Density

[0162] psd=pwelch(audioData,hamming(frameSize),

[0163] frameSize-hopSize,frameSize,sampleRate);

[0164] % Display audio characteristics

[0165] figure;

[0166] subplot(2,2,1);

[0167] imagesc(log(abs(melSpec)));

[0168] title('Mel spectrum characteristics');

[0169] colorbar;

[0170] subplot(2,2,2);

[0171] imagesc(mfcc);

[0172] title('MFCC');

[0173] colorbar;

[0174] subplot(2,2,3);

[0175] imagesc(log(abs(spectrogramData)));

[0176] title(spectrogram);

[0177] colorbar;

[0178] subplot(2,2,4);

[0179] plot(psd);

[0180] title("Power Spectral Density");

[0181] %Remove Librosa library path

[0182] rmpath(genpath('librosa'));

[0183] In this Matlab code, first the Librosa library is imported (in this example, by placing the Librosa library in a folder named "librosa"). Then, the preprocessing parameters are defined, including the sampling rate, frame size, and frame shift. Next, a microphone object recorder is created and the sampling rate and bit depth are set using the audiorecorder function. Then, 5 seconds of audio data are recorded using the recordblocking function (recordblocking(recObj, time); where recObj is the recording object and time is the maximum length of time for recording (in seconds)) and the recording data is obtained using the getaudiodata function. Next, the audio data is normalized. Then, the audio features are extracted using the Librosa library. Mel spectrum features are extracted using the melSpectrogram function, Mel frequency cepstral coefficients (MFCC) are extracted using the mfcc function, spectrograms are extracted using the spectrogram function, and power spectral density is extracted using the pwelch function. Finally, the extracted audio features are shown, including Mel spectrum features, MFCC, spectrogram, and power spectral density.

[0184] The code of the getaudiodata function (used to obtain audio data) in this embodiment is as follows:

[0185] %Import Librosa library

[0186] addpath('librosa');

[0187] %Define preprocessing parameters

[0188] fs=44100;% sampling rate

[0189] frameSize=1024;% frame size

[0190] hopSize=512;% frame shift

[0191] %Create a microphone object

[0192] recObj=audiorecorder(fs,16,1);

[0193] % Record 5 seconds of audio data

[0194] recordblocking(recObj,5);

[0195] %Get recording data

[0196] audioData=getaudiodata(recObj);

[0197] % Normalize audio data

[0198] audioData=audioData / max(abs(audioData));

[0199] % Extract audio features

[0200] %Here we use the sin function to generate a simple audio signal

[0201] t=0:1 / fs:5-1 / fs;%5 seconds

[0202] f=440;%440Hz frequency (A4 tone)

[0203] audioSignal = 0.5*sin(2*pi*f*t); % Generate audio signal

[0204] %Use melSpectrogram function to extract audio features

[0205] %Here we use the melSpectrogram function of the librosa library to extract audio features

[0206] %melSpectrogram function requires audio signal, sampling rate and other parameters as input

[0207] melSpectrogram=melSpectrogram(audioSignal,fs);

[0208] % Display audio characteristics

[0209] disp("Audio Features: ");

[0210] disp(melSpectrogram);

[0211] In the above code, a 440Hz sine wave is generated as an audio signal by using the built-in sin function of Matlab, and then the audio features are extracted by using the melSpectrogram function.

[0212] When collecting data for the fused data set, this embodiment first fuses the features of the audio and image. The fusion here can simply connect the features of the audio and image together, and use the aligned feature vectors and connected feature vectors to form a comprehensive feature vector. Prior to this, the merged data set needs to be labeled: because during the training process, a labeled data set is required, which contains audio, images, and corresponding equalizer parameters. The data set is obtained through manual annotation, and can also be obtained from existing data sources; such as asking audio engineers to manually set the equalizer for some music videos or set the equalizer for specific scenes, and then record the settings of the equalizer as labels.

[0213] The data set fusion code of this embodiment is as follows:

[0214] octave:1>% audio data

[0215] fs=44100;% sampling rate

[0216] duration=5;%Duration (seconds)

[0217] t=0:1 / fs:duration-1 / fs; % time vector

[0218] f=440;%440Hz frequency (A4 tone)

[0219] audioData = 0.5*sin(2*pi*f*t); % Generate audio data

[0220] % Generate image data

[0221] imageData = randn(100,100,3); % Generate a random 100x100 color image

[0222] %Generate equalizer parameters

[0223] equalizerParams = [20, 25, 31.5, 40, 50, 63, 80, 100, 125, 160, 200, 250, 315, 400, 500, 630, 800, 1000, 1250, 1600, 2000, 2500, 3150, 4000, 5000, 6300, 8000, 10000, 12500, 16000, 20000]; % equalizer parameter array

[0224] %Display audio, image and equalizer parameters

[0225] disp("Audio data: ");

[0226] disp(audioData);

[0227] disp("Image data: ");

[0228] disp(imageData);

[0229] disp("Equalizer parameters: ");

[0230] disp(equalizerParams);

[0231] Afterwards, in order to evaluate the performance of the model and perform model selection, the fused data set after feature fusion is divided into a training set, a validation set, and a test set. The following is the division method of this embodiment:

[0232] 1. Shuffle the fused data set: First, randomly shuffle the fused data set after feature fusion to ensure the randomness of the data;

[0233] 2. Division ratio: Determine the division ratio of the training set, validation set, and test set according to the needs;

[0234] 3. Divide the data set: Divide the shuffled fusion data set into training set, validation set and test set according to the division ratio; (This can be achieved using Matlab's data segmentation function;)

[0235] 4. Dataset balance: Ensure that the proportion of samples of each category in the divided data set is as consistent as possible to avoid the impact of data imbalance on model training and evaluation.

[0236] Usually, the common training set, validation set, and test set division ratio is 70% for training, 15% for validation, and 15% for testing, but it can be adjusted according to actual conditions;

[0237] The following is some code that shows how to use Matlab to divide the fused dataset into training, validation, and test sets:

[0238] % There is already a feature fused dataset, which contains feature vectors and corresponding labels.

[0239] % The feature fused dataset is stored in a file named "feature fused dataset.mat".

[0240] load('feature fusion dataset.mat');

[0241] % Shuffle the data set

[0242] rng(42); %Set the random number seed to ensure that the results are reproducible

[0243] shuffledData = datasample(feature fusion dataset, size(feature fusion dataset, 1), 'Replace', false);

[0244] % Division ratio

[0245] trainRatio=0.7;% training set ratio

[0246] valRatio=0.15;% validation set ratio

[0247] testRatio=0.15;% test set ratio

[0248] % Divide the dataset

[0249] [trainData, valData, testData] = splitDataset (shuffledData, trainRatio, valRatio, testRatio);

[0250] %Show the size of each data set

[0251] disp(['Training set size:',num2str(size(trainData,1))]);

[0252] disp(['Validation set size:',num2str(size(valData,1))]);

[0253] disp(['Test set size:',num2str(size(testData,1))]);

[0254] %Save the divided data set

[0255] save('divided data set.mat','trainData','valData','testData');

[0256] After the above data sets are classified, a deep learning model framework is constructed, that is, the main model of this embodiment - the recurrent neural network (RNN) model. The following is part of the code:

[0257] % The feature fused dataset has been divided into training set, validation set and test set, and loaded into the corresponding variables

[0258] import numpy as np

[0259] %Define the dimension of input features

[0260] input_dim=size(trainData,2)-1;

[0261] % Separate features and labels from the dataset

[0262] X_train=trainData(:,1:input_dim);

[0263] y_train = trainData(:,end);

[0264] % Define model

[0265] model = Sequential;

[0266] model.add(Dense(64,activation='relu',input_dim=input_dim));

[0267] model.add(Dense(1));

[0268] % Compile model

[0269] model.compile(loss='mean_squared_error',optimizer='adam');

[0270] %Train model

[0271] model.fit(X_train,y_train,epochs=100,batch_size=32,validation_data=(X_val,y_val));

[0272] % Use the model to make predictions

[0273] predictions=model.predict(X_test);

[0274] %Show prediction results

[0275] disp('Prediction result:');

[0276] disp(predictions);

[0277] In the above Matlab code, the fused dataset after feature fusion has been divided into training set, validation set and test set, and loaded into the corresponding variables. The dimension input_dim of the input feature is first defined, and then the feature X_train and label y_train are separated from the fused dataset. Next, a Sequential model is defined and two fully connected layers (Dense layers) are added. Then, the second model is compiled and trained with the training set data. After the training is completed, the test set data is predicted using the second model, and the results are saved in the predictions variable. Finally, the prediction results are displayed by using the disp function. Among them, the Sequential model is a model type commonly used in deep learning, which is a simple feedforward neural network model. In Matlab, you can use the deep learning toolbox to build a deep learning model.

[0278] 1. First, import or generate a dataset containing training data and labels.

[0279] 2. Next, use the commands in the Deep Learning Toolbox to build the model. Use command-line functions to define and configure layers, or use the Network Designer app to visually build the model.

[0280] Below is a partial code for building a simple feedforward neural network using command line functions:

[0281] %Create a feedforward neural network

[0282] net = feedforwardnet(10); % Create a feedforward neural network with 10 neurons

[0283] % Use data to train the network

[0284] net=train(net,X_train,y_train); %X_train is the input feature, y_train is the label

[0285] % Use the trained network to make predictions

[0286] predictions = net(X_test); %X_test is the input feature of the test set

[0287] %Show prediction results

[0288] disp(predictions);

[0289] A feedforward neural network with 10 neurons is created by using the feedforwardnet function (feedforward network). The network is then trained by using the training data (X_train and y_train) and the trained network is used to predict the test set data (X_test). Finally, the prediction results are displayed by using the disp function. Finally, by observing the loss function and other evaluation metrics on the test set, you can get an intuitive understanding of the model performance. If the loss function on the test set is relatively high, it means that the model performs poorly on unseen data and may have underfitting or overfitting problems. The model architecture, hyperparameters, etc. can be adjusted based on the performance on the test set to improve performance. However, relying solely on the loss function on the test set for adjustment may cause the model to overfit on the test set. In order to better evaluate the performance and generalization ability of the model, cross-validation, adjusting the learning rate, regularization and other techniques can be used for model tuning and selection.

[0290] In summary, when building a deep learning model, you should use the training set for model training and the validation set for model selection and parameter adjustment. Finally, use an independent test set to evaluate the performance of the model and make appropriate adjustments and improvements based on the performance on the test set.

[0291] Finally, the training data of this embodiment is compared with the standard parameters: the parameters of the test set are compared with the standard 31-segment parameters, and the performance of the model is evaluated. The following is part of the code using Matlab to show how to compare and evaluate the model performance:

[0292] % The prediction results of the model have been obtained predictions and the actual response variable testData.ResponseVariable of the test set

[0293] % The standard 31-segment parameters are an array of 31 parameters, standardParams, which can be compared with the predicted parameters generated by the model

[0294] standardParams=[standard_param1,standard_param2,...,standard_param31);

[0295] % Organize the standard 31 parameters into an array

[0296] predictedParams = predictions(1,:); % Assume that the predicted parameters are the parameters of the first sample

[0297] % Calculate the difference between parameters

[0298] paramsDifference=predictedParams-standardParams;

[0299] % Display results

[0300] disp('Prediction parameters:');

[0301] disp(predictedParams);

[0302] disp('Standard parameters:');

[0303] disp(standardParams);

[0304] disp('Parameter difference:');

[0305] disp(paramsDifference);

[0306] In this Matlab code, the standard 31-segment parameters are an array standardParam containing 31 parameters (data: standardParam = [20, 25, 31.5, 40, 50, 63, 80, 100, 125, 160, 200, 250, 315, 400, 500, 630, 800, 1000, 1250, 1600, 2000, 2500, 3150, 4000, 5000, 6300, 8000, 10000, 12500, 16000, 20000]). Then, the parameters of the first sample are selected from the prediction results as predictedParams (predicted parameters); then, the difference between the predicted parameters and the standard parameters is calculated and saved as the paramsDifference array (parameter difference); finally, the predicted parameters, standard parameters and parameter differences are displayed by using the disp function.

[0307] Among them, the disp function is a function used in Matlab to display variable values ​​or text information. It can output the value of a variable or a string to the command window or script. When using the disp function, it will automatically add spaces before and after the output variable value or text information, and add a line break at the end to make the output easier to read. The disp function is usually used for debugging and result display purposes.

[0308] The 31-band equalizer parameter library data of this embodiment: The 31-band equalizer is an equalizer that divides the audio signal into 31 frequency bands and adjusts the gain of each frequency band. The following are the parameters of the 31-band equalizer in the equalizer library:

[0309] 1. Type: Parametric EQ (parametric equalizer)

[0310] Parametric, low-shelf, and high-shelf refer to the types of filters. Parametric filters are digital filters based on analog filter design, which are characterized by fixed phase response and linear phase. Low-shelf filters and high-shelf filters are filters based on FIR (finite impulse response) design. The coefficients of low-shelf filters change with the input signal, while the coefficients of high-shelf filters are fixed.

[0311] 2. Frequency range: [20,25,31.5,40,50,63,80,100,125,160,200,250,315,400,500,630,800,1000,1250,1600,2000,2500,3150,4000,5000,6300,8000,10000,12500,16000,20000] Hz;

[0312] 3. Gain range: usually -12dB to +12dB;

[0313] 4.Q value: determines the bandwidth of each frequency band. The larger the Q value, the narrower the bandwidth, and the smaller the Q value, the wider the bandwidth.

[0314] This embodiment uses a camera to collect scene environment data, and a microphone to collect data generated by the audio equipment of the scene, and extracts features through convolutional neural network (CNN) and spectrogram, Mel spectrum features, Mel cepstral coefficients, and power spectrum density. The extracted data is then divided into a training set, a validation set, and a test set, and the recurrent neural network (RNN) main algorithm model is imported for calculation to obtain training data. Then, the training data is compared with the standard 31-band equalizer parameters in the equalizer library to obtain predicted parameters, standard parameters, and parameter differences. According to the obtained parameters, the scene debugger can accurately adjust the equalizer of the audio equipment. Reduce the time and workload of manual debugging, and improve the accuracy and efficiency of debugging. It is possible to predict and optimize the parameters of the audio equipment, improve the performance of the audio equipment and user experience.

[0315] In addition, in some embodiments, in order to increase the stability and prediction accuracy of the model, an overfitting processing method is also required. When overfitting occurs on the test set, cross-validation, adjustment of learning rate and regularization techniques are used to improve the performance of the model. The following are some sample codes showing how to use cross-validation, adjustment of learning rate and regularization.

[0316] The following are some examples of cross-validation procedures:

[0317] %Define the number of cross validation folds

[0318] k = 5;

[0319] % Divide the training set into k folds

[0320] cv_indices=crossvalind('Kfold,size(X_train,1),k);

[0321] %Define an empty array to store the training error and validation error of each fold

[0322] train_errors = zeros(k, 1);

[0323] val_errors = zeros(k, 1);

[0324] % Perform cross validation

[0325] for fold=1:k

[0326] %Get the training set and validation set of the current fold

[0327] X_train_cv=X_train(cv_indices~=fold,:);

[0328] y_train_cv=y_train(cv_indices~=fold,:);

[0329] X_val_cv=X_train(cv_indices==fold,:);

[0330] y_val_cv=y_train(cv_indices==fold,:);

[0331] % Define model

[0332] model = Sequential;

[0333] model.add(Dense(64,activation='relu',input_dim=input_dim));

[0334] model.add(Dense(1));

[0335] % Compile model

[0336] model.compile(loss='mean_squared_error',optimizer='adam');

[0337] %Train model

[0338] model.fit(X_train_cv,y_train_cv,epochs=100,batch_size=32,validation_data=(X_val_cv,y_val_cv));

[0339] % Calculate the training error and validation error of the current fold

[0340] train errors(fold)=model.evaluate(X_train_cv,y_train_cv);

[0341] val_errors(fold)=model.evaluate(X_val_cv,y_val_cv);

[0342] end

[0343] %Show the training error and validation error for each fold

[0344] disp('Training error per fold:');

[0345] disp(train_errors);

[0346] disp('Validation error per fold:');

[0347] disp(val_errors);

[0348] Below are some examples of procedures for adjusting the learning rate:

[0349] %Define the initial learning rate

[0350] initial_learning_rate=0.001;

[0351] %Define the learning rate decay factor

[0352] decay_factor=0.1;

[0353] %Define the number of steps for learning rate decay in each epoch

[0354] decay_steps=10;

[0355] %Define a custom learning rate decay function

[0356] learning_rate_schedule=@(epoch)initial_learning_rate*decay_factor^(floor(epoch / decay_steps));

[0357] % Define model

[0358] model = Sequential;

[0359] model.add(Dense(64,activation='relu',input_dim=input_dim));

[0360] model.add(Dense(1));

[0361] % Compile the model and use a custom learning rate decay function

[0362] model.compile(loss='mean_squared_error',optimizer=adam(learning_rate_schedule));

[0363] The following are some examples of regularization procedures:

[0364] %Define regularization parameters

[0365] lambda = 0.01;

[0366] % Define model

[0367] model = Sequential;

[0368] model.add(Dense(64,activation='relu',input_dim=input_dim,kernel_regularizer=I2(lambda)));

[0369] model.add(Dense(1));

[0370] % Compile model

[0371] model.compile(loss='mean_squared_error',optimizer='adam');

[0372] In the above example, the dataset after feature fusion is divided into training set and test set and loaded into the corresponding variables. For cross validation, the crossvalind function (cross validation) is used to divide the training set into k folds, and then the for loop is used to train and validate the model in sequence. In the learning rate adjustment sample code, the initial learning rate, learning rate decay factor and number of steps for learning rate decay per epoch are defined, and a custom function is used to adjust the learning rate. The custom function learning rate is shown in the following code:

[0373] function adjusted_learning_rate=adjust_learning_rate(initial_learning_rate,decay_factor,epoch,decay_steps)

[0374] adjusted_learning_rate=initial_learning_rate*decay_factor^(floor(epoch / decay_steps));

[0375] end

[0376] In this example, adjust_learning_rate is a custom function that accepts the initial learning rate initial_learning_rate, the learning rate decay factor decay_factor, the current epoch, and the number of steps of learning rate decay decay_steps as input parameters, and then calculates and returns the adjusted learning rate adjusted_learning_rate.

[0377] In addition, the stability of the model can be further increased by the following methods:

[0378] 1. Increase the amount of data: By adding more training data, the risk of overfitting can be reduced; more data can provide more samples to generalize the model and reduce over-reliance on the training set;

[0379] 2. Use data enhancement technology: Data enhancement is to generate more samples by randomly transforming the samples in the training set; for example, operations such as translation, rotation, and scaling of image data can generate more diverse training samples, thereby reducing overfitting;

[0380] 3. Use a more complex model: Overfitting is sometimes caused by insufficient model capacity to learn complex patterns. You can try to increase the depth, width, or complexity of the model to improve its expressiveness.

[0381] 4. Stop training early: By monitoring the performance on the validation set during training and stopping training when the performance stops improving, you can prevent the model from overfitting on the training set. This requires setting a suitable stopping criterion, such as when the validation set performance does not improve for several consecutive epochs or when the validation set performance starts to decline.

[0382] 5. Use ensemble methods: By combining the prediction results of multiple models, the risk of overfitting can be reduced; ensemble methods such as bagging and boosting can be used to reduce the variance of the model and improve generalization ability;

[0383] 6. Dropout regularization: Dropout is a commonly used regularization method that reduces the complexity of the neural network by randomly setting the output of some neurons to 0 during training; this can force the model to learn more robust features, reduce the dependency between neurons, and thus reduce the risk of overfitting.

[0384] After the device is placed at the designated audio equipment location and starts running, the system will collect data through the camera and microphone. Then, the data is feature extracted using convolutional neural network CNN and tools such as spectrogram, Mel spectrum features, Mel cepstral coefficients, power spectrum density, etc. The extracted mixed data will be divided into training set (70%), validation set (15%) and test set (15%).

[0385] Then, this data will be imported into the main algorithm model recurrent neural network (RNN) for calculation. During the periodic training process, the model will be run on the validation set to observe the validation results. If the model performs poorly on the validation set, it may be necessary to adjust the model parameters or change the model structure. At the same time, the model will be monitored for overfitting. If necessary, measures such as adding regularization terms and using dropout (regularization) may be needed to avoid overfitting. In addition to viewing the value of the validation function, the learning process of the model can also be visually observed by drawing a learning curve (that is, a graph of the change in the error rate or the value of the validation function on the training set and validation set as the number of training rounds increases).

[0386] Once the model performs satisfactorily on the validation set, the final performance of the model is evaluated by running it on the test set, which can be regarded as the expected performance of the model in the actual environment.

[0387] Finally, by comparing the training data with the standard parameters in the equalizer library, the predicted parameters, standard parameters and parameter differences are obtained, and the on-site debugging personnel can accurately adjust the audio equipment according to the obtained parameters. This whole process ensures that the audio equipment can achieve the best audio effect in a specific environment.

[0388] As the third implementation of the present invention, the difference between this embodiment and the first embodiment is that the sensor of this embodiment adopts one of the sensors such as depth camera, depth of field radar, accelerometer, infrared camera, temperature sensor, lidar, etc. that can directly or indirectly collect spatial data, or any combination thereof, and automatically acquires the spatial data of the scene by combining the parameters obtained by the sensor with machine vision, frequency domain analysis and / or deep learning algorithms to provide data reference for the calibration of the equalizer.

[0389] As the fourth implementation of the present invention, the difference between this embodiment and the first embodiment is that this embodiment replaces the recurrent neural network model with a support vector machine model, a random forest model or a convolutional neural network model or any combination thereof to achieve prediction and optimization of equalizer parameters.

[0390] The present invention also discloses a terminal device, including a processor and a storage device, the storage device is used to store one or more programs; when one or more programs are executed by the processor, the processor implements the above-mentioned deep learning equalizer parameter automatic generation method. The processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The processor is the control center of the test equipment, and various interfaces and lines are used to connect the various parts of the entire test equipment.

[0391] The storage device can be used to store computer programs and / or modules. The processor realizes various functions of the terminal device by running or executing the computer programs and / or modules stored in the storage device and calling the data stored in the storage device. The storage device can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the terminal device, etc. In addition, the storage device can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0392] Among them, if the module / unit integrated in the deep learning equalizer parameter automatic generation device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in at least one computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0393] It should be noted that the embodiments of the devices and apparatuses described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

Claims

1. A deep learning equalizer parameter automatic generation method, which is used to automatically generate equalizer parameters according to the scene where the audio device is located and the recording data of the audio played by the audio device, characterized in that: The steps include: Establishing a first model for identifying spatial features of a scene based on data collected by the sensor using a convolutional neural network; Sensors are respectively set in several different scenes, and first sensor data of the scene is collected through the sensors, and first spatial data of the scene is imported at the same time, and the sensor data is stored in pairs with the first spatial data of the same scene after data normalization processing; Using the spatial data set to train, verify and test the first model, to obtain a spatial recognition model; establishing a second model for predicting equalizer parameters using a recurrent neural network; By setting microphones in several different scenes, first audio data of several different scenes are collected, and second spatial data of the scene corresponding to each first audio data and existing equalizer configuration data of the audio equipment are obtained; Performing data normalization processing on all first audio data, and storing each processed first audio data and its corresponding second spatial data and equalizer configuration data in a group into a fusion data set; Using the fused data set to train, verify and test the second model, to obtain an equalizer prediction model; Set up sensors and microphones at the location of the audio equipment where equalizer parameters need to be generated; Acquire second sensor data of the current scene through the sensor, and acquire second audio data in the current scene through the microphone; Importing the second sensor data into the space recognition model to obtain third space data of the current scene; After data normalization processing is performed on the second audio data, the second audio data is imported into the equalizer prediction model together with the third spatial data to obtain prediction parameters of the equalizer, and the configuration parameters of the equalizer are modified according to the prediction parameters.

2. The method for automatically generating equalizer parameters by deep learning according to claim 1, characterized in that: The method of using the fusion data set to train, verify and test the second model to obtain the equalizer prediction model also includes the following steps: Randomly shuffle the data in the feature fusion dataset into groups; Each data group in the fusion data set is divided into several different categories of samples based on the classification algorithm; Determine the division ratio of training set, validation set and test set to 70%:15%:15%; According to the division ratio, the shuffled fusion data set is divided into training set, validation set and test set, and the sample ratios of each category in the training set, validation set and test set are the same.

3. The method for automatically generating equalizer parameters by deep learning according to claim 1, characterized in that: The method of modifying the configuration parameters of the equalizer according to the prediction parameters also includes the following steps: Establishing an equalizer parameter library, and recording therein commonly used equalizer standard parameters; wherein the commonly used equalizer standard parameters include 31-band equalizer commonly used parameters, 15-band equalizer commonly used parameters, 10-band equalizer commonly used parameters and 5-band equalizer commonly used parameters; Compare the predicted parameters with the parameter differences in the corresponding equalizer parameter library, and modify the configuration parameters of the equalizer based on the parameter differences.

4. The method for automatically generating equalizer parameters by deep learning according to claim 1, characterized in that: The method of modifying the configuration parameters of the equalizer according to the prediction parameters also includes the following steps: The parameter difference between the predicted parameter and the existing equalizer configuration parameter of the audio device is calculated by using one of a fuzzy logic algorithm and a genetic algorithm, and the configuration parameter of the equalizer is modified according to the parameter difference.

5. The method for automatically generating equalizer parameters by deep learning according to claim 1, characterized in that: The first spatial data includes object recognition data, scene classification data, scene area data, spatial concave-convex data and contour recognition data.

6. The method for automatically generating equalizer parameters by deep learning according to claim 1, characterized in that: The sensor is a camera, and the first sensor data is first video data; the method for performing data normalization processing on the sensor data specifically includes the following steps: Converting a plurality of frames of the first video data into grayscale images, resizing the plurality of grayscale images, and normalizing the images to obtain second video data; The histogram of the image in the second video data is calculated, and the brightness mean and brightness variance of the image are obtained through the histogram, and the output is the normalization processing result of the sensor data.

7. The method for automatically generating equalizer parameters by deep learning according to claim 6, characterized in that: The image normalization method is one of maximum and minimum value normalization and Z-score normalization.

8. The method for automatically generating equalizer parameters by deep learning according to claim 1, characterized in that: The method is implemented by setting microphones in several different scenes, collecting first audio data of several different scenes, and obtaining second spatial data of each scene corresponding to the first audio data and existing equalizer configuration data of the audio device, and the steps are as follows: By setting microphones and sensors at the locations of audio equipment in several different scenarios; Collecting several groups of first audio data and third sensor data of different scenes, and obtaining existing equalizer configuration data of corresponding audio equipment, Each third sensor data is respectively imported into the space recognition model to obtain the second space data of the audio device.

9. A deep learning equalizer parameter automatic generation device, characterized in that: include: Spatial recognition model training module, equalizer prediction model training module, data acquisition module, spatial recognition module and parameter generation module; The spatial recognition model training module is used to establish a first model for identifying scene spatial features based on data collected by sensors using a convolutional neural network; sensors are respectively set in a number of different scenes, first sensor data of the scene is collected by the sensors, and first spatial data of the scene is imported at the same time, and the sensor data is stored in pairs with the first spatial data of the same scene after data normalization processing; Using the spatial data set to train, verify and test the first model, to obtain a spatial recognition model; The equalizer prediction model training module is used to establish a second model for predicting equalizer parameters using a recurrent neural network; by setting microphones in a number of different scenes, first audio data of a number of different scenes are collected, and second spatial data of the scene corresponding to each first audio data and existing equalizer configuration data of the audio equipment are obtained; all the first audio data are normalized, and each processed first audio data and its corresponding second spatial data and equalizer configuration data are stored in a fused data set in groups; the second model is trained, verified and tested using the fused data set to obtain an equalizer prediction model; The data acquisition module is used to set a sensor and a microphone at the location of the audio device where the equalizer parameters need to be generated; obtain the second sensor data of the current scene through the sensor, and obtain the second audio data in the current scene through the microphone; The space recognition module is used to import the second sensor data into the space recognition model to obtain the third space data of the current scene; The parameter generation module is used to import the second audio data into the equalizer prediction model together with the third spatial data after data normalization processing, obtain the prediction parameters of the equalizer, and modify the configuration parameters of the equalizer according to the prediction parameters.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the deep learning equalizer parameter automatic generation method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and device for improving the prediction performance of a depth learning network, and a storage medium

    CN109376615A

  • Method, device and equipment for adjusting equalizer and computer readable storage medium

    CN112967732A

  • Signal equalization method, equipment and device based on multistage neural network, and storage medium

    CN115695096A

  • Adaptive adjustment method for equalizer and related equipment

    CN117369765A