Aircraft avionics system off-line fault diagnosis method based on AI large model

Through the combination of AI large models and heuristic generative adversarial networks, and the neural network parameter optimization algorithm combined with the principle of fusion phenomena, the problem of insufficient data generalization ability and model stability in aircraft avionics system fault diagnosis is solved, achieving high accuracy and Fault diagnosis of aircraft avionics system using in-depth fault analysis.

CN118760134APending Publication Date: 2024-10-11CHANGSHA AVIATION VOCATIONAL & TECH COLLEGE (AIR FORCE AVIATION MAINTENANCE TECH COLLEGE)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410950204.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing aircraft avionics system fault diagnosis technology relies on limited data, insufficient generalization capabilities, and model training stability issues such as gradient disappearance or explosion impact effects, resulting in insufficient diagnostic accuracy and depth.

Method used

An offline fault diagnosis method for aircraft avionics systems based on AI large models is adopted, data is expanded through data collection and annotation, and heuristic generation of adversarial networks. The AI ​​large models and machine learning models are combined for initial diagnosis and accurate diagnosis, and the principle of fusion phenomenon is used to Neural network parameter optimization algorithm avoids vanishing or exploding gradients.

Benefits of technology

It significantly improves the accuracy and reliability of fault diagnosis, realizes in-depth fault analysis from macro to micro, optimizes the diagnosis process, and enhances the stability and performance of model training.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760134A_ABST
    Figure CN118760134A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of fault diagnosis, in particular to an aircraft avionics system off-line fault diagnosis method based on an AI large model. Comprising the following steps: step 1, data acquisition and labeling; 2, data expansion; 3, carrying out the initial diagnosis of the fault of the large model; step 4, accurately diagnosing faults of the machine learning model; step 5, performing offline fault diagnosis on the aircraft avionics system; according to the data expansion method based on the heuristic generative adversarial network, the data diversity can be remarkably improved, the generalization ability of the model for unseen data is improved, so that the accuracy and reliability of fault diagnosis are improved, and a strategy of performing preliminary diagnosis by combining an AI large model and performing accurate diagnosis by a traditional machine learning model is further improved. The powerful data processing capacity of a large model and the accurate calculation function of a machine learning model are fully utilized, deep fault analysis from macroscopic to microscopic is achieved, and the diagnosis process is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fault diagnosis, and in particular to an off-line fault diagnosis method for an aircraft avionics system based on an AI large model. Background Art

[0002] The aircraft system consists of more than 30 subsystems, which are interrelated and contain multiple subsystems. Within the subsystem, the information connection between the levels is uncertain. For example, the radio navigation system, atmospheric data inertial reference system (ADIRS), flight management and guidance computer system (FMGCS), electronic flight instrument system (EFIS) of the A320 series aircraft all have data communication with the flight control system. And there are cross-linking signals between the subsystems inside the flight control system. It can be seen that faults have the characteristics of vertical and horizontal propagation. The faults of higher-level systems come from the faults of lower-level systems. There are many connections and couplings in structure and function between different systems at the same level. When an aircraft system fails, it needs to be diagnosed quickly to ensure the operation of the aircraft system.

[0003] There are some existing technologies for quickly resolving aircraft failures:

[0004] ① An aircraft system fault diagnosis method, device, computer equipment and storage medium, used to improve the accuracy of aircraft system fault diagnosis. The main technical scheme is: obtain an aircraft system alarm sequence, the aircraft system alarm sequence is composed of alarm information of multiple test events; perform XOR operations on the aircraft system alarm sequence and the records in the diagnostic information truth table one by one to determine the fault root cause set corresponding to the aircraft system alarm sequence; the fault root cause set contains the combination of bottom event nodes that fail; wherein the diagnostic information truth table is determined based on the minimum cut set and the minimum path set corresponding to all test points in the aircraft system.

[0005] ② A method and system for diagnosing aircraft avionics product faults based on an avionics product problem library, the method specifically includes the following steps: S1, analyzing and processing aircraft avionics product source data to obtain processed aircraft avionics product data: and extracting key fields in the aircraft avionics product data as a data set; S2, building a knowledge graph model; S3, building a fault diagnosis model for the avionics product problem library; S4, based on actual problems, inputting actual problems into the avionics product problem library and outputting fault diagnosis results. It is oriented to the needs of ground diagnosis and troubleshooting of avionics products, and in an interactive way, through knowledge-driven based on data extraction, it maps fault phenomenon reasoning to the fault location at the LRU level, and realizes decision support for maintenance personnel to quickly troubleshoot. The method realizes response and decision support in the process of field troubleshooting in an interactive way, and improves the efficiency of fault diagnosis.

[0006] ③An aircraft engine health management system and method, belonging to the field of aircraft engine health management technology, the system includes a main control chip, an FPGA chip, a photoelectric conversion module, a first DDR3 memory, a second DDR3 memory, a reset chip, a JTAG interface, an SPI FLASH flash memory, a BPI FLASH flash memory, a debugging serial port UART1 and a solid state drive SSD. The main control chip of the present invention adopts Loongson 2K1000, and the present invention adopts Loongson 2K1000+FPGA architecture, has a multi-channel interface, can speed up the analysis, verification and classification speed of aircraft vibration data, and at the same time ensures the accuracy and reliability of the data, and improves the accuracy and efficiency of fault diagnosis.

[0007] However, these generally have the following shortcomings:

[0008] ① Traditional methods rely on limited actual collected data, which limits the generalization ability of the model. In the face of unseen or rare fault types, the model may not be able to make accurate judgments.

