An Automatic Classification Method for Multiple Music Genres by Integrating Emotions and Intelligent Algorithms

ABSTRACT In this paper, we present an approach to improve the effectiveness of automatic classification of music genres by integrating emotion and intelligent algorithms. We propose an automatic recognition and classification algorithm for music spectra, which takes into account emotional cues that can be extracted from music to improve classification accuracy. To achieve this goal, we set different weight coefficients, which are continuously adjusted based on the convergence process of the previous iteration. The size of each weighting coefficient is adaptively controlled to reduce the number of iterations of the reconstruction process, thereby reducing the algorithm’s computational complexity and speeding up its convergence. We conducted several experiments to evaluate the effectiveness of our proposed method. The experimental results demonstrate that the automatic classification method of music genres, which integrates emotion and intelligent algorithms, can significantly improve the accuracy of automatic music genre classification. Moreover, our approach reduces the algorithm’s computational complexity, resulting in a faster convergence speed. Our proposed approach provides a promising solution for automatic music genre classification that takes into account emotional cues. The integration of emotion and intelligent algorithms can help achieve higher accuracy and reduce computational complexity, making the proposed method applicable in various scenarios.


Introduction
There is too much European and American rock music today.Due to the different times, the culture embodied in music, the expression of self-emotion, and the focus on music itself have made popular music gradually become a trend all over the world, and also formed the foundation of mainland popular music (Amendola et al. 2017).Half of pop music is done in the music factory, and the other half is done in the audience behavior of the market.Although the spokespersons of pop music acknowledge that pop music is a tool of American hegemony and that the global music industry is under the control of Anglo-American interest groups, they still criticize the political culture of some countries affected by pop music.The Frankfurt School relies more on dogmatic theory than empirical methods, and tends to exaggerate the homogenization results about business culture (Anaya Amarillas, 2021).
Criticism of cultural imperialism oversimplifies the driving force of cultural productivity and its consumption power.As with movies and TV shows, one cannot assume that just because the whole world is listening to Anglo-American pop songs (Cano et al. 2018).Critics of the Frankfurt School (with the exception of some prominent scholars) underestimate the ability of consumers in various countries to filter foreign information through their own cultural experience and to study the meaning of that information.These critics also assume that American cultural imperialism is the product of economic tyranny, especially the possession of capital (Costa-Giomi and Benetti 2017).
There is an interactive relationship between communication and popularity.On the one hand, modern mass media provides new production technologies and consumption forms for pop music, expands the "perceivable information" of pop music audio-visual, and even directly affects the content and connotation of pop music itself (Dickens, Greenhalgh, and Koleva 2018).In this way, pop music is closely related to the development of the economy, the economy affects the trend of music, and pop music in turn promotes the development of the economy.Pop music, which operates according to the laws of economic development, has been degenerating and changing around the problem of survival, and it is constantly colliding and rubbing with its own artistic pursuit.
Pop music is typically defined as a genre of popular music that originated in the 1950s and is characterized by catchy melodies, simple chord progressions, and relatable lyrics.The genre has evolved over time, incorporating elements of other genres such as rock, R&B, and hip hop, and continues to be a dominant force in the music industry today.
One of the defining features of pop music is its ability to reflect and comment on social issues.Pop songs often address topics such as love, relationships, and personal struggles, but they can also tackle larger societal issues such as politics, inequality, and social justice.In this sense, pop music can serve as a medium for artists to express their views on current events and connect with their audience on a deeper level.
Another aspect of pop music is its focus on creating music that appeals to the masses.Pop songs are often designed to be easily recognizable and memorable, with simple melodies and catchy hooks that can be quickly learned and sung along to.This emphasis on accessibility has helped pop music to reach a wide audience, making it one of the most commercially successful genres of music.
However, while pop music may be designed to please the masses, this does not necessarily mean that it is devoid of artistic merit.Many pop artists are skilled musicians and songwriters who are able to create music that is both commercially successful and artistically meaningful.Moreover, pop music continues to evolve and incorporate new sounds and styles, reflecting the changing tastes and interests of its audience.
In summary, pop music remains an influential and popular genre that is both reflective of and responsive to social issues.While its emphasis on accessibility and mass appeal may be seen as limiting by some, pop music continues to evolve and push the boundaries of what is possible within the genre.
The relationship between "communication" and "popularity" is both mutually dependent and interactive (Gonçalves and Schiavoni 2020).In this way, while the mass media maximizes the connection between pop music and the audience, it also goes beyond the form of intermediary, so that through The filter of cultural consumption directly penetrates into the daily life of the audience.However, once an avant-garde idea is accepted and assimilated by the public, its avant-garde will no longer exist (Gorbunova 2019).Rock music is popular today because of its uniqueness.This lack of personality seems to be fresh in society, but no matter how unscrupulous and strange it is, as long as it is in sync with the social psychology, it will form the basis of commercialization.When business labels anger, pain and laughter When one piece is taken off the industrialized assembly line and sold to the public on the market, this sentiment will be out of shape.It is certain that the relationship between commerciality and artistry will eventually break down after repeated conflicts and compromises.At this time, business will have a relationship with the next emerging culture, and start the next round of conflict and compromise (Gorbunova and Petrova 2019).The statement implies that the relationship between commerciality and artistry is inherently conflict-prone and unstable, and that this tension will inevitably lead to a breakdown of the relationship.This breakdown occurs when the two values are no longer able to coexist peacefully, and a choice must be made between them.
When this happens, the business world will be forced to adapt to the emergence of a new culture that challenges existing values and assumptions.This will likely involve a new round of conflict and compromise as the business world seeks to reconcile its own interests with those of the emerging culture.It is important to note that this relationship between commerciality and artistry is not a fixed or immutable one.Instead, it is constantly evolving and shifting as new values and cultural norms emerge over time.As such, the conflict and compromise that occurs between these two values is an ongoing process that will continue to play out over time.
Ultimately, the relationship between commerciality and artistry is a complex and multifaceted one that cannot be reduced to a simple binary opposition.While there will always be tension and conflict between these two values, it is also possible for them to coexist in a way that is mutually beneficial and sustainable.Achieving this balance requires a nuanced understanding of the relationship between these two values and a willingness to engage in ongoing dialogue and compromise.
The most terrifying power of the Internet is that it directly leads to "the world is flat."When music is digitized, it no longer needs the assembly line of the disc pressing factory, the time-consuming and expensive transportation, and the location in the record store.There are limited shelves, and broadcast TV with scarce channels is no longer needed.What it needs is network hard disk space, and what it needs is bandwidth (Khulusi et al. 2020).These two things, which are getting cheaper and freer, provide a convenient path and favorable conditions for the digital technology of independent music, making music dissemination and sales a thing that everyone can participate in.This dissemination method is the music technology.New creations and new starting points in the field of communication will have a profound impact on the music life of contemporary and even future human beings (Magnusson 2021).Today's development of network technology has made the scale and speed of today's music dissemination unprecedented and explosive.At this time, more music, not more capital, has truly become the core power of the music industry.People's concept of music has also undergone unprecedented changes.Changes in musical concepts lead to significant chain effects of musical behavior, social music production, musical phenomena and social music development.The globalization and integration of music followed (Michalakos 2021).
While any pop musician is fighting for commercial effect, the value of an individual or a specific work cannot be judged solely on the basis of commercial best-sellers.Because for the most part, popularity has little to do with the quality of the melody, harmony, rhythm, and structure of the music.This is because popular music is not just music itself, but to a large extent a sociocultural behavior and activity (Scavone and Smith 2021).
As a category of popular music, pop music has a special way of existence.Many musical factors combine to form its style, and it also has a special musical genre significance (Stensaeth 2018).But that's just the music itself.Considering the characteristics of the word "pop," pop music also needs a hotbed of social environment and popularity.The formation and development of popular music is a musical product born on the basis of the accumulation of various social and musical factors.These factors have formed a social and cultural foundation in the development of popular music, and the maturity of this foundation has promoted popular music.Come to this special historical era (Tabuena 2020).
Pop music is an important cultural concept of American popular music, revealing the unique cultural characteristics of American society.The formation of pop music has allowed the American people to break through the racial troubles in history; let the world reflect the concept of human nature that people of different races and skin colors can communicate with each other and live in harmony through music; the spread of popular music to the United States and the whole world The music, human beliefs, behaviors, customs, culture, etc. have brought about a revolution, leading to profound changes in some aspects of society (Turchet and Barthet 2019).It is undeniable that there is no music in the world that can cause such a strong shock in the whole world as American pop music, and bring such a strong impact on the culture and life of people in the United States and the world (Turchet, West, and Wanderley 2021).
The task of identifying and classifying music genres involves several steps that are essential for accurate classification.These steps include preprocessing of the music spectrum, extraction of music features, and discrimination of music genres.
The first step in this process is preprocessing, which is critical in music spectrum processing.Its primary purpose is to prepare the music spectrum for the next stage of feature extraction.Preprocessing techniques may involve filtering, smoothing, or segmenting the spectrum to improve the quality of the data and remove any unwanted noise.
The second step is feature extraction, which involves extracting relevant information from the preprocessed music spectrum.The extracted feature parameters are another form of expression of the music spectrum because the spectrum contains a vast amount of redundancy.If the audio music spectrum in the time domain is directly input into the classification system, the computation required would be too high.Feature extraction reduces the dimensionality of the data, making it easier to classify the music into different genres.
The final step is discrimination, where the extracted feature parameters are input into the classifier.The classifier models the features by adjusting its parameters, which are obtained through training.The classifier assigns the music to a particular genre based on the extracted features and its model parameters.
In summary, identifying and classifying music genres involves preprocessing the music spectrum to prepare it for feature extraction.The features are then extracted from the spectrum to reduce its dimensionality.Finally, the extracted features are used to train a classifier that can accurately discriminate between different music genres.These steps are crucial in achieving accurate and efficient classification of music genres.
The best model implements the discrimination of the genre to which the test music sample belongs (Vereshchahina-Biliavska et al. 2021).Among them, in the feature extraction module, traditional methods were used to extract music features, and the extraction process was more complicated.Now with the rapid development of deep learning, in the field of music information retrieval, people gradually began to use the self-learning characteristics of deep learning algorithms to extract more abstract features.Features that can characterize the essential attributes of music (Way 2021).
The paper presents an innovative approach to improve the automatic classification of music genres.The proposed method integrates emotion and intelligent algorithms into the process of music genre classification.The method uses emotional cues that can be extracted from music to improve the accuracy of classification.The main innovation lies in the use of adaptive weighting coefficients that are continuously adjusted during the convergence process of the algorithm.The size of each weighting coefficient is adaptively controlled to reduce the number of iterations required for the reconstruction process, thereby reducing the algorithm's computational complexity and speeding up its convergence.
The proposed approach is evaluated through several experiments, which demonstrate its effectiveness in improving the accuracy of automatic music genre classification.The integration of emotion and intelligent algorithms has shown to significantly improve the classification accuracy while also reducing the algorithm's computational complexity.The experimental results indicate that the proposed approach provides a promising solution for automatic music genre classification that takes into account emotional cues.
The significance of this work is that it provides a new approach to music genre classification that considers emotional cues.This approach has the potential to be applied in various scenarios, such as music recommendation systems, music information retrieval, and music analysis.The proposed method has the potential to improve the accuracy of these systems and reduce the computational complexity required to achieve this accuracy.
In summary, the paper presents an innovative approach to music genre classification that integrates emotion and intelligent algorithms.The proposed method is shown to significantly improve the accuracy of classification while reducing the algorithm's computational complexity.This work has the potential to be applied in various scenarios and provides a promising solution for automatic music genre classification that takes into account emotional cues.

