Spectral characteristic wavelength selection method based on simulated annealing bee colony algorithm

By combining Metropolis selection replication and greedy selection in the simulated annealing bee colony algorithm, and using temperature parameters to optimize the fitness function, the problems of premature convergence and low efficiency of the traditional algorithm are solved, and efficient optimization of spectral characteristic wavelengths and improvement of model performance are achieved. .

CN118709558APending Publication Date: 2024-09-27HEILONGJIANG BAYI AGRICULTURAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410850709.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The traditional artificial bee colony algorithm and simulated annealing algorithm have premature convergence and low evolutionary efficiency problems in the spectral wavelength selection process, which affects the efficient selection of spectral characteristic wavelengths.

Method used

The spectral characteristic wavelength selection method based on the simulated annealing bee colony algorithm is adopted, which combines Metropolis selection replication and greedy selection, combines the temperature parameter optimization to design the fitness function, and integrates it into the hired bee evolution process to avoid premature convergence and improve search efficiency.

Benefits of technology

It effectively avoids premature convergence, improves the search efficiency in the later stage of algorithm evolution, achieves efficient optimization of spectral characteristic wavelengths, and significantly improves the prediction performance and stability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709558A
    Figure CN118709558A
Patent Text Reader

Abstract

The invention discloses a spectral characteristic wavelength selection method based on a simulated annealing bee colony algorithm, which comprises the following steps of: performing population initialization and algorithm parameter setting by taking the number of preprocessed spectral data wavelength variables as a code length, and establishing a partial least square regression model by taking a binary bit with a coding value of 1 as a selected wavelength variable; a simulated annealing bee colony algorithm evolution process is executed by taking a cross validation root-mean-square error as a target function, a Metropolis selection replication strategy and greedy selection are combined to evolve employed bees, and a fitness function is optimized and designed by fusing temperature parameters to guide following bee evolution. And after multiple rounds of evolution, selecting an individual with the minimum objective function value as an optimal nectar source, wherein the optimal nectar source value is a binary bit of 1, namely the optimal spectral characteristic wavelength. The method expands the diversity of populations in the early stage of algorithm evolution to avoid premature convergence, improves the acceptance capability of high-quality solutions in the later stage of evolution to accelerate the convergence speed of the algorithm, and can realize efficient and intelligent selection of spectral characteristic wavelengths.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of spectrum wavelength selection, and in particular to a spectrum feature wavelength selection method based on a simulated annealing bee colony algorithm. Background Art

[0002] Spectral analysis technology has the advantages of being fast, non-destructive, and low-cost. By quickly acquiring a large amount of accurate spectral data and combining it with an established quantitative correction model, rapid detection of sample physical and chemical indicators can be achieved. However, the redundant and collinear wavelength variables in high-dimensional spectral data will seriously affect the prediction accuracy and robustness of the model. It is a necessary means to construct a high-precision quantitative regression model by eliminating collinearity and non-information variables in spectral data through characteristic wavelength selection and extracting highly correlated wavelength variables for quantitative modeling. Commonly used characteristic wavelength selection methods include interval partial least squares method, reverse interval partial least squares method, continuous projection algorithm, competitive adaptive reweighted sampling algorithm, etc. At the same time, intelligent optimization algorithms such as genetic algorithm and discrete particle swarm algorithm have also been effectively applied in the selection of spectral characteristic wavelengths.

[0003] However, the intelligent optimization algorithm itself has certain defects, such as premature convergence of genetic algorithms and poor global search ability of discrete particle swarm algorithms. In order to overcome the shortcomings of the intelligent optimization algorithm itself and give full play to its powerful search ability, the two intelligent optimization algorithms are often combined for optimization design, giving full play to their respective advantages while making up for their shortcomings. The artificial bee colony algorithm has the advantages of simple implementation, less parameter adjustment, and high stability, but with the increase of the number of algorithm iterative searches, the diversity of the population in the later stage of the algorithm decreases, resulting in a weakening of the global search ability of the algorithm in the later stage, and it is easy to produce premature convergence. The simulated annealing algorithm has good global optimization capabilities, but the search efficiency of the algorithm is low. In view of the demand for spectral feature wavelength optimization, it is of great significance to combine the artificial bee colony algorithm with the simulated annealing algorithm camera to construct a simulated annealing bee colony algorithm, and to develop a spectral feature wavelength selection method based on the simulated annealing bee colony algorithm. Summary of the invention

