RF cavity fault pattern recognition method and system based on machine learning

By using machine learning methods in particle accelerators to extract the autocorrelation and mutation characteristics of the radio frequency cavity, and using the XGBoost model to identify fault types, the problem of low fault identification accuracy in the existing technology is solved, and more efficient fault identification and rapid feedback are achieved. , reducing reliance on expert experience.

CN118133164BActive Publication Date: 2024-09-27INST OF MODERN PHYSICS CHINESE ACADEMY OF SCI
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410074493.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-18
Publication Date
2024-09-27
Estimated Expiration
2044-01-18

AI Technical Summary

Technical Problem

Existing technology has low accuracy in identifying radio frequency cavity failure modes in particle accelerators, and is prone to misjudgments, false positives or false negatives, making it difficult to confirm the source of the fault. It also relies on expert experience and cannot provide rapid and accurate feedback.

Method used

A method based on machine learning is adopted to measure and calibrate the cavity pressure, forward voltage and reverse voltage of the superconducting cavity, extract autocorrelation features and mutation features, and use the pre-trained XGBoost model to automatically identify fault types, reducing the need for expert experience. rely.

Benefits of technology

It improves the accuracy and efficiency of fault identification, provides near-real-time fault information feedback to on-site personnel, reduces unnecessary downtime, and improves equipment reliability and operating efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118133164B
    Figure CN118133164B
Patent Text Reader

Abstract

The present invention relates to a method and system for identifying radio frequency cavity fault patterns based on machine learning, comprising: measuring the cavity pressure V of a superconducting cavity; c , forward voltage V f and reverse voltage V r ; Cavity pressure V c , forward voltage V f and reverse voltage V r Calibrate and standardize to obtain the reconstructed cavity pressure U c , forward voltage U f and reverse voltage U r ; Extraction cavity pressure U c , forward voltage U f and reverse voltage U r The autocorrelation characteristics and mutation characteristics of the superconducting cavity are extracted; based on the extracted autocorrelation characteristics and mutation characteristics, a pre-trained machine learning model is used to automatically identify the fault type. The present invention introduces machine learning into the accelerator field, provides a new and efficient solution for superconducting cavity fault identification, and quickly identifies the fault type by real-time monitoring of the superconducting cavity state, thereby improving the reliability and operation efficiency of the equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method and system for identifying radio frequency cavity fault patterns based on machine learning, and relates to the field of particle accelerators. Background Art

[0002] As an important component in particle accelerators and other scientific research and engineering applications, the stable operation of the radio frequency cavity is crucial to the success of the experiment and the availability of the accelerator. Radio frequency cavities usually operate under harsh conditions including high power, high electric field and high frequency, so they are prone to failure. According to the material properties and operating temperature of the radio frequency cavity, it can be divided into room temperature radio frequency cavity and superconducting radio frequency cavity (hereinafter referred to as superconducting cavity). In particular, the superconducting cavity has an extremely narrow operating bandwidth (usually only tens to hundreds of hertz), so when it is disturbed by mechanical vibration or radio frequency breakdown, it is very easy to induce cavity failure.