[0009] ② The accuracy and depth of fault diagnosis are insufficient. Traditional models may only use a single algorithm and rely on surface data for classification. They lack the understanding and analysis of the deep-seated causes of the fault, and the fault diagnosis results may not be comprehensive enough.

[0010] ③ Stability issues in model training. Gradient vanishing or exploding is a common problem in neural network training, especially in complex or deep networks, which seriously affects training results and model performance.

[0011] Therefore, this application proposes an offline fault diagnosis method for aircraft avionics systems based on an AI large model. Summary of the invention

[0012] In order to make up for the deficiencies of the prior art and solve the technical problems existing in the background technology, the present invention proposes an offline fault diagnosis method for an aircraft avionics system based on an AI large model.

[0013] The present invention is achieved through the following technical solutions:

[0014] The offline fault diagnosis method of aircraft avionics system based on AI large model includes the following steps:

[0015] Step 1: Data collection and annotation

[0016] The data acquisition module is arranged in a built-in test system in the aircraft avionics system, and the data acquisition module includes multiple types of sensors, and the multiple sensors are used to realize the collection of indicator types in the aircraft avionics system;

[0017] When data collection is completed, the collected data is manually annotated;

[0018] Step 2: Data expansion

[0019] The data in step 1 is augmented through the structure of a generative adversarial network based on heuristic generation;

[0020] Step 3: Initial diagnosis of large model faults

[0021] Input the sample features expanded in step 2 into the AI ​​big model to perform the initial fault diagnosis phase and obtain the initial fault diagnosis result. The diagnosis result includes the fault type, fault location and possible repair solutions. The fault diagnosis result is output in the form of a label.

[0022] Step 4: Accurately diagnose machine learning model faults

[0023] The label result obtained in step 3 is cascaded with the expanded sample data. The cascade is a feature fusion method. The feature is used to superimpose the fault diagnosis result obtained by the initial diagnosis of the large model to obtain the initial diagnosis segment sample.

[0024] Step 5: Offline fault diagnosis of aircraft avionics system

[0025] Use the trained machine learning model to process new sample data to complete fault diagnosis tasks.

[0026] Preferably, the structure of the heuristically generated generative adversarial network includes a generator (G) and a discriminator (D), wherein the generator is responsible for generating aircraft avionics system data that appears to be real, and the discriminator is used to determine whether the input data is real or generated by the generator.

[0027] Preferably, the operation steps of the heuristically generated generative adversarial network are as follows:

[0028] S1: Initialize the parameters of the generator and discriminator, set θ g is the parameter of the generator, θ d are the parameters of the discriminator;

[0029] S2: The generator receives random noise z and the offline characteristic index b of the aircraft avionics system x , the offline characteristic index is used to guide the generation process and ensure the close connection between the logic of the generated data and the actual application, which is expressed as:

[0030] Z z , b x -P bx

[0031] In the above formula, z is the random noise of the input, which follows the distribution P z ; b xis the conditional input, i.e., the offline characteristic index of the aircraft avionics system, which follows the distribution P bx ;

[0032] S3: Generator produces fake data The discriminator evaluates this data and the real data x and gives a true or false judgment. The way the generator generates data is expressed as:

[0033]

[0034] S4: The judgment result of the discriminator Feedback is given to the generator, and the generator adjusts the parameters according to the feedback. The parameter update method of the generator is expressed as:

[0035]

[0036] In the above formula, θ' g is the updated generator G parameter, λ g is the learning rate, is θ g The gradient of rt is the regularization term weight, is the heuristic regularization term, c is the conditional vector;

[0037] S5: Repeat the cycle of generation-determination-adjustment. Each iteration fine-tunes the generation strategy to gradually reduce the difference between the generated data and the real data. The way to optimize the generation strategy can be expressed as:

[0038]

[0039] In the above formula, and are the generator parameters after the nth and n+1th iterations respectively;

[0040] S6: Repeat the above steps until the preset stop iteration condition is met, indicating that the model training is completed;

[0041] The preset condition for stopping iteration is reaching the preset maximum number of iterations.

[0042] Preferably, the discriminator discriminates the data generated by the generator, which is expressed as:

[0043]

[0044] In the above formula, α d and b d is the learning parameter of the discriminator, and sig() is the sigmoid activation function.

[0045] Preferably, the calculation method of the heuristic regularization term is expressed as:

[0046]

[0047] In the above formula, r(g i ) is for a single generated sample g i =G θ (z i , c i ), the heuristic penalty function is based on the sample g i The degree of violation of the heuristic rule is penalized, and n is the number of generated samples;

[0048] And r(g i ) is calculated as:

[0049]

[0050] In the above formula, h(g i ) is a measure g i A function of the degree of violation of the heuristic rule, β tr is the intensity of the penalty, and β tr Take 0.4.

[0051] Preferably, the parameter update of the generator adopts the gradient descent method, and the gradient The calculation method is expressed as:

[0052]

[0053] Specifically expanded as follows:

[0054]

[0055] in, Expanded by the chain rule, it can be expressed as:

[0056]

[0057] In the above formula, represents the sensitivity of the discriminator output to the generator output, represents the gradient of the generator output with respect to its parameters;

[0058] The θ g The update is based on the gradient calculation, where It can be expressed by the chain rule as:

[0059]

[0060] Specifically expanded as follows:

[0061]

[0062] In the above formula, is the gradient of the generator output with respect to its parameters at the nth iteration.

[0063] Preferably, in step 4, a three-layer fully connected neural network is used for feature extraction. The neural network parameter optimization algorithm based on the fusion phenomenon principle optimizes the weights and biases of the network by simulating the fusion process. The weights and biases are regarded as atomic nuclei, and their merging and transformation processes are aimed at achieving the optimal state of the loss function.

