A method for diagnosing faults in power supply modules of fire control computers
By introducing Sine-Tent-Cosine chaos mapping, adaptive probability threshold and adaptive inertia weight optimization whale algorithm, the local optimal problem of BP neural network in fire control computer fault diagnosis is solved, the diagnosis accuracy and efficiency are improved, and the Faster convergence speed and higher classification accuracy.
Patent Information
- Application Number
- CN202410796018.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-20
AI Technical Summary
The existing fire control computer fault diagnosis method based on BP neural network is prone to falling into local minima, has slow training speed and low prediction efficiency, and the genetic algorithm has insufficient local search capabilities, resulting in the inability to obtain the real optimal solution.
Sine-Tent-Cosine chaos mapping, adaptive probability threshold P(t) and adaptive inertia weight ω are introduced to optimize the whale optimization algorithm (IWOA), optimize the initial parameters of the BP neural network, and improve the diagnosis effect and efficiency.
The accuracy and efficiency of fire control computer power module fault diagnosis are improved. Compared with the traditional method, the classification accuracy is increased by 3.16%, and the diagnosis time is shortened.
Smart Images

Figure CN118364342B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of fire control computer fault diagnosis, and in particular relates to a fire control computer power module fault diagnosis method. Background Art
[0002] As a large and complex weapon, tanks have extremely high requirements for reliability. The advancement of their fire control systems directly affects the combat effectiveness of armored equipment on the battlefield. The tank fire control system is composed of multiple core components, mainly including key parts such as the fire control computer and sensor subsystem, observation and aiming subsystem, and gun control subsystem. Among them, the fire control computer and sensor subsystem are the central subsystems of the tank fire control system, connecting the source signals of various subsystems such as the observation and aiming subsystem and the gun control subsystem. After a fire control computer fails, its fault symptoms will be reflected through some monitoring indicators. In order to generate a scientific and reasonable maintenance strategy, eliminate the faults that occur, improve the maintenance efficiency of equipment, and ensure the reliability and stability of equipment, it is particularly important to perform accurate fault diagnosis on the fire control computer.
[0003] Common fault diagnosis methods mainly include model-based, data-driven and statistical theory-based methods. However, in actual engineering applications, model-based fault diagnosis methods are limited by the difficulty of building accurate models, so their application is limited to a certain extent. At present, data-driven fault diagnosis has been applied in many fields. Based on the collected data, intelligent algorithms can be used to build a model relationship between input and output to achieve fault diagnosis. Among them, common methods include artificial neural networks (ANNs), swarm intelligence optimization algorithms, etc., which have been widely used in the field of fault diagnosis. The existing fault diagnosis methods based on BP neural networks often face the problems of slow training speed and low prediction efficiency because they are easy to fall into local minimum values. In order to solve this problem, the particle swarm optimization algorithm is introduced to improve the fault diagnosis model of BP neural network, but the particle swarm optimization algorithm also has the defect of being easy to fall into local optimality, which may have a negative impact on the prediction accuracy. In addition, genetic algorithms are currently used to optimize BP neural networks and applied to armored vehicle circuit board fault diagnosis, but genetic algorithms are insufficient in local search capabilities, which often leads to suboptimal solutions and failure to obtain the true optimal solution. Summary of the invention
[0004] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a method for diagnosing faults of a power module of a fire control computer, which introduces Sine-Tent-Cosine chaotic mapping, adaptive probability threshold P(t) and adaptive inertia weight ω to optimize and improve the whale algorithm, and adopts the optimized whale optimization algorithm (IWOA) to optimize the initial parameters of the BP neural network to improve the diagnostic effect and efficiency.
[0005] In order to achieve the above object, the main technical solutions adopted by the present invention include:
[0006] A method for diagnosing a fault of a fire control computer power module comprises the following steps:
[0007] Step S01, obtaining power supply data of a fire control computer, and performing data set division processing on the obtained data;
[0008] Step S02, normalizing the data;
[0009] Step S03: Select the number of hidden layer nodes according to the following formula:
[0010] ;
[0011] Where: h is the number of hidden layer nodes, n is the number of input layer nodes, m is the number of output layer nodes, and a is a regulation constant between 1 and 10;
[0012] Step S04, introduce the chaotic map Sine-Tent-Cosine into the whale optimization algorithm WOA according to the following formula;
[0013] ;
[0014] In the formula Represents the input value of the current iteration step, is the output value of the next step, is a parameter in the range [0,1];
[0015] Step S05: Introduce adaptive inertia weight in the global search phase of the whale optimization algorithm WOA. The introduced inertia weight formula is as follows:
[0016] ;
[0017] Where: is the inertia weight, For early exploration of weight coefficients, is the later refinement weight coefficient, t is the current iteration number, T maxgen is the maximum number of iterations;
[0018] Step S06: Setting the adaptive probability threshold :
[0019] ;
[0020] Where: is the maximum number of iterations, tis the current iteration number, is the value of the adaptive probability threshold at the beginning of the iteration;
[0021] Step S07: Optimize the parameters of the BP neural network using the whale optimization algorithm that introduces inertia weight and adaptive probability threshold, calculate the fitness value of each individual whale, find the position of the individual whale with the best fitness, and update their positions:
[0022] ;
[0023] Where: is the current optimal whale position vector, D is the spatial distance vector between the current individual whale and the optimal whale, A is the adjustable range; t is the current iteration number; is the distance between the tth whale individual and the optimal individual; b is the constant that determines the shape of the logarithmic spiral; l is a random number in the interval [-1,1]; is the current randomly selected individual whale position; is the spatial distance from a randomly selected individual whale to its prey; To improve the updated solution, that is, the position or state of each whale in the next generation; P is the probability of the predation mechanism, and when the predetermined number of iterations is reached, the optimal position obtained is the optimized neural network parameters, and these parameters are assigned to the BP neural network to output the diagnosis results.
[0024] Furthermore, in step S01, the data set is divided as follows: the acquired power supply normal and fault status data are divided into five different categories, the label corresponding to the data when the power supply is in a normal state is 1; the label corresponding to the data when the +15V power supply fails is 2; the label of the data when the -15V power supply fails is 3; the labels of the data when the 26V sub-power supply fails and the 26V main power supply fails are 4 and 5 respectively, and the training set and the test set are divided according to a ratio of 2:1.
[0025] Furthermore, in step S02, the normalization process is to use the mapminmax function in MATLAB 2016b to normalize the input and output data to the interval [-1,1]. After the network is trained, the output data is denormalized, and the network prediction output result is rounded using the round function, and classified into the classification label for class fault diagnosis.
[0026] Furthermore, in step S05, the weight gradually decreases in a nonlinear manner according to the increasing number of whale evolution generations.
[0027] The beneficial effects of the present invention are:
[0028] The present invention proposes a method for diagnosing the fault of the power module of a fire control computer based on IWOA-BP. The Sine-Tent-Cosine chaotic mapping, adaptive probability threshold P(t) and adaptive inertia weight ω are introduced to optimize and improve the whale algorithm, and the optimized whale optimization algorithm (IWOA) is used to optimize the initial parameters of the BP neural network, thereby improving the diagnostic effect and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 is the IWOA-BP diagnosis flow chart of the present invention;
[0030] Figure 2 To improve the fitness curve of IWOA and the basic whale algorithm;
[0031] Figure 3 This is the WOA-BP diagnosis and classification result diagram;
[0032] Figure 4 This is the IWOA-BP diagnostic classification result diagram. DETAILED DESCRIPTION
[0033] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation methods.
[0034] The present invention provides a method for diagnosing a fault of a power supply module of a fire control computer, comprising the following steps:
[0035] Step S01, obtain the power supply data of the fire control computer, and perform data set division processing on the obtained data. In this embodiment, the original data set contains 300 groups of normal and faulty state data of the power supply, and these data are divided into five different categories. Among them, there are 60 groups of data when the power supply is in a normal state, and the corresponding label is 1; there are also 60 groups of data when the +15V power supply fails, and the corresponding label is 2; there are also 60 groups of data when the -15V power supply fails, and the label is 3; there are 60 groups of data for 26V sub-power supply failure and 26V main power supply failure, and their labels are 4 and 5 respectively. Divide the training set and the test set in a ratio of 2:1, with 200 groups as training sets and 100 groups as test sets.
[0036] Step S02, normalize the data. The data normalization part is: when input into the network model for training, the input and output features have different dimensions and scales, and the data is normalized. The mapminmax function in MATLAB2016b is used to normalize the input and output data to the interval [-1,1]. After the network is trained, the output data is denormalized. Since the output labels can only be integers of 1, 2, 3, 4 or 5. The round function is used to round the network prediction output results and classify them into several classification labels to perform various fault diagnosis.
[0037] Step S03: Select the number of hidden layer nodes according to the following formula:
[0038] ;
[0039] Where: h is the number of hidden layer nodes, n is the number of input layer nodes, m is the number of output layer nodes, and a is a tuning constant between 1 and 10.
[0040] When establishing a BP neural network training model, the selection of the number of hidden layer nodes is very important, and its selection directly affects the performance of the network. The input factor is the signal collected by 13 signal pins, and the output is the label value corresponding to each type of fault, so the number of input nodes of the network is 13 and the number of output nodes is 1. The number of hidden layer nodes is calculated to be in the range of 4 to 13, and the optimal number of hidden layer nodes can be determined to be 8, and the network structure is finally determined to be 13-8-1.
[0041] Step S04, introduce the chaotic map Sine-Tent-Cosine into the whale optimization algorithm WOA according to the following formula;
[0042] ;
[0043] In the formula Represents the input value of the current iteration step, is the output value of the next step, is a parameter in the range of [0,1]. Take 0.3.
[0044] Sine-Tent-Cosine chaotic mapping is a method for optimizing the generation of the initial population. In Sine-Tent-Cosine chaotic mapping, a continuous chaotic sequence is first generated using the Sine function, and then the sequence is segmented using the Tent function so that each element in the sequence has a value range similar to a tent shape. Finally, the Cosine function is used to further transform the sequence. Chaotic mapping is introduced into the whale optimization algorithm (WOA). The position of the initial population generated by the Sine-Tent-Cosine chaotic mapping is random and evenly distributed. This evenly distributed population can improve the search efficiency of the whale optimization algorithm, because each individual whale has the opportunity to explore different areas of the solution space, thereby accelerating the convergence of the algorithm.
[0045] Step S05: Introduce adaptive inertia weight in the global search phase of the whale optimization algorithm WOA. The introduced inertia weight formula is as follows:
[0046] ;
[0047] Where: is the inertia weight, For early exploration of weight coefficients, is the later refinement weight coefficient, here =3, =5, t is the current iteration number, T maxgen is the maximum number of iterations.
[0048] Inertia Weight The value of is in the interval [0,1]. As the number of whale iterations increases, The value of shows a decreasing trend. In the early stage of evolution, a larger weight value gives the algorithm a stronger global search ability and a wider search range, which helps the algorithm get rid of the constraints of the local optimal solution. As the number of iterations increases, The value of will gradually decrease, allowing the whale to explore the area near the optimal solution more carefully, thereby improving the algorithm's optimization accuracy and accelerating the convergence speed. In the later stages of evolution, the decreasing trend of weight slows down, which not only enhances the algorithm's local mining ability, but also maintains the balance of search capabilities to a certain extent.
[0049] Step S06: Setting the adaptive probability threshold :
[0050] ;
[0051] Where: is the maximum number of iterations, t is the current iteration number, is the value of the adaptive probability threshold at the beginning of the iteration. The value of is 0.9, The value of is 3. This formula makes P ( t ) gradually changes from a higher value to a lower value during the iteration process, so that global search can be emphasized in the early stage and local search can be emphasized in the later stage.
[0052] Improve the adaptive probability threshold of the whale algorithm. The adaptive probability threshold set by the original algorithm is set to 0.5. The present invention designs an adaptive adaptive probability threshold formula P ( t ), this threshold is used to dynamically adjust the algorithm's balance between global search (exploration) and local search (exploitation). By adjusting this adaptive probability threshold, the algorithm can automatically choose whether to conduct more extensive exploration or more focused exploitation according to different stages of the search process.
[0053] Step S07: Optimize the parameters of the BP neural network using the whale optimization algorithm that introduces inertia weight and adaptive probability threshold, calculate the fitness value of each individual whale, find the position of the individual whale with the best fitness, and update their positions:
[0054] ;
[0055] Where: is the current optimal whale position vector, D is the spatial distance vector between the current individual whale and the optimal whale, A is the adjustable range; t is the current iteration number; is the distance between the tth whale individual and the optimal individual; b is the constant that determines the shape of the logarithmic spiral; l is a random number in the interval [-1,1]; is the current randomly selected individual whale position; is the spatial distance from a randomly selected individual whale to its prey; To improve the updated solution, that is, the position or state of each whale in the next generation; P is the probability of the predation mechanism, and when the predetermined number of iterations is reached, the optimal position obtained is the optimized neural network parameters, and these parameters are assigned to the BP neural network to output the diagnosis results.
[0056] The process of improving the whale algorithm to optimize the BP neural network is as follows:
[0057] 1) Encircling the prey stage:
[0058] ;
[0059] represents the current optimal whale position vector, represents the position vector of the current whale individual, D represents the spatial distance vector between the current whale individual and the optimal whale, and C is the constraint coefficient.
[0060] ;
[0061] A For the adjustable range, r 1 is the exploration factor, ranging from [0,1]; r 2 is a random offset, ranging from [0,1]; a is a control parameter, and the value of a will gradually decrease linearly from 2 to 0; t Indicates the current iteration number; is the maximum number of iterations.
[0062] 2) Spiral attack on prey:
[0063]
[0064] Where: X ( t +1) is the solution for the next generation; D is the spatial distance vector between the current whale individual and the optimal whale, A is the adjustable range; is the distance between the tth whale individual and the optimal individual; b is the constant that determines the shape of the logarithmic spiral; l is a random number in the interval [-1,1]; P is the probability of the predation mechanism.
[0065] 3) Randomly attack prey:
[0066] ;
[0067] is the current randomly selected individual whale position; is the spatial distance from a randomly selected whale individual to its prey.
[0068] Figure 2 The fitness curves of the improved IWOA and the basic whale algorithm show that the number of iterations when the IWOA algorithm converges is about 20 generations, and the number of iterations when the WOA algorithm converges is about 30 generations. The best fitness value of IWOA is 0.112, and the best fitness value of WOA is 0.5402. The best fitness value of the improved IWOA is smaller than that of the basic WOA, and the traditional WOA falls into the local optimal value during the optimization process, indicating that the improved IWOA has stronger optimization ability and faster convergence speed than the basic WOA.
[0069] from Figure 3 , Figure 4 It can be seen that the number of wrong labels when classifying and diagnosing 100 sets of test data is 8 and 5 respectively. The fault classification accuracy of the WOA-BP model is 92%, while the fault classification accuracy of the IWOA-BP model is 95%. The fault classification accuracy of the IWOA-BP model is 3.16% higher than that of the WOA-BP model. In terms of algorithm running time, the diagnostic running time of IWOA-BP is 9.24 seconds, and the diagnostic running time of WOA-BP is 10.04 seconds. The diagnostic time required by the IWOA-BP algorithm is also the shortest.
[0070] In order to avoid the contingency of the experimental results, each diagnostic algorithm was repeated 5 times, and the average of the diagnostic accuracy and running time of the 5 experimental results was taken as the final result of the model. The experimental results are shown in Table 1.
[0071] Table 1 Multiple experimental results of two diagnostic models
[0072] .
[0073] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are illustrative and are not to be construed as limitations on the present invention. Alterations, modifications, substitutions and variations of the above embodiments by a person skilled in the art are all within the scope of the present invention.
Claims
1. A method for diagnosing a fault in a fire control computer power module, characterized in that: The steps include: Step S01, obtaining the power supply data of the fire control computer, and performing data set division processing on the obtained data; in the step S01, the data set is divided as follows: the obtained power supply normal and fault state data are divided into five different categories, the label corresponding to the data of the power supply in the normal state is 1; the corresponding label of the data of the +15V power supply failure is 2; the label of the data of the -15V power supply failure is 3; the labels of the data of the 26V sub-power supply failure and the 26V main power supply failure are 4 and 5 respectively, and the training set and the test set are divided according to the ratio of 2:1; Step S02, normalizing the data; in the step S02, the normalization is to use the mapminmax function in MATLAB2016b to normalize the input and output data to the interval [-1,1]. After the network is trained, the output data is denormalized, and the network prediction output result is rounded using the round function, and classified into the classification label for class fault diagnosis; Step S03: Select the number of hidden layer nodes according to the following formula: ; Where: h is the number of hidden layer nodes, n is the number of input layer nodes, m is the number of output layer nodes, and a is a regulation constant between 1 and 10; Step S04, introduce the chaotic map Sine-Tent-Cosine into the whale optimization algorithm WOA according to the following formula; ; In the formula Represents the input value of the current iteration step, is the output value of the next step, is a parameter in the range [0,1]; Step S05: Introduce adaptive inertia weight in the global search phase of the whale optimization algorithm WOA. The introduced inertia weight formula is as follows: ; Where: is the inertia weight, For early exploration of weight coefficients, is the later refinement weight coefficient, t is the current iteration number, T maxgen is the maximum number of iterations; in step S05, the weight gradually decreases in a nonlinear manner according to the increasing number of whale evolution generations; Step S06: Setting the adaptive probability threshold : ; Where: is the maximum number of iterations, t is the current iteration number, is the value of the adaptive probability threshold at the beginning of the iteration; Step S07: Optimize the parameters of the BP neural network using the whale optimization algorithm that introduces inertia weight and adaptive probability threshold, calculate the fitness value of each individual whale, find the position of the individual whale with the best fitness, and update their positions: ; Where: is the current optimal whale position vector, D is the spatial distance vector between the current individual whale and the optimal whale, A is the adjustable range; t is the current iteration number; is the distance between the tth whale individual and the optimal individual; b is the constant that determines the shape of the logarithmic spiral; l is a random number in the interval [-1,1]; is the current randomly selected individual whale position; is the spatial distance from a randomly selected individual whale to its prey; To improve the updated solution, that is, the position or state of each whale in the next generation; P is the probability of the predation mechanism, and when the predetermined number of iterations is reached, the optimal position obtained is the optimized neural network parameters, and these parameters are assigned to the BP neural network to output the diagnosis results.