Automatic Recognition and Classification Algorithm of Music Spectrum
The methodology consists of three main steps: (1) In the first step, "Sparse reconstruction algorithm of frequency hopping music spectrum," the researchers conduct a literature review and investigate existing methods for reconstructing sparse signals from frequency hopping music spectra.(2) In the second step, "Sparse reconstruction," the researchers apply a sparse reconstruction algorithm to the frequency hopping music spectra.This involves identifying the sparse coefficients that correspond to the significant components of the signal and reconstructing the original signal from these coefficients.(3) Finally, in the third step, "Gradient projection reconstruction algorithm based on weight and step correction," the researchers use a gradient projection reconstruction algorithm that incorporates weight and step correction.This algorithm is used to further refine the reconstructed signal and improve its accuracy presented in Figure 1.
Overall, the methodology involves a combination of research, signal processing techniques, and algorithmic refinement to reconstruct sparse signals from frequency hopping music spectra.

Sparse Reconstruction Algorithm of Frequency Hopping Music Spectrum
For the sparse music spectrum x N�1 , the sparse representation is x ¼ Ψα, and the perceptual matrix is A M�N ¼ Φ M�N Ψ N�N , then the RIP criterion is expressed as: Among them, ε K 2 ð0; 1Þ is the K-order RIP constant.A ¼ ΦΨ is the product of the measurement matrix Φ 2 R M�N and the sparse basis Ψ N�N , which is called the perception matrix.α 2 R N�1 is the sparse coefficient vector of the music spectrum under the sparse basis Ψ.The sparse coefficient is also N-dimensional, but only a few K components are significantly larger than zero or larger than other sparse components.Generally, only the K components are retained, and other components are set to zero, so there are only K non-zero components in the sparse vector, that is, K is sparse.The purpose of this criterion's restriction on the measurement matrix is to ensure that two different K-sparse music spectra x 1 ; x 2 will not be projected to obtain the same observation value, that is, the same observation value is consistent with the sampling set.That is, the matrix formed by randomly sampling M column vectors from the measurement matrix must be nonsingular, that is: The definition of the correlation between the sparse basis and the measurement matrix is expressed as: .To accurately restore the original music spectrum from the sparsely sampled music spectrum, the above correlation needs to meet the conditions, that is, for the sparse music spectrum x 2 R N�1 , the dimension M of the compressed and sampled music spectrum y 2 R M�1 must meet the following conditions: Among them, c is a known constant, and the value is c � log 2 ðN=K þ 1Þ.According to the above constraints, the original music spectrum can be reconstructed with a high probability.
In a Gaussian random matrix, each element is independent and identically distributed and has a normal distribution with mean 0 and variance 1 n .Therefore, in this paper, Gaussian random matrix is used as the sparse projection matrix for the frequency hopping music spectrum to perform compression sampling.Combined with the sparse representation model, the sampling process can be expressed as: The same music spectrum is reconstructed from compressed sample values combined with the OMP algorithm.In order to balance the possible errors in the simulation process, the simulation was performed 100 times to balance the accidental errors.Finally, the reconstruction performance curve shown in Figure 2 is obtained.The vertical axis in the figure represents the signal-tonoise ratio (SNR), and its unit is dB.
In Figure 2, we present the reconstruction performance curve, which represents the quality of the reconstructed signal compared to the original signal.The vertical axis of the curve represents the signal-to-noise ratio (SNR), which is a measure of the quality of the reconstructed signal.The SNR is expressed in decibels (dB), a logarithmic unit used to compare the power of two signals, in this case, the original signal and the reconstructed signal.A higher SNR value on the vertical axis indicates a better quality of the reconstructed signal, meaning that there is less noise and distortion in the reconstructed signal compared to the original signal.The curve shown in Figure 2 is obtained by varying the weight coefficients and evaluating the corresponding SNR values.The resulting curve provides an indication of the reconstruction performance of the algorithm at different weighting coefficients, allowing us to select the optimal weighting coefficients to achieve the best reconstruction quality.In summary, Figure 2 provides a graphical representation of the reconstruction performance of our proposed algorithm.The SNR values on the vertical axis indicate the quality of the reconstructed signal, and the curve shows how the quality varies with the weighting coefficients.
In order to satisfy the reconstruction condition, its sparsity must satisfy: During the compression sampling process, due to the limitation of the size of the observation matrix and the computational complexity, 400 points are used for simulation, and the length of the music spectrum is 400.The compressed measurement value is obtained after the Gaussian random matrix  is compressed and measured.The original time-domain music spectrum and the measured music spectrum are shown in Figures 3 and 4, respectively.
Based on the Gaussian random matrix, this paper combines the sparse redundancy dictionary to sparsely sample the frequency hopping music  spectrum to obtain the time-domain graph of the compressed sampling music spectrum, as shown in Figure 3: The measured value after the Gaussian random matrix is shown in Figure 3.The length of the original music spectrum is 400, which is multiplied by the Gaussian matrix to obtain the measured value.