[0004] In order to overcome the problems of premature convergence and low evolution efficiency in the traditional artificial bee colony algorithm and simulated annealing algorithm in the process of spectral wavelength selection, the present invention proposes a spectral feature wavelength selection method based on the simulated annealing bee colony algorithm, which combines Metropolis selection replication with greedy selection into the employed bee evolution process, and integrates the fitness function strategy combined with temperature parameter optimization design into the follower bee evolution stage, which effectively avoids premature convergence while improving the search efficiency in the later stage of algorithm evolution, and makes full use of the powerful search capability of the algorithm to achieve efficient optimization of spectral feature wavelengths.

[0005] The technical solution adopted by the present invention comprises the following steps:

[0006] (1) Spectral data and corresponding chemical index data were input, and the spectral data were preprocessed by Savitzky-Golay smoothing, standard normal variable transformation, multivariate scattering correction, first-order derivative and their combination. A partial least squares regression model was established under the full spectrum with all sample data, and the optimal preprocessing method for spectral data was determined by comparing the K-fold cross-validation with the minimum root mean square error.

[0007] (2) For abnormal sample data errors that are difficult to correct through spectral preprocessing, the partial least squares regression model prediction residual mean-variance distribution diagram method based on Monte Carlo cross-validation is used to screen and eliminate abnormal samples; then the Kennard-Stone method is used to divide the data set after eliminating abnormal samples, and the correction set and validation set are constructed for regression correction model construction and performance evaluation.

[0008] (3) Using the calibration set sample data as the basis for wavelength selection to initialize the population and algorithm parameters, using the number of wavelength variables to be selected as the code length to initialize the binary nectar source population, randomly generating M binary sequences with a code length of L, where M is the population size; for each nectar source binary sequence, the wavelength variable data corresponding to the binary bit with a value of "1" is used for modeling operations, and the K-fold cross-validation root mean square error of the partial least squares regression model is calculated as the objective function; using The initial temperature is determined in the form of, where the initial temperature determination coefficient T is a positive integer, and are the maximum and minimum objective function values ​​of the initial population respectively; the cooling operation adopts t n+1 =αt n , where α is the cooling coefficient and 0<α<1.

[0009] (4) After executing the optimal retention strategy to directly retain the nectar source with the smallest objective function value in the current population to the next generation of the population, the employed bees, follower bees and scout bees are sequentially executed to complete a population evolution; in the employed bee evolution stage, the employed bees are at each nectar source x i Generate new solution v nearby i , and accept new solutions in a way that combines the Metropolis selection replication strategy with the greedy selection; in the follower bee evolution stage, after optimizing the fitness function in combination with the temperature parameter, a roulette wheel selection is performed based on the calculated fitness function value to determine the probability that the follower bee selects the employed bee, thereby obtaining the nectar source selected by the follower bee following the employed bee; the nectar source x selected by the follower bee i Generate new solution v nearby i , and determines whether to accept the new solution according to the greedy selection strategy; in the scout bee evolution stage, if the nectar source x iIf the number of times that the nectar source does not change reaches a given threshold, it is considered that the nectar source has been exhausted and has become an invalid nectar source. A randomly generated binary sequence with a code length of L will replace the nectar source x. i .

[0010] (5) After performing the cooling operation and calculating the objective function value of the new population, repeat step (4). If the maximum number of iterations of the algorithm has been reached, the loop ends and the optimal objective function value and the optimal position of the nectar source are output. The number corresponding to the binary bit with a value of "1" in the optimal position of the nectar source is the preferred spectral characteristic wavelength variable.

[0011] As a further improvement of the present invention, the new solution v in step (4) i The generation formula is as follows:

[0012]