[0003] When a fault occurs, system experts (system experts refer to the accelerator subsystem's radio frequency system, cryogenic system, vacuum system, control system, etc.) need to collaboratively analyze the abnormal signal data recorded by the digital low-level system to understand the physical mechanism behind the fault. However, the causal relationship between faults and the data characteristics are not obvious. The diversity of fault modes and the similarity of fault characteristics make data analysis cumbersome and complicated. Moreover, one mode of fault can trigger another different mode of fault through the multi-physical field coupling effect, making it difficult to confirm the source of the fault. In addition, a single superconducting cavity fault may be transmitted to the entire module or even adjacent modules, causing collective failures. Therefore, fault analysis based on expert reasoning is time-consuming and labor-intensive, and cannot provide rapid and accurate feedback to on-site duty personnel.

[0004] In recent years, machine learning has made remarkable progress in pattern recognition tasks and has been widely used in various fields. As a data-driven algorithm, machine learning has shown good application prospects in the field of particle accelerators, such as beam optimization, control systems, anomaly detection, fault diagnosis, etc. In the field of superconducting cavity fault pattern recognition, the Jefferson Laboratory (JLAB) in the United States has first realized the classification of radio frequency system faults based on machine learning (ML) technology on the continuous electron beam accelerator device (CEBAF). Compared with the expert judgment results, the accuracy of the ML model can reach 85%. Although the existing technology has achieved fully automatic fault pattern recognition, the accuracy is low, and misjudgment (misjudging a fault in one mode as a fault in another mode), false alarm (identifying a normal radio frequency waveform as a fault) or omission (missing certain faults) may occur frequently. Summary of the invention

[0005] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, in view of the above problems, the purpose of the present invention is to provide a method and system for identifying radio frequency cavity fault patterns based on machine learning, which can reduce the dependence on expert experience during the operation of the accelerator and improve the accuracy of accelerator fault identification.

[0006] In order to achieve the above-mentioned invention object, the technical solution adopted by the present invention is:

[0007] In a first aspect, the present invention provides a method for identifying radio frequency cavity fault patterns based on machine learning, comprising:

[0008] Measuring the cavity pressure V of the superconducting cavity c , forward voltage V f and reverse voltage V r ;

[0009] Cavity pressure V c , forward voltage V f and reverse voltage V r Calibrate and standardize to obtain the reconstructed cavity pressure U c , forward voltage U f and reverse voltage U r ;

[0010] Extraction chamber pressure U c , forward voltage U f and reverse voltage U r The autocorrelation characteristics and mutation characteristics of

[0011] Based on the extraction of autocorrelation features and mutation features, a pre-trained machine learning model is used to automatically identify the fault type.

[0012] In some possible implementations, the cavity pressure V of the superconducting cavity is measured. c , forward voltage V f and reverse voltage V r , including: by online measurement of the cavity sampling signal P t , cavity incident signal P f and cavity reflection signal P r ; The cavity sampling signal P r , cavity incident signal P f and cavity reflection signal P r After down-conversion and digitization, the digitized original baseband voltage signal is obtained, that is, the cavity pressure V c , forward voltage V f and reverse voltage V r .

[0013] In some possible implementations, the cavity pressure V c , forward voltage V f and reverse voltage Vr Calibrate and standardize to get the real cavity pressure U c , forward voltage U f and reverse voltage U r ,include:

[0014] Based on the cavity pressure V c Forward voltage V f and reverse voltage V r Standardization is performed, and the standardization formula is:

[0015]

[0016]

[0017] Among them, mean is the mean function;

[0018] Using the formula U f =XV f , U r =YV r Reconstruct the forward voltage U of the superconducting cavity f and reverse voltage U r , where X and Y are correction coefficients.

[0019] In some possible implementations, the extraction chamber pressure U c , forward voltage U f and reverse voltage U r The autocorrelation characteristics of adopt the AR model, and the mathematical expression of the AR model is as follows:

[0020]

[0021] Where p represents the past observation value X t-p For the current value X t The degree of influence arrive is the weight parameter of the model, c is a constant term, and the amplitude and phase signals of the cavity pressure, forward voltage and reflected voltage are fitted using the above formula, and the weight parameters obtained after fitting are extracted. Different fault types have great differences in the distribution range of weight parameters, so as to distinguish various superconducting cavity faults.

[0022] In some possible implementations, the extraction chamber pressure U c , forward voltage U f Mutational characteristics include:

[0023] Through the forward voltage signal U f The amplitude U fA The first-order difference extracts the location where the gradient changes the most

[0024]

[0025] The amplitude of the cavity pressure U cA The relative change in E id :

[0026] E id =max{abs(ΔU cA ) / (max(U cA )-min(U cA ))};

[0027] Here, Δ represents the first-order difference, and abs refers to the absolute value.

[0028] Some possible implementations include automatically identifying the fault type based on extracting autocorrelation features and mutation features using a pre-trained machine learning model, including:

[0029] Load the trained XGBoost model;

[0030] The cavity pressure U c , forward voltage U f and reverse voltage U r Mutational characteristics of and E id And the autocorrelation features of amplitude and phase are input into the XGBoost model;

[0031] The XGBoost model outputs the failure type of this signal.

[0032] In some possible implementations, the fault types include cavity shedding, helium pressure fluctuation, electromechanical coupling oscillation, microphonic noise, thermal quench, electrical quench, coupler sparking, or low-level fault.

[0033] In a second aspect, the present invention further provides a radio frequency cavity fault pattern recognition system based on machine learning, characterized in that the system comprises a digital low-level system, a solid-state power source, a directional coupler, an input coupler, a radio frequency cavity, a signal extraction coupler and a host computer;

[0034] The output end of the digital low-level system is connected to the input end of the solid-state power source, the output end of the solid-state power source is connected to the input end of the directional coupler, the output end of the directional coupler is fed into the RF cavity through the input coupler, and the directional coupler is used to extract the cavity incident signal P of the RF cavity. f and cavity reflection signal P r The signal extraction coupler is connected to the RF cavity to extract the cavity sampling signal P r , the cavity incident signal P f , cavity reflection signal P r and cavity sampling signal Pr After down-conversion, it is sent to the digital low-level system, and the digital low-level system is based on the cavity incident signal P f , cavity reflection signal P r and cavity sampling signal P t Demodulate the corresponding cavity pressure V c , forward voltage V f and reverse voltage V r The data are uploaded to the host computer, which extracts the features of cavity pressure, forward voltage and reverse voltage, and automatically identifies the fault type based on the features using a pre-trained machine learning model XGBoost.

[0035] In some possible implementations, the digital low-level system uses an FPGA, and a signal processing module is provided inside the FPGA, and the signal processing module is used to process the cavity sampling signal P of the RF cavity. t , cavity incident signal P f and the reflected signal P r Demodulation is performed to obtain three sets of original digital baseband signals, including the cavity pressure V c , forward voltage V f and reverse voltage V r .

[0036] In some possible implementations, a signal reconstruction module, a feature extraction module and a fault identification module are provided in the computer;

[0037] The signal reconstruction module is used to reconstruct the cavity pressure V c , forward voltage V f and reverse voltage and V r Calibration and standardization to reconstruct the true cavity pressure U c , forward voltage U f and reverse voltage U r ;

[0038] The feature extraction module is used to extract the cavity pressure U c , forward voltage U f and reverse voltage U r The autocorrelation characteristics and mutation characteristics of

[0039] The fault identification module automatically identifies the fault type using a pre-trained machine learning model XGBoost based on the autocorrelation features and mutation features.

[0040] The present invention adopts the above technical solution, and has the following characteristics:

[0041] 1. The present invention transforms the RF cavity fault pattern recognition problem into a classification problem, and realizes fully automatic fault classification by means of machine learning methods. This method not only improves the efficiency of fault identification, provides near real-time fault information feedback to on-site duty personnel, and reduces unnecessary downtime, but also can combine big data analysis technology to summarize the frequency and type of fault cavities, and provide data-driven guidance for future maintenance and upgrades of RF cavities.

[0042] 2. The present invention introduces machine learning into the accelerator field, providing a new and efficient solution for superconducting cavity fault identification. By real-time monitoring of the superconducting cavity state, the fault type can be quickly identified, thereby improving the reliability and operating efficiency of the equipment.

[0043] In summary, the present invention can be widely used in the field of superconducting cavity operation monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Throughout the accompanying drawings, the same reference numerals are used to represent the same components. In the accompanying drawings:

[0045] Figure 1 It is a structural diagram of a radio frequency cavity fault mode recognition system according to an embodiment of the present invention;

[0046] Figure 2 This is a flow chart of performing radio frequency superconducting cavity fault mode identification according to an embodiment of the present invention (taking Quench fault as an example);

[0047] Figure 3 U is the 8 different RF superconducting cavity failure modes of the embodiment of the present invention. c , U f and U r Signal;

[0048] Figure 4 The visualization results of 8 faults in the embodiment of the present invention (PCA analysis is used for dimensionality reduction);

[0049] Figure 5 The confusion matrix of the accuracy and F1-Score of the XGBoost model of the embodiment of the present invention;

[0050] Figure 6 A schematic diagram of the statistical results of the prone failures of the superconducting cavity according to an embodiment of the present invention;

[0051] Figure 7 This is a schematic diagram of the analysis results of historical data recorded by CAFe according to an embodiment of the present invention. DETAILED DESCRIPTION

[0052] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0053] Although the terms first, second, third, etc. can be used in the text to describe multiple elements, components, regions, layers and / or sections, these elements, components, regions, layers and / or sections should not be limited by these terms. These terms can only be used to distinguish an element, component, region, layer or section from another region, layer or section. Unless the context clearly indicates, terms such as "first", "second" and other numerical terms do not imply order or sequence when used in the text. Therefore, the first element, component, region, layer or section discussed below can be referred to as the second element, component, region, layer or section without departing from the teaching of the example embodiments.

