AI-generated music recognition method, device and equipment based on improved radial basis function
By improving the AI-generated music recognition method of radial basis function, extracting and weighted fusion of music features, and constructing a radial basis function multi-feature network model, it solves the music recognition problem of complex structure and expressiveness of AI-generated music recognition, and achieves high accuracy. stability and stability of music recognition.
Patent Information
- Application Number
- CN202410831481.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Existing AI-generated music recognition methods are difficult to accurately identify and analyze whether a piece of music with complex structure and expressiveness is AI-generated music, especially in terms of interlude characteristics, paragraph style consistency and beat conversion.
The AI-generated music recognition method using the improved radial basis function is used to preprocess music sample data sets of different styles to extract interlude features, style consistency features and lyrics features, and use the initial weights to weight the fusion to obtain the initial fusion feature vector. , initialize the radial basis function multi-feature network model, use the improved Gaussian radial basis function as the activation function, conduct training and optimization through the gradient descent method until the global optimal solution is reached, and build a recognition model specifically for AI-generated music features.
It improves the recognition accuracy of AI-generated music features, improves the nonlinear approximation ability of the model, can effectively identify whether a piece of music with complex structure and expressiveness is AI-generated music, and enhances the stability and recognition performance of the model.
Smart Images

Figure CN118398030B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an AI-generated music recognition method, device and equipment based on an improved radial basis function. Background Art
[0002] With the rapid development of artificial intelligence technology, AI-generated music has become a new trend in music creation and research. However, AI-generated music has complexity and diversity, such as interlude features, style consistency of prelude / verse / chorus sections, and lyrics features.
[0003] Interlude features: The interlude of a piece of music typically uses artistic techniques such as harmony changes, beat changes, and new instruments to produce new timbres, but existing AI generation algorithms are weak in generating such jumping music clips. Therefore, interlude features will be the most important recognition dimension.
[0004] Paragraph style consistency: Different paragraphs of a piece of music (prelude, verse, chorus) have large differences in pitch and length, but have strong consistency in style. Different paragraphs of AI-generated music are generated using segmented reasoning of models, so there is a general lack of style consistency between paragraphs. This is what the industry criticizes. AI-generated music has short-term style consistency but not long-term style consistency. The front and back parts of a song often have style drift. Therefore, style consistency between paragraphs is also an important dimension for recognition.
[0005] Beat characteristics: The interlude of a piece of music usually uses different beats to increase the contrast of the music. However, the algorithm logic of current AI-generated music is based on the content of historical time series. Therefore, the beat transition is usually not obvious, and the beat of the entire instrument is relatively single.
[0006] Lyrics features: In AI-generated lyrics, the usage rate of reduplication is 30% higher than the average of regular lyrics, and the grammatical rules of adjectives and adverbs are more rigorous than those of regular lyrics, that is, the grammatical rules are more rigid.
[0007] How to accurately identify and analyze whether a piece of music with complex structure and expressiveness is AI-generated music has become a challenge.
[0008] In view of this, the applicant filed this application after studying the existing technology. Summary of the invention
[0009] The present invention aims to provide a method, device and equipment for identifying AI-generated music based on an improved radial basis function, so as to solve the problem that the existing methods cannot accurately identify and analyze whether a piece of music with complex structure and expressiveness is AI-generated music.
[0010] In order to solve the above technical problems, the present invention is implemented through the following technical solutions:
[0011] An AI-generated music recognition method based on an improved radial basis function, comprising:
[0012] 1. An AI-generated music recognition method based on an improved radial basis function, characterized by comprising:
[0013] S1, obtaining music sample data sets of different styles, and preprocessing the music sample data sets; wherein the different styles include classical, popular, Chinese and Western, and the preprocessing includes sampling, quantization and lyrics separation processing;
[0014] S2, extract interlude features, style consistency features and lyrics features from the preprocessed music sample data set, assign initial weights to the extracted features for weighted fusion, and obtain the initial fused feature vector.
[0015] Preferably, the interlude features include harmony change features, instrument features and beat change features, and the extraction step includes:
[0016] Analyze and extract the audio files of the music sample data set by using a spectrum envelope analysis method to obtain harmony change features;
[0017] Analyze and extract the audio file through timbre analysis to obtain instrument features;
[0018] The beat variation characteristics are obtained by extracting and analyzing the pulse frequency of the audio file.
[0019] The style consistency feature includes the rhythm feature and pitch feature of the verse and chorus, and the extraction steps include:
[0020] Repetition patterns and beat difference values of the audio file are identified by using an FFT transformation method to obtain rhythm features of the verse and chorus;
[0021] The basic frequency in the audio signal of the audio file is extracted by a spectrum analysis method to obtain the pitch feature.
[0022] The lyrics features include word frequency features and part-of-speech features, so as to identify reduplication and grammatical rules of the lyrics. The extraction steps include:
[0023] Calculate the frequency of use of reduplicated words in the lyrics file of the music sample data set by a statistical method to obtain a word frequency feature;
[0024] The NLP technology is used to identify and extract the grammatical normative features of the adjectives and adverbs used in the lyrics file to obtain part-of-speech features.
[0025] Preferably, the initial weight The expression is:
[0026] ;
[0027] Among them, a0, a1, and a2 represent the initial weights of harmony change features, instrument features, and beat change features, respectively; b0 and b1 represent the initial weights of the rhythm features and pitch features of the verse and chorus, respectively; c0 and c1 represent the initial weights of word frequency features and part-of-speech features, respectively. If the sample data is pure music, c0 and c1 are 0.
[0028] S3, initializing the radial basis function multi-feature network model, using the improved Gaussian radial basis function as the activation function, and inputting the initial fused feature vector into the radial basis function multi-feature network model for training optimization through the gradient descent method until a global optimal solution is reached, thereby obtaining a trained AI-generated music recognition model;
[0029] The radial basis function multi-feature network model includes an input layer, a plurality of hidden layers and an output layer. When the radial basis function multi-feature network model is initialized, the initial weights are calculated according to the initial weights. , initialize the weight parameters of the hidden layer and the output layer, and set the initial value of the center of the hidden layer to 0;
[0030] When training and optimizing the parameters of the radial basis function multi-feature network model, until the cost function reaches a set threshold, a global optimal Euclidean distance, i.e., a global optimal solution, is obtained;
[0031] Wherein, the improved Gaussian radial basis function The expression is:
[0032] ;
[0033] Among them, x is the input vector, that is, the initial fusion feature vector, is the center of the jth hidden layer unit, is the receptive field width of the jth hidden unit, is the multi-feature weighted Euclidean distance between the input vector and the center;
[0034] The cost function It is half of the square of the weighted Euclidean distance between the output of the hidden layer and the center, and its expression is:
[0035] ;
[0036] in, Represents the weight parameter matrix of the hidden layer, which is initially .
[0037] S4, evaluating the AI generated music recognition model, and when the evaluation score exceeds a set threshold, obtaining an evaluated AI generated music recognition model.
[0038] Preferably, when evaluating the AI-generated music recognition model, the evaluation expression is:
[0039] ;
[0040] The evaluation score F1 represents the harmonic mean of precision and recall, with a maximum value of 1 and a minimum value of 0. The larger the F1 value, the better the model performance.
[0041] , represents the accuracy, represents the current model number, n represents the number of individuals in the test set that are truly positive and predicted to be positive, and N represents the number of individuals in the test set that are predicted to be positive by the model;
[0042] , represents the recall rate, and M represents the number of truly positive individuals in the test set.
[0043] S5, input the music data into the evaluated AI-generated music recognition model to obtain the AI music recognition result of the music data.
[0044] The present invention also provides an AI-generated music recognition device based on an improved radial basis function, comprising:
[0045] A preprocessing unit, used to obtain a preprocessed sample data set, obtain a music sample data set of different styles, and preprocess the music sample data set; wherein the different styles include classical, popular, Chinese and Western, and the preprocessing includes sampling, quantization and lyrics separation processing;
[0046] The initial feature fusion unit is used to obtain the initial fusion feature vector, extract the interlude feature, style consistency feature and lyrics feature of the preprocessed music sample data set, and assign initial weights to the extracted features for weighted fusion to obtain the initial fusion feature vector;
[0047] The model training unit is used to obtain a trained AI-generated music recognition model, initialize the radial basis function multi-feature network model, use the improved Gaussian radial basis function as the activation function, and input the initial fused feature vector into the radial basis function multi-feature network model for training optimization through the gradient descent method until a global optimal solution is reached to obtain a trained AI-generated music recognition model; wherein,
[0048] The radial basis function multi-feature network model includes an input layer, a plurality of hidden layers and an output layer. When the radial basis function multi-feature network model is initialized, the initial weights are calculated according to the initial weights. , initialize the weight parameters of the hidden layer and the output layer, and set the initial value of the center of the hidden layer to 0;
[0049] When training and optimizing the parameters of the radial basis function multi-feature network model, until the cost function reaches a set threshold, a global optimal Euclidean distance, i.e., a global optimal solution, is obtained;
[0050] Wherein, the improved Gaussian radial basis function The expression is:
[0051] ;
[0052] Among them, x is the input vector, that is, the initial fusion feature vector, is the center of the jth hidden layer unit, is the receptive field width of the jth hidden unit, is the multi-feature weighted Euclidean distance between the input vector and the center;
[0053] The cost function It is half of the square of the weighted Euclidean distance between the output of the hidden layer and the center, and its expression is:
[0054] ;
[0055] in, Represents the weight parameter matrix of the hidden layer, which is initially ;
[0056] A model evaluation unit, used to obtain an evaluated AI-generated music recognition model, evaluate the AI-generated music recognition model, and obtain the evaluated AI-generated music recognition model when the evaluation score exceeds a set threshold;
[0057] The music recognition unit is used to obtain the music recognition result, input the music data into the evaluated AI-generated music recognition model, and obtain the AI music recognition result of the music data.
[0058] The present invention also provides an AI generated music recognition device based on an improved radial basis function, comprising a processor and a memory, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement the AI generated music recognition method based on the improved radial basis function as described above.
[0059] In summary, compared with the prior art, the present invention has the following beneficial effects:
[0060] The present invention captures the interlude features, style consistency of the prelude / verse / chorus sections, lyrics features, etc. of AI-generated music samples by learning them, and builds a recognition model specifically for AI-generated music features through the high accuracy and strong nonlinear approximation capability of the improved radial basis function. Through the recognition model of AI-generated music features, AI-generated music features such as interlude features, style consistency of the prelude / verse / chorus sections, and lyrics features can be effectively analyzed and learned, so as to accurately identify whether a piece of music with complex structure and expressiveness is AI-generated music.
[0061] The present invention performs an initial weighting on the importance of AI-generated music features, and performs multiple rounds of fitting on the weights of each feature using the improved global optimal Euclidean distance to construct a feature vector space and establish a fusion feature library, thereby improving the recognition accuracy of the model, enhancing the nonlinear approximation capability of the model, shortening the model training and inference time, being able to evaluate music with a relatively large span, and having good model stability.
[0062] The present invention can be used in the fields of music copyright management, expert music review, etc., can effectively promote the sustainable development of music creation, and has broad market application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0064] Figure 1 A structural diagram of an AI-generated music recognition method based on an improved radial basis function provided in Example 1 of the present invention.
[0065] Figure 2 A training flow chart of an AI-generated music recognition method based on an improved radial basis function provided in Example 1 of the present invention.
[0066] Figure 3 This is a multi-feature fusion flow chart provided in Example 1 of the present invention.
[0067] Figure 4 This is a principle structure diagram of the improved radial basis function multi-feature network provided in Example 1 of the present invention.
[0068] Figure 5 This is a flow chart of an improved radial basis function multi-feature network provided in Example 1 of the present invention.
[0069] Figure 6A schematic diagram of an AI-generated music recognition device based on an improved radial basis function provided in Embodiment 2 of the present invention.
[0070] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. DETAILED DESCRIPTION
[0071] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 making creative work are within the scope of protection of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the invention claimed for protection, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0072] Embodiment 1
[0073] Embodiment 1 of the present invention provides an AI-generated music recognition method based on an improved radial basis function, which can be implemented by an AI-generated music recognition device based on an improved radial basis function (hereinafter referred to as a music recognition device), and in particular, executed by one or more processors in the music recognition device.
[0074] In this embodiment, the music recognition device may be an electronic device equipped with a processor, which has a computer program of the AI-generated music recognition method based on the improved radial basis function and can be executed, such as a computer, a smart phone, a smart tablet, etc.
[0075] like Figure 1 As shown, an AI-generated music recognition method based on an improved radial basis function includes steps S1 to S5.
[0076] S1, obtaining music sample data sets of different styles, and preprocessing the music sample data sets; wherein the different styles include classical, popular, Chinese and Western, and the preprocessing includes sampling, quantization and lyrics separation processing;
[0077] S2, extracting interlude features, style consistency features and lyrics features from the preprocessed music sample data set, and assigning initial weights to the extracted features for weighted fusion to obtain an initial fusion feature vector;
[0078] S3, initializing the radial basis function multi-feature network model, using the improved Gaussian radial basis function as the activation function, and inputting the initial fused feature vector into the radial basis function multi-feature network model for training optimization through the gradient descent method until a global optimal solution is reached, thereby obtaining a trained AI-generated music recognition model;
[0079] S4, evaluating the AI-generated music recognition model, and when the evaluation score exceeds a set threshold, obtaining an evaluated AI-generated music recognition model;
[0080] S5, input the music data into the evaluated AI-generated music recognition model to obtain the AI music recognition result of the music data.
[0081] like Figure 2 As shown, a training method for an AI-generated music recognition model based on a radial basis function multi-feature network includes the following steps 1 to 7.
[0082] Step 1: Preprocessing: This example uses 2000 music samples generated by Suno and X Studio as the music sample data set, including 1000 pure music samples and 1000 lyrics singing music samples, including classical, popular, Chinese, and Western styles evenly distributed (250 each).
[0083] The collected music sample data set is then preprocessed, including sampling of the audio signal (in this embodiment, the value range is set to 16k-256k, usually 128k), quantization (the value range is set to 2-512, usually 256), and music lyrics separation.
[0084] Step 2: Divide the training set and test set. Divide the preprocessed music sample data set into a training set and a test set, taking 1,800 of them as the training set and 200 as the test set. The pure music and lyrics singing music samples each account for 50%, and the music styles are evenly distributed (music styles are classical, popular, Chinese, and Western) so that the performance of the model can be evaluated after training the model.
[0085] Step 3: Build a fusion feature library. Figure 3 As shown, the relevant features of music recognition are extracted from the preprocessed music sample data set. This embodiment extracts the interlude features of the music, the style consistency features of the prelude / verse / chorus paragraphs, and the lyrics features. At the same time, the importance and accuracy of these features are different, so different initial weights are assigned to different feature values in the present invention. The above features together constitute the AI feature vector space of the music sample.
[0086] The harmony processing of the interlude part is one of the most important music features. This embodiment proposes to take the interlude feature as the most important recognition dimension and provides a recognition method.
[0087] The interlude features include harmony change features, instrument features and beat change features, and the extraction steps include:
[0088] The audio files of the music sample data set are analyzed and extracted by a spectrum envelope analysis method to obtain harmony change features.
[0089] Different musical instruments often appear in interludes to produce new timbres. The audio files are analyzed and extracted through timbre analysis to obtain instrument features.
[0090] Different beats are used in the interlude to increase the contrast of the music. In this embodiment, the beat change rule is an important dimension of AI music features. The recognition method of the present invention introduces a beat change detection method to extract the beat change features of the music.
[0091] The beat variation characteristics are obtained by extracting and analyzing the pulse frequency of the audio file.
[0092] In this embodiment, the consistency of style between paragraphs is also an important dimension of music recognition. The recognition method of the present invention proposes the detection of the consistency of style between paragraphs.
[0093] The style consistency feature includes the rhythm feature and pitch feature of the verse and chorus, and the extraction steps include:
[0094] Repetition patterns and beat difference values of the audio file are identified by using an FFT transformation method to obtain rhythm features of the verse and chorus;
[0095] The basic frequency in the audio signal of the audio file is extracted by a spectrum analysis method to obtain the pitch feature.
[0096] If the training music data contains lyrics, the lyrics are subjected to reduplication and grammatical rule recognition. Further, the lyrics features include word frequency features and part-of-speech features, so as to recognize reduplication and grammatical rules of the lyrics. The extraction step includes:
[0097] Calculate the frequency of use of reduplicated words in the lyrics file of the music sample data set by a statistical method to obtain a word frequency feature;
[0098] The NLP technology is used to identify and extract the grammatical normative features of the adjectives and adverbs used in the lyrics file, and the part-of-speech features are obtained to identify the reduplication and grammatical rules of the lyrics part.
[0099] In AI-generated lyrics, the usage rate of reduplication is 30% higher than the average of regular lyrics, and the grammatical rules of adjectives and adverbs are more rigorous than those of regular lyrics (grammatical rules are more rigid). These two items are weak features and are therefore given lower weights.
[0100] After the above eigenvalues are extracted, initial weights are set according to their importance for weighted fusion to obtain a eigenvector space, namely, an initial fused eigenvector. In this embodiment, the initial weights are Set to:
[0101] ;
[0102] Among them, a0, a1, and a2 represent the initial weights of harmony change features, instrument features, and beat change features, respectively; b0 and b1 represent the initial weights of the rhythm features and pitch features of the verse and chorus, respectively; c0 and c1 represent the initial weights of word frequency features and part-of-speech features, respectively. If the sample data is pure music, c0 and c1 are 0.
[0103] Step 4: Improved radial basis function multi-feature network. Figure 4 The schematic diagram of the improved radial basis function multi-feature network model shown in the figure constructs a multi-feature network model based on music fusion features. The improved radial basis function multi-feature network includes an input layer, several hidden layers and an output layer.
[0104] like Figure 5 As shown, the input layer of the model is specified as the music fusion feature, that is, the initial fusion feature vector.
[0105] Then design the activation function. The number of hidden layers of the radial basis function multi-feature network is equal to the number of eigenvalues (such as 5 layers for pure music and 7 layers for lyric music), and the hidden layer uses the improved Gaussian radial basis function as the activation function.
[0106] The improved Gaussian radial basis function The expression is:
[0107] ;
[0108] Among them, x is the input vector, that is, the initial fusion feature vector, is the center of the jth hidden layer unit, is the receptive field width of the jth hidden unit, is the multi-feature weighted Euclidean distance between the input vector and the center.
[0109] Then, initialize the weight parameters. Use the initial weights Initialize the weights of the hidden layer and output layer of the model, and specify the central initial value of the hidden layer is 0.
[0110] Next, the improved radial basis function multi-feature network model is supervised and optimized through gradient descent until the cost function reaches the set threshold, and the global optimal Euclidean distance, that is, the global optimal solution, is obtained.
[0111] The cost function It is half of the square of the weighted Euclidean distance between the output of the hidden layer and the center, and the expression is as follows:
[0112] ;
[0113] in, Represents the weight parameter matrix of the hidden layer for training optimization. In the initial state, , the values are continuously updated iteratively during the training process.
[0114] In this embodiment, the cost function is set The threshold is 0.1, that is: if the cost function >0.1, then input the initial fusion feature vector for repeated training until Less than or equal to 0.1, at this time the global optimal Euclidean distance is achieved.
[0115] Finally, the output layer of the model gives the optimal fusion feature vector and saves the trained AI-generated music recognition model for use in the next recognition.
[0116] The present invention adopts the improved global optimal Euclidean distance to fit the feature weights in multiple rounds and store them as a fused feature vector space. Through the output optimal fused feature vector, it can accurately determine whether a piece of unknown music is AI-generated music.
[0117] Step 5: Evaluate model stability. Use the test set data to evaluate the AI-generated music recognition model. The evaluation expression is:
[0118] ;
[0119] The evaluation score F1 represents the harmonic mean of precision and recall, with a maximum value of 1 and a minimum value of 0. The larger the F1 value, the better the model performance.
[0120] , represents the accuracy, represents the current model number, n represents the number of individuals in the test set that are truly positive and predicted to be positive, and N represents the number of individuals in the test set that are predicted to be positive by the model;
[0121] , represents the recall rate, and M represents the number of truly positive individuals in the test set.
[0122] When the evaluation score F1 value exceeds the set value of 0.8, the model is judged to be stable and a well-evaluated AI-generated music recognition model is obtained, otherwise the model is retrained.
[0123] Step 6: Save the model. Save the trained and evaluated model and the corresponding feature value library so that you can load the model and feature value library for feature matching during music recognition.
[0124] Step 7: Music recognition. Finally, the music to be detected is input into the trained and evaluated model, and the model outputs the recognition result (whether it is AI-generated music) based on the input music data (including audio and lyrics (if any)).
[0125] In another preferred embodiment, by evaluating and comparing the method of the present invention with the standard LSTM network + standard Gaussian function, the test results are shown in Table 1.
[0126] Test set: 2000 music samples were generated using Suno and X Studio, and 200 of them were selected as the test set. The extraction rule was: pure music and lyrics singing music samples each accounted for 50%, and the music styles were evenly distributed (classical, popular, Chinese, Western).
[0127] Random set: 500 instrumental songs were randomly selected from the Internet music website. The music style and whether it was pure music were random. The samples with music length greater than 1 minute accounted for 90%.
[0128] Algorithm control group: Use the standard LSTM algorithm, and the activation function uses the standard Gaussian function, which is expressed as:
[0129] ;
[0130] in, is the input vector x and the center The Euclidean distance of .
[0131] Table 1: Algorithm test results
[0132]
[0133] As shown in Table 1, by comparing the training efficiency and recognition accuracy of the traditional method with the improved method of the present invention, it can be seen that the improved radial basis function multi-feature network has advantages in terms of training time, inference time, recognition rate, etc., especially the use of the improved radial basis function multi-feature network + global optimal Euclidean distance (i.e., the method of the present invention), which significantly shortens the training and inference time, shows a high recognition rate on both the test set and the random set, and has good model stability during the inference process. It is an effective AI generated music recognition technology.
[0134] The method proposed in the present invention has two main innovative points:
[0135] (1) The network hidden layer extracts interlude features, style consistency of prelude / verse / chorus sections, and lyrics features, solving the recognition rate problem;
[0136] (2) The activation function proposes a feature matrix and a global optimal Euclidean distance, which significantly improves the efficiency of training and reasoning. This method can identify AI-generated music.
[0137] In summary, compared with the prior art, the present invention has the following beneficial effects:
[0138] (1) The present invention extracts features of AI-generated music (interlude features, consistency of prelude / verse / chorus paragraph styles, pitch and length features, etc.), and the algorithm has a high accuracy recognition rate.
[0139] (2) The present invention performs an initial weighting on the importance of AI-generated features, and performs multiple rounds of fitting on the weights of each feature using an improved global optimal Euclidean distance to form a feature vector space, thereby establishing a fusion feature library.
[0140] (3) The present invention uses an improved radial basis function to enhance the nonlinear approximation capability of the model, and can evaluate music with a relatively large span (such as music with a length of more than 1 minute).
[0141] Embodiment 2
[0142] like Figure 6 As shown, the second embodiment of the present invention further provides an AI-generated music recognition device based on an improved radial basis function, comprising:
[0143] A preprocessing unit, used to obtain a preprocessed sample data set, obtain a music sample data set of different styles, and preprocess the music sample data set; wherein the different styles include classical, popular, Chinese and Western, and the preprocessing includes sampling, quantization and lyrics separation processing;
[0144] The initial feature fusion unit is used to obtain the initial fusion feature vector, extract the interlude feature, style consistency feature and lyrics feature of the preprocessed music sample data set, and assign initial weights to the extracted features for weighted fusion to obtain the initial fusion feature vector;
[0145] The model training unit is used to obtain a trained AI-generated music recognition model, initialize the radial basis function multi-feature network model, use the improved Gaussian radial basis function as the activation function, and input the initial fused feature vector into the radial basis function multi-feature network model for training optimization through the gradient descent method until a global optimal solution is reached to obtain a trained AI-generated music recognition model; wherein,
[0146] The radial basis function multi-feature network model includes an input layer, a plurality of hidden layers and an output layer. When the radial basis function multi-feature network model is initialized, the initial weights are calculated according to the initial weights. , initialize the weight parameters of the hidden layer and the output layer, and set the initial value of the center of the hidden layer to 0;
[0147] When training and optimizing the parameters of the radial basis function multi-feature network model, until the cost function reaches a set threshold, a global optimal Euclidean distance, i.e., a global optimal solution, is obtained;
[0148] Wherein, the improved Gaussian radial basis function The expression is:
[0149] ;
[0150] Among them, x is the input vector, that is, the initial fusion feature vector, is the center of the jth hidden layer unit, is the receptive field width of the jth hidden unit, is the multi-feature weighted Euclidean distance between the input vector and the center;
[0151] The cost function It is half of the square of the weighted Euclidean distance between the output of the hidden layer and the center, and its expression is:
[0152] ;
[0153] in, Represents the weight parameter matrix of the hidden layer, which is initially ;
[0154] A model evaluation unit, used to obtain an evaluated AI-generated music recognition model, evaluate the AI-generated music recognition model, and obtain the evaluated AI-generated music recognition model when the evaluation score exceeds a set threshold;
[0155] The music recognition unit is used to obtain the music recognition result, input the music data into the evaluated AI-generated music recognition model, and obtain the AI music recognition result of the music data.
[0156] Embodiment 3
[0157] The third embodiment of the present invention also provides an AI generated music recognition device based on an improved radial basis function, which includes a memory and a processor, wherein a computer program is stored in the memory, and the computer program can be executed by the processor to implement the AI generated music recognition method based on the improved radial basis function as described above.
[0158] In several embodiments provided in the embodiments of the present invention, it should be understood that the disclosed apparatus and method can also be implemented in other ways. The apparatus and method embodiments described above are merely schematic. For example, the flowcharts in the accompanying drawings show the possible architecture, functions and operations of the apparatus, method and computer program product according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0159] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0160] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code. It should be noted that in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0161] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0162] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0163] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0164] The "first\second" mentioned in the embodiments is only to distinguish similar objects, and does not represent a specific order for the objects. It is understandable that the "first\second" can be interchanged with the specific order or sequence where permitted. It should be understood that the objects distinguished by "first\second" can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than those illustrated or described herein.
[0165] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An AI-generated music recognition method based on an improved radial basis function, characterized in that: include: S1, obtaining music sample data sets of different styles, and preprocessing the music sample data sets; wherein the different styles include classical, popular, Chinese and Western, and the preprocessing includes sampling, quantization and lyrics separation processing; S2, extract the interlude features, style consistency features and lyrics features of the preprocessed music sample data set, and assign initial weights to the extracted features for weighted fusion to obtain the initial fusion feature vector; where, The style consistency features include rhythm features and pitch features of the verse and chorus; The initial weight The expression is: ; Among them, a0, a1, and a2 represent the initial weights of harmony change features, instrument features, and beat change features, respectively; b0 and b1 represent the initial weights of the rhythm features and pitch features of the verse and chorus, respectively; c0 and c1 represent the initial weights of the word frequency feature and the part-of-speech feature, respectively. If the sample data is pure music, c0 and c1 are 0; S3, initializing the radial basis function multi-feature network model, using the improved Gaussian radial basis function as the activation function, and inputting the initial fused feature vector into the radial basis function multi-feature network model for training optimization through the gradient descent method until a global optimal solution is reached, thereby obtaining a trained AI-generated music recognition model; wherein, The radial basis function multi-feature network model includes an input layer, a plurality of hidden layers and an output layer. When the radial basis function multi-feature network model is initialized, the initial weights are calculated according to the initial weights. , initialize the weight parameters of the hidden layer and the output layer, and set the initial value of the center of the hidden layer to 0; When training and optimizing the parameters of the radial basis function multi-feature network model, until the cost function reaches a set threshold, a global optimal Euclidean distance, i.e., a global optimal solution, is obtained; Wherein, the improved Gaussian radial basis function The expression is: ; Among them, x is the input vector, that is, the initial fusion feature vector, is the center of the jth hidden layer unit, is the receptive field width of the jth hidden unit, is the multi-feature weighted Euclidean distance between the input vector and the center; The cost function It is half of the square of the weighted Euclidean distance between the output of the hidden layer and the center, and its expression is: ; in, Represents the weight parameter matrix of the hidden layer, which is initially ; S4, evaluating the AI-generated music recognition model, and when the evaluation score exceeds a set threshold, obtaining an evaluated AI-generated music recognition model; S5, input the music data into the evaluated AI-generated music recognition model to obtain the AI music recognition result of the music data.
2. The AI-generated music recognition method based on improved radial basis function according to claim 1, characterized in that The interlude features include harmony change features, instrument features and beat change features, and the extraction steps include: Analyze and extract the audio files of the music sample data set by using a spectrum envelope analysis method to obtain harmony change features; Analyze and extract the audio file through timbre analysis to obtain instrument features; The beat variation characteristics are obtained by extracting and analyzing the pulse frequency of the audio file.
3. The AI-generated music recognition method based on improved radial basis function according to claim 2 is characterized in that ,The steps of extracting the style consistency features include: Repetition patterns and beat difference values of the audio file are identified by using an FFT transformation method to obtain rhythm features of the verse and chorus; The basic frequency in the audio signal of the audio file is extracted by a spectrum analysis method to obtain the pitch feature.
4. The AI-generated music recognition method based on improved radial basis function according to claim 3 is characterized in that The lyrics features include word frequency features and part-of-speech features to identify reduplication and grammatical rules of the lyrics. The extraction steps include: Calculate the frequency of use of reduplicated words in the lyrics file of the music sample data set by a statistical method to obtain a word frequency feature; The NLP technology is used to identify and extract the grammatical normative features of the adjectives and adverbs used in the lyrics file to obtain part-of-speech features.
5. The AI-generated music recognition method based on improved radial basis function according to claim 4 is characterized in that ,When evaluating the AI-generated music recognition model, the evaluation expression is: ; The evaluation score F1 represents the harmonic mean of precision and recall, with a maximum value of 1 and a minimum value of 0. The larger the F1 value, the better the model performance. , represents the accuracy, represents the current model number, n represents the number of individuals in the test set that are truly positive and predicted to be positive, and N represents the number of individuals in the test set that are predicted to be positive by the model; , represents the recall rate, and M represents the number of truly positive individuals in the test set.
6. An AI-generated music recognition device based on improved radial basis function, characterized in that: include: A preprocessing unit, used to obtain a preprocessed sample data set, obtain a music sample data set of different styles, and preprocess the music sample data set; wherein the different styles include classical, popular, Chinese and Western, and the preprocessing includes sampling, quantization and lyrics separation processing; The initial feature fusion unit is used to obtain the initial fusion feature vector, extract the interlude feature, style consistency feature and lyrics feature of the preprocessed music sample data set, and assign initial weights to the extracted features for weighted fusion to obtain the initial fusion feature vector; wherein, The style consistency features include rhythm features and pitch features of the verse and chorus; The initial weight The expression is: ; Among them, a0, a1, and a2 represent the initial weights of harmony change features, instrument features, and beat change features, respectively; b0 and b1 represent the initial weights of the rhythm features and pitch features of the verse and chorus, respectively; c0 and c1 represent the initial weights of the word frequency feature and the part-of-speech feature, respectively. If the sample data is pure music, c0 and c1 are 0; The model training unit is used to obtain a trained AI-generated music recognition model, initialize the radial basis function multi-feature network model, use the improved Gaussian radial basis function as the activation function, and input the initial fused feature vector into the radial basis function multi-feature network model for training optimization through the gradient descent method until a global optimal solution is reached to obtain a trained AI-generated music recognition model; wherein, The radial basis function multi-feature network model includes an input layer, a plurality of hidden layers and an output layer. When the radial basis function multi-feature network model is initialized, the initial weights are calculated according to the initial weights. , initialize the weight parameters of the hidden layer and the output layer, and set the initial value of the center of the hidden layer to 0; When training and optimizing the parameters of the radial basis function multi-feature network model, until the cost function reaches a set threshold, a global optimal Euclidean distance, i.e., a global optimal solution, is obtained; Wherein, the improved Gaussian radial basis function The expression is: ; Among them, x is the input vector, that is, the initial fusion feature vector, is the center of the jth hidden layer unit, is the receptive field width of the jth hidden unit, is the multi-feature weighted Euclidean distance between the input vector and the center; The cost function It is half of the square of the weighted Euclidean distance between the output of the hidden layer and the center, and its expression is: ; in, Represents the weight parameter matrix of the hidden layer, which is initially ; A model evaluation unit, used to obtain an evaluated AI-generated music recognition model, evaluate the AI-generated music recognition model, and obtain the evaluated AI-generated music recognition model when the evaluation score exceeds a set threshold; The music recognition unit is used to obtain the music recognition result, input the music data into the evaluated AI-generated music recognition model, and obtain the AI music recognition result of the music data.
7. An AI-generated music recognition device based on an improved radial basis function, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement an AI-generated music recognition method based on an improved radial basis function as described in any one of claims 1 to 5.