[0013] in, and v ij The new solutions are v i The temporary real value of the jth bit and the corresponding final binary value, j∈[1,L], k is a random integer between 1 and M, and i≠k, φ ij is a random number in the range [-1,1], round() is a rounding function; new solution v i The j-th temporary real value of The value range of is [-1,2]. The above real-to-binary conversion method can effectively avoid the problem of unbalanced distribution between the real number domain and the binary domain caused by the traditional method using the Sigmoid function conversion.

[0014] As a further improvement of the present invention, in step (4), the new solution is accepted in a manner combining the Metropolis selection replication strategy with the greedy selection, and the specific process is as follows:

[0015] ① In the first half of the entire algorithm evolution (algorithm iteration number ≤ maximum iteration number / 2), nectar source x i And new solution v i According to the Metropolis selection replication strategy, the next generation of populations can be entered: Let Δf = f(x i )-f(v i ), if Δf ≥ 0, then the new solution v i Directly copy to the next generation population; if Δf<0, generate a random number r between [0,1], when r<exp(Δf / t n ), then we can also solve the new solution v i Copy to the next population; otherwise, the nectar source x iReplicate to the next generation population; accept inferior solutions with a certain probability in the early stage of algorithm evolution, which can expand the diversity of the solution space and avoid premature convergence;

[0016] ② In the second half of the entire algorithm evolution (algorithm iteration number > maximum iteration number / 2), honey source x i And new solution v i According to the greedy selection strategy, the next generation of populations can be entered: Let Δf = f(x i )-f(v i ), if Δf ≥ 0, then the new solution v i Directly copy to the next generation population; otherwise, the nectar source x i Copy to the next generation of population; applying the greedy selection strategy in the later stage of algorithm evolution can effectively speed up the evolution of the population.

[0017] As a further improvement of the present invention, the fitness function is optimized and designed in combination with the temperature parameter in step (4), and the calculation thereof is as follows:

[0018]

[0019] Among them, f(x i ) is the current nectar source x i The objective function value, f(x) min is the minimum objective function value of the current generation population, and t is the temperature parameter. With this fitness function design method, the fitness function values ​​calculated by the algorithm in the early stage of evolution (high temperature) are less different, and the probability of follower bees selecting employed bees determined by roulette wheel selection is not much different, which effectively avoids follower bees selecting individual excellent nectar sources to flood the entire population and cause premature maturity. In the later stage of algorithm evolution (low temperature), excellent chromosomes have larger fitness function values. When roulette wheel selection is used to determine the probability of follower bees selecting employed bees, excellent nectar sources are more likely to be selected by follower bees and inherited to the next generation, which speeds up the search speed of the algorithm.

[0020] Compared with the prior art, the present invention has the following beneficial effects:

[0021] Compared with the traditional artificial bee colony algorithm, the present invention combines the Metropolis selection replication strategy with the greedy selection to perform employed bee evolution, and integrates the temperature parameter to optimize the fitness function to guide the evolution of the follower bee, effectively solving the premature convergence problem of the traditional artificial bee colony algorithm and the low evolution efficiency of the simulated annealing algorithm. The present invention expands the diversity of the population in the early stage of algorithm evolution to avoid premature convergence, improves the acceptance of high-quality solutions in the later stage of evolution, accelerates the convergence speed of the algorithm, and can achieve efficient and intelligent selection of spectral feature wavelengths. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a schematic diagram of the process of the present invention;

[0023] Figure 2 The original spectral data of the corn stalk sample of the embodiment;

[0024] Figure 3 The spectral data of the corn stalk sample after preprocessing in the embodiment;

[0025] Figure 4 It is a Monte Carlo cross-validation partial least squares regression prediction residual mean-variance distribution diagram of the embodiment;

[0026] Figure 5 It is a comparison diagram of the characteristic wavelength selection process of the simulated annealing bee colony algorithm and the artificial bee colony algorithm in the embodiment. DETAILED DESCRIPTION