[0064] Preferably, the steps of the neural network parameter optimization algorithm based on the fusion phenomenon principle are as follows:

[0065] A1: Define the structure of the neural network, and obtain a three-layer fully connected neural network including an input layer and two hidden layers, and preset an output layer for category supervision training, which are defined as follows:

[0066] Input layer, assuming the dimension of the input vector is d, then the input layer has d neurons, corresponding to the d elements in the vector;

[0067] Hidden layer, both hidden layers have 128 neurons and use ReLU as the activation function;

[0068] Output layer, the output layer uses the softmax function as the activation function;

[0069] A2: Perform nuclear synthesis cycle operation, check the fusion candidate for each pair of weight and bias parameters, if the synthesis of the two parameters can reduce the overall system energy, then allow fusion, otherwise keep it independent;

[0070] For every pair of parameters w j and b k An assessment is made to determine whether the total energy of the system can be reduced by fusion as:

[0071] ΔE=E(w' j , b' k )-E(w j , b k )

[0072] And, the fusion behavior of the parameters is expressed as:

[0073] w' j =w j +δ tr

[0074] b' k =w k +ε tr

[0075] In the above formula, w' j and b'k are the updated neural network parameters respectively;

[0076] If ΔE<Θ(t), then accept the new parameter w' j and b' k , otherwise keep the original parameters unchanged, Θ(t) is the energy threshold of the current iteration;

[0077] A3: Energy evaluation is performed on the synthesized new parameter set, and the parameter state is updated to push the parameter group in the high energy state to the low energy state in order to stabilize the desired state;

[0078] The synthesized parameter set is re-evaluated by the energy function E to ensure that the energy is minimized as:

[0079]

[0080] In the above formula, p(y i x i ; w, b) is the value of the given input x i With parameters w, b, output y i probability;

[0081]

[0082] In the above formula, δ std is the standard deviation of the output data;

[0083] A4: Adjust the nuclear reaction temperature according to the current network performance and stability, simulate the temperature control in physical fusion, and adjust the fusion temperature T as follows:

[0084] T new =T old *exp(-α te ΔE)

[0085] In the above formula, α te is the temperature adjustment factor, T new and T old are the temperatures before and after adjustment, ΔE is the energy change; and α te Based on dynamic adjustment of energy changes, its calculation method is expressed as:

[0086]

[0087] In the above formula, K te is a preset adjustment coefficient, |ΔE| is the absolute energy change, E avg is the average value of all current parameter energies;

[0088] A5: Check whether the energy of network parameters reaches a dynamic equilibrium state. If it reaches equilibrium, continue the optimization process; if it does not, perform parameter re-fusion processing. The judgment condition is expressed as:

[0089] Var(E)<ε mr

[0090] In the above formula, Var(E) is the variance function of energy E;

[0091] A6: Decide whether to update the current parameter configuration based on the energy optimization principle, expressed as:

[0092]

[0093] b new =b k +β rate Δb

[0094] In the above formula, β rate To update the learning rate, is the fusion adjustment factor,

[0095] The weight and bias parameters are updated using momentum terms, and the calculation method is expressed as:

[0096] ΔW=μΔW prew +(1-μ ea )β▽ w E

[0097] Δb=μΔb prew +(1-μ ea )β▽ b E

[0098] In the above formula, μ ea is the momentum coefficient, ΔW prew and b prew are the weight and bias updates of the previous iteration respectively;

[0099] Fusion Adjustment Factor It is set dynamically according to the historical changes of weights and the error rate of the current layer, expressed as:

[0100]

[0101] In the above formula, is the difference between the current weight and the weight of the previous iteration; is the standard deviation of the weight change of the current layer; E1 is the error rate of the current layer; ρ yt and λ yt is the adjustment coefficient, which controls the influence intensity of weight change rate and error rate respectively; tanh is the hyperbolic tangent function;

[0102] A7: Determine whether the algorithm has converged by the magnitude of parameter energy changes after multiple consecutive iterations;

[0103] If converged, output the final optimized parameters; if not converged, return to A2 to continue iteration. The convergence judgment method is expressed as:

[0104]

[0105] In the above formula, E new is the energy state after parameter update, E old is the energy state before parameter update, γ ew is the convergence threshold.

[0106] Preferably, in A1, the neural network parameters are initialized, a random energy state is assigned to it, the weight w and bias b of the neural network are assigned initial values, and the energy state E(w, b) is defined to describe the potential optimization ability of the parameters, which is expressed as:

[0107]

[0108] In the above formula, x i is the input data, y i is the corresponding target output, N is the number of samples in the data set, k is the number of feature scales, and α k (t) is the adaptive weight of the kth scale;

[0109] The weight α of each scale k (t) The update depends on the effect of the scale under the current training state. The update method of the adaptive weight is expressed as:

[0110]

[0111] In the above formula, E k (t) is the loss value of the kth scale at time t, β k is the importance adjustment coefficient of the kth scale.

[0112] Preferably, the energy threshold Θ(t) is updated at each iteration, and the sensitivity and frequency of parameter updates are controlled by monitoring the energy changes during the training process in real time and dynamically adjusting the energy threshold accordingly;

[0113] The update rule for defining the energy threshold is:

[0114]

[0115] In the above formula, Θ(t) and Θ(t+1) are the energy thresholds of the current and next time steps respectively; v eois the learning rate of threshold adjustment, which controls the speed of adjustment; E(t) is the average energy of the current time step; E target is the target energy, which is preset according to the task requirements; δ E is the standard deviation of energy change; tanh is the hyperbolic tangent function;