[0054] For ease of description, spatially relative terms may be used herein to describe the relationship of one element or feature relative to another element or feature as shown in the figures, such as "inside", "outside", "inner side", "outer side", "below", "above", etc. Such spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation depicted in the figures.

[0055] Due to the low accuracy of existing accelerator fault pattern recognition, misjudgment, false alarm or missed alarm may occur frequently. To address these problems, the performance of the fault classification model needs to be improved, which needs to be achieved through better feature engineering, larger data sets, more advanced machine learning algorithms or more sophisticated model adjustments. First, for the RF cavity fault pattern recognition task, the time series classification problem needs to be solved, and the important challenge of this task is to extract intermediate representation features from the original data signal as the input of the machine learning model. Therefore, how to design statistical features (such as the mean, variance, kurtosis, skewness, etc. of the time series signal) and expert features (such as frequency domain analysis features, periodic features, etc.) that can accurately identify different fault modes is the key to solving this problem. Secondly, in order to be able to deploy the fault identification algorithm on the accelerator, the accuracy of the model and the generalization ability in different operating scenarios are also crucial. In short, how to design a superconducting cavity fault identification model with high accuracy, strong generalization performance, and no reliance on expert knowledge can effectively assist operators in dealing with various fault situations, thereby reducing unnecessary downtime and improving the reliability and operation efficiency of equipment. The present invention proposes a method and system for identifying radio frequency cavity fault patterns based on machine learning, comprising: using a digital low-level system to measure the cavity pressure V of the superconducting cavity online; c , forward voltage V f and reverse voltage V r ; Cavity pressure V c , forward voltage V f and reverse voltage and V r The reconstructed cavity pressure U is obtained by calibration and standardization. c , forward and reverse voltage U f and U r ; Use autoregression method and first-order difference method to extract U c , U f and U r The autocorrelation characteristics and mutation characteristics of the superconducting cavity are used to automatically identify the fault type based on the autocorrelation characteristics and mutation characteristics. Therefore, the present invention provides a new and efficient solution for superconducting cavity fault identification by introducing machine learning into the accelerator field. By real-time monitoring of the superconducting cavity state, the fault type can be quickly identified, unnecessary downtime can be reduced, and the reliability and operation efficiency of the equipment can be improved.