[0027] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0028] The present invention embodiment is a self-collected corn stalk data set, which consists of near-infrared spectrum data and lignocellulose content data, with a total of 184 samples. The sample spectrum wavelength range is 3946-11542cm -1 , resolution 8cm -1 , the number of wavelength variables is 1845, and the original spectral data is as follows Figure 2 As shown. The present invention uses corn stalk cellulose content as the dependent variable to perform characteristic wavelength selection and spectral modeling analysis to prove the effectiveness of the method of the present invention. The specific implementation steps are as follows:

[0029] S1: Input spectral data set and chemical concentration data, preprocess the spectral data by using Savitzky-Golay smoothing, standard normal variable transformation, multivariate scatter correction, first-order derivative and their combination, establish a partial least squares regression model under the full spectrum with all sample spectral data, and determine the best preprocessing method for spectral data by comparing the minimum root mean square error of 10-fold cross validation, which is Savitzky-Golay smoothing combined with multi-source scatter correction. The preprocessed spectral data is as follows Figure 2 shown.

[0030] S2: For abnormal sample data errors that are difficult to correct through preprocessing, the partial least squares regression model prediction residual mean-variance distribution diagram method based on Monte Carlo cross-validation is used to screen and eliminate abnormal samples; 2000 Monte Carlo cross-validation runs are performed to establish a partial least squares regression model, and the mean and variance of the prediction residuals of each sample are calculated, and the residual mean-variance distribution diagram of the sample prediction model is drawn, as shown in Figure 4As shown in the figure, samples 13, 54, 173, and 183 with means greater than 3 or variances greater than 0.6 far from the origin are removed as abnormal samples, and the remaining 180 samples are divided into a calibration set and a validation set at a ratio of 3:1 using the Kennard-Stone method.

[0031] S3: Using the calibration set sample data as the basis for wavelength selection, 100 binary sequences with a code length of 1845 are randomly generated as the initialization results of the nectar source population; for each nectar source binary sequence, the wavelength variable data corresponding to the binary bit with a value of "1" is used for modeling operations, and the 10-fold cross-validation root mean square error of the partial least squares regression model is calculated as the objective function, and the maximum objective function value of the initial population is determined. Sum and minimum objective function value Set the initial temperature determination coefficient T to 100 and use The initial temperature is determined in the form of t n+1 =αt n , the cooling coefficient α is set to 0.9, and the maximum evolutionary generation is 100.

[0032] S4: After executing the optimal retention strategy to directly retain the nectar source with the smallest objective function value in the current population to the next generation of the population, the employed bees, follower bees and scout bees are sequentially executed to complete a population evolution; in the employed bee evolution stage, the employed bees are at each nectar source x i Generate new solution v nearby i , and accept new solutions in a way that combines the Metropolis selection replication strategy with the greedy selection; in the follower bee evolution stage, after optimizing the fitness function in combination with the temperature parameter, a roulette wheel selection is performed based on the calculated fitness function value to determine the probability that the follower bee selects the employed bee, thereby obtaining the nectar source selected by the follower bee following the employed bee; the nectar source x selected by the follower bee i Generate a new solution v i , and determines whether to accept the new solution according to the greedy selection strategy; in the scout bee evolution stage, if the nectar source x i If the number of times that x does not change reaches 5, it is considered that the nectar source is exhausted and has become an invalid nectar source. A randomly generated binary sequence with a code length of L is used to replace the nectar source x. i .

[0033] S5: Press t n+1 =αt n After performing the cooling operation in the form of and calculating the objective function of the new population, repeat step (4). If the maximum number of iterations of the algorithm has been reached at this time, the loop is terminated and the optimal objective function value and the optimal position of the nectar source at this time are output. The number corresponding to the binary bit with a value of "1" in the optimal position of the nectar source is the preferred spectral characteristic wavelength variable.