[0116] Weight adjustment δ tr and the offset adjustment ε tr The calculation method is expressed as:

[0117] δ tr =δ to *tanh(η to *▽ w E)

[0118] ε tr =δ to *tanh(η to *▽ b E)

[0119] In the above formula, δ to and η to Adjusted sensitivity and scaling factor for fusion.

[0120] The beneficial effects of the present invention are:

[0121] The data expansion method based on the heuristic generative adversarial network of the present invention can significantly increase data diversity and improve the generalization ability of the model for unseen data, thereby improving the accuracy and reliability of fault diagnosis. It also combines the strategy of using a large AI model for initial diagnosis and a traditional machine learning model for precise diagnosis, making full use of the powerful data processing capabilities of the large model and the precise calculation function of the machine learning model to achieve in-depth fault analysis from macro to micro and optimize the diagnosis process. In addition, the neural network parameter optimization algorithm based on the principle of fusion phenomenon innovatively applies the fusion phenomenon in physics to the parameter optimization of the neural network, does not rely on gradient information, can effectively avoid the problem of gradient disappearance or explosion, and enhances the stability and performance of model training. BRIEF DESCRIPTION OF THE DRAWINGS

[0122] Figure 1 is a flow chart of the method of the present invention;

[0123] Figure 2 This is a flow chart of the method for the neural network parameter optimization algorithm in the present invention. DETAILED DESCRIPTION

[0124] The present invention will be further described below in conjunction with specific examples. It should be understood that these examples are only used to illustrate the present invention and are not intended to limit the scope of the present invention. The experimental methods in the following examples without specifying specific conditions are usually carried out under conventional conditions or under conditions recommended by the manufacturer.

[0125] Unless otherwise defined, all professional and scientific terms used herein have the same meanings as those familiar to those skilled in the art. The reagents or raw materials used in the present invention can be purchased through conventional channels. Unless otherwise specified, the reagents or raw materials used in the present invention are used in a conventional manner in the art or in accordance with the product instructions. In addition, any method and material similar to or equivalent to the described content can be applied to the method of the present invention. The present invention is further described according to the accompanying drawings and specific embodiments of the present invention, and the preferred implementation methods and materials described in the present invention are only for demonstration purposes.

[0126] The present invention provides an off-line fault diagnosis method for aircraft avionics systems based on an AI large model, such as Figure 1 As shown, the main steps are as follows:

[0127] Step 1: Data collection and annotation:

[0128] The data collection module is installed in a built-in-test (BIT) system in the aircraft avionics system. In one embodiment, the collected data is defined as the following characteristic attributes:

[0129] System integrity test readings: The results of routine self-tests performed by the BIT, including whether the system is intact.

[0130] Fault Code Reading: Specific code for any fault or anomaly detected during system self-test.

[0131] Fault History: Saves the frequency and type of faults for trend analysis and preventive maintenance.

[0132] Redundant System Status Readings: Status and performance readings of backup or redundant components of critical systems.

[0133] Electronic component performance readings: Performance indicators of key electronic components such as flight control systems and communication systems.

[0134] Sensor status readings: The functional status of each sensor, including whether the temperature, pressure, speed and other sensors are working properly.

[0135] Software version information: The current version of each software component in the system, used to check for updates or compatibility issues.

[0136] Startup and shutdown cycle readings: Records the number of times the device is started and shut down, useful for analyzing device life and fatigue.

[0137] Emergency mode activation record: Record any emergency mode activation, such as the start of the backup system, etc.

[0138] System response time: Measures how quickly a system responds to instructions, used to evaluate the system's responsiveness and efficiency.

[0139] The acquisition module includes a variety of sensors that can record various indicators ranging from engine temperature to avionics system response. In one embodiment, the data includes the following characteristic attributes:

[0140] a temp : Temperature sensor reading

[0141] a pres : Pressure sensor reading

[0142] a speed : Speed ​​sensor reading

[0143] a volt : Voltage sensor reading

[0144] a curr : Current sensor reading

[0145] a freq : Vibration frequency sensor reading

[0146] a ang : Angle sensor reading

[0147] a pos : Position sensor reading

[0148] a acc : Accelerometer sensor reading

[0149] a temp_out : External ambient temperature reading

[0150] It should be emphasized that this embodiment is only used to illustrate a data format and type of the present invention. In actual applications, the attributes of data are usually more than 10 attributes, and the number of data attributes may reach dozens or even hundreds.

[0151] The collected data is labeled manually. In one embodiment, the labeled categories include level I fault, level II fault, level III fault, level IV fault, and level V fault.

[0152] Step 2: Data expansion

[0153] It is understandable that in the task of this application, the collection, acquisition, labeling and preprocessing of training data are time-consuming and labor-intensive, and insufficient training samples can easily lead to poor generalization ability of the model and affect the accuracy of the model. This application adopts the structure of a generative adversarial network based on heuristic generation for data expansion of aircraft avionics systems.

[0154] The heuristic generation-based generative adversarial network includes a generator (G) and a discriminator (D), wherein the generator is responsible for generating aircraft avionics system data that appears to be real, and the discriminator is tasked with determining whether the input data is real or generated by the generator.

[0155] Specifically, the training process of the heuristically generated generative adversarial network is as follows:

[0156] S1: Initialize the parameters of the generator and discriminator, set θ g is the parameter of the generator, θ d are the parameters of the discriminator;

[0157] S2: The generator receives random noise z and the offline characteristic index b of the aircraft avionics system x , the offline characteristic index is used to guide the generation process and ensure the close connection between the logic of the generated data and the actual application, which is expressed as:

[0158] Z z , b x -P bx

[0159] In the above formula, z is the random noise of the input, which obeys the distribution P z ; b x is the conditional input, i.e., the offline characteristic index of the aircraft avionics system, which follows the distribution P bx ;

[0160] S3: Generator produces fake data The discriminator evaluates this data and the real data x and gives a true or false judgment. The way the generator generates data is expressed as:

[0161]

[0162] Furthermore, the discriminator discriminates the data generated by the generator, which is expressed as:

[0163]

[0164] In the above formula, α d and b d is the learning parameter of the discriminator, and α d and b d They are taken as 0.4 and 0.5 respectively, and sig() is the sigmoid activation function.

[0165] S4: The judgment result of the discriminator Feedback is given to the generator, and the generator adjusts the parameters according to the feedback. The parameter update method of the generator is expressed as:

[0166]

[0167] In the above formula, θ' g is the updated generator G parameter, λ g is the learning rate, λ g Take 0.01, is θ g The gradient of rt is the regularization term weight, λ rt Take 0.3, is the heuristic regularization term, c is the conditional vector;

[0168] Furthermore, the calculation method of the heuristic regularization term is expressed as:

[0169]

[0170] In the above formula, r(g i ) is for a single generated sample g i =G θ (z i , c i ), the heuristic penalty function is based on the sample g i The degree of violation of the heuristic rule is penalized, and n is the number of generated samples;

[0171] And r(g i ) is calculated as:

[0172]

[0173] In the above formula, h(g i ) is a measure g i A function of the degree of violation of the heuristic rule, β tr is the intensity of the penalty, and β tr Take 0.4.

[0174] The parameter update of the generator adopts the gradient descent method. The calculation method is expressed as:

[0175]

[0176] Specifically expanded as follows:

[0177]

[0178] in, Expanded by the chain rule, it can be expressed as:

[0179]

[0180] In the above formula, represents the sensitivity of the discriminator output to the generator output, represents the gradient of the generator output with respect to its parameters.

[0181] S5: Repeat the cycle of generation-determination-adjustment. Each iteration fine-tunes the generation strategy to gradually reduce the difference between the generated data and the real data. The way to optimize the generation strategy can be expressed as:

[0182]

[0183] In the above formula, and are the generator parameters after the nth and n+1th iterations respectively;

[0184] Furthermore, the θ g The update is based on the gradient calculation, where It can be expressed by the chain rule as:

[0185]

[0186] Specifically expanded as follows:

[0187]

[0188] In the above formula, is the gradient of the generator output with respect to its parameters at the nth iteration.

[0189] S6: Repeat the above steps until the preset stop iteration condition is met, indicating that the model training is completed;

[0190] In one embodiment, the preset condition for stopping iteration is reaching a preset maximum number of iterations. Specifically, the preset maximum number of iterations is set to 1000 times.

[0191] Step 3: Initial diagnosis of large model faults

[0192] The expanded sample features are input into the AI ​​big model for the initial diagnosis of the fault. The AI ​​big model used in this application is Wenxin Yiyan. The text generation and processing capabilities of the Wenxin Yiyan API interface are used to build an aircraft avionics system fault diagnosis model. By learning standardized fault data sets, the model can identify and understand the key information in the fault data, and then realize the initial diagnosis of the fault type.

[0193] Specifically, by calling the Wenxinyiyan API interface, the fault data to be diagnosed is input into the fault diagnosis model to obtain the initial fault diagnosis result, which includes the fault type, fault location and possible repair solutions. Furthermore, the fault diagnosis result is output in the form of a label.

[0194] Step 4: Accurately diagnose machine learning model faults

[0195] The label results obtained from the initial diagnosis of the large model are cascaded with the expanded sample data. The cascade is a feature fusion method, and the features are vector-superimposed with the fault diagnosis results obtained from the initial diagnosis of the large model to obtain the initial diagnosis segment samples.

[0196] Furthermore, the machine learning model is used for accurate fault diagnosis. The sample data of the initial diagnosis section is input into the feature extraction model for training the feature extraction model. The present invention uses a three-layer fully connected neural network for feature extraction. Some schemes use neural networks for feature extraction. In some neural network structures, gradient vanishing, gradient explosion or falling into the local optimal solution may be encountered, affecting the stability of training and the performance of the model.

[0197] This application uses a neural network parameter optimization algorithm based on the principle of fusion phenomenon. Inspired by the fusion phenomenon in nature, lighter atomic nuclei merge under high temperature and high pressure to form more stable heavy atomic nuclei, while releasing huge energy. The neural network parameter optimization algorithm based on the principle of fusion phenomenon optimizes the weights and biases of the network by simulating the fusion process. The weights and biases are regarded as atomic nuclei, and their merging and transformation process is aimed at achieving the optimal state of the loss function.

[0198] Different from the traditional optimization algorithm based on gradient descent, the neural network parameter optimization algorithm based on the principle of fusion phenomenon does not rely on gradient information, thus avoiding the problem of gradient disappearance or explosion.

[0199] Specifically, Figure 2 As shown, the steps of the neural network parameter optimization algorithm based on the fusion phenomenon principle are as follows:

[0200] A1: Define the structure of the neural network, and obtain a three-layer fully connected neural network including an input layer and two hidden layers, and preset an output layer for category supervision training, which are defined as follows:

[0201] Input layer, assuming the dimension of the input vector is d, then the input layer has d neurons, corresponding to the d elements in the vector;

[0202] Hidden layer, both hidden layers have 128 neurons and use ReLU as the activation function;

[0203] Output layer, the output layer uses the softmax function as the activation function;