[0056] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0057] Embodiment 1: Figure 1 As shown, the machine learning-based RF cavity fault mode recognition system provided in this embodiment includes a digital low-level system 1, a solid-state power source 2, a directional coupler 3, an input coupler 4, a RF cavity 5, a signal extraction coupler 6 and a host computer 7.

[0058] The output end of the digital low-level system 1 is connected to the input end of the solid-state power source 2, and the output end of the solid-state power source 2 is connected to the input end of the directional coupler 3. The output end (through port) of the directional coupler 3 is fed into the radio frequency cavity 5 through the input coupler 4. The directional coupler 3 is used to extract the cavity incident signal P of the radio frequency cavity 5. f and cavity reflection signal P r The signal extraction coupler 6 is connected to the RF cavity 5 to extract the cavity sampling signal. The cavity incident signal, cavity reflection signal and cavity sampling signal are sent to the digital low-level system 1 after down-conversion. The digital low-level system 1 is based on the cavity incident signal P f , cavity reflection signal P r and cavity sampling signal P t Demodulate the corresponding cavity pressure V c , forward voltage V f and reverse voltage and V r The data is uploaded to the host computer 7 through the data bus, and the host computer 7 controls the cavity pressure V c , forward voltage V f and reverse voltage and V r The reconstructed cavity pressure U c , forward voltage U f and reverse voltage U r , extract U c , U f and U r Features are obtained and the pre-trained machine learning model XGBoost is used to automatically identify the fault type based on the acquired features.

[0059] In a preferred embodiment of the present invention, the digital low-level system 1 adopts a field programmable gate array (FPGA), and a signal processing module is provided inside the FPGA to capture the radio frequency time series signal after the fault in real time and write it into a file for later analysis. Further, the signal processing module is used to sample the cavity signal P of the radio frequency cavity 5. t , cavity incident signal P f and the reflected signal P r Demodulation is performed to obtain three sets of original digital baseband signals, including the cavity pressure V c , forward voltage V f and reverse voltage V r .

[0060] In a preferred embodiment of the present invention, a signal reconstruction module, a feature extraction module and a fault identification module are provided in the computer 7 .

[0061] Signal reconstruction module for cavity pressure V c , forward voltage V f and reverse voltage and V r The reconstructed cavity pressure U is obtained by calibration and standardization. c , forward voltage U f and reverse voltage U r ;

[0062] The feature extraction module is used to extract U c , U f and U r The autocorrelation characteristics and mutation characteristics of

[0063] The fault identification module automatically identifies the fault type based on the acquired autocorrelation features and mutation features using the pre-trained machine learning model XGBoost.

[0064] Embodiment 2: Figure 2 As shown, the method for identifying radio frequency cavity fault patterns based on machine learning provided in this embodiment includes:

[0065] S1. Use digital low-level system to measure the cavity pressure V of superconducting cavity online c , forward voltage V f and reverse voltage V r , and calibrate and standardize the above signals to obtain the real cavity pressure U c , forward voltage U f and reverse voltage U r .

[0066] In this embodiment, the cavity sampling signal P is measured online. t , cavity incident signal P f and cavity reflection signal P r After the above RF signals are down-converted and digitized in turn, the digitized original baseband voltage signal, i.e., the cavity pressure V c , forward voltage V f and reverse voltage V r .

[0067] In this embodiment, based on the cavity pressure V c Forward voltage V f and reverse voltage V r Standardization is performed, and the standardization formula is as follows:

[0068]

[0069]

[0070] In this embodiment, the formula U is used f =XV f , U r =YV r Reconstruct the forward voltage U f and reverse voltage U r , where X and Y are correction coefficients.

[0071] S2, using AR (autoregression) method and first-order difference method to extract U c , U f and U r autocorrelation characteristics and mutation characteristics.

[0072] In this embodiment, due to material defects, instability of the RF power source, mechanical vibration, field gradient instability, RF leakage, and various nonlinear effects, the cavity failures are diverse, as shown in Table 1.