Sparse Reconstruction
The process of reconstructing the original music spectrum from the compressed sampled music spectrum can be summarized as solving an underdetermined equation y=Ax, where A represents the product form of the measurement matrix and the sparse basis.
In order to facilitate the theoretical description of the following reconstruction part, the definition of L P -norm is first introduced.For the sparse music spectrum x ¼ x 1 ; x 2 ; . . .; x N ½ � T , its L P -norm is expressed as: Among them, 0 � p < 1,and k xk p is called the L p -norm of the vector x.
The geometric representation of the L p model is shown in Figure 5, and from left to right are 0<p < 1, p = 1, p = 2.
In the figure, the intersection of the straight line y ¼ ΦΨα and the shaded part represents the solution k αk L p ¼ P N i¼1 α i j j p � � 1=p .It can be seen that the solution of the L 2 -norm, that is, the intersection of the line and the L 2 -ball, will not be located on the coordinate axis, so there will be no sparse solution, and the intersection of the L 1 -norm and the line will be on the y-axis.Under certain conditions, it has a sparse solution.Combined with the L p -norm on the left side of the figureð0 � p < 1Þ, it also has a sparse solution.Therefore, it can be seen that in the process of sparse reconstruction, the L 0 -norm (combinatorial optimization problem) has the same solution as the L 1 -norm under certain conditions.Combined with the compression measurement model y ¼ ΦΨa ¼ Aa described above, we can know ΦΨ ¼ A. Reconstructing the original music spectrum from the compressed sample values of the music spectrum is essentially a regression problem.In general, the most straightforward approach is to solve for the minimum L 0 -norm.Considering the existence of different levels of noise in practice, the equality constraints are relaxed, and a constant parameter � is added to represent different noise levels, which is then expressed as: Obviously, the compressed component dimension in this formula is much smaller than the coefficient dimension, which is an underdetermined equation.To solve the minimum L 0 -norm of the above formula, it is necessary to traverse all C K N possibilities of non-zero values in the coefficient α, and then to find the minimum sparse coefficient.Therefore, the problem is an NP problem.
Considering the sparseness of the sparse coefficient vector f, the non-convex L 0 -norm optimization problem can be transformed into a convex optimization form of the minimum L 1 -norm optimization problem to solve, which is expressed as: Another representation is: In the above L 1 -norm problem, the solution method based on BP idea is to convert the convex optimization problem into an unconstrained convex optimization problem form, which is expressed as: The GPSR algorithm consists of two parts, projection and backtracking linear search.The purpose of the linear backtracking process is to ensure that the objective function is sufficiently reduced so that the iterative update value F z ðiþ1Þ À � conforms to the Armijo criterion.The solution idea of the algorithm is as follows.For the original N-dimensional sparse music spectrum x N ¼ Ψα, the variable separation process can decompose the component α of the sparse coefficient to be obtained into two components, denoted as α ¼ u À v, where u � 0; v � 0. That is to say, the positive and negative components of the original music spectrum x N are separated, and then the coefficient vector can be expressed as the sum of two vectors, expressed as k αk 1 ¼ I N u þ I N v.Among them, I N ¼ ½1; 1; . . .; 1� T 2 R N�1 is an N-dimensional row vector whose element is 1.Therefore, the above formula can be further expressed as the following form: This formula is equivalent to the following quadratic programming representation: Solving the gradient of this formula, we get: A ¼ ΦΨ represents the perception matrix, where belongs to the Toeplitz matrix.The step size is η, and z is updated by the scalar parameter, that is, z : z nþ1 ¼ z n À ηÑF z n ð Þ, and it searches along the negative gradient direction each time, and projects in the non-negative quadrant, and performs a backtracking linear search until it satisfies the iterative stop condition.The function value is defined as follows: The way to initialize the scalar parameter step size is to solve η 0 ¼ arg min η F z n À ηg ðkÞ À � .To solve the above problems, the core of the GPSR algorithm is to obtain a scalar parameter sequence η n > 0 and calculate The GPSR-BB algorithm also solves the unconstrained minimization problem, and the step size is updated in each iteration: Among them, H n represents the Hessian matrix approximation of F on z n .In the algorithm, it is approximated by the following H n ¼ η n I method.Among them, d and Hessian matrix properties are approximate, namely: By solving the least squares solution of this formula, this formula is transformed into: The sparse reconstruction based on L p -norm is essentially a linear regression method, which takes minimizing the residual component as the objective function to solve the sparse coefficient, and then reconstructs the original music spectral component from the obtained sparse coefficient.Among the algorithms for solving regression problems, the typical algorithm is the Least Absolute Convergence and Selection Operator (LASSO) algorithm.The LASSO minimization objective function is expressed as: LASSO realizes sparse approximation by converting the sparse approximation problem into a convex optimization problem to solve, and restricts the regression coefficients, that is, P N i¼1 α i j j � t to estimate the sparse coefficients, thereby minimizing the reconstruction error k y À ΦΨαk 2 .The algorithm adopts quadratic programming in the reconstruction process, which increases the computational complexity and makes the reconstruction very timeconsuming.For this purpose, LARS is used to solve the LASSO problem.
When the least squares method is solved by the LARS algorithm, the result of the coefficient solution can be expressed in the following form: where is the identity matrix.
The OMP algorithm is a forward feature selection method, based on a greedy algorithm at each step, where each step element is highly correlated with the current residual.It is similar to the simpler match pursuit (MP), but it is more efficient to reconstruct than MP, and at each iteration, the residuals can be recomputed using orthogonal projections onto previously selected dictionary elements.Different from the convex optimization form of L 1norm, OMP belongs to the tracking algorithm.Based on the greedy iterative idea of L 0 -norm, the reconstruction problem can be expressed as: Among them, x opt represents the musical spectrum to be reconstructed.The key to the solution process of the above formula is to select the atom with the highest degree of matching with the initial component or residual component from the perceptual matrix A ¼ ΦΨ in each iteration.

