A method and device for neural network noise source classification based on model fusion
Through model fusion technology, the problems of poor generalization and unbalanced accuracy of noise classification models are solved, and higher accuracy and stability of noise source classification are achieved.
Patent Information
- Application Number
- CN202411061286.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-05
AI Technical Summary
The existing noise classification model has poor generalization during training, low recognition stability and unbalanced accuracy of various categories, resulting in poor noise source classification effect.
Using a neural network method based on model fusion, the convolutional neural network model is trained and tested multiple rounds by constructing a training set of multiple categories of noise sources, filtering out multiple weights and models, and then using model fusion technology to sum the weights Average, a fusion model is obtained for noise source classification.
The weights in the loss function are adjusted through iterative training, the accuracy of each category is balanced, and the generalization and robustness of the final model are improved through model fusion, and the accuracy and stability of noise source classification are improved.
Smart Images

Figure CN118585924B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of noise classification, and in particular to a method and device for neural network noise source classification based on model fusion. Background Art
[0002] In recent years, with the rapid development of industrial technology and the improvement of people's living standards, there are more and more types of noise sources in life, including living noise, environmental noise, industrial noise, etc. There are more and more conflicts and disputes caused by noise pollution. With the improvement of people's quality of life, people pay more and more attention to the impact of environmental noise, and there are more and more legal rights protection events related to noise. Therefore, under the background of the promulgation of the new noise law, the classification of noise sources has also become an important issue faced by many regulatory departments.
[0003] Noise source classification refers to identifying the category to which the noise source belongs. Currently, there are two implementation methods: based on traditional algorithms and neural network algorithms. Traditional noise source classification algorithms manually extract audio features and then classify them based on the differences between their features. There are problems such as difficulty in improving classification accuracy and relatively single noise source classification categories. At present, methods based on neural network algorithms are generally limited by the small number of training samples, resulting in poor model accuracy, weak robustness and generalization, and the number of parameters and the amount of calculation in actual use of the model are too large.
[0004] The Chinese patent with publication number CN115358718A discloses a noise pollution classification and real-time supervision method based on an intelligent monitoring front end, including: step 1: real-time monitoring; step 2: data processing; step 3: voiceprint recognition; step 4: noise data review; step 5: noise event summary; step 6: noise event alarm; step 7: noise event processing; step 8: noise event archiving. The present invention applies AI voiceprint recognition technology and Internet of Things technology to noise supervision, scientifically classifies noise pollution, links noise exceeding standard alarms and operation and maintenance management, and realizes real-time supervision and tracking processing. While realizing the refinement of noise pollution classification, it is divided into five categories: living noise, traffic noise, industrial noise, construction noise, and natural noise to ensure effective and timely supervision; noise pollution events are linked to noise exceeding standard alarms and operation and maintenance management to realize real-time supervision and tracking processing.
[0005] The Chinese patent with publication number CN114861784A discloses a method, device and medium for environmental sound classification and analysis based on transfer learning, wherein the method includes: using the Yamnet model to extract features from environmental sound samples, obtaining noise and embedding the noise into the sound features of the sequence of each environmental sound sample to obtain a feature vector; using a deep convolutional neural network to perform deep feature extraction on the feature vector to obtain the deep embedded features of each environmental sound sample; inputting the deep embedded features into the fully connected layer of the deep convolutional neural network to train and test the model, outputting the predicted probability of each sequence of the environmental sound sample, and using the majority voting method to obtain the final environmental sound classification result. This application will provide a convenient channel for saving R&D resources and transferring the results of big data machine learning to small data, customized applications, etc., and has broad application prospects and huge practical value.
[0006] At present, there are many types of environmental noise in nature and noise generated by people in their daily lives, up to dozens or even hundreds. Among the various noises, there are noises with characteristics that are obviously different from other noises, such as whistles; there are also very similar sounds, such as the sound of airplanes and the sound of engineering vehicles from far to near, which leads to the poor generalization of the above patent in model training, low recognition stability and uneven accuracy of each category. Summary of the invention
[0007] The purpose of this application is to overcome the problems of poor generalization, low recognition stability and uneven accuracy of each category in the existing noise classification model training, and to provide a method and device for neural network noise source classification based on model fusion.
[0008] In a first aspect, a method for neural network noise source classification based on model fusion is provided, comprising:
[0009] Construct a training set containing multiple categories of noise sources;
[0010] Using the training set to perform multiple rounds of training and testing on the convolutional neural network model to screen out at least two weights and corresponding models;
[0011] The selected models are weighted and averaged using model fusion technology to obtain a fusion model;
[0012] The fusion model is used to classify noise sources.
[0013] In some possible implementations, a training set containing multiple categories of noise sources is constructed, including:
[0014] Collect a labeled dataset containing multiple categories of noise sources;
[0015] The labeled data set is preprocessed and standardized to obtain a training set.
[0016] In some possible implementations, the convolutional neural network model is trained and tested multiple times using the training set to screen out at least two weights and corresponding models, including:
[0017] S201, perform the first round of model training. In the first round of model training, set the initial learning rate to 0.01, adopt the cosine annealing method, the lower limit learning rate to 0.00001, the weight ratio of each category in the loss function is 1, test the accuracy of all categories, and record the category labels whose accuracy is lower than the preset value;
[0018] S202, calculating the weight of the corresponding category label in the loss function according to the category label whose accuracy is lower than the preset value and the recognition rate, and if the accuracy of the category label differs from the preset value by 5%, the weight of the category label in the loss function is increased to twice the original weight;
[0019] S203, load the weights in the previous round of model training, and add the weights corresponding to the corresponding category labels calculated in step S202 to the loss function, set the initial learning rate to 0.001, use cosine annealing, and the lower limit learning rate to 0.00001, perform the next round of training, test the accuracy of all categories, and record the category labels whose accuracy is lower than the preset value again;
[0020] S204, repeat step S202 and step S203 to perform N trainings, and record the top M weights of the overall recognition rate, where N>M, M≥2.
[0021] In some possible implementations, if the accuracy of the category label differs from the preset value by less than 5%, it is processed as 5%.
[0022] In some possible implementations, the convolutional neural network model includes, in sequence: a two-dimensional Conv layer, a feature extraction module, a two-dimensional DepthwiseConv layer, a Mean pooling layer, a two-dimensional Conv layer, a pooling layer, a Reshape layer, a two-dimensional Conv layer and a Softmax layer, wherein the feature extraction module includes 4 TransitionBlock blocks and 12 NormalBlock blocks.
[0023] In a second aspect, a device for neural network noise source classification based on model fusion is provided, comprising:
[0024] A construction module is used to construct a training set containing multiple categories of noise sources;
[0025] A training module, used to perform multiple rounds of training and testing on the convolutional neural network model using the training set to screen out at least two weights and corresponding models;
[0026] A fusion module is used to sum and average the weights of the selected models using model fusion technology to obtain a fusion model;
[0027] A classification module is used to classify noise sources using the fusion model.
[0028] In some possible implementations, the training module includes:
[0029] The initial training submodule is used to conduct the first round of model training. In the first round of model training, the initial learning rate is set to 0.01, the cosine annealing method is used, the lower limit learning rate is 0.00001, the weight ratio of each category in the loss function is 1, the accuracy of all categories is tested, and the category labels with accuracy lower than the preset value are recorded;
[0030] A calculation submodule, used to calculate the weight of the corresponding category label in the loss function according to the category label with an accuracy lower than a preset value and the recognition rate, and if the accuracy of the category label differs from the preset value by 5%, the weight of the category label in the loss function is increased to twice the original weight;
[0031] The round training submodule is used to load the weights in the previous round of model training, and add the weights corresponding to the corresponding category labels calculated in step S202 to the loss function, set the initial learning rate to 0.001, use cosine annealing, and the lower limit learning rate to 0.00001, conduct the next round of training, test the accuracy of all categories, and record the category labels whose accuracy is lower than the preset value again;
[0032] The loop submodule is used to repeatedly execute the calculation submodule and the round-robin training submodule to perform N trainings, and record the top M weights of the overall recognition rate, where N>M and M≥2.
[0033] In a third aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method described in the first aspect.
[0034] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable medium stores a program code for execution by a device, wherein the program code includes steps for executing the method in any one of the implementations of the first aspect described above.
[0035] In a fifth aspect, an electronic device is provided, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements a method as in any one of the implementations in the first aspect above.
[0036] The present application has the following beneficial effects: through iterative training of the model, the present application specifically adjusts the weights of the more difficult-to-train categories in the loss function to balance the category recognition accuracy, and then through model fusion technology, further balances the accuracy of each category and improves the generalization and robustness of the final fusion model. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application.
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0039] Figure 1 is a flow chart of the method for neural network noise source classification based on model fusion in Example 1 of the present application;
[0040] Figure 2 It is a structural diagram of a convolutional neural network model in the method for neural network noise source classification based on model fusion in Example 1 of the present application;
[0041] Figure 3 It is a structural diagram of the TransitionBlock block in the method for neural network noise source classification based on model fusion in Example 1 of the present application;
[0042] Figure 4 This is a structural diagram of the NormalBlock block in the method for neural network noise source classification based on model fusion in Example 1 of the present application.
[0043] Figure 5 It is a structural block diagram of a device for neural network noise source classification based on model fusion according to Example 2 of the present application;
[0044] Figure 6 It is a schematic diagram of the internal structure of the electronic device of Example 5 of the present application.
[0045] Reference numerals:
[0046] 100, construction module; 200, training module; 201, initial training submodule; 202, calculation submodule; 203, rotation training submodule; 204, loop submodule; 300, fusion module; 400, classification module. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.
[0048] Example 1
[0049] A method for classifying neural network noise sources based on model fusion involved in Example 1 of the present application includes: constructing a training set containing multiple categories of noise sources; using the training set to perform multiple rounds of training and testing on a convolutional neural network model to screen out at least two weights and corresponding models; using the model fusion technology to sum and average the weights of the screened models to obtain a fusion model; using the fusion model to classify noise sources, this method uses iterative model training to specifically adjust the weights of categories that are more difficult to train in the loss function to balance the category recognition accuracy, and then uses the model fusion technology to further balance the accuracy of each category, and improves the generalization and robustness of the final fusion model.
[0050] Specifically, Figure 1 A flow chart of the method for neural network noise source classification based on model fusion in application embodiment 1 is shown, including:
[0051] S100, construct a training set containing multiple categories of noise sources;
[0052] As is known to all, the more categories of noise classification models based on neural networks, the more difficult it is to balance the recognition results of each type of noise, and the generalization performance of the model is difficult to improve, resulting in the problem of low overall recognition rate. In this embodiment, a training set containing multiple types of noise sources is first constructed, specifically including:
[0053] Collect a labeled data set containing multiple types of noise sources, where the labeled data set contains various types of noise, such as: bird calls, cicada chirps, frog calls, insect chirps, wind sounds, rain sounds, thunder sounds, electric hammers, electric drills, electric saws, airplane noises, etc. This embodiment aims to achieve optimal recognition results for all types of noise and high model robustness;
[0054] The labeled data set is preprocessed and standardized to obtain a training set containing different types of noises such as bird calls, cicada chirps, frog calls, insect chirps, wind sounds, rain sounds, thunder sounds, electric hammers, electric drills, electric saws, airplanes, etc.
[0055] S200, using the training set to perform multiple rounds of training and testing on the convolutional neural network model to screen out at least two weights and corresponding models, specifically including the following steps:
[0056] S201, conduct the first round of model training. In the first round of model training, set the initial learning rate to 0.01. Setting the initial learning rate to 0.01 can speed up model training and prevent falling into the local optimum in the early stage of model training. Use cosine annealing with a lower limit learning rate of 0.00001 to prevent the learning rate from being too low and having no effect. The weight ratio of each category in the loss function is 1. The purpose is to make the results of this round of training show the recognition status under the weight balance of each category loss function, so as to facilitate the subsequent training to adjust the weight and test the accuracy of all categories. Rate, for example: accuracy rate is: {1: 90%, 2: 98%, 3: 83%; 4: 96%; 5: 99%; 6: 99%, ...}, record the category labels whose accuracy rate is lower than the preset value p, where the preset value p can be determined according to the average recognition rate of each category, or according to the specific recognition rate requirement, or can be dynamically adjusted accordingly. In this embodiment, p ≥ 80%, because the recognition rate is lower than 80%, which is very poor, and the model should be replaced or retrained. The recording format of the category label is: {1: 90%, 3: 80%, ...};
[0057] S202, according to the category label with accuracy lower than the preset value and the recognition rate, the weight of the corresponding category label in the loss function is calculated. If the accuracy of the category label differs from the preset value by 5% (if the accuracy of the category label differs from the preset value by less than 5%, it is calculated as 5%), the weight of the category label in the loss function is increased to twice the original weight. Because, according to the rule of doubling the weight every 5%, the model obtained by training is relatively stable and will not fluctuate greatly. The accuracy of the category with a recognition rate lower than 95% in the previous round of training can be improved under the premise of ensuring that the recognition rate of the category with a recognition rate higher than 95% in the previous round of training does not decrease, for example: the weight of the corresponding label loss function , if p=95%, for label 1, the weight in the loss function is , for label 3, the weight in its loss function is ;
[0058] S203, load the weights in the previous round of model training, and add the weights corresponding to the corresponding category labels calculated in step S202 to the loss function, set the initial learning rate to 0.001, because the training is carried out on the premise of the weights of the previous round of training, the learning rate should not be too high, and setting it to 0.001 will not greatly change the model weights, and can speed up the training while balancing the number rates of different categories. The cosine annealing method is adopted, and the lower limit learning rate is 0.00001 to prevent the learning rate from being too low and having no effect. Carry out the next round of training, test the accuracy of all categories, and record the category labels whose accuracy is lower than the preset value again. The recording format of the category labels is the same as that in step S201;
[0059] S204, repeat step S202 and step S203 to perform N training times, and record the top M weights of the overall recognition rate, where N>M, M≥2, and M=1, there is no model fusion. M and N are determined based on the training results. If the recognition rates of two consecutive training sessions do not change much or all reach above p, then N is the total number of training times, and M is recommended to be 3, which is equivalent to a single model integration. While increasing generalization, models with too low recognition rates will not be integrated.
[0060] like Figure 2 As shown, the convolutional neural network model structure used for iterative training in this embodiment is exactly the same. The convolutional neural network model used includes: a two-dimensional Conv layer, a feature extraction module, a two-dimensional DepthwiseConv layer, a Mean pooling layer, a two-dimensional Conv layer, a pooling layer, a Reshape layer, a two-dimensional Conv layer and a Softmax layer in sequence, wherein the feature extraction module includes 4 TransitionBlock blocks and 12 NormalBlock blocks, and the process of the convolutional neural network model is: extract the log_mel feature (M×N) of the original audio (P×1) as the original feature input of the network. The log_mel feature first passes through a two-dimensional Conv layer and then is input into the feature extraction module. The feature extraction module consists of 4 TransitionBlock blocks and 12 NormalBlock blocks. The extracted feature map passes through a two-dimensional DepthwiseConv layer, passes through the Mean layer, and then enters the two-dimensional Conv layer. After passing through the pooling layer, the dimension is adjusted through the Reshape layer, and then passes through the two-dimensional Conv layer, and finally passes through the Softmax layer to obtain the corresponding category score. The specific parameter settings are shown in Table 1:
[0061] Table 1: Convolutional neural network model parameter setting table
[0062]
[0063] Among them, the specific construction of the TransitionBlock block is as follows Figure 3 The specific parameter settings of the TransitionBlock block are shown in Table 2:
[0064] Table 2: TransitionBlock block specific parameter setting table
[0065]
[0066] Among them, the specific construction of the NormalBlock block is as follows Figure 4 The specific parameter settings of the NormalBlock block are shown in Table 3:
[0067] Table 3: Specific parameter settings of NormalBlock
[0068]
[0069] It should be noted that the correspondence between Chinese and English terms in the specification and drawings is as follows:
[0070] Conv: convolutional layer;
[0071] Depthwise Conv: deep convolution layer;
[0072] Pooling: Pooling layer;
[0073] TransitionBlock: transition block;
[0074] NormalBlock: regular block;
[0075] Mean: average layer;
[0076] Reshape: Dimension reshaping;
[0077] Softmax: Softmax layer;
[0078] Cls_prob: category score;
[0079] BatchNormalization: batch normalization layer;
[0080] ReLU: ReLU activation function;
[0081] Pad: zero padding layer;
[0082] Swish: Swish activation function.
[0083] S300, using model fusion technology to sum and average the weights of the selected models to obtain a fusion model;
[0084] Specifically, the model fusion technology is used to sum and average the above M weights to obtain the final model weight. For example, in this embodiment, N is set to 8, M is set to 3, and the weights of the same layer of the three models with the top 3 overall recognition rates are: , , , the final weight obtained by fusion (adding and averaging the corresponding elements) is .
[0085] S400, using the fusion model to classify noise sources: fusing M models into one model and then performing inference and deployment based on the weights.
[0086] It should be noted that when using a neural network for classification, the number of categories has a great impact on the classification accuracy. When there are many categories, how to balance the recognition effects of each category to achieve the best overall recognition, and how to improve the generalization and robustness of the model is a difficult problem. This embodiment firstly adjusts the weights of the more difficult to train categories in the loss function through iterative training of the model, balances the category recognition accuracy, and then further balances the accuracy of each category through model fusion, and improves the generalization and robustness.
[0087] Example 2
[0088] like Figure 5 As shown, a device for neural network noise source classification based on model fusion involved in Example 2 of the present application includes:
[0089] A construction module 100 is used to construct a training set containing multiple categories of noise sources;
[0090] A training module 200, for performing multiple rounds of training and testing on the convolutional neural network model using the training set to screen out at least two weights and corresponding models;
[0091] Specifically, the training module 200 includes:
[0092] The initial training submodule 201 is used to perform the first round of model training. In the first round of model training, the initial learning rate is set to 0.01, the cosine annealing method is adopted, the lower limit learning rate is 0.00001, the weight ratio of each category in the loss function is 1, the accuracy of all categories is tested, and the category labels with accuracy lower than the preset value are recorded;
[0093] A calculation submodule 202 is used to calculate the weight of the corresponding category label in the loss function according to the category label with an accuracy lower than a preset value and the recognition rate, and if the accuracy of the category label differs from the preset value by 5%, the weight of the category label in the loss function is increased to twice the original weight;
[0094] The round training submodule 203 is used to load the weights in the previous round of model training, and add the weights corresponding to the corresponding category labels calculated in step S202 to the loss function, set the initial learning rate to 0.001, use the cosine annealing method, and the lower limit learning rate to 0.00001, conduct the next round of training, test the accuracy of all categories, and record the category labels whose accuracy is lower than the preset value again;
[0095] The loop submodule 204 is used to repeatedly execute the calculation submodule 202 and the round-robin training submodule 203 to perform N trainings, and record the top M weights of the overall recognition rate, where N>M and M≥2.
[0096] A fusion module 300 is used to sum and average the weights of the selected models using a model fusion technique to obtain a fusion model;
[0097] The classification module 400 is used to classify noise sources using the fusion model.
[0098] It should be noted that other specific implementations of the device for neural network noise source classification based on model fusion in this embodiment can refer to the specific implementation of the method for neural network noise source classification based on model fusion mentioned above. To avoid redundancy, they will not be repeated here.
[0099] Example 3
[0100] A computer program product involved in Example 3 of the present application is used to store a computer program. When the computer program runs on a computer, the method in any one of the implementation modes in Example 1 of the present application is implemented.
[0101] Example 4
[0102] A computer-readable storage medium according to Embodiment 4 of the present application, wherein the computer-readable storage medium stores a program code for execution by a device, wherein the program code includes steps for executing a method in any one of the implementations in Embodiment 1 of the present application;
[0103] Among them, the computer-readable storage medium can be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM); the computer-readable storage medium can store program code, and when the program stored in the computer-readable storage medium is executed by the processor, the processor is used to execute the steps of the method in any one of the implementation methods in Example 1 of the present application.
[0104] Example 5
[0105] like Figure 6 As shown, an electronic device involved in Embodiment 5 of the present application includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, a method in any one of the implementations in Embodiment 1 of the present application is implemented;
[0106] Among them, the processor can adopt a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to implement the method in any one of the implementation methods in Example 1 of the present application.
[0107] The processor may also be an integrated circuit electronic device with signal processing capability. In the implementation process, each step of the method in any implementation of Embodiment 1 of the present application may be completed by an integrated logic circuit of hardware in the processor or by instructions in software form.
[0108] The above-mentioned processor may also be a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the functions required to be performed by the unit included in the data processing device of the embodiment of the present application in combination with its hardware, or executes the method in any one of the implementation modes in the embodiment 1 of the present application.
[0109] The above are only preferred specific implementations of the present application; however, the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solution and its improved ideas of the present application within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A method for noise source classification based on neural network of model fusion, characterized in that: include: Construct a training set containing multiple categories of noise sources; Using the training set to perform multiple rounds of training and testing on the convolutional neural network model to screen out at least two weights and corresponding models; The selected models are weighted and averaged using model fusion technology to obtain a fusion model; Using the fusion model to classify noise sources; The convolutional neural network model is trained and tested multiple times using the training set to screen out at least two weights and corresponding models, including: S201, perform the first round of model training. In the first round of model training, set the initial learning rate to 0.01, adopt the cosine annealing method, the lower limit learning rate to 0.00001, the weight ratio of each category in the loss function is 1, test the accuracy of all categories, and record the category labels whose accuracy is lower than the preset value; S202, calculating the weight of the corresponding category label in the loss function according to the category label whose accuracy is lower than the preset value and the recognition rate, and if the accuracy of the category label differs from the preset value by 5%, the weight of the category label in the loss function is increased to twice the original weight; S203, load the weights in the previous round of model training, and add the weights corresponding to the corresponding category labels calculated in step S202 to the loss function, set the initial learning rate to 0.001, use cosine annealing, and the lower limit learning rate to 0.00001, perform the next round of training, test the accuracy of all categories, and record the category labels whose accuracy is lower than the preset value again; S204, repeat step S202 and step S203 to perform N trainings, and record the top M weights of the overall recognition rate, where N>M, M≥2.
2. The method for noise source classification based on neural network using model fusion according to claim 1, characterized in that: Construct a training set containing various types of noise sources, including: Collect a labeled dataset containing multiple categories of noise sources; The labeled data set is preprocessed and standardized to obtain a training set.
3. The method for noise source classification based on neural network using model fusion according to claim 1, characterized in that: If the accuracy of the category label differs from the preset value by less than 5%, it will be treated as 5%.
4. The method for noise source classification based on neural network using model fusion according to claim 1, characterized in that: The convolutional neural network model includes: a two-dimensional Conv layer, a feature extraction module, a two-dimensional DepthwiseConv layer, a Mean pooling layer, a two-dimensional Conv layer, a pooling layer, a Reshape layer, a two-dimensional Conv layer and a Softmax layer in sequence, wherein the feature extraction module includes 4 TransitionBlock blocks and 12 NormalBlock blocks.
5. A device for classifying noise sources using a neural network based on model fusion, characterized in that: include: A construction module is used to construct a training set containing multiple categories of noise sources; A training module, used to perform multiple rounds of training and testing on the convolutional neural network model using the training set to screen out at least two weights and corresponding models; A fusion module is used to sum and average the weights of the selected models using model fusion technology to obtain a fusion model; A classification module, used for classifying noise sources using the fusion model; Wherein, the training module includes: The initial training submodule is used to conduct the first round of model training. In the first round of model training, the initial learning rate is set to 0.01, the cosine annealing method is used, the lower limit learning rate is 0.00001, the weight ratio of each category in the loss function is 1, the accuracy of all categories is tested, and the category labels with accuracy lower than the preset value are recorded; A calculation submodule, used to calculate the weight of the corresponding category label in the loss function according to the category label with an accuracy lower than a preset value and the recognition rate, and if the accuracy of the category label differs from the preset value by 5%, the weight of the category label in the loss function is increased to twice the original weight; The round training submodule is used to load the weights in the previous round of model training, and add the weights corresponding to the corresponding category labels calculated in step S202 to the loss function, set the initial learning rate to 0.001, use cosine annealing, and the lower limit learning rate to 0.00001, conduct the next round of training, test the accuracy of all categories, and record the category labels whose accuracy is lower than the preset value again; The loop submodule is used to repeatedly execute the calculation submodule and the round-robin training submodule to perform N trainings, and record the top M weights of the overall recognition rate, where N>M and M≥2.
6. A computer program product, characterized in that The computer program product stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program code for execution by a device, wherein the program code includes steps for executing the method according to any one of claims 1 to 4.
8. An electronic device, characterized in that: The electronic device comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction implements the method as claimed in any one of claims 1 to 4 when executed by the processor.