[0073] Table 1

[0074]

[0075]

[0076] like Figure 3 As shown in the figure, when the RF system fails, the system records the changes in the amplitude and phase of the cavity pressure, incident and reflected voltages. When the system has five fault modes, such as cavity OFF, helium pressure fluctuation, electromechanical coupling oscillation, microphonics, and thermal quench, the waveform signal is continuous before and after the fault occurs. However, when the system has three fault modes, such as electrical quench, coupler flashover, and low-level fault, the cavity pressure signal shows a significant jump-like change. For continuously changing signals, AR, a time series analysis method, can be used to find the autocorrelation relationship (data trend and periodicity) in the sequence data, so as to capture the characteristics of the signal. For sudden changes in signals, they are usually manifested as sharp changes or discontinuities in the time series. These changes may not be affected by past observations, so they are not suitable for modeling with AR models. Expert features are used for feature extraction. Therefore, this embodiment uses a feature extraction method that combines an AR model with expert features for feature extraction. AR is used to extract stable signal features with autocorrelation, and expert features are used to represent signal features of sudden changes (equench, flashover, LLRF and other faults).

[0077] Furthermore, the process of extracting the autocorrelation feature of a stationary signal is as follows: the AR model assumes that the current value of the time series has autocorrelation with several past values, that is, past observations will affect the current value. This autocorrelation can be controlled by the order p of the AR model, where p represents the degree of influence of past observations on the current value. The future value is predicted by linearly combining past observations, where the mathematical expression of AR is as follows:

[0078]

[0079] in, arrive is the weight parameter of the model, and c is a constant term. By using the above formula to fit the amplitude and phase signals of the cavity pressure, incident and reflected voltages, and extracting the weight parameters obtained after fitting, the time series characteristic representation of the signal can be obtained. Different fault types have great differences in the distribution range of weight parameters, which can be used to distinguish various superconducting cavity faults.

[0080] Furthermore, the process of extracting the mutation signal feature is as follows: Flashover and Equench faults cause a significant reduction in the cavity pressure at the millisecond level, with a large gradient at the mutation position. In order to characterize the range of the mutation signal deviating from the base, this embodiment extracts the cavity pressure U c The amplitude U cA The relative change degree of is used as a learning feature. In addition, the forward voltage signal U of Flashover and Equench faults f The amplitude of also changes in a jumpy manner. Therefore, this embodiment also calculates the forward voltage signal U f The amplitude U fA The first-order difference of is taken and the location where the gradient changes the most is extracted as another feature attribute for machine learning.

[0081] S3, Extraction-based U c , U f and U r The autocorrelation features and mutation features of the system are used to automatically identify the fault type using the pre-trained machine learning model XGBoost.

[0082] In this embodiment, the two types of integrated learning methods, Bagging and Boosting, perform well in supervised learning. By adopting the sampling-learning-combination method, the decision-making ability of the model is improved, the risk of overfitting is reduced, and the stability of the model is increased. Random forest (RF) and XGBoost are representatives of two integrated learning methods. RF reduces the variance by constructing multiple decision trees and then averages or majority votes the prediction results of these trees to improve the stability and generalization ability of the model. XGBoost constructs multiple decision trees by iteration, and each tree tries to correct the prediction error of the previous tree, thereby gradually improving the overall performance. XGBoost introduces regularization technology and weight adjustment technology to make it perform well in dealing with complex problems. In addition, XGBoost provides visualization tools and feature importance evaluation, which can help understand the decision-making process of the model and enhance the interpretability of the model. By comparison, it is found that the performance of XGBoost in the superconducting cavity fault classification task is better than that of the RF model. Therefore, this embodiment selects the XGBoost model as the superconducting cavity fault pattern recognition model, and uses "model reasoning" instead of "expert reasoning" to improve the efficiency of fault pattern recognition.

[0083] The following describes in detail the application process of the method for identifying radio frequency cavity fault patterns based on machine learning of the present invention by taking the superconducting cavity in the CAFe device as a specific embodiment, but this is not limited to this example.

[0084] In this embodiment, the superconducting cavity is a half-wavelength superconducting cavity, and the models are HWR010 and HWR015. The two types of cavities have been installed on the 25MeV front-end demonstration prototype CAFe, the world's first accelerator-driven subcritical system superconducting linear accelerator. The output of the digital low-level system 1 is connected to the input of the solid-state power source 2, and the output of the solid-state power source 2 is connected to the input end of the directional coupler 3. The model of the directional coupler 3 is EXIR MDIR-2077-33-A, and the directivity is >40dB. The output (through port) of the directional coupler 3 is fed into the superconducting cavity 5 through the input coupler 4, and the antenna quality factor Q of the signal extraction coupler 6 is e About 10 7 Based on the above parameter settings, the implementation process of the method for identifying radio frequency cavity fault patterns based on machine learning in this embodiment includes:

[0085] 1. Measuring the cavity pressure V of a superconducting cavity c , forward voltage V f and reverse voltage V r .

[0086] The cavity sampling signal P of the superconducting cavity is measured online using the signal extraction coupler 6 t ; Use directional coupler 3 to measure the cavity incident signal and reflected signal P online fand P r , where P t , P f and P r All of them are 162.5MHz RF signals. After the above RF signals are down-converted and digitized in turn, the digital low-level system 1 obtains the digitized original baseband voltage signal, that is, the cavity pressure V c , forward voltage V f and reverse voltage V r Among them, the sampling rate F of the digital low-level system 1 s Adjustable(F s ≤12.5MHz), according to the duration of the fault, the sampling rate is generally set to 10KHz~100KHz, and the corresponding signal duration is 0.5s~5s. Each waveform signal contains 50,000 points, of which 40,000 points record the signal changes before the fault occurs, and 10,000 points record the signal changes after the fault occurs. The above test parameters can be determined according to actual tests, and this is taken as an example, not limited to this.

[0087] 2. Reconstruction of baseband voltage signal

[0088] Based on the cavity pressure V c Forward voltage V f and reverse voltage V r Standardization is performed by designing real-time signal processing within the digital low-level system 1 to reconstruct the true forward and reverse voltages U f and U r .

[0089] The normalization formula is:

[0090]

[0091]

[0092] The calibration formula is: U c =V c , U f =XV f , U r =YV r ,For example:

[0093]

[0094] Where U fI and U fQ Represent the reconstructed forward voltage U f The real and imaginary parts, V fI and V fQ Represents the forward voltage V fThe real and imaginary parts of , X is the low-level internal signal calibration matrix, and mean is the averaging function.

[0095] 3. Mark samples according to fault type.

[0096] All fault samples involved in this embodiment are from the measured data of CAFe prototype. According to expert experience, the fault signals recorded during the operation of CAFe are marked, and the faults are divided into 8 types: 'CavityOFF', 'Equench', 'Flashover', 'Hellium', 'LLRF', 'Microphonics', 'Ponderomotive', and 'Quench', converting the fault identification task into a multi-classification task. By sorting out the historical data of CAFe operation, a total of 2007 samples were marked. By using the principal component analysis (PCA) method, each fault signal is reduced to a 2-dimensional space, such as Figure 4 As shown, the potential structure of all fault data can be clearly observed, which helps experts better understand the data, discover potential relationships and trends, and thus classify the original data in more detail. Specifically, before classifying the fault categories, the data structure can be observed through principal component analysis, and the number of clusters or aggregation centers can be determined to determine how many categories the data should be divided into, providing experts with guidance on category division.

[0097] 4. Feature extraction.

[0098] Based on the reconstructed signal U c , U f and U r , extract the input features of the model, including expert features (2) representing mutation information and autocorrelation features (24) extracted by AR method, a total of 26 feature inputs. The feature extraction process includes:

[0099] 1. Calculate mutation characteristics

[0100] First, calculate the forward voltage signal U f The amplitude U fA The first-order difference of is used to obtain the position where the gradient changes most dramatically. This feature is recorded as This feature can separate the mutation signals with different change ranges (such as Equench, Flashover, LLRF, etc.), among which, The calculation formula is:

[0101]

[0102] Where Δ represents the first-order difference and abs refers to the absolute value.

[0103] Next, calculate the cavity pressure U cThe relative change of amplitude, denoted by E id This feature can separate mutation faults from other faults. id The specific calculation formula is as follows:

[0104] E id =max{abs(ΔU cA ) / (max(U cA )-min(U cA ))}.

[0105] 2. Calculate U c , U f and U r The autocorrelation characteristics.

[0106] Cavity pressure U c The amplitude and phase (U cA and U cP ), the amplitude and phase of the forward voltage (U fA and U fP ), the amplitude and phase of the reflected voltage (U rA and U rP ) and other six waveform signals, respectively, are fitted using a third-order (p=3) AR. Specifically, for each waveform signal, the weight parameter of the model is extracted The four values ​​of (c) and constant term are used as the characteristic values ​​of the waveform. In this way, 4*6=24 autocorrelation features can be obtained for each fault recording signal.

[0107] Take a sample of Microphonics failure as an example. Figure 5 As can be seen from the figure, AR can capture the autocorrelation characteristics in the original signal, and the predicted value is consistent with the true value. For each signal of this sample, the constant term (c) and weight parameter of AR The 4 values ​​are as follows:

[0108]

[0109]

[0110]

[0111]

[0112]

[0113]

[0114] 5. Train the RF cavity fault pattern recognition model.

[0115] 1. Data set division.