[0204] Specifically, in A1, the neural network parameters are initialized and given a random energy state. The weight w and bias b of the neural network are given initial values. At the same time, the energy state E(w, b) is defined to describe the potential optimization ability of the parameters, which is expressed as:

[0205]

[0206] In the above formula, x i is the input data, y i is the corresponding target output, N is the number of samples in the data set, k is the number of feature scales, and α k (t) is the adaptive weight of the kth scale;

[0207] The weight α of each scale k (t) The update depends on the effect of the scale under the current training state. The update method of the adaptive weight is expressed as:

[0208]

[0209] In the above formula, E k (t) is the loss value of the kth scale at time t, β k is the importance adjustment coefficient of the kth scale, which is preset artificially according to the characteristics of the scale.

[0210] It should be noted that the output layer is only used for energy state monitoring during training, and the output of the feature extraction model is the output of the second hidden layer of the neural network, that is, the feature vector after feature extraction.

[0211] A2: Perform nuclear synthesis cycle operation, check the fusion candidate for each pair of weight and bias parameters, if the synthesis of the two parameters can reduce the overall system energy, then allow fusion, otherwise keep it independent;

[0212] For every pair of parameters w j and b k An assessment is made to determine whether the total energy of the system can be reduced by fusion as:

[0213] ΔE=E(w' j , b' k )-E(w j , b k )

[0214] And, the fusion behavior of the parameters is expressed as:

[0215] w' j =w j +δ tr

[0216] b' k =w k +ε tr

[0217] In the above formula, w' j and b' k are the updated neural network parameters respectively;

[0218] If ΔE<Θ(t), then accept the new parameter w' j and b' k , otherwise keep the original parameters unchanged, Θ(t) is the energy threshold of the current iteration;

[0219] Specifically, the energy threshold Θ(t) is updated at each iteration, and the energy change during the training process is monitored in real time, and the energy threshold is dynamically adjusted accordingly to control the sensitivity and frequency of parameter updates;

[0220] The update rule for defining the energy threshold is:

[0221]

[0222] In the above formula, Θ(t) and Θ(t+1) are the energy thresholds of the current and next time steps respectively; v eo is the learning rate for threshold adjustment, controlling the speed of adjustment, v eo Take 0.01; E(t) is the average energy of the current time step; E target is the target energy, which is preset according to the task requirements, E target Take 0.1; δ E is the standard deviation of energy change; tanh is the hyperbolic tangent function;

[0223] Weight adjustment δ tr and the offset adjustment ε tr The calculation method is expressed as:

[0224] δ tr =δ to *tanh(η to *▽ w E)

[0225] ε tr =δ to *tanh(η to *▽ b E)

[0226] In the above formula, δ to and η to Sensitivity and scaling factor adjusted for fusion, δ to Take 0.1, η to Take 0.3

[0227] A3: Energy evaluation is performed on the synthesized new parameter set, and the parameter state is updated to push the parameter group in the high energy state to the low energy state in order to stabilize the desired state;

[0228] The synthesized parameter set is re-evaluated by the energy function E to ensure that the energy is minimized as:

[0229]

[0230] In the above formula, p(y i x i ; w, b) is the value of the given input x i With parameters w, b, output y i The probability of

[0231]

[0232] In the above formula, δ std is the standard deviation of the output data;

[0233] A4: Adjust the nuclear reaction temperature according to the current network performance and stability, simulate the temperature control in physical fusion, and adjust the fusion temperature T as follows:

[0234] T new =T old *exp(-α te ΔE)

[0235] In the above formula, α te is the temperature adjustment factor, T new and T old are the temperatures before and after adjustment, ΔE is the energy change; and α te Based on dynamic adjustment of energy changes, its calculation method is expressed as:

[0236]

[0237] In the above formula, K te is a preset adjustment coefficient, |ΔE| is the absolute energy change, E avg is the average value of all current parameter energies;

[0238] A5: Check whether the energy of network parameters reaches a dynamic equilibrium state. If it reaches equilibrium, continue the optimization process; if it does not, perform parameter re-fusion processing. The judgment condition is expressed as:

[0239] Var(E)<ε mr

[0240] In the above formula, Var(E) is the variance function of energy E, ε mr Take 10 -5 ;

[0241] A6: Decide whether to update the current parameter configuration based on the energy optimization principle, expressed as:

[0242]

[0243] b new =bk +β rate Δb

[0244] In the above formula, β rate is the updated learning rate, β rate Take 0.001, is the fusion adjustment factor,

[0245] The weight and bias parameters are updated using momentum terms, and the calculation method is expressed as:

[0246] ΔW=μΔW prew +(1-μ ea )β▽ w E

[0247] Δb=μΔb prew +(1-μ ea )β▽ b E

[0248] In the above formula, μ ea is the momentum coefficient, ΔW prew and b prew are the weight and bias updates of the previous iteration respectively;

[0249] Fusion Adjustment Factor It is set dynamically according to the historical changes of weights and the error rate of the current layer, expressed as:

[0250]

[0251] In the above formula, is the difference between the current weight and the weight of the previous iteration; is the standard deviation of the weight change of the current layer; E1 is the error rate of the current layer; ρ yt and λ yt is the adjustment coefficient, which controls the influence intensity of weight change rate and error rate respectively, ρ yt Take 0.3, λ yt Take 0.5; tanh is the hyperbolic tangent function;

[0252] A7: Determine whether the algorithm has converged by the magnitude of parameter energy changes after multiple consecutive iterations;

[0253] If converged, output the final optimized parameters; if not converged, return to A2 to continue iteration. The convergence judgment method is expressed as:

[0254]