Gradient Projection Reconstruction Algorithm Based on Weight and Step Correction
The similarity between the GPSR algorithm and the OMP algorithm lies in the selection method of atoms, which is expressed as the atom with the largest similarity to the residual in the iterative process.The difference is that the GPSR algorithm always searches in the direction of negative gradient in the iterative process until the optimal solution is obtained.
In order to offset the imbalance existing in the classical GPSR reconstruction algorithm, this paper adjusts the balance in the above reconstruction problem by adding a weight coefficient to the sparse vector to control its penalty, which is expressed as: The weight of the α i component in the reconstruction process is controlled by w i , and the original fixed penalty term coefficient τ is replaced.The L 1 penalty term is directly controlled by the new adaptive parameter w i .The purpose of this paper is to set an appropriate regularization factor for the sparse component α i to achieve the optimum between the noise suppression ability and the sparse performance of the model, and further compromise the performance of the two.In addition, different regularization factors are applied to different components, which can reduce the influence of noise on the reconstruction accuracy and improve the reconstruction accuracy of the algorithm to a certain extent.
For the reconstructed model of the gradient update algorithm: The quasi-Lagrangian function representation of the model obtained after transformation from the linear programming model (ignoring non-negative constraints) is: The simplified form is: The equivalent quadratic programming model of this model (the proof process is shown in the appendix below) is: The step size selection is denoted as The algorithm updates along the direction of negative gradient, which is represented as: z nþ1 ¼ z n À α n g n .Among them, the step size parameter α n is greater than 0, and takes its negative direction.Therefore, the quadratic programming model can be further expressed as a functional form of gradient update: Among them, the matrix H n represents the Hessian matrix at the vector z n .The next step is to solve the step size by solving the optimal value of the model, which is represented as follows: In order to simplify the solution method of Hessian matrix, it is replaced by its approximate representation, which is expressed as: A new step size is obtained by substituting into the model, and the previous step size is replaced by this step size, and the step size is expressed as: Since the gradient is related to the forward direction of the step size in the algorithm, it is directly expressed in the form of its forward direction.Then, the step size is expressed as: For the solution of the forward direction, the delay gradient algorithm proposed by Friedlander is used to accelerate the convergence speed of the algorithm, and the step size is further transformed based on the delay strategy to obtain a new step size representation, which is expressed as: Based on the delayed gradient algorithm, the parameter matrix is set, and the update form of B nÀ 1 is as follows: It satisfies the BFGS correction criterion, where the gradient is y nÀ 2 ¼ g nÀ 1 À g nÀ 2 .
Based on this, the step size is rewritten as: nÀ 2 y nÀ 2 .Combined with the above GPSR-BB algorithm, the following constraints are added to the step size.That is, to ensure the optimal solution form of the step size and prevent the step size from being too large, it is necessary to limit the range nÀ 1 y nÀ 1 , and the final step size is expressed as: Combined with this value, the optimal value form is further derived, namely: Thus, the optimal step size is obtained.
(2) Design of weight coefficient w i In order to make the weight coefficient adaptive, this paper sets it to change according to the size of the vector x i , and assumes that at position i, the musical spectrum component is 0, and the estimated value xi at this moment is not equal to zero, or close to 0. At this time, the weight coefficient should be large enough to ensure that a larger penalty term is added in subsequent iterations to set x i to zero, otherwise the opposite is true.The second term of the weight coefficient represents the denoising ability.When the estimated value is equal to 0 or greater, indicating that the estimated value is correct, the weight value should be small to ensure that it will not affect the next iteration.In this way, the adaptive coefficient representation is set as: M active represents the support set, that is, the set of non-zero components.For the compressed measurement value x M , the weight coefficient update method is expressed as: . Obviously, the parameter γ is smaller when the sparsity is smaller.However, when the weight coefficient is large, it means that the control of the support set is enhanced, which is conducive to the acquisition of sparsity.The update method of the unsupported set is: At the same time, the fixed weight coefficient of the parameter c in the quadratic programming reconstruction model is replaced, which is expressed as: After the above-mentioned setting of the weight coefficient and step size, the algorithm can reconstruct the music spectrum without the priori condition of the music spectrum sparsity.At the same time, the improvement of the step size ensures that the calculation effect is better, and the improvement of the weight coefficient ensures that the algorithm complexity and reconstruction accuracy can be better balanced.