[0034] In order to evaluate the wavelength selection modeling performance of the method proposed in the present invention, it is compared with the modeling performance of the genetic algorithm, simulated annealing algorithm, and artificial bee colony algorithm for optimizing characteristic wavelengths, and the best modeling performance of different algorithms is evaluated by taking the best method through multiple runs. The other three standard intelligent algorithms adopt the population size, encoding method, objective function and evolutionary algebra consistent with this method. The initial temperature determination coefficient, cooling operation and cooling coefficient of the simulated annealing algorithm are consistent with this method. The crossover probability of the genetic algorithm is 0.7, and the mutation probability is 0.01. Each intelligent algorithm runs 50 rounds for characteristic wavelength optimization, and the preferred characteristic wavelengths are used to establish partial least squares regression correction models, and the best models established by each algorithm are compared. Table 1 is the comparison results of the best regression model established by the genetic algorithm, simulated annealing algorithm, artificial bee colony algorithm and the optimal characteristic wavelength of this method and the full spectrum modeling performance.

[0035] Table 1 Comparison of the best performance indicators of partial least squares regression models established by different wavelength selection methods

[0036] Performance Indicators Full Spectrum Genetic Algorithms Simulated annealing algorithm Artificial Bee Colony Algorithm This method Number of wavelength variables 1845 949 907 1235 1129 Corrected determination coefficient 0.9604 0.9824 0.9842 0.9854 0.9861 Prediction coefficient of determination 0.9295 0.9413 0.9393 0.9369 0.9439 Correction root mean square error (%) 0.6935 0.4667 0.4432 0.4253 0.4158 Prediction root mean square error (%) 0.8466 0.7922 0.7851 0.8027 0.7538 Relative correction root mean square error (%) 1.5547 1.0464 0.9936 0.9535 0.9323 Relative prediction root mean square error (%) 1.9401 1.8156 1.7990 1.8396 1.7273 Relative analysis error 3.8514 4.1156 4.1531 4.0619 4.3253 Number of principal components 14 17 18 18 18

[0037] As can be seen from Table 1, the prediction performance of the corn straw cellulose correction model can be significantly improved by optimizing the characteristic wavelength variables. The best modeling performance of the four intelligent wavelength selection methods is better than the full spectrum modeling, and the partial least squares regression model established by this method has the best prediction performance. Considering the randomness and uncertainty of the intelligent algorithm, the modeling results obtained by taking the best in multiple runs are accidental and lack certain persuasiveness. In order to further verify the stability of the algorithm, the modeling performance of the above algorithms was compared by taking the average of multiple runs. The four algorithms were run for 50 rounds respectively, and the partial least squares regression models were established respectively using each sub-optimal characteristic wavelength. Then the mean of each performance index was taken, and the average modeling performance was compared and analyzed. Table 2 shows the average performance comparison results of the regression model established by optimizing the characteristic wavelength using genetic algorithm, simulated annealing algorithm, artificial bee colony algorithm and this method.

[0038] Table 2 Comparison of average performance indicators of partial least squares regression models established by different wavelength selection methods

[0039] Performance Indicators Genetic Algorithms Simulated annealing algorithm Artificial Bee Colony Algorithm This method Corrected determination coefficient 0.9836±0.0051 0.9834±0.0059 0.9840±0.0048 0.9849±0.0037 Prediction coefficient of determination 0.9357±0.0036 0.9359±0.0040 0.9361±0.0034 0.9365±0.0034 Correction root mean square error (%) 0.4467±0.0597 0.4487±0.0665 0.4420±0.0541 0.4308±0.0441 Prediction root mean square error (%) 0.8112±0.0244 0.8096±0.0259 0.8065±0.0200 0.8041±0.0209 Relative correction root mean square error (%) 1.0015±0.0013 1.0061±0.0014 0.9909±0.0012 0.9659±0.0009 Relative prediction root mean square error (%) 1.8591±0.0005 1.8553±0.0005 1.8483±0.0004 1.8427±0.0004 Relative analysis error 4.0229±0.1207 4.0316±0.1314 4.0452±0.1011 4.0577±0.1084

[0040] As can be seen from Table 2, the average modeling performance of the four intelligent algorithms for selecting characteristic wavelengths is better than that of the full spectrum modeling, and the average modeling performance of the characteristic wavelengths selected by this method is the best. The average values ​​of its various performance indicators are better than those of the other three algorithms, and the standard deviation of each indicator is also smaller than that of the other three intelligent algorithms. This further demonstrates that this method has good stability. It can be seen from the results of the best performance and average performance evaluation that this method not only performs well in the best performance evaluation, but also performs well in the average performance evaluation, which fully demonstrates the superiority and effectiveness of this method in the modeling process.