[0255] In the above formula, E new is the energy state after parameter update, E old is the energy state before parameter update, γ ewis the convergence threshold, γ ew Take 10 -6 .

[0256] It should be noted that the feature extraction model is trained in a supervised learning manner, and the supervised learning manner uses a classifier such as a support vector machine, random forest, logistic regression, etc. Preferably, the present invention uses a support vector machine as a classifier.

[0257] Step 5: Offline fault diagnosis of aircraft avionics system

[0258] The large model is used to obtain the initial diagnosis results. Furthermore, the trained machine learning model is used to process new sample data to complete the fault diagnosis task.

[0259] The categories include level I fault, level II fault, level III fault, level IV fault, and level V fault.

[0260] Any matters not described in the present invention are applicable to the prior art.

Claims

1. An offline fault diagnosis method for aircraft avionics systems based on an AI large model, characterized in that: The following steps are involved: Step 1: Data collection and annotation The data acquisition module is arranged in a built-in test system in the aircraft avionics system, and the data acquisition module includes multiple types of sensors, and the multiple sensors are used to realize the collection of indicator types in the aircraft avionics system; When data collection is completed, the collected data is manually annotated; Step 2: Data expansion The data in step 1 is augmented through the structure of a generative adversarial network based on heuristic generation; Step 3: Initial diagnosis of large model faults Input the sample features expanded in step 2 into the AI ​​big model to perform the initial fault diagnosis phase and obtain the initial fault diagnosis result. The diagnosis result includes the fault type, fault location and possible repair solutions. The fault diagnosis result is output in the form of a label. Step 4: Accurately diagnose machine learning model faults The label result obtained in step 3 is cascaded with the expanded sample data. The cascade is a feature fusion method. The feature is used to superimpose the fault diagnosis result obtained by the initial diagnosis of the large model to obtain the initial diagnosis segment sample. Step 5: Offline fault diagnosis of aircraft avionics system Use the trained machine learning model to process new sample data to complete fault diagnosis tasks.

2. The off-line fault diagnosis method for aircraft avionics system based on AI large model according to claim 1 is characterized in that: The structure of the heuristic generation-based generative adversarial network includes a generator (G) and a discriminator (D), wherein the generator is responsible for generating aircraft avionics system data that appears to be real, and the discriminator is used to determine whether the input data is real or generated by the generator.

3. The off-line fault diagnosis method for aircraft avionics system based on AI large model according to claim 2 is characterized in that: The operation steps of the heuristically generated generative adversarial network are as follows: S1: Initialize the parameters of the generator and discriminator, set θ g is the parameter of the generator, θ d are the parameters of the discriminator; S2: The generator receives random noise z and the offline characteristic index b of the aircraft avionics system x , the offline characteristic index is used to guide the generation process and ensure the close connection between the logic of the generated data and the actual application, which is expressed as: z-P z ,b x -P bx In the above formula, z is the random noise of the input, which follows the distribution P z ; b x is the conditional input, i.e., the offline characteristic index of the aircraft avionics system, which follows the distribution P bx ; S3: Generator produces fake data The discriminator evaluates this data and the real data x and gives a true or false judgment. The way the generator generates data is expressed as: S4: The judgment result of the discriminator Feedback is given to the generator, and the generator adjusts the parameters according to the feedback. The parameter update method of the generator is expressed as: In the above formula, θ' g is the updated generator G parameter, λ g is the learning rate, is θ g The gradient of rt is the regularization term weight, is the heuristic regularization term, c is the conditional vector; S5: Repeat the cycle of generation-determination-adjustment. Each iteration fine-tunes the generation strategy to gradually reduce the difference between the generated data and the real data. The way to optimize the generation strategy can be expressed as: In the above formula, and are the generator parameters after the nth and n+1th iterations respectively; S6: Repeat the above steps until the preset stop iteration condition is met, indicating that the model training is completed; The preset condition for stopping iteration is reaching the preset maximum number of iterations.

4. The off-line fault diagnosis method for aircraft avionics system based on AI large model according to claim 3 is characterized in that: The discriminator discriminates the data generated by the generator, which is expressed as: In the above formula, α d and b d is the learning parameter of the discriminator, and sig() is the sigmoid activation function.

5. The off-line fault diagnosis method for aircraft avionics system based on AI large model according to claim 3 is characterized in that: The calculation method of the heuristic regularization term is expressed as: In the above formula, r(g i ) is for a single generated sample g i =G θ (z i , c i ), the heuristic penalty function is based on the sample g i The degree of violation of the heuristic rule is penalized, and n is the number of generated samples; And r(g i ) is calculated as: In the above formula, h(g i ) is a measure g i A function of the degree of violation of the heuristic rule, β tr is the intensity of the penalty, and β tr Take 0.

4.

6. The off-line fault diagnosis method for aircraft avionics system based on AI large model according to claim 3 is characterized in that: The parameter update of the generator adopts the gradient descent method. The calculation method is expressed as: Specifically expanded as follows: in, Expanded by the chain rule, it can be expressed as: In the above formula, represents the sensitivity of the discriminator output to the generator output, represents the gradient of the generator output with respect to its parameters; The θ g The update is based on the gradient calculation, where It can be expressed by the chain rule as: Specifically expanded as follows: In the above formula, is the gradient of the generator output with respect to its parameters at the nth iteration.

7. The off-line fault diagnosis method for aircraft avionics system based on AI large model according to claim 1 is characterized in that: In step 4, a three-layer fully connected neural network is used for feature extraction. The neural network parameter optimization algorithm based on the fusion phenomenon principle optimizes the network weights and biases by simulating the fusion process. The weights and biases are regarded as atomic nuclei, and their merging and transformation process is aimed at achieving the optimal state of the loss function.