Algorithm Performance Simulation and Analysis
Figure 6 shows the time and frequency domain diagrams of the original frequency hopping music spectrum.For the frequency hopping music spectrum of 8hop, in order to be more in line with the actual situation, 3500 points are randomly intercepted here.The paper proposes an algorithm for reconstructing a frequency-hopping music spectrum.To evaluate the algorithm's feasibility, we conducted simulations using a Gaussian random matrix and added noise to the signal.The timedomain and frequency-domain diagrams of the reconstructed spectrum were then obtained and compared to the original frequency-hopping music spectrum.
Mean square error is a common metric used to measure the similarity between two signals, and a smaller value indicates a better reconstruction.Figure 7 shows  the comparison between the original and reconstructed spectra.The mean square error between the actual reconstructed music spectrum and the original frequency-hopping music spectrum was calculatedMSE¼3:26 � 10 À 4 .
The algorithm proposed can obtain a more accurate reconstruction effect.The use of the Gaussian random matrix indicates that the algorithm is based on a random matrix theory approach, which is effective in various signalprocessing tasks.This means that the algorithm effectively reconstructs the frequency-hopping music spectrum even in the presence of noise.
The time-frequency joint analysis is performed on the original frequency hopping music spectrum and the reconstructed frequency hopping music spectrum of the above music spectrum, that is, STFT transformation.The time-frequency diagrams of the original frequency hopping music spectrum and the reconstructed frequency hopping music spectrum are obtained, respectively, as shown in Figure 8: From the reconstructed time-frequency diagram, it can be found that the algorithm in this paper can reconstruct the original music spectrum with a certain accuracy for the frequency-hopping music spectrum in the noise environment (Mrozek 2018).On the above basis, the algorithm in this paper is combined with emotion recognition (Jiang et al. 2020;Joshi, Jain, and Nair 2021) to conduct an experimental study on automatic classification of music genres, and the accuracy of automatic classification of music genres is counted, and the results shown in Table 1 below are obtained.
Automatic classification of music genres involves using machine learning techniques to categorize music tracks based on their audio features, such as tempo, rhythm, melody, and timbre (Bolotova, Druki, and Spitsyn 2014;Turchet, West, and Wanderley 2021).On the other hand, emotion   recognition involves identifying the emotions expressed in the music, such as happiness, sadness, anger, and fear.Research has shown that integrating emotion recognition with automatic genre classification can lead to more accurate results.Intelligent algorithms can also improve the efficiency of music genre classification by learning from data and making predictions based on patterns in the audio features.Combining emotion recognition and intelligent algorithms can enable the system to not only classify music based on its audio features but also take into account the emotional content of the music.This can lead to more nuanced and accurate genre classification results, which can be useful in various applications such as music recommendation systems, search engines, and music therapy.
In summary, integrating emotion recognition with intelligent algorithms can improve the efficiency and accuracy of the automatic classification of music genres, making it a valuable tool in various applications.