[0116] When there is a class imbalance problem in the data set (for example, the number of Flashover fault samples is about twice that of Hellium faults and about four times that of Microphonics faults), in order to ensure the effectiveness of the test, each type of fault data is randomly divided into training sets and test sets in a ratio of 7:3, and then all training sets and test sets are integrated as the total training sets and test sets.

[0117] 2. Train and obtain the RF cavity fault pattern recognition model.

[0118] First, GridSearchCV was used to find the optimal hyperparameter combination of XGBoost. By testing a variety of hyperparameter combinations, the key parameters of XGBoost were finally set to: learning_rate = 0.05, n_estimators = 250, max_depth = 5, min_child_weight = 5, gamma = 0.2, subsample = 0.7. The above parameters were used to build an XGBoost-based RF cavity fault pattern recognition model.

[0119] 3. Model evaluation.

[0120] The optimal parameters found by GridSearchCV were used as the final hyperparameter combination of the RF cavity fault mode recognition model, and the model was tested 50 times independently by changing the random number seed. Finally, the F1-Score of the model was 0.971±0.00688 (mean and variance). Figure 6 As shown in the figure, by drawing the confusion matrix, it is found that the classification accuracy of the RF cavity fault pattern recognition model for fault types such as cavity shedding, helium pressure fluctuation, and thermal quenching has reached more than 98%. The present invention combines machine learning and big data analysis to provide data-driven guidance for superconducting cavity maintenance and upgrades. Figure 7 As shown in the figure, by analyzing the historical data recorded by CAFe, it was found that CM2-2 and CM2-3 are easily affected by microphonic noise, and CM1-2 is prone to thermal quenching. These statistical results reflect the significance and value of fault data analysis.

[0121] 6. Online identification of radio frequency superconducting cavity fault modes.

[0122] After receiving the trigger signal, first obtain the original signal P recorded by the digital low-level system t , P f and P r , and calculate the correction coefficients X and Y to obtain their respective linear transformation signals U c , U f and U r ;

[0123] According to U c and U f Calculate 2 expert features E id and Calculate U c , U f and U r The amplitude and phase of the AR features of 6 waveforms are used. Using the third-order AR model, 4 features are obtained for each waveform, for a total of 24 AR features;

[0124] Load the trained XGBoost weights, and use the 2+24 feature data as model input. Finally, output which of the eight fault types, including ‘CavityOFF’, ‘Equench’, ‘Flashover’, ‘Hellium’, ‘LLRF’, ‘Microphonics’, ‘Ponderomotive’, and ‘Quench’, the trigger signal belongs to, and complete fault identification.

[0125] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In the description of this specification, the description of reference terms "a preferred embodiment", "further", "specifically", "in the present embodiment", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of this specification. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples without contradiction.