8. The off-line fault diagnosis method for aircraft avionics system based on AI large model according to claim 7 is characterized in that: The steps of the neural network parameter optimization algorithm based on the fusion phenomenon principle are as follows: A1: Define the structure of the neural network, and obtain a three-layer fully connected neural network including an input layer and two hidden layers, and preset an output layer for category supervision training, which are defined as follows: Input layer, assuming the dimension of the input vector is d, then the input layer has d neurons, corresponding to the d elements in the vector; Hidden layer, both hidden layers have 128 neurons and use ReLU as the activation function; Output layer, the output layer uses the softmax function as the activation function; A2: Perform nuclear synthesis cycle operation, check the fusion candidate for each pair of weight and bias parameters, if the synthesis of the two parameters can reduce the overall system energy, then allow fusion, otherwise keep it independent; For every pair of parameters w j and b k An assessment is made to determine whether the total energy of the system can be reduced by fusion as: ΔE=E(w’ j ,b’ k )-E(w j ,b k ) And, the fusion behavior of the parameters is expressed as: w’ j =w j +δ tr b' k =w k +e tr In the above formula, w' j and b' k are the updated neural network parameters respectively; If ΔE<Θ(t), then accept the new parameter w' j and b' k , otherwise keep the original parameters unchanged, Θ(t) is the energy threshold of the current iteration; A3: Energy evaluation is performed on the synthesized new parameter set, and the parameter state is updated to push the parameter group in the high energy state to the low energy state in order to stabilize the desired state; The synthesized parameter set is re-evaluated by the energy function E to ensure that the energy is minimized as: In the above formula, p(y i x i ; w, b) is the value of the given input x i With parameters w, b, output y i probability; In the above formula, δ std is the standard deviation of the output data; A4: Adjust the nuclear reaction temperature according to the current network performance and stability, simulate the temperature control in physical fusion, and adjust the fusion temperature T as follows: T new =T old *exp(-α te ΔE) In the above formula, α te is the temperature adjustment factor, T new and T old are the temperatures before and after adjustment, and ΔE is the energy change; And α te Based on dynamic adjustment of energy changes, its calculation method is expressed as: In the above formula, K te is a preset adjustment coefficient, |ΔE| is the absolute energy change, E avg is the average value of all current parameter energies; A5: Check whether the energy of network parameters reaches a dynamic equilibrium state. If it reaches equilibrium, continue the optimization process; if it does not, perform parameter re-fusion processing. The judgment condition is expressed as: Var(E)<ε mr In the above formula, Var(E) is the variance function of energy E; A6: Decide whether to update the current parameter configuration based on the energy optimization principle, expressed as: b new =b k +b rate Δb In the above formula, β rate is the updated learning rate, β rate Take 0.001, is the fusion adjustment factor, The weight and bias parameters are updated using momentum terms, and the calculation method is expressed as: ΔW=μΔW prew +(1-m ea )b▽ w E Δb=μΔb prew +(1-m ea )b▽ b E In the above formula, μ ea is the momentum coefficient, ΔW prew and b prew are the weight and bias updates of the previous iteration respectively; Fusion Adjustment Factor It is set dynamically according to the historical changes of weights and the error rate of the current layer, expressed as: In the above formula, is the difference between the current weight and the weight of the previous iteration; is the standard deviation of the weight change of the current layer; E1 is the error rate of the current layer; ρ yt and λ yt is the adjustment coefficient, which controls the influence intensity of weight change rate and error rate respectively; tanh is the hyperbolic tangent function; A7: Determine whether the algorithm has converged by the magnitude of parameter energy changes after multiple consecutive iterations; If converged, output the final optimized parameters; if not converged, return to A2 to continue iteration. The convergence judgment method is expressed as: In the above formula, E new is the energy state after parameter update, E old is the energy state before parameter update, γ ew is the convergence threshold.

9. The off-line fault diagnosis method for aircraft avionics system based on AI large model according to claim 8 is characterized in that: In A1, the neural network parameters are initialized and given a random energy state. The weight w and bias b of the neural network are given initial values. At the same time, the energy state E(w, b) is defined to describe the potential optimization ability of the parameters, which is expressed as: In the above formula, x i is the input data, y i is the corresponding target output, N is the number of samples in the data set, k is the number of feature scales, and α k (t) is the adaptive weight of the kth scale; The weight α of each scale k (t) The update depends on the effect of the scale under the current training state. The update method of the adaptive weight is expressed as: In the above formula, E k (t) is the loss value of the kth scale at time t, β k is the importance adjustment coefficient of the kth scale.

10. The off-line fault diagnosis method for aircraft avionics system based on AI large model according to claim 8 is characterized in that: The energy threshold Θ(t) is updated at each iteration, and the energy changes during the training process are monitored in real time, and the energy threshold is dynamically adjusted accordingly to control the sensitivity and frequency of parameter updates; The update rule for defining the energy threshold is: In the above formula, Θ(t) and Θ(t+1) are the energy thresholds of the current and next time steps respectively; v eo is the learning rate of threshold adjustment, which controls the speed of adjustment; E(t) is the average energy of the current time step; E target is the target energy, which is preset according to the task requirements; δ E is the standard deviation of energy change; tanh is the hyperbolic tangent function; Weight adjustment δ tr and the offset adjustment ε tr The calculation method is expressed as: d tr =d to *tanh(h to *▽ w E) e tr =d to *tanh(h to *▽ b E) In the above formula, δ to and η to Adjusted sensitivity and scaling factor for fusion.