Conclusion
The modern school is called a faction, but it is not a school or group in the traditional sense.It is all-encompassing, including almost all the content of cultural life, not just art and literature.In a sense, modernism is synonymous with historic new trends.The most direct goal of the modernist artist is to emphasize the difference and show individuality.Their artistic work is a direct manifestation of the achievement of these goals.Moreover, modernism not only means a transfer of creative direction, a kind of indifferent attitude toward tradition, but also means inheritance and development of tradition.In order to improve the effect of automatic classification of music genres, this paper combines emotion and intelligent algorithms to build an automatic classification model of music genres.The research shows that the automatic classification method of music genres integrating emotion and intelligent algorithms can play an important role in the automatic classification of music genres.
It is important to note that comparing the proposed method with other methods is a valid, future direction for the paper.It would be interesting to see how it performs compared to other well-known methods.Such a comparison can provide additional evidence of the proposed method's effectiveness and help researchers better understand its strengths and limitations.

Disclosure statement
No potential conflict of interest was reported by the author(s).
and Φ and Ψ are incoherent, that is, the row vector ϕ T n o M i¼1 of the matrix Φ cannot be sparsely represented by the column vector ψ j n o N j¼1 of the sparse base matrix Ψ.The column vector ψ j n o N j¼1 of the sparse basis Ψ cannot be sparsely represented by the measurement matrix row vector ϕ T i n o M i¼1

Figure 2 .
Figure 2. Comparison of the reconstruction performance of each matrix.

Figure 3 .
Figure 3.Time domain diagram of frequency hopping music spectrum.

Figure 4 .
Figure 4. Measure values of frequency hopping music spectrum.

Figure 6 .
Figure 6.Time-frequency diagram of frequency hopping music spectrum.

Figure 7 .
Figure 7. Time-frequency diagram of reconstructed frequency hopping music spectrum.
(a) Time-frequency diagram of the original frequency hopping music spectrum (b) Time-frequency diagram of reconstructed frequency-hopping music spectrum

Figure 8 .
Figure 8. Time-frequency diagram of music spectrum.

Table 1 .
Validation of the effect of automatic classification method of music genres integrating emotion and intelligent algorithms.