A multi-objective hybrid optimization virtual sample generation method for dioxin detection
Through the multi-objective hybrid optimization virtual sample generation method, the problem of scarcity of dioxin detection data in the MSWI process is solved, a high-precision DXN soft measurement model is realized, and the real-time operation optimization of the MSWI process is supported.
Patent Information
- Application Number
- CN202210095424.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-26
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-01-26
AI Technical Summary
Dioxin detection in the MSWI process faces real-time, accurate and low-cost detection problems. It is limited by complex physical and chemical reactions and data scarcity, making existing detection methods expensive and time-lag, making it difficult to optimize real-time operations.
A multi-objective hybrid optimized virtual sample generation method for dioxin detection is adopted to generate high-quality virtual samples through particle design, fitness function design and multi-objective hybrid optimization algorithm, optimize the virtual sample generation and selection process, and build high-precision DXN software Measurement model.
It is possible to reduce the number of virtual samples while ensuring the generalization performance of the model, ensure the quality and optimal number of virtual samples, improve the real-time detection capability of DXN emission concentration, and support the real-time operation optimization of the MSWI process.
Smart Images

Figure CN114417727B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of dioxin detection in MSWI process, and in particular to a multi-objective mixed optimization virtual sample generation method for dioxin detection. Background Art
[0002] Municipal solid waste incineration (MSWI) based on grate furnace is a widely used technology for municipal solid waste treatment and recycling. Although MSWI is currently the most widely used method for reducing the volume, quantity and resource utilization of municipal solid waste in the world, the MSWI process will produce dioxin (DXN), which is known as the "poison of the century". It is a highly toxic pollutant and the main reason for the "NIMBY phenomenon" of MSWI power plants.
[0003] Real-time, accurate and low-cost detection of DXN is one of the keys to achieving emission control in the MSWI process, and it is also a difficult problem that the industry is currently working to solve. Since the MSWI process usually involves complex physical and chemical reactions, it is difficult to build an effective mechanism model, and the accuracy of the empirical model built based on expert knowledge extraction is limited. At present, the DXN emission concentration in the MSWI process is usually measured by offline direct detection and online indirect detection, but both methods have limitations such as high price and time lag, and it is difficult to support real-time operation optimization aimed at reducing pollution emission concentrations.
[0004] DXN emission concentration is affected by hundreds of process parameters such as furnace temperature, flue gas flow, CO concentration, etc. Industrial systems usually operate in steady-state mode for a long time, which leads to extremely similar working conditions corresponding to most of the data, making the available effective modeling sample data scarce and unevenly distributed; and the risk of obtaining MSWI process data through experimental design means or sudden working conditions is high or not allowed, so the labeled true value samples (true input-true output) of DXN emission concentration have high-dimensional and scarce characteristics. In summary, modeling DXN emission concentration often requires solving the problems of high dimensionality, small number, sparse distribution and imbalance of modeling samples before building a soft measurement model with high accuracy and strong robustness.
[0005] The VSG technology, first proposed in the field of pattern recognition, solves the problem of small samples by amplifying the original modeling samples. Its essence is to generate an appropriate number of virtual samples by capturing the missing information between small samples to improve the prediction performance of the model. In view of the common problem that prior knowledge in different fields cannot be obtained or is difficult to extract, VSG research has increasingly focused on how to extract knowledge from known samples to generate virtual samples. The VSG research for soft measurement of DXN emission concentration has the following difficulties: 1) In view of the sparse and unbalanced distribution characteristics of the original small samples, how to explore the actual data distribution space based on the original small samples and generate virtual sample inputs in a balanced manner; 2) How to generate reasonable virtual outputs for virtual inputs through mapping models to obtain a large number of high-quality virtual samples with redundant and complementary characteristics; 3) How to screen out effective high-quality virtual samples and determine their optimal number; 4) How to quantitatively evaluate virtual samples to support their screening strategies. Summary of the invention
[0006] The purpose of the present invention is to provide a multi-objective hybrid optimization virtual sample generation method for dioxin detection, optimize the generation and selection process of virtual samples, and solve the problem of limited sample number in soft measurement modeling of DXN emission concentration in MSWI process.
[0007] To achieve the above object, the present invention provides the following solutions:
[0008] A multi-objective hybrid optimization virtual sample generation method for dioxin detection comprises the following steps:
[0009] S1, particle design for hybrid optimization: Through particle design, a hybrid optimization strategy of continuous variables and discrete variables is implemented. The position of the particle, i.e., the decision variable, is divided into two parts: the parameter decision variable and the sample selection decision variable. The parameter decision variable guides the generation of candidate virtual samples and is a continuous variable. The sample selection decision variable screens candidate virtual samples and is a high-dimensional discrete variable.
[0010] S2, fitness function design for VSG: According to the particle design in step S1, its fitness is calculated in three stages, including generating candidate virtual samples, selecting candidate virtual samples, and calculating virtual sample evaluation indicators, specifically:
[0011] Firstly, based on the original training set, the domain is expanded by using the improved MTD method to obtain the upper and lower limits of the input and output expansion domains; then, in the input expansion domain, the virtual sample input is generated by hybrid interpolation, and the RF and RWNN mapping models are constructed respectively, and the corresponding virtual sample output is generated thereby; then, the virtual samples are deleted and mixed according to the output expansion domain to obtain candidate virtual samples; further, the candidate virtual samples are selected to obtain the preferred virtual samples; accordingly, the evaluation indicators are the number of virtual samples and the prediction performance of the RF model constructed by the mixed samples consisting of virtual samples and the training set on the validation set;
[0012] S3, multi-objective hybrid optimization design for VSG: The improved CLPSO algorithm is used to perform multi-objective hybrid optimization on the VSG process, specifically:
[0013] After the algorithm is initialized, it enters the iterative search process. First, the particle velocity is updated; then, the position of the parameter decision variable is updated to guide the generation of candidate virtual samples; then, the position of the sample selection decision variable is updated, and the candidate virtual samples are selected after variable dimension decoding; then the particle fitness is calculated based on the preferred virtual sample; then, the optimal individual particle, external archives and sample pool are updated; the above steps are repeated to search for the best until the maximum number of iterations is reached. After determining the global optimum, the optimal virtual sample set is obtained. The optimal virtual sample set is the modeling sample required for the DXN soft measurement model.
[0014] Furthermore, the method further comprises:
[0015] S4, using the virtual sample comprehensive evaluation index and distribution similarity index, measures the contribution of the optimal virtual sample set obtained in step S3 to the performance of the DXN soft sensor model and the effect of the virtual sample on improving the small sample distribution.
[0016] Furthermore, in step S1, the particle design for hybrid optimization specifically includes:
[0017] The designed particles are denoted as in, is a parameter decision variable used to optimize hyperparameters during virtual sample generation; Select decision variables for samples, which are used to optimize the selection of candidate virtual samples;
[0018] Each particle contains the position z p , speed v p , learning example E p , fitness f num (z p ) and f mod (z p ), individual optimal ranking rankp And the learning probability P c p Attributes; among them, the individual optimal ranking rank of particles p Determine the learning probability P c p , which in turn affects the learning example E p Update of E p Guide particle speed v p The search direction and step size are used to determine the particle position update; according to the particle position z p Calculate the fitness f num (z p ) and f mod (z p ), update the individual optimum of particles and their ranking through fitness;
[0019] The parameter decision variable Contains four parameters, among which: z MTD is the expansion rate γ based on the improved MTD domain expansion extend , optimize its value according to the distribution of different modeling data, so as to obtain an expansion space that is more consistent with real data, and generate virtual sample inputs in this space; and Respectively represent the segmentation feature number L of the RF mapping model F and the threshold value θ of the number of samples contained in the decision tree leaf node leaf , by optimizing L F and θ leaf Two parameters are used to build a mapping model that better reflects the characteristics of real data, thereby generating more accurate virtual sample output; RWNN It represents the number of hidden layer neurons I of the RWNN mapping model. The purpose of optimizing this parameter is the same as that of the RF mapping model.
[0020] The sample selection decision variable The dimension of is consistent with the number of virtual samples to be selected, where During the optimization process, The virtual samples are selected by encoding and decoding; in addition, since the number of candidate virtual samples is not fixed during the iteration process, The dimension of also needs to be transformed.
[0021] Furthermore, in step S2, the fitness function design for VSG specifically includes:
[0022] S201, generate candidate virtual samples:
[0023] Establishing parameter decision variables The relationship between MTD, RF and RWNN hyperparameters is as follows:
[0024]
[0025] The process of generating candidate virtual samples is as follows: First, based on the expansion rate γ extend The original sample space is extended by an improved MTD domain, and virtual sample input is generated by hybrid interpolation in the original domain and the extended domain; then, based on the RF modeling parameter L F and θ leaf Construct the RF mapping model, and construct the RWNN mapping model based on the RWNN modeling parameters I to generate the output value corresponding to the virtual sample input; finally, mix and delete the generated virtual samples to obtain the candidate virtual sample R vs-g ;
[0026] S202, candidate virtual sample selection:
[0027] During the optimization algorithm initialization process, the sample selection decision variable of the particle The dimension of is set to the maximum value so as to be consistent with the generated candidate virtual sample R vs-g Correspondingly, as follows:
[0028]
[0029] in, N vs-g Represents R vs-g The number of samples in ;
[0030] Due to the vss Directly decode the obtained preferred virtual sample R vs-s may contain virtual samples outside the extended domain, so we need to first vss Perform dimension change processing as follows:
[0031]
[0032] The principle represented by the above formula is: set the decision variables corresponding to the virtual samples outside the extended domain to be invalid; Decode, that is, obtain the preferred virtual sample R from the candidate virtual samples vs-s ; Among them, R vs-d represents the virtual sample set after deletion;
[0033] Right vss After decoding, the virtual sample R selected by the particle can be obtained vs-s , as follows,
[0034]
[0035] Among them, θ select is the selection threshold for the virtual sample;
[0036] S203, calculation of virtual sample evaluation index:
[0037] Calculate the obtained virtual sample subset R vs-s The evaluation index is used as the fitness of the particle as follows:
[0038] f num (z) = N vs-s (28)
[0039]
[0040] Among them, N vs-s is the virtual sample set R vs-s The number of virtual samples is taken as the fitness f num (z); F is the virtual sample set R vs-s The generalization performance index is calculated as follows: train With R vs-s Mix to obtain a temporary mixed sample set R′ mix = {R train ; R vs-s}; then based on R′ mix Construct a temporary RF model f′ RF (·); Then, calculate the validation set R valid In f′ RF The generalization performance F on (·) is taken as the fitness f mod (z).
[0041] Furthermore, the step S201, generating candidate virtual samples, specifically includes:
[0042] 1) Generate virtual sample input:
[0043] Based on the expansion rate γ extend , the improved MTD domain expansion method is used to respectively train ={X train ,y train}'s input and output are domain expanded;
[0044] First, expand the output domain and calculate The mean value y ave , and thus y train Divided into y high and low After two parts; calculate y train The maximum value y max and the minimum value y minAs the expansion space; and then calculate y separately high The mean value y H-ave and low The mean value y L-ave ; Accordingly, the upper limit y of the output extension domain is vsg-max With the lower limit y vsg-min Calculated by the following formulas:
[0045]
[0046]
[0047] Among them, d y-high =||y H-ave -y max || is y max and H-ave The Euclidean distance between y-low =||y L-ave -y min || is y min and L-ave The Euclidean distance between vsg-min-know Indicates the lower limit of sample output determined by prior knowledge; rate high and rate low They are the upper and lower expansion skewness of the sample output, as follows:
[0048] rate high =N high / (N high +N low ) (14)
[0049] rate low =N low / (N high +N low ) (15)
[0050] Among them, N high and N low Represents y high and low The number of; In the same way, expand the sample input space to obtain its expansion upper limit x vsg-max With lower limit x vsg-min ;
[0051] Next, equally spaced interpolation and random interpolation are performed in the sample input extension space to generate virtual sample inputs;
[0052] Interpolation is performed between two adjacent samples at equal intervals, as shown in the following formula:
[0053]
[0054]
[0055] Among them, N equal Indicates the equally spaced interpolation multiple;
[0056] Similar to interpolation between samples, equally spaced interpolation is performed in the extended domain outside the original small sample space to obtain the final equally spaced interpolated virtual sample input, which is recorded as X equal ; After that, random interpolation is performed in the input extension domain space to obtain random interpolation virtual sample input, which is recorded as X rand ,as follows:
[0057]
[0058]
[0059] Among them, N rand Indicates the random interpolation multiple;
[0060] Finally, the virtual sample input obtained by equal interval interpolation and random interpolation is mixed to obtain the virtual sample input, which is recorded as X vs-g ={X equal ;X rand};
[0061] 2) Generate virtual sample output:
[0062] Two mapping models are used to generate the output of virtual samples, where the RF and RWNN mapping models can obtain outputs with higher stability and stronger randomness, respectively;
[0063] 2-1) Output of RF mapping model:
[0064] Based on the parameter L F and θ leaf , using the original training set R train ={X train ,y train}Build RF mapping model;
[0065] First, for R train Perform N random samplings with replacement, and then randomly divide L F Features, get training set Thus, the k-th decision tree model is constructed Set the minimum number of samples that limit the decision tree to continue splitting to θ leaf ; Then, repeat the above process to construct K decision trees; integrate all the above decision trees to obtain the final mapping model;
[0066] Furthermore, the virtual sample output obtained based on the RF mapping model is:
[0067]
[0068] Thus, the obtained virtual sample set is recorded as R vs-g1 ={X vs-g ,y vs-g1};
[0069] 2-2) Output of RWNN mapping model:
[0070] Based on parameter I, using the original training set R train ={X train ,y train}Build a RWNN mapping model, which includes an input layer, an output layer and a single hidden layer;
[0071] First, randomly set the connection weights W between the input layer and the hidden layer neurons. 1 ,w 2 ,...,w I} and bias b={b 1 ,b 2 ,...,b N} T , the output matrix H of its hidden layer ori as follows:
[0072]
[0073] Among them, h ni =Γ map (w i ,b n ,x n ) is the hidden layer node value; I = z RWNN is the number of neurons in the hidden layer of RWNN; Γ map Represents a mapping function with sigmoid function as activation function;
[0074] Next, the generalized inverse matrix is used to calculate the connection weight β between the hidden layer and the output layer neurons, as follows:
[0075] β=(H ori ) + y train (twenty two)
[0076] Among them, (H ori ) + H ori The generalized inverse matrix of ;
[0077] Then, the RWNN mapping function calculates the virtual sample output y corresponding to the virtual sample input vs-g2 for,
[0078] y vs-g2 =Γ map (ω,b,X vs-g )β=H vs-g β (23)
[0079] The virtual sample set obtained is denoted as R vs-g2 ={X vs-g ,y vs-g2};
[0080] 3) Obtain candidate virtual samples:
[0081] Mix the above virtual sample sets to obtain R vs-g = {R vs-g1 ; R vs-g2}={X vs-g ,y vs-g};
[0082] Expand the lower limit y according to the virtual sample output domain vsg-min and the upper limit y vsg-max For the virtual sample set R vs-g Make deletions as follows:
[0083]
[0084] Then, we obtain the candidate virtual sample set R vs-d ,in, R vs-g The number of samples N in vs-g Greater than or equal to R vs-d The number of samples N vs-d .
[0085] Furthermore, the step S3, multi-objective hybrid optimization design for VSG, specifically includes:
[0086] S301, population initialization:
[0087] First, for the number of particles P num , number of iterations N iter , update threshold N refresh , set the parameters of the upper and lower limits of the parameter decision variables; then, generate num A population of particles is randomly initialized, and the particle position and velocity are calculated. Then, the individual optimal and external archives of the particles are initialized. Finally, the learning probability and learning examples of the particles are calculated.
[0088] S302, iterative optimization stage:
[0089] First, the particle velocity v is updated according to the CLPSO algorithm. p; Then, update the position of the particle parameter decision variable according to the CLPSO algorithm According to formula (11) The characterization result is used to generate candidate virtual samples in the manner described in step S201; then, the position of the sample selection decision variable of the particle is updated according to the CLPSO algorithm. The candidate virtual samples are selected in the manner described in step S202 to obtain the virtual sample R vs-s ; Then calculate R according to the method described in step S203 vs-s The evaluation index is used as the particle fitness value F(z p ); Secondly, based on the fitness value, update the optimal individual particle, store the non-dominated solution found by the population in the file, and update the file A; then, calculate the optimal individual ranking rank of the particle p , and update its learning probability P according to the CLPSO algorithm c , and then for iteration N refresh After this time, the particles whose individual best has not been updated will update their learning examples;
[0090] On the basis of the updating sample pool strategy adopted by the standard CLPSO, a new strategy of adding sample selection decision variables to learn from particles in the archive is as follows:
[0091]
[0092] Then, according to the above steps, the optimization is continuously iterated until the maximum number of iterations N is reached. iter Then, the evaluation index ρ of the particle fitness in file A is calculated according to the following formula: i ,
[0093]
[0094] Among them, ρ i represents the comprehensive evaluation index of virtual samples in the optimization process, f mod (φ) represents the generalization performance index F of the original training set without virtual samples, a i represents the non-dominated solution in file A;
[0095] Finally, the file ρ i The particle with the largest value is regarded as the global optimal particle. The optimal virtual sample R is obtained by variable-dimensional decoding of the global optimal sample selection decision variable. vs .
[0096] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects: the multi-objective hybrid optimization virtual sample generation method for dioxin detection provided by the present invention, firstly, performs hybrid optimization-oriented particle design, adopts a hybrid optimization strategy to realize simultaneous optimization of parameter decision variables and sample selection decision variables, and ensures the rationality and effectiveness of DXN virtual samples; secondly, performs VSG-oriented fitness function design, in order to realize candidate virtual sample generation, candidate virtual sample selection and virtual sample evaluation index calculation; finally, performs VSG-oriented multi-objective hybrid optimization process design, adopts an improved CLPSO algorithm to perform multi-objective hybrid optimization on the VSG process, and reduces the number of virtual samples as much as possible while ensuring the generalization performance of the DXN soft measurement model, which not only ensures the overall quality of the virtual samples, but also determines the optimal number of virtual samples; in addition, new evaluation indicators, namely, virtual sample comprehensive evaluation indicators and distribution similarity indicators, are proposed to measure the contribution of virtual samples to the performance of the DXN soft measurement model and the effect of virtual samples on improving the distribution of small samples; at the same time, the actual DXN emission data of the MSWI process are used to verify the effectiveness of the proposed method. BRIEF DESCRIPTION OF THE DRAWINGS
[0097] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0098] Figure 1 This is the process flow chart of MSWI;
[0099] Figure 2 A schematic diagram of the process of the multi-objective mixed optimization virtual sample generation method for dioxin detection of the present invention;
[0100] Figure 3 Schematic diagram of particle design based on hybrid optimization strategy of the present invention;
[0101] Figure 4 Schematic diagram of the Parato frontier of the non-dominated solution of the present invention. DETAILED DESCRIPTION
[0102] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0103] The process flow of MSWI is as follows Figure 1 shown. Figure 1 In the DXN analysis, the DXN generated by the MSWI process is contained in three products: ash, fly ash and flue gas. The DXN contained in the flue gas can be divided into the following according to the process stage: flue gas G1 when DXN is generated, flue gas G2 after DXN is adsorbed and flue gas G3 discharged to the atmosphere. Mechanistically, the sources of DXN include incomplete combustion of solid waste and generation of new synthetic reactions. Generally, in order to ensure the effective decomposition of toxic organic matter such as DXN, the flue gas temperature in the solid waste incineration stage should reach at least 850°C and be maintained for 2 seconds. In addition, in order to reduce the concentration of DXN in the exhaust flue gas, slaked lime and activated carbon need to be sprayed into the reactor in the flue gas treatment stage to adsorb DXN and certain heavy metals. In addition, the DXN memory effect caused by the accumulation of dust in the waste heat boiler and flue gas treatment stage, the mechanism of which is still unclear, will also lead to an increase in the emission concentration of DXN. The process variables of the above different stages are collected by the field control system with a period of seconds. However, incineration enterprises or environmental protection departments usually test the DXN concentration in flue gas G3 offline on a monthly / quarterly or longer uncertain cycle, but this method requires special laboratory analysis equipment, and the detection cost is high and time-consuming. In addition, the concentration of easily detectable gases (CO, HCL, SO2, NOx and HF, etc.) in flue gas G3 can be detected in real time by the CEMS system, and there is a correlation with the DXN concentration. The online indirect detection method based on indicators / correlations requires first detecting the concentration of indicators / related substances and then indirectly calculating the DXN emission concentration based on the mapping model, which requires expensive and complex online analysis equipment, and there is also a time lag on the scale of hours. Therefore, it is necessary to construct a soft measurement model for DXN emission concentration to achieve online real-time detection.
[0104] In summary, the DXN concentration in flue gas G3 is related to the process variables at different stages of the MSWI process, and the data (true input-true output) for constructing the DXN prediction model has the characteristics of scarce sample quantity, uneven distribution, and high input feature dimension. At present, the commonly used soft sensing methods are to construct soft sensing models by reducing the dimension of modeling samples, which does not fundamentally solve the problem of scarce modeling samples, and unselected features may cause information loss.
[0105] The purpose of the present invention is to provide a multi-objective hybrid optimization virtual sample generation method for dioxin detection, optimize the generation and selection process of virtual samples, and solve the problem of limited sample number in soft measurement modeling of DXN emission concentration in MSWI process.
[0106] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0107] like Figure 2 As shown, the multi-objective hybrid optimization virtual sample generation method for dioxin detection provided by the present invention comprises the following steps:
[0108] S1, particle design for hybrid optimization: Through particle design, a hybrid optimization strategy of continuous variables and discrete variables is implemented. The position of the particle, i.e., the decision variable, is divided into two parts: the parameter decision variable and the sample selection decision variable. The parameter decision variable guides the generation of candidate virtual samples and is a continuous variable. The sample selection decision variable screens candidate virtual samples and is a high-dimensional discrete variable.
[0109] S2, fitness function design for VSG: According to the particle design in step S1, its fitness is calculated in three stages, including generating candidate virtual samples, selecting candidate virtual samples, and calculating virtual sample evaluation indicators, specifically:
[0110] Firstly, based on the original training set, the domain is expanded by using the improved MTD method to obtain the upper and lower limits of the input and output expansion domains; then, in the input expansion domain, the virtual sample input is generated by hybrid interpolation, and the RF and RWNN mapping models are constructed respectively, and the corresponding virtual sample output is generated thereby; then, the virtual samples are deleted and mixed according to the output expansion domain to obtain candidate virtual samples; further, the candidate virtual samples are selected to obtain the preferred virtual samples; accordingly, the evaluation indicators are the number of virtual samples and the prediction performance of the RF model constructed by the mixed samples consisting of virtual samples and the training set on the validation set;
[0111] S3, multi-objective hybrid optimization design for VSG: The improved CLPSO algorithm is used to perform multi-objective hybrid optimization on the VSG process, specifically:
[0112] After the algorithm is initialized, it enters the iterative search process. First, the particle velocity is updated; then, the position of the parameter decision variable is updated to guide the generation of candidate virtual samples; then, the position of the sample selection decision variable is updated, and the candidate virtual samples are selected after variable dimension decoding; the particle fitness is calculated based on the preferred virtual sample; then, the optimal individual particle, external archives and sample pool are updated; the above steps are repeated to search for the best until the maximum number of iterations is reached, and the optimal virtual sample set is obtained after determining the global optimum. The optimal virtual sample set is the modeling sample required for the DXN soft measurement model;
[0113] S4, using the virtual sample comprehensive evaluation index and distribution similarity index, measures the contribution of the optimal virtual sample set obtained in step S3 to the performance of the DXN soft sensor model and the effect of the virtual sample on improving the small sample distribution.
[0114] The algorithm principle based on the method of the present invention is introduced as follows:
[0115] 1. Introduction to the principle of multi-objective particle swarm optimization algorithm:
[0116] 1.1 Multi-objective optimization problem
[0117] Usually, the multi-objective problem (MOP) is transformed into a minimization optimization problem for study, which is described as:
[0118]
[0119] Where z=(z 1 ,z 2 ,...,z n ) is the decision variable; Ω represents the feasible search domain of the decision variable; F(z):Ω→S is the optimization objective composed of m real-valued functions; S represents the target space.
[0120] Let a, b∈Ω be two feasible solutions of the MOP defined by equation (1). i (a)≤f i (b) and there is at least one j∈{1,2,...,m} such that f i (a)≤f i (b), it is said that a dominates b, denoted as a<b. If there is no a∈Ω such that F(a) dominates F(a*), then a* is a Pareto optimal solution of the MOP defined by equation (1), and F(a*) is the Pareto optimal objective vector. Obviously, the improvement of any objective performance in the Pareto optimal solution must lead to the decline of at least one other objective performance. Usually, the set of all Pareto optimal solutions is called the Pareto optimal solution set (POS), and the set of all Pareto optimal objective vectors is called the Pareto optimal frontier (POF).
[0121] 1.2 Standard Particle Swarm Optimization Algorithm (PSO)
[0122] The PSO algorithm is an intelligent optimization algorithm that simulates the predation behavior of bird flocks. Its principle is to find the optimal solution through mutual cooperation and information sharing among individuals in the population. In the algorithm, the position and speed of all particles will be continuously updated during the iteration process according to the guidance of the global optimum and the individual optimum to find the optimal solution of the objective function within the feasible domain. Particle speed v pWith position z p The update formula is as follows:
[0123]
[0124]
[0125] Among them, w inertia is the inertia weight that affects the particle search step length; c self and c society is a learning factor representing the degree to which particle updates are affected by individual and global optimality; and It obeys the uniform distribution between [0,1]; d p and g represents the individual optimum of particles and the global optimum of the population.
[0126] After obtaining the particle fitness value according to the optimization objective function, the individual and global optimal values of the population are updated using the following formula:
[0127]
[0128]
[0129] in, represents the individual optimum of particle p, g = (g 1 ,g 2 ,...,g n ) represents the global optimum of the population, d k represents the best particle in the population of this generation,
[0130] 1.3 Comprehensive Learning Particle Swarm Optimization Algorithm (CLPSO)
[0131] Compared with the PSO algorithm, the CLPSO algorithm improves the particle velocity update strategy as follows:
[0132]
[0133] Among them, c is the learning factor; It obeys the uniform distribution between [0,1]; is the learning example of particle p in the nth dimension.
[0134] From the above formula, we can see that the update of particle speed is no longer affected by the combined influence of individual optimal and global optimal, but learns the individual optimal of all particles. In addition, CLPSO maintains a sample pool for each particle, and each dimension of the particle learns its corresponding sample. Obviously, this strategy can maintain population diversity and effectively alleviate the problem of early convergence of standard PSO.
[0135] If the particle individual optimal iteration N refresh If it still fails to update after 10 times, then update its learning sample pool. The strategy is: set the update probability of learning samples in each dimension of the particle to P c p , when updating, first randomly select two particles in the population, and then select the better particle as the new learning example through the competition mechanism, which can be expressed as the following formula:
[0136]
[0137] Among them, P c p is the learning probability of particle p, which is updated as follows:
[0138]
[0139] Among them, rank p Represents the optimal fitness ranking of individual particles.
[0140] 2. Random Forest (RF) Modeling Algorithm
[0141] RF is an integrated learning model based on decision trees. Its principle is: after Bootstrap sampling and random feature segmentation of the training set, K different sub-training sets are obtained for the construction of K decision trees respectively, and then the output of all decision trees is integrated to obtain the final prediction result. For regression problems, the decision tree calculates the best segmentation feature of node q. And the split point value s q The acquisition process can be expressed as the following optimization problem:
[0142]
[0143] In order to improve the quality of generated virtual samples and determine their optimal number, a multi-objective hybrid optimization is performed on the process of virtual sample generation and selection, called MoHo-VSG, that is, firstly, the relevant hyperparameters are optimized to obtain candidate virtual samples, and then the latter are optimized to obtain the optimal virtual samples. The strategy is as follows Figure 2 As shown, it includes three modules: particle design for hybrid optimization, fitness function design for VSG and multi-objective hybrid optimization main process for VSG.
[0144] Figure 2 In, z p Represents the decision variables of the optimization problem, that is, the position of the particle in CLPSO, including parameter decision variables and the sample selection decision variable R train and R validThey represent the training set and validation set obtained by dividing the original small sample respectively; x vsg-max and x vsg-min They represent the upper and lower limits of the input extension domain obtained by using the improved MTD method for domain expansion, and y vsg-max and vsg-min are the upper and lower limits of the corresponding output extension domain; represents the virtual sample input generated by the hybrid interpolation method in the upper and lower limits of the extended domain; and are the virtual sample sets obtained by the RF and RWNN mapping models respectively; for and After mixing, the candidate virtual sample set is obtained by pruning according to the upper and lower limits of the output extension domain; express The preferred virtual sample obtained after particle selection; Reason and RF model constructed from mixed samples composed of vs It is the optimal virtual sample obtained according to the global optimum after optimization.
[0145] The purpose of the multi-objective optimization of the present invention is to reduce the number of virtual samples as much as possible while ensuring that the optimal modeling effect is achieved. Accordingly, the optimization goal of the present invention can be described as:
[0146]
[0147] Among them, the decision vector z guides the generation and selection of virtual samples; f num (z) represents the number of virtual samples after screening, f mod (z) represents the performance index of the RF model constructed by mixing the virtual samples with the training set after screening.
[0148] The following will describe the proposed method in three parts: first, the particle design for hybrid optimization is introduced, then the fitness function design for VSG is explained, and finally the multi-objective hybrid optimization design process for VSG is described.
[0149] Wherein, in step S1, the particle design for hybrid optimization is as follows: Figure 3 As shown, specifically including:
[0150] The designed particles are denoted as in, is a parameter decision variable used to optimize hyperparameters during virtual sample generation;
[0151] Select decision variables for samples, which are used to optimize the selection of candidate virtual samples;
[0152] Each particle contains the position z p , speed v p , learning example E p , fitness f num (z p ) and f mod (z p ), individual optimal ranking rank p And the learning probability P c p Attributes; among them, the individual optimal ranking rank of particles p Determine the learning probability P c p , which in turn affects the learning example E p Update of E p Guide particle speed v p The search direction and step size are used to determine the particle position update; according to the particle position z p Calculate the fitness f num (z p ) and f mod (z p ), update the individual optimum of particles and their ranking through fitness;
[0153] The parameter decision variable Contains four parameters, among which: z MTD is the expansion rate γ based on the improved MTD domain expansion extend , optimize its value according to the distribution of different modeling data, so as to obtain an expansion space that is more consistent with real data, and generate virtual sample inputs in this space; and Respectively represent the segmentation feature number L of the RF mapping model F and the threshold value θ of the number of samples contained in the decision tree leaf node leaf , by optimizing L F and θ leaf Two parameters are used to build a mapping model that better reflects the characteristics of real data, thereby generating more accurate virtual sample output; RWNN It represents the number of hidden layer neurons I of the RWNN mapping model. The purpose of optimizing this parameter is the same as that of the RF mapping model.
[0154] The sample selection decision variable The dimension of is consistent with the number of virtual samples to be selected, where During the optimization process, The virtual samples are selected by encoding and decoding; in addition, since the number of candidate virtual samples is not fixed during the iteration process, The dimension of also needs to be transformed.
[0155] The design of the fitness function is based on the particle position z p The objective of the present invention is to perform hybrid optimization on the generation and selection of virtual samples, that is, to calculate the optimization target defined by equation (10). p Guide the generation and selection of virtual samples, and use the number and quality of virtual samples as the fitness of particles. Therefore, the fitness function design for VSG of the present invention includes three parts: parameter decision variables guide the generation of candidate virtual samples, sample selection decision variables select candidate virtual samples, and calculation of virtual sample evaluation indicators. In step S2, the fitness function design for VSG specifically includes:
[0156] S201, generate candidate virtual samples:
[0157] Establishing parameter decision variables The relationship between MTD, RF and RWNN hyperparameters is as follows:
[0158]
[0159] The process of generating candidate virtual samples is as follows: First, based on the expansion rate γ extend The original sample space is extended by an improved MTD domain, and virtual sample input is generated by hybrid interpolation in the original domain and the extended domain; then, based on the RF modeling parameter L F and θ leaf Construct the RF mapping model, and construct the RWNN mapping model based on the RWNN modeling parameters I to generate the output value corresponding to the virtual sample input; finally, mix and delete the generated virtual samples to obtain the candidate virtual sample R vs-g ; Specifically include:
[0160] 1) Generate virtual sample input:
[0161] Based on the expansion rate γ extend , the improved MTD domain expansion method is used to respectively train ={X train ,y train}'s input and output are domain expanded;
[0162] First, expand the output domain and calculate The mean value y ave , and thus y train Divided into y high andlow After two parts; calculate y train The maximum value y max and the minimum value y min As the expansion space; and then calculate y separately high The mean value y H-ave and low The mean value y L-ave ; Accordingly, the upper limit y of the output extension domain is vsg-max With the lower limit y vsg-min Calculated by the following formulas:
[0163]
[0164]
[0165] Among them, d y-high =||y H-ave -y max || is y max and H-ave The Euclidean distance between y-low =||y L-ave -y min || is y min and L-ave The Euclidean distance between vsg-min-know Indicates the lower limit of sample output determined by prior knowledge; rate high and rate low They are the upper and lower expansion skewness of the sample output, as follows:
[0166] rate high =N high / (N high +N low ) (14)
[0167] rate low =N low / (N high +N low ) (15)
[0168] Among them, N high and N low Represents y high and low The number of; In the same way, expand the sample input space to obtain its expansion upper limit x vsg-max With lower limit x vsg-min ;
[0169] Next, equally spaced interpolation and random interpolation are performed in the sample input extension space to generate virtual sample inputs;
[0170] Interpolation is performed between two adjacent samples at equal intervals, as shown in the following formula:
[0171]
[0172]
[0173] Among them, N equal Indicates the equally spaced interpolation multiple;
[0174] Similar to interpolation between samples, equally spaced interpolation is performed in the extended domain outside the original small sample space to obtain the final equally spaced interpolated virtual sample input, which is recorded as X equal ; After that, random interpolation is performed in the input extension domain space to obtain random interpolation virtual sample input, which is recorded as X rand ,as follows:
[0175]
[0176]
[0177] Among them, N rand Indicates the random interpolation multiple;
[0178] Finally, the virtual sample input obtained by equal interval interpolation and random interpolation is mixed to obtain the virtual sample input, which is recorded as X vs-g ={X equal ;X rand};
[0179] 2) Generate virtual sample output:
[0180] Two mapping models are used to generate the output of virtual samples, where the RF and RWNN mapping models can obtain outputs with higher stability and stronger randomness, respectively;
[0181] 2-1) Output of RF mapping model:
[0182] Based on the parameter L F and θ leaf , using the original training set R train ={X train ,y train}Build RF mapping model;
[0183] First, for R train Perform N random samplings with replacement, and then randomly divide L F Features, get training set Thus, the k-th decision tree model is constructed Set the minimum number of samples that limit the decision tree to continue splitting to θ leaf; Then, repeat the above process to construct K decision trees; integrate all the above decision trees to obtain the final mapping model;
[0184] Furthermore, the virtual sample output obtained based on the RF mapping model is:
[0185]
[0186] Thus, the obtained virtual sample set is recorded as R vs-g1 ={X vs-g ,y vs-g1};
[0187] 2-2) Output of RWNN mapping model:
[0188] Based on parameter I, using the original training set R train ={X train ,y train}Build a RWNN mapping model, which includes an input layer, an output layer and a single hidden layer;
[0189] First, randomly set the connection weights W between the input layer and the hidden layer neurons. 1 ,w 2 ,...,w I} and bias b={b 1 ,b 2 ,...,b N} T , the output matrix H of its hidden layer ori as follows:
[0190]
[0191] Among them, h ni =Γ map (w i ,b n ,x n ) is the hidden layer node value; I = z RWNN is the number of neurons in the hidden layer of RWNN; Γ map Represents a mapping function with sigmoid function as activation function;
[0192] Next, the generalized inverse matrix is used to calculate the connection weight β between the hidden layer and the output layer neurons, as follows:
[0193] β=(H ori ) + y train (twenty two)
[0194] Among them, (H ori ) + H oriThe generalized inverse matrix of ;
[0195] Then, the RWNN mapping function calculates the virtual sample output y corresponding to the virtual sample input vs-g2 for,
[0196] y vs-g2 =Γ map (ω,b,X vs-g )β=H vs-g β (23)
[0197] The virtual sample set obtained is denoted as R vs-g2 ={X vs-g ,y vs-g2};
[0198] 3) Obtain candidate virtual samples:
[0199] Mix the above virtual sample sets to obtain R vs-g = {R vs-g1 ; R vs-g2}={X vs-g ,y vs-g};
[0200] Although the present invention generates virtual sample input by interpolation in the extended domain, the virtual sample output is generated by a mapping function, so there must be virtual samples outside the extended domain. vsg-min and the upper limit y vsg-max For the virtual sample set R vs-g Make deletions as follows:
[0201]
[0202] Then, we obtain the candidate virtual sample set R vs-d ,in, R vs-g The number of samples N in vs-g Greater than or equal to R vs-d The number of samples N vs-d .
[0203] S202, candidate virtual sample selection:
[0204] During the optimization algorithm initialization process, the sample selection decision variable of the particle The dimension of is set to the maximum value so as to be consistent with the generated candidate virtual sample R vs-g Correspondingly, as follows:
[0205]
[0206] in, N vs-gRepresents R vs-g The number of samples in ;
[0207] Due to the vss Directly decode the obtained preferred virtual sample R vs-s may contain virtual samples outside the extended domain, so we need to first vss Perform dimension change processing as follows:
[0208]
[0209] The principle represented by the above formula is: set the decision variables corresponding to the virtual samples outside the extended domain to be invalid; Decode, that is, obtain the preferred virtual sample R from the candidate virtual samples vs-s ; Among them, R vs-d represents the virtual sample set after deletion;
[0210] Right vss After decoding, the virtual sample R selected by the particle can be obtained vs-s , as follows,
[0211]
[0212] Among them, θ select is the selection threshold for the virtual sample;
[0213] S203, calculation of virtual sample evaluation index:
[0214] Calculate the obtained virtual sample subset R vs-s The evaluation index is used as the fitness of the particle as follows:
[0215] f num (z) = N vs-s (28)
[0216]
[0217] Among them, N vs-s is the virtual sample set R vs-s The number of virtual samples is taken as the fitness f num (z); F is the virtual sample set R vs-s The generalization performance index is calculated as follows: train With R vs-s Mix to obtain a temporary mixed sample set R′ mix = {R train ; R vs-s}; then based on R′ mix Construct a temporary RF model f′ RF(·); Then, calculate the validation set R valid In f′ RF The generalization performance F on (·) is taken as the fitness f mod (z).
[0218] The CLPSO algorithm is used to perform hybrid optimization on the virtual sample generation process, including: population initialization, updating particle velocity, updating parameter decision variables and generating candidate virtual samples, changing dimension to update sample selection decision variables and selecting candidate virtual samples, calculating fitness, updating individual particle optimality, archives and sample pools, and calculating the global optimality and obtaining the optimal virtual sample after reaching the number of iterations.
[0219] The step S3, multi-objective hybrid optimization design for VSG, specifically includes:
[0220] S301, population initialization:
[0221] First, for the number of particles P num , number of iterations N iter , update threshold N refresh , set the parameters of the upper and lower limits of the parameter decision variables; then, generate num A population of particles is randomly initialized, and the particle position and velocity are calculated. Then, the individual optimal and external archives of the particles are initialized. Finally, the learning probability and learning examples of the particles are calculated.
[0222] S302, iterative optimization stage:
[0223] First, the particle velocity v is updated according to the CLPSO algorithm (6). p ; Then, according to the CLPSO algorithm (3), the position of the particle parameter decision variable is updated According to formula (11) The characterization result is used to generate candidate virtual samples in the manner described in step S201; then, the position of the sample selection decision variable of the particle is updated according to the CLPSO algorithm formula (3) The candidate virtual samples are selected in the manner described in step S202 to obtain the virtual sample R vs-s ; Then calculate R according to the method described in step S203 vs-s The evaluation index is used as the particle fitness value F(z p ); Secondly, based on the fitness value, update the optimal individual particle according to formula (4), store the non-dominated solution searched by the population into the file, and update the file A; then, calculate the optimal individual ranking rank of the particle p , and update its learning probability P according to CLPSO algorithm formula (8) c , and then for iteration Nrefresh After this time, the particles whose individual best has not been updated will update their learning examples;
[0224] However, when updating particle learning samples, considering the high dimension of the sample selection decision variable to be optimized, it is necessary to improve CLPSO to accelerate the convergence speed of the virtual sample optimization process. Based on the standard CLPSO adopting the sample pool update strategy shown in formula (7), a new strategy of learning sample selection decision variables from particles in the archive is added, as shown in the following formula:
[0225]
[0226] Then, according to the above steps, the optimization is continuously iterated until the maximum number of iterations N is reached. iter Then, the evaluation index ρ of the particle fitness in file A is calculated according to the following formula: i ,
[0227]
[0228] Among them, ρ i represents the comprehensive evaluation index of virtual samples in the optimization process, f mod (φ) represents the generalization performance index F of the original training set without virtual samples, a i represents the non-dominated solution in file A;
[0229] Finally, the file ρ i The particle with the largest value is regarded as the global optimal particle. The optimal virtual sample R is obtained by variable-dimensional decoding of the global optimal sample selection decision variable. vs .
[0230] Based on two benchmark data sets of the UCI platform, this paper designs different small sample sets to generate virtual samples, verifies the proposed VSG method, and demonstrates the effectiveness of the proposed method through the generalization performance and distribution results of virtual samples. Based on the DXN emission concentration data of the municipal solid waste incineration process, virtual samples are generated to construct a soft measurement model.
[0231] Among them, the evaluation index description in step S4 is
[0232] The present invention defines an index η to evaluate the distribution similarity between the sample and the entire data. Define the data set S 1 and S 2 The distribution similarity is as follows:
[0233]
[0234] Among them, N attr Represents the dataset S 1 and S2 The number of attributes; and Respectively and The probability distribution of Represents the dataset S 1 and S 2 The Hellinger distance of attribute i, which is a type of F-divergence, is used here to measure the similarity of two probability distributions. The calculation formula is as follows:
[0235]
[0236] The present invention uses the root mean square error RMSE as the evaluation index of the model generalization performance, as shown below:
[0237]
[0238] In addition, the evaluation index ρ defined in the above formula (31) for selecting the global optimal i , which is used here to evaluate the advantages and disadvantages of virtual sample sets generated by different VSG methods in terms of quantity and generalization performance improvement. Here, virtual samples are evaluated for different experiments and re-expressed as:
[0239]
[0240] Among them, the comprehensive evaluation value of the virtual sample of experiment j is defined as ρ j ; E 0 is the RMSE based on the original small sample model; E j is the RMSE of experiment j; N j The number of virtual samples used for modeling represents the average contribution of virtual samples to the improvement of model generalization performance.
[0241] Obviously, j The larger the value of , the higher the quality of the virtual sample set.
[0242] In a specific application, the industrial data used in the embodiment of the present invention comes from a MSWI power plant based on a grate furnace in Beijing, covering 34 valid DXN emission concentration detection samples recorded from 2012 to 2018. After preprocessing the original data, a modeling sample containing 119-dimensional input and 1-dimensional output is obtained. Due to the small number of original samples, the data set is divided into a training set and a validation set, and the validation set is also used as a test set.
[0243] The algorithm-related parameters are set as shown in Table 1. The table gives the decision variables z MTD , and z RWNN fixed and interval values.
[0244] The proposed method is simulated and the non-dominated Parato frontier is obtained, such as Figure 4 As shown in Figure 4, when the number of virtual samples is 40, the generalization performance of the model is also good, and the number of candidate virtual samples is 918.
[0245] Table 1 Parameter settings of multi-objective hybrid optimization VSG algorithm
[0246]
[0247] The virtual samples generated by the proposed method can improve the generalization performance of the model in general; since the test set and the validation set are the same, the performance of the constructed RF model on the two sets is similar but there are also some differences. The global optimum is obtained from the non-dominated solution based on the comprehensive evaluation index, and the optimal virtual samples are decoded as shown in Table 2, which shows the first 7 inputs and outputs of the 5 virtual samples.
[0248] Table 2 Optimal virtual samples obtained by multi-objective hybrid optimization VSG algorithm
[0249]
[0250] The statistics of the global optimal results are shown in Table 3.
[0251] Table 3 Global optimal solution results of multi-objective hybrid optimization VSG algorithm
[0252]
[0253] As can be seen from Table 3, the hyperparameter γ extend It is small, indicating that the sample domain expansion is small, and also reflects that the distribution domains of the training set and the test set are relatively similar; the optimal number of virtual samples is 40, and the RF model constructed by mixed samples has similar performance in the validation set and the test set, which is better than the performance of small sample modeling; the comprehensive evaluation index of the virtual sample is greater than 0 but the value is small, indicating that the generated virtual samples are effective but still need to be improved.
[0254] The MoHo-VSG proposed in the present invention is compared with other VSGs. All experiments were repeated 30 times, and the statistical results of the corresponding evaluation indicators are shown in Table 4. As can be seen from Table 4, when the number of virtual samples is the smallest, the RF model constructed by the mixed samples has better generalization performance, and its RMSE mean and variance on the test set are small, indicating that the proposed method has advantages in improving the prediction performance and stability of the model; in addition, the virtual samples generated by the method proposed in this article have better comprehensive evaluation indicators.
[0255] Table 4 Comparative statistical results of test data for different VSG methods
[0256]
[0257] In summary, the multi-objective hybrid optimization virtual sample generation method for dioxin detection provided by the present invention firstly performs a hybrid optimization-oriented particle design, adopts a hybrid optimization strategy to realize the simultaneous optimization of parameter decision variables and sample selection decision variables, and ensures the rationality and effectiveness of DXN virtual samples; secondly, performs a VSG-oriented fitness function design, in order to realize candidate virtual sample generation, candidate virtual sample selection and virtual sample evaluation index calculation; finally, performs a VSG-oriented multi-objective hybrid optimization process design, adopts an improved CLPSO algorithm to perform multi-objective hybrid optimization on the VSG process, and reduces the number of virtual samples as much as possible while ensuring the generalization performance of the DXN soft measurement model, thereby ensuring the overall quality of the virtual samples and determining the optimal number of virtual samples; in addition, new evaluation indicators, namely, a virtual sample comprehensive evaluation index and a distribution similarity index, are proposed to measure the contribution of virtual samples to the performance of the DXN soft measurement model and the effect of virtual samples on improving the distribution of small samples; at the same time, the actual DXN emission data of the MSWI process are used to verify the effectiveness of the proposed method.
[0258] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A multi-objective hybrid optimization virtual sample generation method for dioxin detection, characterized in that: The following steps are involved: S1, particle design for hybrid optimization: Through particle design, a hybrid optimization strategy of continuous variables and discrete variables is implemented. The position of the particle, i.e., the decision variable, is divided into two parts: the parameter decision variable and the sample selection decision variable. The parameter decision variable guides the generation of candidate virtual samples and is a continuous variable. The sample selection decision variable screens the candidate virtual samples and is a high-dimensional discrete variable. S2, fitness function design for VSG: According to the particle design in step S1, its fitness is calculated in three stages, including generating candidate virtual samples, selecting candidate virtual samples, and calculating virtual sample evaluation indicators, specifically: Firstly, based on the original training set, the improved MTD method is used to perform domain expansion to obtain the upper and lower limits of the input and output expansion domains; then, in the input expansion domain, hybrid interpolation is used to generate virtual sample inputs, and then RF and RWNN mapping models are constructed respectively, and the corresponding virtual sample outputs are generated accordingly; then, the virtual samples are deleted and mixed according to the output expansion domain to obtain candidate virtual samples; further, the candidate virtual samples are selected to obtain the preferred virtual samples; accordingly, the evaluation indicators are the number of virtual samples and the prediction performance of the RF model constructed by the mixed samples consisting of virtual samples and the training set on the validation set; S3, multi-objective hybrid optimization design for VSG: The improved CLPSO algorithm is used to perform multi-objective hybrid optimization on the VSG process, specifically: After the algorithm is initialized, it enters the iterative search process. First, the particle velocity is updated; then, the position of the parameter decision variable is updated to guide the generation of candidate virtual samples; then, the position of the sample selection decision variable is updated, and the candidate virtual samples are selected after variable dimension decoding; then, the particle fitness is calculated based on the preferred virtual sample; then, the optimal individual particle, external archives and sample pool are updated; Repeat the above steps to search for the best solution until the maximum number of iterations is reached, and after determining the global optimum, the optimal virtual sample set is obtained, which is the modeling sample required for the DXN soft sensor model; After obtaining the optimal virtual sample set, a DXN soft-sensing model is constructed using the optimal virtual sample set. The DXN soft-sensing model is used to perform online real-time detection of the DXN concentration generated by the MSWI process.
2. The multi-objective hybrid optimization virtual sample generation method for dioxin detection according to claim 1 is characterized in that: The method further comprises: S4, using the virtual sample comprehensive evaluation index and distribution similarity index, measures the contribution of the optimal virtual sample set obtained in step S3 to the performance of the DXN soft sensor model and the effect of the virtual sample on improving the small sample distribution.
3. The multi-objective hybrid optimization virtual sample generation method for dioxin detection according to claim 1 is characterized in that: In step S1, the particle design for hybrid optimization specifically includes: The designed particles are denoted as in, is a parameter decision variable used to optimize hyperparameters during virtual sample generation; Select decision variables for samples, which are used to optimize the selection of candidate virtual samples; Each particle contains the position z p , speed v p , learning example E p , fitness f num (z p ) and f mod (z p ), individual optimal ranking rank p And the learning probability P c p Attributes; among them, the individual optimal ranking rank of particles p Determine the learning probability P c p , which in turn affects the learning example E p Update of E p Guide particle speed v p The search direction and step size are used to determine the particle position update; according to the particle position z p Calculate the fitness f num (z p ) and f mod (z p ), update the individual optimum of particles and their ranking through fitness; The parameter decision variable Contains four parameters, among which: z MTD is the expansion rate γ based on the improved MTD domain expansion extend , optimize its value according to the distribution of different modeling data, so as to obtain an expansion space that is more consistent with real data, and generate virtual sample inputs in this space; and Respectively represent the segmentation feature number L of the RF mapping model F and the threshold value θ of the number of samples contained in the decision tree leaf node leaf , by optimizing L F and θ leaf Two parameters are used to build a mapping model that better reflects the characteristics of real data, thereby generating more accurate virtual sample output; RWNN It represents the number of hidden layer neurons I of the RWNN mapping model. The purpose of optimizing this parameter is the same as that of the RF mapping model. The sample selection decision variable The dimension of is consistent with the number of virtual samples to be selected, where During the optimization process, The virtual samples are selected by encoding and decoding; in addition, since the number of candidate virtual samples is not fixed during the iteration process, The dimension of also needs to be transformed.
4. The multi-objective hybrid optimization virtual sample generation method for dioxin detection according to claim 3 is characterized in that: In step S2, the fitness function design for VSG specifically includes: S201, generate candidate virtual samples: Establishing parameter decision variables The relationship between MTD, RF and RWNN hyperparameters is as follows: The process of generating candidate virtual samples is as follows: First, based on the expansion rate γ extend The original sample space is extended by an improved MTD domain, and virtual sample input is generated by hybrid interpolation in the original domain and the extended domain. Then, based on the RF modeling parameter L F and θ leaf Construct the RF mapping model, and construct the RWNN mapping model based on the RWNN modeling parameter I to generate the output value corresponding to the virtual sample input; finally, mix and delete the generated virtual samples to obtain the candidate virtual sample R vs-g ; S202, candidate virtual sample selection: During the optimization algorithm initialization process, the sample selection decision variable of the particle The dimension of is set to the maximum value so as to be consistent with the generated candidate virtual sample R vs-g Correspondingly, as follows: in, N vs-g Represents R vs-g The number of samples in ; Due to the vss The preferred virtual sample R obtained by direct decoding vs-s may contain virtual samples outside the extended domain, so we need to first vss Perform dimension change processing as follows: The principle represented by the above formula is: set the decision variables corresponding to the virtual samples outside the extended domain to be invalid; Decode, that is, obtain the preferred virtual sample R from the candidate virtual samples vs-s ; Among them, R vs-d represents the virtual sample set after deletion; Right vss After decoding, the virtual sample R selected by the particle can be obtained vs-s , as follows, Among them, θ select is the selection threshold for the virtual sample; S203, calculation of virtual sample evaluation index: Calculate the obtained virtual sample subset R vs-s The evaluation index is used as the fitness of the particle as follows: f num (z)=N vs-s (28) Among them, N vs-s is the virtual sample set R vs-s The number of virtual samples is taken as the fitness f num (z); F is the virtual sample set R vs-s The generalization performance index is calculated as follows: train With R vs-s Mix to obtain a temporary mixed sample set R′ mix = {R train ; R vs-s }; then based on R′ mix Construct a temporary RF model f′ RF (·); Then, calculate the validation set R valid In f′ RF The generalization performance F on (·) is taken as the fitness f mod (z).
5. The multi-objective hybrid optimization virtual sample generation method for dioxin detection according to claim 4 is characterized in that: The step S201, generating candidate virtual samples, specifically includes: 1) Generate virtual sample input: Based on the expansion rate γ extend , the improved MTD domain expansion method is used to respectively train ={X train ,y train }'s input and output are domain expanded; First, expand the output domain and calculate The mean value y ave , and thus y train Divided into y high and low After two parts; calculate y train The maximum value y max and the minimum value y min As the expansion space; then calculate y separately high The mean value y H-ave and low The mean value y L-ave ; Accordingly, the upper limit y of the output extension domain is vsg-max With the lower limit y vsg-min Calculated by the following formulas: Among them, d y-high =||y H-ave -y max || is y max and H-ave The Euclidean distance between y-low =||y L-ave -y min || is y min and L-ave The Euclidean distance between vsg-min-know Indicates the lower limit of sample output determined by prior knowledge; rate high and rate low They are the upper and lower expansion skewness of the sample output, as follows: rate high =N high / (N high +N low ) (14) rate low =N low / (N high +N low ) (15) Among them, N high and N low Represents y high and low The number of; In the same way, expand the sample input space to obtain its expansion upper limit x vsg-max With lower limit x vsg-min ; Next, equally spaced interpolation and random interpolation are performed in the sample input extension space to generate virtual sample input; Interpolation is performed between two adjacent samples at equal intervals, as shown in the following formula: Among them, N equal Indicates the equal interval interpolation multiple; Similar to interpolation between samples, equally spaced interpolation is performed in the extended domain outside the original small sample space to obtain the final equally spaced interpolated virtual sample input, which is recorded as X equal ; After that, random interpolation is performed in the input extension domain space to obtain random interpolation virtual sample input, which is recorded as X rand ,as follows: Among them, N rand Indicates the random interpolation multiple; Finally, the virtual sample input obtained by equal interval interpolation and random interpolation is mixed to obtain the virtual sample input, which is recorded as X vs-g ={X equal ;X rand }; 2) Generate virtual sample output: Two mapping models are used to generate the output of virtual samples, where the RF and RWNN mapping models can obtain outputs with higher stability and stronger randomness, respectively; 2-1) Output of RF mapping model: Based on the parameter L F and θ leaf , using the original training set R train ={X train ,y train }Build RF mapping model; First, for R train Perform N random samplings with replacement, and then randomly divide L F features, and obtain the training set Thus, the k-th decision tree model is constructed Set the minimum number of samples that limit the decision tree to continue splitting to θ leaf ; Then, repeat the above process to construct K decision trees; integrate all the above decision trees to obtain the final mapping model; Furthermore, the virtual sample output obtained based on the RF mapping model is: Thus, the obtained virtual sample set is recorded as R vs-g1 ={X vs-g ,y vs-g1 }; 2-2) Output of RWNN mapping model: Based on parameter I, using the original training set R train ={X train ,y train }Build a RWNN mapping model, which includes an input layer, an output layer and a single hidden layer; First, randomly set the connection weights W between the input layer and the hidden layer neurons. I } and bias b={b1,b2,...,b N } T , the output matrix H of its hidden layer ori as follows: Among them, h ni =Γ map (w i ,b n ,x n ) is the hidden layer node value; I = z RWNN is the number of neurons in the hidden layer of RWNN; Γ map Represents a mapping function with sigmoid function as activation function; Next, the generalized inverse matrix is used to calculate the connection weight β between the hidden layer and the output layer neurons, as follows: β=(H ori ) + y train (22) Among them, (H ori ) + H ori The generalized inverse matrix of ; Then, the RWNN mapping function calculates the virtual sample output y corresponding to the virtual sample input vs-g2 for, y vs-g2 =C map (ω,b,X vs-g )β=H vs-g b (23) The virtual sample set obtained is denoted as R vs-g2 ={X vs-g ,y vs-g2 }; 3) Obtain candidate virtual samples: Mix the above virtual sample sets to obtain R vs-g = {R vs-g1 ; R vs-g2 }={X vs-g ,y vs-g }; Expand the lower limit y according to the virtual sample output domain vsg-min and the upper limit y vsg-max For the virtual sample set R vs-g Make deletions as follows: Then, we obtain the candidate virtual sample set R vs-d ,in, R vs-g The number of samples N in vs-g Greater than or equal to R vs-d The number of samples N vs-d .
6. The multi-objective hybrid optimization virtual sample generation method for dioxin detection according to claim 5, characterized in that: The step S3, multi-objective hybrid optimization design for VSG, specifically includes: S301, population initialization: First, for the number of particles P num , number of iterations N iter , update threshold N refresh , set the parameters of the upper and lower limits of the parameter decision variables; then, generate num A population of particles is randomly initialized, and the particle position and velocity are calculated. Then, the individual optimal and external archives of the particles are initialized. Finally, the learning probability and learning examples of the particles are calculated. S302, iterative optimization stage: First, the particle velocity v is updated according to the CLPSO algorithm. p ; Then, update the position of the particle parameter decision variable according to the CLPSO algorithm According to formula (11) The characterization result is used to generate candidate virtual samples in the manner described in step S201; then, the position of the sample selection decision variable of the particle is updated according to the CLPSO algorithm. The candidate virtual samples are selected in the manner described in step S202 to obtain the virtual sample R vs-s ; Then calculate R according to the method described in step S203 vs-s The evaluation index is used as the particle fitness value F(z p ); Secondly, based on the fitness value, update the optimal individual particle, store the non-dominated solution found by the population in the file, and update the file A; then, calculate the optimal individual ranking rank of the particle p , and update its learning probability P according to the CLPSO algorithm c , and then for iteration N refresh After this time, the particles whose individual best has not been updated will update their learning examples; On the basis of the updating sample pool strategy adopted by the standard CLPSO, a new strategy of adding sample selection decision variables to learn from particles in the archive is as follows: Then, according to the above steps, the optimization is continuously iterated until the maximum number of iterations N is reached. iter Then, the evaluation index ρ of the particle fitness in file A is calculated according to the following formula: i , Among them, ρ i represents the comprehensive evaluation index of virtual samples in the optimization process, f mod (φ) represents the generalization performance index F of the original training set without virtual samples, a i represents the non-dominated solution in file A; Finally, the file ρ i The particle with the largest value is regarded as the global optimal particle. The optimal virtual sample R is obtained by variable-dimensional decoding of the global optimal sample selection decision variable. vs .
Citation Information
Patent Citations
Soft measurement method for dioxin emission concentration in solid waste incineration process based on multi-layer characteristic selection
CN110135057A
Soft measurement method for complex industrial process parameters difficult to measure
CN110162857A
Method for constructing dioxin emission concentration prediction model in urban solid waste incineration process
CN112464544A
Driver of field emission lamp
JP2013232360A
