A method for real-time monitoring of supersonic inlet flow state
Through an integrated algorithm and multi-objective optimization method based on dynamic test data, the DTW-RBF network and fuzzy decision-making are used to select the sensor placement scheme, which solves the dynamic characteristics and sensor placement problems in supersonic inlet flow state monitoring, and achieves higher performance. Monitoring accuracy and reliability.
Patent Information
- Application Number
- CN202010992285.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-09-21
AI Technical Summary
The existing supersonic inlet flow state monitoring method is difficult to effectively deal with the noise and interference in the dynamic test data, and there are rationality issues in the sensor placement scheme, resulting in poor monitoring results.
Using an integration algorithm based on dynamic test data, through DTW-RBF network and multi-objective optimization algorithm, an integrated monitoring system of multiple sensors is established to overcome the volatility and unreliability of a single sensor, and select the best sensor placement scheme through fuzzy decision-making. .
It improves the reliability and accuracy of supersonic inlet flow state monitoring, reduces monitoring errors, meets real-time monitoring requirements, and improves the monitoring effect with a reasonable number of sensors and placement scheme.
Smart Images

Figure CN112597692B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of supersonic inlet flow state monitoring, and in particular relates to a method for real-time monitoring of supersonic inlet flow state. Background Art
[0002] As one of the key components of the air-breathing supersonic propulsion system, the flow state of the supersonic inlet has a direct impact on the performance of the entire system. For example, supersonic inlet surge is an extremely unstable flow state, usually accompanied by violent and periodic shock wave oscillations, which will seriously deteriorate the thrust characteristics of the entire propulsion system and face the risk of flameout at any time. Not only that, the periodic thermal loads generated by shock wave oscillations will also cause the controllability of the entire system to deteriorate sharply, and may even directly lead to the destruction of the overall structure, posing a threat to the safety of the aircraft and personnel. From the perspective of protection control, since the supersonic inlet exhibits different flow characteristics under different flow states, the control measures taken should also be different. Therefore, in order to reduce the safety threat of surge phenomenon and better control the propulsion system, it is very important to monitor the flow state of the supersonic inlet.
[0003] At present, the monitoring methods for the flow state of the supersonic inlet mainly include methods based on high-speed schlieren photography and data-driven methods. The method based on high-speed schlieren photography is intuitive and reliable, but requires a complex optical path system, which is only feasible in ground tests and is obviously unrealistic in actual flights. The data-driven method is based on CFD simulation data or test data, and uses machine learning and other technologies for intelligent monitoring. This method does not require a complex optical path system, is suitable for both ground tests and actual flights, and can use new data continuously generated in ground tests or actual flights to correct existing models, fully explore effective information in historical data and real-time data, and improve data utilization while making the model more adaptable to external conditions. At present, the research on data-driven methods is mainly based on a small amount of CFD steady-state simulation data, while the actual measurement device usually collects a large amount of dynamic test data. Therefore, in the previous research process, the dynamic characteristics in the actual test data and the influence of factors such as noise and interference will be ignored. The present invention adopts a data-driven method to directly monitor the flow state of the inlet based on dynamic test data.
[0004] In addition, how to place sensors at appropriate positions inside the inlet is also an important part of the real-time monitoring of supersonic inlets. In order to increase the reliability and robustness of the monitoring results of a single sensor, multiple sensors need to be installed for joint monitoring. On the one hand, due to the limitations of installation and maintenance costs, structure, weight and other factors, only a small number of sensors can be installed inside the inlet. On the other hand, unreasonable sensor placement schemes will also reduce the monitoring effect because they do not collect important information related to the characteristics of the inlet. Therefore, the number of sensors needs to be limited to a certain range, and the placement scheme of the sensors also needs to be reasonable. At present, the main methods for solving the problem of how to place sensors include heuristic methods and optimization methods. Heuristic methods require the establishment of accurate mathematical models, but in many cases, accurate mathematical models cannot be established, which limits the use of this method. The optimization method is to transform the sensor placement problem into a single-objective optimization problem, and then solve it with the help of optimization methods. However, in practical applications, it is often necessary to consider multiple conflicting goals at the same time. For example, it is required that the number of sensors is small, the monitoring error is low, and the information difference between each sensor is maximized. Therefore, the present invention reduces the sensor placement problem to a multi-objective optimization problem and solves it with the help of a multi-objective optimization algorithm. Summary of the invention
[0005] In view of the above problems, the present invention proposes a method for real-time monitoring of the flow state of a supersonic inlet, which can monitor the flow state of a supersonic inlet directly based on dynamic test data. Compared with the monitoring effect of a single sensor, the integrated algorithm not only increases the reliability and robustness of the monitoring results, but also further improves the accuracy while meeting the requirements of real-time monitoring. In addition, the group of sensors obtained by the multi-objective optimization method of the present invention can also be used to guide the placement of sensors at appropriate positions in the inlet.
[0006] To achieve the above object, the present invention adopts the following technical solution:
[0007] The present invention proposes an integrated algorithm for real-time monitoring of supersonic inlet flow state. The algorithm first establishes the DTW-RBF network proposed by the present invention based on each sensor data, and then selects a group of optimal sensors for integration through multi-objective optimization and fuzzy decision making to overcome the volatility and unreliability of single sensor monitoring.
[0008] First, preliminary knowledge such as DTW distance, LM algorithm, traditional RBF network and NSGA-II multi-objective optimization algorithm are briefly introduced. Then, the DTW-RBF network proposed in the present invention and the process of selecting a group of optimal sensors for integration by using multi-objective optimization and fuzzy decision making are specifically described.
[0009] 1 Preliminary knowledge
[0010] 1) DTW distance
[0011] Dynamic Time Warping (DTW) distance is one of the most commonly used similarity metrics in time series classification tasks. Given two time series s and q as follows:
[0012] s=s1,s2,s3,…,s i ,…,s n
[0013] q=q1,q2,q3,…,q j ,…,q l
[0014] Where n and l are the lengths of s and q respectively. Cost matrix (distance matrix) Dist n×l is an n×l matrix, each element Dist(i,j) represents s i and q j The present invention uses squared Euclidean distance to calculate the local distance.
[0015]
[0016] The DTW distance aims to find a regular path w=(w1,w2,…,w K ) so that the sum of local distances along this path is minimized.
[0017]
[0018] Among them, δ(w k )=Dist(i k ,j k ) represents two matching points and The local distance between .
[0019] Problem (2) can be solved by dynamic programming. The cumulative distance matrix Cost n×l It is also an n×l matrix, each element of which Cost(i,j) can be obtained through the following recursive relationship.
[0020] Cost(i,j)=Dist(i,j)+min{Cost(i-1,j),Cost(i,j-1),Cost(i-1,j-1)}(3)
[0021] Among them, 1≤i≤n, and 1≤j≤l. Cost n×lThe initial state of is Cost(0,0) = 0, Cost(i,0) = ∞, Cost(0,j) = ∞. Finally, the DTW distance between s and q is Cost(n,l). Figure 1 An intuitive example of DTW distance is given.
[0022] Algorithm 1 summarizes the process of calculating DTW distance
[0023]
[0024] After calculating the DTW distance, the corresponding regular path can be obtained through the reverse tracing process. Compared with the Euclidean distance, the DTW distance can handle time series of different lengths, and when two time series are the same, the DTW distance will degenerate into the Euclidean distance.
[0025] 1)LM algorithm
[0026] The Error Backpropagation (EBP) algorithm is the most commonly used first-order training algorithm, but the efficiency of the EBP algorithm is relatively low. Second-order training algorithms, such as the LM (Levenberg–Marquardt) algorithm, can greatly improve training efficiency due to their faster convergence speed. The LM algorithm is usually used to optimize nonlinear least squares problems: (The following formula should be transposed, which is a vector)
[0027]
[0028] Where E(u) is the sum of squared errors, u is an N×1 parameter vector, and e pm (u) = d pm (u)-o pm (u) is the error of the mth output node of the pth training sample, d pm (u) is the expected output, o pm (u) is the predicted output. N is the number of parameters, P is the number of training samples, and M is the number of output nodes.
[0029] The LM algorithm combines the excellent local convergence performance of the Gauss-Newton method when approaching the optimal point and the ability of the steepest descent method to continuously reduce the error when far away from the optimal point. Its parameter update formula is:
[0030] Δu=[H(u)] -1 G(u)≈[Q(u)+μI] -1 G(u)=[J(u) T J(u)+μI] -1 J(u) T e(u) (5)
[0031] Among them, H(u) is the Hessian matrix, G(u) is the error gradient vector, Q(u) is the quasi-Hessian matrix, I is the identity matrix, and μ is the connection coefficient.
[0032] J(u) is the Jacobian matrix of (P×M)×N, and e(u) is the error vector of (P×M)×1. e(u) is the sum of each e pm J(u) is composed of each e pm For each parameter u i The derivative of .
[0033]
[0034] From equations (5) and (6), it can be seen that the LM algorithm needs to calculate and store the Jacobian matrix, and the size of the Jacobian matrix is proportional to the number of training samples P and the number of output nodes M. Therefore, due to memory limitations, the LM algorithm cannot be applied to large-scale problems. In order to overcome this shortcoming, the quasi-Hessian matrix Q(u) and the error gradient vector G(u) can be directly obtained by adding sub-matrices and sub-vectors without storing the Jacobian matrix. The calculation formulas of Q(u) and G(u) are as follows:
[0035]
[0036] Algorithm 2 summarizes the process of the LM algorithm
[0037]
[0038] 1) Traditional RBF Network
[0039] The traditional RBF network belongs to the forward shallow network, which usually includes three layers: input layer, hidden layer based on nonlinear RBF kernel function and output layer. Figure 2 shown.
[0040] Due to the use of nonlinear RBF kernel function, traditional RBF network can have universal approximation ability and is widely used in classification and regression tasks. However, due to the dynamics, unequal length, translation and distortion of time series data, the RBF kernel function based on Euclidean distance cannot handle time series classification tasks well. Therefore, the present invention proposes an RBF network based on DTW distance (DTW-RBF network for short). The DTW-RBF network utilizes the ability of DTW distance elastic matching, which can effectively overcome the shortcomings of Euclidean distance in solving time series classification tasks.
[0041] 1) NSGA-II multi-objective optimization algorithm
[0042] Multi-objective optimization problems require optimizing two or more different objectives simultaneously, as shown in the following equation.
[0043]
[0044] Among them, β is a decision variable, each element is in between, and Represents β i The upper and lower limits of L are the number of targets, g i (β)≤0 is an inequality constraint, h j (β)=0 is an equality constraint, N equal and N equal are the number of inequality and equality constraints, respectively.
[0045] One method of solving multi-objective optimization problems is to use a multi-objective optimization algorithm. The multi-objective optimization algorithm aims to find the Pareto optimal frontier. The solution on the Pareto optimal frontier is called the Pareto optimal solution. The multi-objective optimization algorithm usually maintains a population consisting of several individuals, each of which represents a solution to the multi-objective optimization problem. The purpose of the multi-objective optimization algorithm is to make the population converge well to the Pareto optimal frontier.
[0046] NSGA-II is a commonly used multi-objective optimization algorithm. Similar to genetic algorithms, NSGA-II first generates an initial population and continuously updates the population through genetic operators and non-dominated sorting mechanisms. The process of NSGA-II is as follows Figure 3 shown.
[0047] 2 DTW-RBF Network
[0048] Monitoring the flow state of the air inlet can be attributed to a time series classification task. The traditional RBF network uses the RBF kernel function based on the Euclidean distance, so it cannot handle the dynamics, unequal lengths, translation and distortion of time series data well. The present invention replaces the Euclidean distance in the traditional RBF kernel function with the DTW distance to solve the above problems, and uses the LM algorithm to train all parameters in the DTW-RBF network, including the center sequence {C hid}、kernel function width {γ hid}, linear weights {W between hidden layer and output layer hid,m} and bias {b m}. The schematic diagram of the DTW-RBF network is as follows Figure 4 shown.
[0049] The training process of the DTW-RBF network includes two steps: 1) forward calculation; 2) gradient calculation and parameter update. The specific process is as follows.
[0050] 1) Forward calculation
[0051] Given the pth training sample x p =(x p1 ,x p2 ,…,x pn ), then the output of the hidth hidden layer node is:
[0052]
[0053] Where hid = 1, 2, ..., N RBF is the number of RBF kernel functions, C hid and γ hid are the center sequence and width of the hidth kernel function, DTW(x p ,C hid ) is x p and C hid The DTW distance between them.
[0054] After calculating the outputs of all hidden layer nodes, the output of the mth output layer node of the DTW-RBF network is:
[0055]
[0056] Among them, p = 1, 2, ..., P is the number of training samples, m = 1, 2, ..., M is the number of output layer nodes, W hid,m is the weight connecting the hidth hidden layer node and the mth output node, b m is the bias of the mth output node.
[0057] Using the Soft-max layer, we can get x p The posterior probability of the mth category
[0058]
[0059] In the present invention, in order to train parameters using the LM algorithm, the objective function is defined as the sum of squares of errors:
[0060]
[0061] Among them, y pm is x p The true probability of the mth category.
[0062] 2) Gradient calculation and parameter update
[0063] After completing the forward calculation, in order to use the LM algorithm to train all parameters, we first need to calculate each e pm Derivatives with respect to all parameters.
[0064] x pThe error of the m1th output node About the m2th input of the Soft-max layer The derivative of needs to be discussed in two cases:
[0065]
[0066] Regarding the linear weight {W hid,m} and the bias {b m The derivative of} is calculated as follows:
[0067]
[0068] The derivative of the kernel function width {γhid} can be calculated as follows:
[0069]
[0070] About the central sequence hid The derivative of} can be calculated as follows:
[0071]
[0072]
[0073] DTW(x p ,C hid ) About C hid The derivative of needs to be calculated along a regular path. Assume that the cost matrix is calculated using squared Euclidean distance, and the regular path is w = (w1, w2, ..., w K ), then DTW(x p ,C hid ) About C hid The derivative of can be calculated as follows:
[0074]
[0075] In calculating each error e pm After taking the derivatives of all parameters, the quasi-Hessian matrix Q(u) and the error gradient vector G(u) can be calculated using equation (7), and then all parameters can be updated using the LM algorithm.
[0076] Algorithm 3 summarizes the DTW-RBF network and its training process proposed in the present invention.
[0077]
[0078] Many studies have shown that for time series classification tasks, the nearest neighbor classifier (NN-DTW) with DTW distance as the similarity metric is difficult to beat, so many articles use this method as a comparison benchmark.
[0079] The complexity of calculating the DTW distance itself is O(nl), where n and l are the lengths of the two time series. Because NN-DTW needs to calculate the DTW distance between each test sample and all training samples, the computational complexity of each test sample is O(Pnl), where P is the number of training samples. When there are many training samples, the entire testing process will be very time-consuming.
[0080] On the contrary, the complexity of DTW-RBF network is much lower than that of NN-DTW. Assume that the number of kernel functions is N RBF , and the number of output nodes is M, then the complexity of the DTW-RBF network is mainly composed of two parts: one is to calculate the DTW distance between each test sample and all kernel function center sequences, and the other is to calculate the linear weighted output between the hidden layer and the output layer. Therefore, for each test sample, the complexity of the DTW-RBF network is O(N RBF nl+N RBF M). Because N RBF Usually much smaller than P, and nl much larger than M, then O(N RBF nl+N RBF M)≈O(N RBF nl)<<O(Pnl). Therefore, the complexity of DTW-RBF network is much lower than that of NN-DTW.
[0081] 3 Sensor placement and integration based on multi-objective optimization and fuzzy decision making
[0082] In order to increase the stability and robustness of the monitoring effect of a single sensor, the information of multiple sensors can be integrated for joint monitoring. However, if too many sensors are installed on the air intake duct, the information collected by the sensors may be redundant, and too many sensors will also increase the complexity of the controller logic as well as the installation and maintenance costs. On the other hand, an unreasonable sensor placement scheme will also reduce the monitoring effect due to the collection of redundant and irrelevant information. Therefore, it is necessary to place an appropriate amount of sensors at appropriate locations on the air intake duct. Two optimization goals that need to be considered simultaneously are: 1) minimizing the monitoring error after sensor integration; 2) minimizing the number of sensors used for integration. The present invention reduces the sensor placement and integration problems to multi-objective optimization problems, and solves them with the help of the NSGA-II algorithm.
[0083] The subclassifier built based on a single sensor data can calculate a sample x pThe posterior probabilities of belonging to different categories, the integrated classifier is to first add the posterior probabilities of the sub-classifiers established based on the data of each sensor, and then determine x p Belongs to the category with the largest posterior probability. It can be expressed as follows:
[0084]
[0085] Where M is the number of all categories and T is the number of all candidate sensors. i is a sub-classifier built based on the i-th sensor data, is x p The posterior probability of belonging to the kth class. β represents the weight of each sensor and can only be 0 or 1. i If it is 1, it means that the i-th sensor is selected, otherwise it means that it is not selected.
[0086] The first optimization objective can be expressed as:
[0087]
[0088] Where P is the number of training samples and Ind(*) is the indicator function.
[0089] The second optimization objective can be expressed as:
[0090]
[0091] Integrating more sensors may reduce the monitoring error by utilizing more information, but more sensors also mean increased installation and maintenance costs, and will also reduce the real-time performance of the integrated classifier. Therefore, the number of sensors needs to be limited to a certain range. In summary, the sensor placement and integration problem can be summarized as the following multi-objective optimization problem:
[0092]
[0093] For a Pareto optimal solution obtained by NSGA-II, there may be multiple sensor placement schemes. That is to say, these placement schemes not only select the same number of sensors, but also the same monitoring error after integration. In this case, in order to utilize more different information, the scheme with the largest difference between sub-classifiers established based on different sensor data should be selected. The difference between sub-classifiers can be measured by the confusion matrix. The confusion matrix is a square matrix, each element of which represents the number of samples of the i-th class that the classifier judges as the j-th class, such as Figure 5 shown.
[0094] Assuming that a sensor placement scheme contains S sensors, each corresponding to S sub-classifiers, the average difference between the sub-classifiers of this scheme can be calculated as follows:
[0095]
[0096] Among them, U i represents the confusion matrix of the i-th sub-classifier, ||*|| F represents the Frobenius norm. In order to utilize more different information, the solution with the largest average difference should be selected.
[0097] After determining the best sensor placement scheme for each Pareto optimal solution, in order to further select a compromise solution from these Pareto optimal solutions, the present invention adopts a method based on fuzzy strategy. Assume that the membership degree of the i-th objective function of the j-th Pareto optimal solution is:
[0098]
[0099] Among them, obj i represents the i-th objective function value, and Respectively represent obj i The sum of the membership degrees of all objective functions of the jth Pareto optimal solution measures its comprehensive ability to meet different objective functions. The contribution of the jth Pareto optimal solution to all Pareto optimal solutions is:
[0100]
[0101] Among them, V represents the number of all Pareto optimal solutions, and L is the number of all objective functions. Therefore, μ should be selected in the end. j The sensor placement scheme corresponding to the largest Pareto optimal solution.
[0102] The above-mentioned sensor placement and integration process based on multi-objective optimization and fuzzy decision making is as follows: Figure 6 The present invention firstly establishes a sub-classifier based on each sensor data, and then selects a group of best sensors for integration by using multi-objective optimization and fuzzy decision making.
[0103] Beneficial effects: (1) The DTW-RBF network replaces the Euclidean distance in the traditional RBF kernel function with the DTW distance, which not only utilizes the elastic matching ability of the DTW distance, but also utilizes the flexible topological structure of the RBF network. Therefore, it has strong nonlinear mapping ability for time series classification tasks, and its computational complexity is much smaller than that of NN-DTW.
[0104] (2) Sensor placement and integration based on multi-objective optimization and fuzzy decision-making, which takes into account both the number of sensors and the rationality of the sensor placement scheme, thus ensuring that the right amount of sensors are placed at the right location;
[0105] (3) The present invention proposes an integrated algorithm for real-time monitoring of supersonic inlet flow state. The integrated algorithm first establishes corresponding sub-classifiers (DTW-RBF network) based on the data of each sensor, and then selects a group of optimal sensors for integration through multi-objective optimization and fuzzy decision making. Therefore, it overcomes the volatility and instability of monitoring with a single sensor, and reduces the monitoring error by utilizing the information of more sensors. BRIEF DESCRIPTION OF THE DRAWINGS
[0106] Figure 1 It is a schematic diagram of DTW;
[0107] Figure 2 This is a schematic diagram of the traditional RBF network structure;
[0108] Figure 3 It is the flow chart of NSGA-II algorithm;
[0109] Figure 4 It is a schematic diagram of the DTW-RBF network structure proposed in the present invention;
[0110] Figure 5 is a diagram of the confusion matrix;
[0111] Figure 6 is the sensor placement and integration flow chart;
[0112] Figure 7 is the Friedman test plot;
[0113] Figure 8 It is a basic configuration of a dual-dimensional external pressure supersonic inlet;
[0114] Fig. 9 is the dynamic pressure signal of R01 and R14;
[0115] Fig.10 It is the accuracy of monitoring using each sensor;
[0116] Fig.11 is the test time of each method for each sample;
[0117] Fig.12 The three methods based on DTW distance need to calculate the number of DTW distances for a single sample;
[0118] Fig.13 It is the influence of sampling frequency on monitoring accuracy;
[0119] Fig.14 is the Pareto optimal solution and the corresponding sensor placement scheme;
[0120] Fig.15 It is an unreasonable sensor placement scheme;
[0121] Fig.16 This is the optimal sensor placement solution. DETAILED DESCRIPTION
[0122] The present invention uses public data sets and data of a class of binary external pressure supersonic inlet to verify the effectiveness of the proposed DTW-RBF network and sensor placement and integration based on multi-objective optimization and fuzzy decision-making. Among them, the public data sets come from the UCR Time Series Classification Archive. All experiments are performed on a laptop computer configured with IntelRCoreTM, i7-7700HQ CPU, 2.80GHz main frequency, 8G memory, Windows10 system and MATLAB 2018b version.
[0123] To demonstrate the effectiveness of the DTW-RBF network, the present invention compares it with other time series classification methods, including the nearest neighbor classifier (NN-DTW) with DTW distance as the similarity measure, the nearest neighbor classifier (NN-EUC) with Euclidean distance as the similarity measure, the multilayer perceptron (MLP), the long short-term memory network (LSTM), the traditional RBF network based on Euclidean distance (EUC-RBF), and the support vector machine based on DTW distance (DTW-SVM).
[0124] In the specific implementation process, all data sets are divided into training set, validation set and test set in a ratio of 6:2:2. The validation set is used to select the best hyperparameters for all methods (the hyperparameters corresponding to the maximum accuracy of the validation set), and the test set is used to compare the performance of all methods. The hidden layer node range of MLP, LSTM, EUC-RBF and DTW-RBF is set to [10,20], and the penalty coefficient c and kernel function width γ of DTW-SVM are set to [2 -10 ,2 10 ], NN-EUC and NN-DTW have no hyperparameters that need to be adjusted. For the LM training algorithm, ∈1=10 -8 ,∈2=10 -8 ,τ=10 -3 ,k max = 300. For NSGA-II, the population size is set to 300 and the maximum number of iterations is set to 1000.
[0125] The specific implementation of the present invention is mainly composed of the following steps:
[0126] Step 1: Use public datasets to verify the effectiveness of the DTW-RBF network in time series classification tasks;
[0127] Step 2: Use the experimental data of a binary external pressure supersonic inlet to verify the effectiveness of the DTW-RBF network in real-time monitoring of flow state.
[0128] The dynamic pressure signals of various sensors on the inlet wall of a binary external pressure supersonic inlet during the throttling process under rated conditions are collected, and the collected pressure signals are segmented using a sliding window to obtain samples under different flow conditions.
[0129] Step 3: Establish a DTW-RBF network based on the samples of each sensor and compare the monitoring effect with the comparison method;
[0130] Step 4: Select a group of optimal sensors for integration based on multi-objective optimization and fuzzy decision making, and compare the monitoring effect with that of using a single sensor and unreasonable sensor placement scheme;
[0131] Beneficial effects: The DTW-RBF network can achieve high accuracy in time series classification and inlet flow state monitoring tasks. Sensor integration based on multi-objective optimization and fuzzy decision-making can further improve the monitoring accuracy and reduce the volatility and instability of monitoring using a single sensor, thereby effectively solving the problem of real-time monitoring of supersonic inlet flow state.
[0132] 1 Using public datasets to verify the effectiveness of DTW-RBF network in time series classification tasks
[0133] First, the effectiveness of the DTW-RBF network in the time series classification task is verified using a public dataset. The information of the dataset and the corresponding test results are shown in Tables 1 and 2, respectively. As can be seen from Table 2, the average sequence value of the DTW-RBF network on all datasets is 2.23, and the test time is low, so it is better than other methods. Although the other two DTW distance-based methods (NN-DTW and DTW-SVM) also have good classification effects, their test time is longer.
[0134] The present invention also performs some non-parametric statistical tests (Friedman test and Nemenyi follow-up test) to compare the performance of various methods. The parameter τ in the Friedman test F It is calculated as follows and follows an F distribution with (k-1) and (k-1)(D-1) degrees of freedom.
[0135]
[0136] Among them, k is the number of comparison methods, D is the number of data sets, and r i It represents the average ordinal value of various methods on all data sets.
[0137] After calculation, when k = 7 and D = 26, τ F It is equal to 6.7117, which is greater than the critical value of F distribution when α = 0.05, 2.1595. Therefore, the hypothesis that all methods have the same performance is rejected, and the Nemenyi follow-up test needs to be continued.
[0138] The calculation formula of critical difference (CD) is as follows:
[0139]
[0140] Among them, when α = 0.05, k = 7 and D = 26, q α =2.949, CD=0.5991. Figure 7 is a Friedman test plot, where the length of the line is equal to the CD value and the points represent the average ordinal values of the various methods. If the classification performance of the two compared methods is significantly different, the corresponding average ordinal values differ by at least one CD value, which means that in the Friedman test plot, the two lines will not overlap.
[0141] from Figure 7 It can also be seen that the classification performance of NN-DTW and EUC-RBF is better than that of NN-EUC, which also inspired the present invention to combine DTW distance with traditional RBF network. In addition, the methods based on DTW distance, including NN-DTW, DTW-SVM and DTW-RBF, have better classification performance than other methods, but the test time of DTW-RBF is much less than that of NN-DTW and DTW-SVM.
[0142] 2 Using the data of a binary external pressure supersonic inlet to verify the effectiveness of DTW-RBF network in real-time monitoring of flow state
[0143] In the case of real-time monitoring of the flow state of a supersonic inlet, the dynamic pressure signals of each sensor on the inlet wall of a binary external pressure supersonic inlet during the throttling process under the rated state are first collected, and the collected pressure signals are segmented using a sliding window to obtain samples under different flow states, and they are divided into training set, validation set and test set in a ratio of 6:2:2. Then, based on the samples of each sensor, the DTW-RBF network is established using Algorithm 3. In order to reduce the volatility and instability of monitoring using a single sensor, a group of optimal sensors are selected for integration based on multi-objective optimization and fuzzy decision-making, and the monitoring effect is compared with that of using a single sensor and unreasonable sensor placement schemes.
[0144] The research object of the present invention is a type of dual external pressure supersonic inlet, whose basic configuration is as follows: Figure 8 As shown. The design Mach number of the inlet is 2.0, the theoretical capture area is 48.0mm×40.0mm, and the area contraction ratio is 1.5. The upper compression surface adopts a partial isentropic design, which is composed of a first-level inclined wedge and a first-level isentropic surface. In order to take into account the aerodynamic performance under subsonic conditions and prevent the formation of a large area of flow separation on the inner side of the lip mask, the leading edge of the inlet lip mask is passivated. Downstream of the mouth is a section of unilateral expansion channel, followed by a section of iso-flow channel. Optical glass is embedded on both sides of the inlet for internal flow field observation, and its visible window range can cover the core area of the internal flow channel. In order to simulate the downstream throttling effect in actual work, a wedge-shaped throttling cone is set at the outlet of the inlet, and its leading edge is located at the center height of the channel outlet. Driven by the stepper motor, the throttling cone can translate axially to establish a controllable blockage degree at the outlet of the inlet. The present invention uses blockage degree to characterize the degree of congestion downstream of the inlet. During the experiment, the throttle cone will move from the far downstream position to a state close to the outlet after dozens of step-by-step cone entry, causing the blockage to gradually increase from 0% to 99.1%. In order to obtain the dynamic pressure information in the inlet flow field during the throttling process, a total of 31 dynamic pressure measurement points with flow distribution were set on the center line of the upper and lower inner surfaces of the flow channel, and the measurement range covered the core area of the inner flow channel. According to the different positions, the above sensors are numbered C01-C17 and R01-R14, respectively, and the specific experimental conditions are shown in Table 3. Fig. 9 The dynamic pressure signals of R01 and R14 during the throttling process are shown. During this process, the intake duct experienced a stable flow state, a small gasp flow state, a mixed gasp flow state, and a large gasp flow state. The collected pressure signals were segmented using a sliding window to obtain samples under different flow states, and then divided into a training set, a validation set, and a test set in a ratio of 6:2:2.
[0145] 2.1 Monitoring with a single sensor
[0146] The DTW-RBF network is established based on the samples of each sensor. The results are shown in Table 4. The monitoring accuracy of each sensor is shown in Table 4. Fig.10 As shown, 1-17 on the horizontal axis represent sensors C01-C17, and 18-31 represent sensors R01-R14. Table 5 lists the monitoring accuracy of the DTW-RBF network and other comparison methods on 31 sensors.
[0147] Depend on Fig.10 As can be seen from Table 5, the monitoring accuracy of the DTW-RBF network of the present invention on most sensors is generally higher than that of other comparison methods. Among them, the monitoring accuracy of NN-DTW and EUC-RBF on most sensors is higher than that of NN-EUC, which indirectly inspired the present invention to replace the Euclidean distance in the RBF kernel function with the DTW distance. It is worth noting that the monitoring accuracy of all methods on each sensor fluctuates greatly, which means that monitoring with only one sensor is unstable, so a group of sensors need to be integrated for joint monitoring.
[0148] The test time of each method for each sample is as follows Fig.11 As shown in Table 4. On the one hand, because NN-EUC and NN-DTW need to calculate the Euclidean distance or DTW distance between each test sample and all training samples, while EUC-RBF and DTW-RBF only need to calculate the Euclidean distance or DTW distance between each test sample and the hidden layer kernel function, the test time of EUC-RBF and DTW-RBF is much less than that of NN-EUC and NN-DTW. The test time of NN-EUC and NN-DTW will increase with the increase of training samples, while the test time of EUC-RBF and DTW-RBF will hardly change as long as the number of hidden layer nodes remains unchanged. As can be seen from Table 4, on 31 sensors, the average test time for each sample is about 2 milliseconds, which can meet the real-time requirements. On the other hand, for methods based on DTW distance, including NN-DTW, DTW-SVM and DTW-RBF, the main computational cost for a single sample is the number of DTW distance calculations. Fig.12 The figure shows the number of times the DTW distance needs to be calculated for a single sample by the three DTW distance-based methods.
[0149] For a single test sample, NN-DTW needs to calculate the DTW distance the number of times it has trained the sample, DTW-SVM needs to calculate the DTW distance the number of times it has support vectors, and DTW-RBF needs to calculate the DTW distance the number of times it has hidden layer nodes. However, since the kernel function used by DTW-SVM is not semi-positive definite, its solution lacks sparsity, which means there are many support vectors. Therefore, when the number of training samples increases, the number of times NN-DTW and DTW-SVM need to calculate the DTW distance will also increase accordingly, while as long as the structure of DTW-RBF remains unchanged, the number of times DTW-RBF needs to calculate the DTW distance remains almost unchanged.
[0150] In actual engineering, the sampling frequency cannot reach 20kHz adopted by the present invention, so the present invention also studies the influence of the sampling frequency on the monitoring effect, and the results are as follows: Fig.13 As shown in the figure. When the sampling frequency is gradually reduced from 20kHz to 8kHz, the average monitoring accuracy of the 31 sensors remains almost unchanged. The possible reason is that the excessively high sampling frequency leads to redundant information. In the process of reducing the frequency, the redundant information will also be reduced accordingly. However, when the sampling frequency is too low, some important information is not collected, so the monitoring accuracy is also low.
[0151] In summary, after verification by public data sets and intake duct test data, the DTW-RBF network proposed in this invention has good comprehensive performance.
[0152] 3 Sensor placement and integration based on multi-objective optimization and fuzzy decision making
[0153] from Fig.10 It can be seen that the monitoring accuracy of various methods fluctuates greatly at different sensor positions, so it is unstable to monitor the flow state of the intake duct using only a single sensor. The present invention will use NSGA-II and fuzzy decision to select a group of optimal sensors for integration.
[0154] After solving equation (23) using NSGA-II, the best Pareto optimal solution and the corresponding sensor placement scheme are as follows: Fig.14 As shown in the figure. On the one hand, as the number of selected sensors increases, more information will be used to monitor the inlet accuracy, so the monitoring error will decrease accordingly. However, if too many sensors are selected, there will be redundant or irrelevant information, which will reduce the monitoring effect. On the other hand, even if the number of sensors meets the restriction, an unreasonable placement scheme will also affect the monitoring effect. Fig.15Some unreasonable placement schemes are given, mainly composed of adjacent sensors. Table 6 lists the monitoring errors of various schemes. It can be seen from the table that the monitoring error of each unreasonable placement scheme is greater than the Pareto optimal solution with the same number of sensors. Therefore, although we need to limit the number of sensors to a certain range, a reasonable sensor placement scheme is equally important. Fig.14 To select a compromise solution from the three Pareto optimal solutions, the present invention adopts a fuzzy strategy. Table 7 lists the fuzzy variable values of each sub-goal of the Pareto optimal solution.
[0155] Since the solution [C01 C11 R08] has the largest sum of fuzzy variable values, the present invention takes it as a compromise solution. Fig.16 The distribution of the three sensors is shown. It can be seen that the three sensors are distributed in different areas of the intake duct and are far apart, which means that the three sensors can collect information on different flow characteristics for monitoring the flow state of the intake duct. At the same time, the test time for each sample in this scheme can be simply considered as the sum of the test time of each sensor, which is about 4.84 milliseconds, so it still meets the requirements of real-time monitoring.
[0156] Table 1 Benchmark dataset information
[0157]
[0158] Table 2 Test time and test accuracy of benchmark datasets
[0159]
[0160] Table 3 Experimental parameters
[0161]
[0162] Table 4 Comparison of monitoring results using a single sensor for various methods
[0163]
[0164] Table 5 The number of times the DTW-RBF network and other comparison methods win in monitoring accuracy on 31 sensors
[0165]
[0166] Table 6 Comparison of monitoring error and Pareto optimal error of unreasonable sensor placement scheme
[0167]
[0168] Table 7 Fuzzy variable values of each sub-goal
[0169]
Claims
1. A method for real-time monitoring of supersonic inlet flow state, characterized in that: The steps include: Step 1: Arrange multiple sensors on the internal flow channel of the supersonic inlet, collect dynamic pressure signals from each sensor, and use a sliding window to segment the collected pressure signals to obtain samples under different flow conditions, and construct a sample set for each sensor; Step 2: Establish a DTW-RBF network, divide the sample set of each sensor into a training set and a test set, and train the DTW-RBF network model corresponding to the sensor; Step 3: Use the trained DTW-RBF network model to verify its corresponding test set and obtain the test results; Step 4: Reduce the sensor placement and integration problem to a multi-objective optimization problem. By solving the multi-objective optimization problem, the optimal sensor combination is obtained. In step 2, the DTW-RBF network includes an input layer, a hidden layer based on a nonlinear RBF kernel function, and an output layer. The nonlinear RBF kernel function is: Where γ, x, and C represent the kernel function width, input sequence, and the center sequence of the kernel function, respectively; The training steps of the DTW-RBF network model in step 2 include: Step 2.1: Initialize network parameters, including the center sequence {C hid }、kernel function width {γ hid }, linear weights {W between hidden layer and output layer hid,m } and bias {b m }; Step 2.2: Use equation (1) and equation (2) to calculate the output of each node in the hidden layer and output layer respectively; x p represents the pth training sample, Ker(x p ,C hid ) represents the output of each node in the hidden layer, z pm Represents the output of each node in the output layer; Step 2.3: Use equations (3)-(5) to calculate the output, error and objective function of the Soft-max layer respectively; y pm Represents x p The true probability of belonging to the mth class, Represents x p The predicted probability of belonging to the mth class, e pm Represents x p The error belonging to the mth category, P represents the number of all training samples, M represents the number of all categories, and L represents the average error of all training samples belonging to each category; Step 2.4: Calculate each error e using equations (6)-(11) pm Derivatives with respect to all parameters; in, represents the error of the p-th sample at the m1-th output node, and They represent the true probability and predicted probability that the pth sample belongs to the m1th class, respectively. represents the linear weighted output of the p-th sample at the m2-th output node; Regarding the linear weight {W hid,m } and bias {b m The derivative of} is calculated as follows Regarding the kernel function width {γ hid The derivative of} is calculated by the following formula: About the central sequence hid The derivative of} is calculated by the following formula: Assume that the cost matrix Dist is calculated using squared Euclidean distance n×l Each element in , and the regular path is w=(w1,w2,…,w K ), K represents the length, then DTW(x p ,C hid ) About C hid The derivative of is calculated by: j represents x p or C hid The subscript index of the j-th point in ; Step 2.5: Based on the error e pm The derivatives of all parameters are trained using the LM algorithm.
2. The method for real-time monitoring of supersonic inlet flow state according to claim 1, characterized in that: In step 2.5, the optimization problem of the LM algorithm is: Where E(u) is the sum of squared errors, u is an N×1 parameter vector, and e pm (u) = d pm (u)-o pm (u) is the error of the mth output node of the pth training sample, d pm (u) is the expected output, o pm (u) is the predicted output, N is the number of parameters, P is the number of training samples, and M is the number of output nodes; The update formula of parameter u is: Δu=[H(u)] -1 G(u)≈[Q(u)+μI] -1 G(u)=[J(u) T J(u)+μI] -1 J(u) T e(u) (13) Among them, H(u) is the Hessian matrix, G(u) is the error gradient vector, Q(u) is the quasi-Hessian matrix, I is the unit matrix, μ is the connection coefficient, and the calculation formulas of Q(u) and G(u) are as follows:
3. The method for real-time monitoring of supersonic inlet flow state according to claim 1, characterized in that: The multi-objective optimization problem in step 4 is: Where M is the number of all categories, T is the number of all candidate sensors, and H i is a sub-classifier built based on the i-th sensor data, is x p The posterior probability of belonging to the kth class; β represents the weight of each sensor and can only be 0 or 1; if the element β in β i If it is 1, it means that the i-th sensor is selected, otherwise it means that it is not selected; and Represents β i The upper and lower limits of , P is the number of training samples, and Ind(*) is the indicator function.
4. The method for real-time monitoring of supersonic inlet flow state according to claim 1, characterized in that: Step 4: Use the NSGA-II algorithm to solve the multi-objective optimization problem. The specific steps are as follows: Step 4.1: Assume that a sensor placement scheme contains S sensors, corresponding to S sub-classifiers. The average difference between sub-classifiers is calculated by the following formula. Select the sensor placement scheme with the largest average difference. Among them, U i represents the confusion matrix of the i-th sub-classifier, ||*|| F represents the Frobenius norm; Step 4.2: Assume that the membership degree of the i-th objective function of the j-th Pareto optimal solution is: Among them, obj i represents the i-th objective function value, and They represent the maximum and minimum values of the i-th objective function respectively. The sum of the membership degrees of all objective functions of the j-th Pareto optimal solution measures its comprehensive ability to meet different objective functions. The contribution of the j-th Pareto optimal solution to all Pareto optimal solutions is calculated as follows: Among them, V represents the number of all Pareto optimal solutions, and L is the number of all objective functions; Step 4.3: In order to utilize more different information, select the solution with the largest difference between the sub-classifiers established based on different sensor data, that is, select μ j The sensor placement scheme corresponding to the largest Pareto optimal solution.