[0041] This method combines the advantages of artificial bee colony algorithm and simulated annealing algorithm. By combining temperature parameters to design fitness function and Metropolis selection and replication of employed bees, it effectively improves the diversity of the population in the early stage of algorithm operation, can solve the premature convergence problem of ABC algorithm, and ensure the search efficiency in the later stage of evolution. In order to fully demonstrate the rapid convergence and global optimization of this method in spectral wavelength selection, the spectral wavelength selection process of this method and artificial bee colony algorithm is compared and analyzed. Figure 5 This is a comparison chart of the spectral wavelength selection process of this method and the artificial bee colony algorithm (ABC). It can be seen from the figure that in the entire characteristic wavelength optimization process, the optimal objective function value selected by this method is better than the optimization result of the artificial bee colony algorithm. In the early stage of the algorithm, this method introduces the Metropolis selection replication strategy into the employed bee evolution, so that the algorithm can accept inferior solutions with a certain probability, increasing the diversity of the population; at the same time, the fitness is optimized and designed in combination with the temperature parameter, so that the fitness function values ​​of different nectar sources are not much different at high temperatures, avoiding the premature maturity caused by individual excellent nectar sources flooding the entire population during the evolution of the follower bee. Therefore, the average objective function value of the optimization result of this method fluctuates greatly in the early stage of the evolution process, and the difference with the optimal objective function value is also large. In the later stage of the algorithm, this method uses greedy selection to retain high-quality neighborhood solutions during the evolution of the employed bees. At low temperatures, the excellent nectar sources in the evolution stage of the follower bees have larger fitness function values ​​and a greater probability of being selected, which effectively improves the convergence speed of the algorithm. This is the reason why the average objective function value of this method is lower in the later stage of evolution and closer to the optimal objective value.

[0042] The embodiments disclosed in this article are preferred embodiments and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

[0043] In addition, it should be understood that this specification is described according to the implementation methods, and not every implementation method contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in this embodiment can also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.

Claims

1. A spectrum feature wavelength selection method based on simulated annealing bee colony algorithm, characterized in that: The steps are as follows: (1) Input spectral data and corresponding chemical index data, preprocess the spectral data by using Savitzky-Golay smoothing, standard normal variable transformation, multivariate scattering correction, first-order derivative and their combination, establish a partial least squares regression model under the full spectrum with all sample data, and determine the optimal preprocessing method for spectral data by comparing the minimum root mean square error of K-fold cross validation; (2) For the abnormal sample data errors that are difficult to correct through spectral preprocessing, the partial least squares regression model prediction residual mean-variance distribution diagram method based on Monte Carlo cross-validation is used to screen and eliminate abnormal samples; The Kennard-Stone method is then used to divide the data set after removing abnormal samples, and the calibration set and validation set are constructed for regression calibration model construction and performance evaluation; (3) Using the calibration set sample data as the wavelength selection basis to initialize the population and algorithm parameters, using the number of wavelength variables to be selected as the code length to initialize the binary nectar source population, randomly generating M binary sequences with a code length of L, where M is the population size; for each nectar source binary sequence, the wavelength variable data corresponding to the binary bit with a value of "1" is used for modeling operations, and the K-fold cross-validation root mean square error of the partial least squares regression model is calculated as the objective function; using The initial temperature is determined in the form of, where the initial temperature determination coefficient T is a positive integer, and are the maximum and minimum objective function values ​​of the initial population respectively; the cooling operation adopts t n+1 =αt n In the form of, α is the cooling coefficient, and 0<α<1; (4) After executing the optimal retention strategy to directly retain the nectar source with the smallest objective function value in the current population to the next generation of the population, the employed bees, follower bees and scout bees are sequentially executed to complete a population evolution; in the employed bee evolution stage, the employed bees are at each nectar source x i Generate new solution v nearby i , and accept new solutions in a way that combines the Metropolis selection replication strategy with the greedy selection; In the follower bee evolution stage, after optimizing the fitness function in combination with the temperature parameter, a roulette wheel selection is performed based on the calculated fitness function value to determine the probability of the follower bee selecting the employed bee, thereby obtaining the nectar source selected by the follower bee following the employed bee; Follow the bee's selected nectar source x i Generate a new solution v i , and determines whether to accept the new solution according to the greedy selection strategy; in the scout bee evolution stage, if the nectar source x i If the number of times that the nectar source does not change reaches a given threshold, it is considered that the nectar source has been exhausted and has become an invalid nectar source. A randomly generated binary sequence with a code length of L will replace the nectar source x. i ; (5) After performing the cooling operation and calculating the objective function value of the new population, repeat step (4). If the maximum number of iterations of the algorithm has been reached, the loop ends and the optimal objective function value and the optimal position of the nectar source are output. The number corresponding to the binary bit with a value of "1" in the optimal position of the nectar source is the preferred spectral characteristic wavelength variable.