[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for identifying radio frequency cavity fault patterns based on machine learning, characterized in that: include: Measuring the cavity pressure V of the superconducting cavity c , forward voltage V f and reverse voltage V r ; Cavity pressure V c , forward voltage V f and reverse voltage V r Calibrate and standardize to obtain the reconstructed cavity pressure U c , forward voltage U f and reverse voltage U r ; Extraction chamber pressure U c , forward voltage U f and reverse voltage U r The autocorrelation characteristics and mutation characteristics of Based on the extraction of autocorrelation features and mutation features, a pre-trained machine learning model is used to automatically identify the fault type; among which: Extraction chamber pressure U c , forward voltage U f and reverse voltage U r The autocorrelation characteristics of adopt the AR model, and the mathematical expression of the AR model is as follows: Where p represents the past observation value X t-p For the current value X t The degree of influence arrive is the weight parameter of the model, c is a constant term, and the amplitude and phase signals of the cavity pressure, forward voltage and reflected voltage are fitted by using the above formula, and the weight parameters obtained after fitting are extracted. Different fault types have great differences in the distribution range of weight parameters, so as to distinguish various superconducting cavity faults; Extraction chamber pressure U c , forward voltage U f Mutational characteristics include: Through the forward voltage signal U f The amplitude u fA The first-order difference extracts the location where the gradient changes the most The amplitude of the cavity pressure U cA The relative change in E id : E id =max{abs(ΔU cA ) / (max(U cA )-min(U cA ))}; Here, Δ represents the first-order difference, and abs refers to the absolute value.

2. The method for identifying radio frequency cavity fault patterns based on machine learning according to claim 1, characterized in that: Measuring the cavity pressure V of the superconducting cavity c , forward voltage V f and reverse voltage V r , include: By online measuring the cavity sampling signal P t , cavity incident signal P f and cavity reflection signal P r ; The cavity sampling signal P t , cavity incident signal P f and cavity reflection signal P r After down-conversion and digitization, the digitized original baseband voltage signal is obtained, that is, the cavity pressure V c , forward voltage V f and reverse voltage V r .

3. The method for identifying radio frequency cavity fault patterns based on machine learning according to claim 2, characterized in that: Cavity pressure V c , forward voltage V f and reverse voltage V r Calibrate and standardize to get the real cavity pressure U c , forward voltage U f and reverse voltage U r , include: Based on the cavity pressure V c Forward voltage V f and reverse voltage V r Standardization is performed, and the standardization formula is: Among them, mean is the mean function; Using the formula U f =XV f , U r =YV r Reconstruct the forward voltage U of the superconducting cavity f and reverse voltage U r , where X and Y are correction coefficients.

4. The method for identifying radio frequency cavity fault patterns based on machine learning according to claim 1, characterized in that: Based on the extraction of autocorrelation features and mutation features, a pre-trained machine learning model is used to automatically identify the fault type, including: Load the trained XGBoost model; The cavity pressure U c , forward voltage U f and reverse voltage U r Mutational characteristics and E id And the autocorrelation features of amplitude and phase are input into the XGBoost model; The XGBoost model outputs the failure type of this signal.

5. The method for identifying radio frequency cavity fault patterns based on machine learning according to claim 4, characterized in that: Fault types include cavity shedding, helium pressure fluctuations, electromechanical coupled oscillations, microphonics, thermal quench, electrical quench, coupler sparking, or low-level faults.

6. A radio frequency cavity fault pattern recognition system based on machine learning, characterized in that: The system includes a digital low-level system, a solid-state power source, a directional coupler, an input coupler, a radio frequency cavity, a signal extraction coupler and a host computer; The output end of the digital low-level system is connected to the input end of the solid-state power source, the output end of the solid-state power source is connected to the input end of the directional coupler, the output end of the directional coupler is fed into the RF cavity through the input coupler, and the directional coupler is used to extract the cavity incident signal P of the RF cavity. f and cavity reflection signal P r The signal extraction coupler is connected to the RF cavity to extract the cavity sampling signal P r , the cavity incident signal P f , cavity reflection signal P r and cavity sampling signal P r After down-conversion, it is sent to the digital low-level system, and the digital low-level system is based on the cavity incident signal P f , cavity reflection signal P r and cavity sampling signal P t Demodulate the corresponding cavity pressure V c , forward voltage V f and reverse voltage V r Upload to the host computer, the host computer extracts the features of cavity pressure, forward voltage and reverse voltage, and automatically identifies the fault type based on the features using a pre-trained machine learning model XGBoost; The host computer is provided with a signal reconstruction module, a feature extraction module and a fault identification module; The signal reconstruction module is used to reconstruct the cavity pressure V c , forward voltage V f and reverse voltage and V r Calibration and standardization to reconstruct the true cavity pressure U c , forward voltage U f and reverse voltage U r ; The feature extraction module is used to extract the cavity pressure U c , forward voltage U f and reverse voltage U r The autocorrelation characteristics and mutation characteristics of The fault identification module automatically identifies the fault type based on the autocorrelation characteristics and mutation characteristics using the pre-trained machine learning model XGBoost; wherein: extracting the cavity pressure U c , forward voltage U f and reverse voltage U r The autocorrelation characteristics of adopt the AR model, and the mathematical expression of the AR model is as follows: Where p represents the past observation value X t-p For the current value X t The degree of influence arrive is the weight parameter of the model, c is a constant term, and the amplitude and phase signals of the cavity pressure, forward voltage and reflected voltage are fitted by using the above formula, and the weight parameters obtained after fitting are extracted. Different fault types have great differences in the distribution range of weight parameters, so as to distinguish various superconducting cavity faults; Extraction chamber pressure U c , forward voltage U f Mutational characteristics include: Through the forward voltage signal U f The amplitude U fA The first-order difference extracts the location where the gradient changes the most The amplitude of the cavity pressure U cA The relative change in E id : E id =max{abs(ΔU cA ) / (max(U cA )-min(U cA ))}; Here, Δ represents the first-order difference, and abs refers to the absolute value.

7. The machine learning-based radio frequency cavity fault pattern recognition system according to claim 6, characterized in that: The digital low-level system adopts FPGA, and a signal processing module is arranged inside the FPGA, and the signal processing module is used to sample the cavity signal P of the RF cavity. t , cavity incident signal P f and the reflected signal P r Demodulation is performed to obtain three sets of original digital baseband signals, including the cavity pressure V c , forward voltage V f and reverse voltage V r .

Citation Information

Patent Citations

  • Hardware-efficient fault-tolerant operations with superconducting circuits

    CN111542842A

  • Online screening method and system for ignition type of radio frequency superconducting cavity

    CN116027101A

  • CMOS inductance capacitance resonant cavity voltage-controlled oscillator with ultra-low voltage

    CN1767371A

  • Method and apparatus for removal of microscopic contaminant particulates from superconducting radio frequency cavities and cavity strings

    US20210316340A1

  • Vacuum sealed RF / microwave microresonator

    US6621134B1