2. The spectral characteristic wavelength selection method based on simulated annealing bee colony algorithm according to claim 1, characterized in that: The new solution v of step (4) i The generation formula is as follows: in, and v ij The new solutions are v i The temporary real value of the jth bit and the corresponding final binary value, j∈[1,L], k is a random integer between 1 and M, and i≠k, φ ij is a random number in the range [-1,1], round() is a rounding function; new solution v i The j-th temporary real value of The value range of is [-1,2]. The above real-to-binary conversion method can effectively avoid the problem of unbalanced distribution between the real number domain and the binary domain caused by the traditional method using the Sigmoid function conversion.

3. The spectral characteristic wavelength selection method based on simulated annealing bee colony algorithm according to claim 1, characterized in that: In step (4), the new solution is accepted in a manner combining the Metropolis selection replication strategy with the greedy selection. The specific process is as follows: (1) In the first half of the algorithm evolution (algorithm iteration number ≤ maximum iteration number / 2), the honey source x i And new solution v i According to the Metropolis selection replication strategy, the next generation of populations can be entered: Let Δf = f(x i )-f(v i ), where f(x i ) and f(v i ) is the nectar source x i And new solution v i The objective function value; if Δf ≥ 0, then the new solution v i Directly copy to the next generation population; if Δf<0, generate a random number r between [0,1], when r<exp(Δf / t n ), then we can also solve the new solution v i Copy to the next population; otherwise, the nectar source x i Replicate to the next generation population; accept inferior solutions with a certain probability in the early stage of algorithm evolution, which can expand the diversity of the solution space and avoid premature convergence; (2) In the second half of the entire algorithm evolution (algorithm iteration number > maximum iteration number / 2), the honey source x i And new solution v i According to the greedy selection strategy, the next generation of populations can be entered: Let Δf = f(x i )-f(v i ), if Δf ≥ 0, then the new solution v i Directly copy to the next generation population; otherwise, the nectar source x i Copy to the next generation of population; applying the greedy selection strategy in the later stage of algorithm evolution can effectively speed up the evolution of the population.

4. The spectral characteristic wavelength selection method based on simulated annealing bee colony algorithm according to claim 1, characterized in that: In step (4), the fitness function is optimized and designed in combination with the temperature parameter, and its calculation formula is as follows: Among them, f(x i ) is the current nectar source x i The objective function value, f(x) min is the minimum objective function value of the current generation population, and t is the temperature parameter. With this fitness function design method, the fitness function values ​​calculated by the algorithm in the early stage of evolution (high temperature) are less different, and the probability of follower bees selecting employed bees determined by roulette wheel selection is not much different, which effectively avoids follower bees selecting individual excellent nectar sources to flood the entire population and cause premature maturity. In the later stage of algorithm evolution (low temperature), excellent chromosomes have larger fitness function values. When roulette wheel selection is used to determine the probability of follower bees selecting employed bees, excellent nectar sources are more likely to be selected by follower bees and inherited to the next generation, which speeds up the search speed of the algorithm.