Automatic switching method based on active-active switching management and control platform
By using the chaotic sequence and adaptive dynamic weight factor generated by hybrid correlation entropy and sinusoidal chaos mapping in the active-active switching management and control platform, the flexibility and convergence problems of the abnormal data detection model and parameter optimization algorithm are solved, and the model's resistance is improved. Anomaly and search efficiency, enabling faster and more accurate automated switching decisions.
Patent Information
- Application Number
- CN202410955280.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing automatic switching method of the active-active switching management and control platform, the abnormal data detection model structure is inflexible, has low anomaly resistance and weak robustness, and the parameter optimization algorithm has low initial group traversal and poor diversity, resulting in slow convergence and poor search capabilities. Poor accuracy.
The hybrid correlation entropy based on kernel space complexity is used to establish an anomaly detection model to suppress the influence of outliers and non-Gaussian distributions, and the chaotic sequence and adaptive dynamic weight factor generated by the sinusoidal chaotic map are used to balance global and local search capabilities and improve search The convergence speed of the algorithm.
It enhances the anomaly resistance and robustness of the detection model, improves search efficiency and accuracy, can handle complex data more effectively and speeds up automated switching decisions.
Smart Images

Figure CN118733969A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data information technology, and in particular to an automated switching method based on a dual-active switching management and control platform. Background Art
[0002] An active-active switching management and control platform is a software platform used to manage the switching process of an active-active system. The function of the active-active switching management and control platform is to monitor the operating status, load conditions and fault conditions of the system, and automatically trigger system switching when necessary to ensure the high availability and stability of the system. However, the abnormal data detection model in the automatic switching method of a general active-active switching management and control platform has an inflexible structure and cannot process more complex data, resulting in low model resistance and weak robustness. The parameter optimization algorithm in the automatic switching method of a general active-active switching management and control platform has low initial group traversal and poor diversity, resulting in slow convergence and poor search capability and accuracy. Summary of the invention
[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides an automated switching method based on a dual-active switching management and control platform. In view of the problems that the traditional abnormal data detection model has an inflexible structure and cannot process more complex data, resulting in low model resistance to abnormalities and weak robustness, this scheme utilizes mixed correlation entropy based on kernel space complexity to suppress the influence of outliers and non-Gaussian distribution, and has a more flexible structure to process more complex data, thereby enhancing the resistance to abnormalities and robustness of the detection model; in view of the problems that the general parameter optimization algorithm has low initial group traversal and poor diversity, resulting in slow convergence and poor search ability and accuracy, this scheme balances global and local search capabilities by utilizing chaotic sequences generated by sinusoidal chaotic mapping and adaptive dynamic weight factors, accelerates the convergence speed of the search algorithm, and thus improves the search efficiency and accuracy.
[0004] The technical solution adopted by the present invention is as follows: The present invention provides an automatic switching method based on a dual-active switching management and control platform, the method comprising the following steps:
[0005] Step S1: data collection;
[0006] Step S2: data preprocessing;
[0007] Step S3: Anomaly detection model establishment;
[0008] Step S4: Obtain the optimal hyperparameters of the model;
[0009] Step S5: Automated decision-making of the active-active switching management and control platform.
[0010] Furthermore, in step S1, the data collection is the collection of historical data; the historical data includes system status data, network data, active-active switching management and control platform log data and storage data; the system status data includes CPU utilization, memory utilization and disk space usage; the network data includes network traffic, bandwidth utilization and network delay data; the active-active switching management and control platform log data includes real-time log data and historical log data; the storage data includes storage space utilization, storage device status and data backup status.
[0011] Furthermore, in step S2, the data preprocessing performs data cleaning, data conversion, standardization and data label selection on the collected data; the data cleaning is to process missing values, outliers and duplicate values; the data conversion is to convert the data into a vector form; the standardization is to standardize the data based on the maximum and minimum normalization method; the data label selection is to select and label according to the log data of the active-active switching management and control platform, and divide the operation status of the active-active switching management and control platform into two labels, namely normal operation and abnormal operation.
[0012] Furthermore, in step S3, the abnormality detection model establishment specifically includes the following steps:
[0013] Step S31: define the loss function; combine the mixed correlation entropy to obtain; the formula used is as follows:
[0014] ;
[0015] Where J represents the loss function; C represents the penalty parameter, which is used to control the scaling factor of the gradient of the loss function; N represents the number of samples; α represents the parameter that controls the weight distribution between the two kernel functions; σ 1 Indicates the width of the kernel function; represents the predicted output value of the i-th training sample; y i represents the target output value of the i-th training sample; V represents the parameter matrix used to linearly transform the hidden state;
[0016] Step S32: Initial model building; including the following steps:
[0017] Step S321: Initialize model parameters; set the number of model hidden units, input vector dimension, output vector dimension and number of training iterations;
[0018] Step S322: Forget gate calculation process; the formula used is as follows:
[0019] ;
[0020] In the formula, f t represents the output of the forget gate; X tIndicates input data; H t-1 Indicates the hidden state at the last moment; W xf and W hf represents the weight matrix corresponding to the forget gate; b f represents the bias parameter of the forget gate; σ represents the Sigmoid function;
[0021] Step S323: Input gate calculation process; the formula used is as follows:
[0022] ;
[0023] In the formula, i t represents the output of the input gate; W xi and W hi represents the corresponding input gate weight matrix; b i Represents the bias parameter of the input gate;
[0024] Step S324: Calculate new cell state candidate values , the formula used is as follows:
[0025] ;
[0026] Where W xc and W hc represents the corresponding cell unit state weight matrix; b c Bias parameter representing the cell unit state;
[0027] Step S325: Cell unit status update process; the formula used is as follows:
[0028] ;
[0029] In the formula, c t Indicates the cell state at the current moment; c t-1 Indicates the cell state at the previous moment;
[0030] Step S326: Output gate calculation process; the formula used is as follows:
[0031] ;
[0032] In the formula, o t Represents the output of the output gate; W xo and W ho It represents the corresponding output gate weight matrix; b o Represents the bias parameter of the output gate;
[0033] Step S327: hidden state calculation process; the formula used is as follows:
[0034] ;
[0035] In the formula, tanh represents the hyperbolic tangent function; h t Indicates the hidden state at the current moment;
[0036] Step S328: Get the current prediction value ; The formula used is as follows:
[0037] ;
[0038] Where b v The bias parameter representing the predicted value;
[0039] Step S33: Gradient descent optimization; comprising the following steps:
[0040] Step S331: Calculate the gradient of the loss function with respect to the parameter matrix V; the formula used is as follows:
[0041] ;
[0042] In the formula, represents the gradient of the loss function J with respect to the parameter V; h T represents the transpose of the hidden state matrix; V T represents the transpose of the parameter matrix V;
[0043] Step S332: Calculate the loss function with respect to the bias term b v The gradient of ; the formula used is as follows:
[0044] ;
[0045] In the formula, Represents the loss function J for the bias term b v The gradient of
[0046] Step S333: Calculate the hidden state h t The gradient of ; the formula used is as follows:
[0047] ;
[0048] In the formula, Represents the loss function J for the hidden state h at the current moment t The gradient of h t+1 Represents the hidden state at the next moment; Represents the loss function J for the hidden state h at the next moment t+1 The gradient of
[0049] Step S334: Calculate the cell state c t The gradient of ; the formula used is as follows:
[0050] ;
[0051] In the formula, Represents the loss function J for the current cell state c t The gradient of t+1 Represents the output of the forget gate at the next time t+1;
[0052] Step S34: parameter update: based on the calculated gradients of the hidden state and the cell state, all weight matrices and bias items in the anomaly detection model are updated to obtain an optimized anomaly detection model;
[0053] Step S35: iterative determination; monitor the gradient change of the parameters. If the anomaly detection model converges, stop the iterative training, otherwise continue the iterative training.
[0054] Furthermore, in step S4, obtaining the optimal hyperparameters of the model specifically includes the following steps:
[0055] Step S41: Initialize parameters: cluster size N, search machine ratio P N , observation machine ratio S N ; Maximum number of iterations T; Search lower limit lb for dimension d d and upper limit d ; Warning value R 2 ;Safety threshold ST;
[0056] Step S42: Initialize the population; including the following steps:
[0057] Step S421: Generate N chaotic sequence values and initialize the random value z 0 ; The formula used is as follows:
[0058] ;
[0059] In the formula, represents the i-th chaotic sequence value of the d-th dimension; Represents the i+1th chaotic sequence value of the dth dimension;
[0060] Step S422: Chaotic sequence value conversion search individual; the formula is as follows:
[0061] ;
[0062] In the formula, Represents the initialization position of the dth dimension of the i-th individual;
[0063] Step S43: Population division: Calculate the fitness value f of individuals in the population i; Take the performance of the anomaly detection model established based on the individual's position as the fitness value of the individual; Sort the individuals from the best to the worst according to the fitness value, and divide them into search aircraft and wingmen; Find the individual f with the best fitness b and its position X b , and the individual f with the worst fitness w and its position X w ;
[0064] Step S44: Obtain the dynamic adaptive weight; The formula used is as follows:
[0065] ;
[0066] In the formula, a(t) represents the dynamic adaptive weight parameter calculated according to the sine value; b(t) represents the dynamic adaptive weight parameter calculated according to the cosine value; t represents the number of iterations; α and β both represent random numbers in the range of [0,1]; ω(t) represents the dynamic adaptive weight;
[0067] Step S45: Update the position of the search aircraft; The formula used is as follows:
[0068] ;
[0069] In the formula, represents the position of the i-th individual in the d-th dimension of the aircraft group in the (t + 1)-th generation; represents the position of the i-th individual in the d-th dimension of the aircraft group in the t-th generation; represents the corresponding position of the best fitness in the current iteration; α represents a randomness parameter in the range of [0,1]; R 2 <ST indicates that there are no enemy aircraft nearby and it is in a safe position; R 2 ≥ST indicates that there are enemy aircraft nearby and it is necessary to land in another area; Q represents a random number obeying the normal distribution; represents the position of a random individual in the population; is a smoothing term;
[0070] Step S46: Update the position of the wingman; The formula used is as follows:
[0071] ;
[0072] In the formula, t represents the number of iterations; n represents the number of individuals; represents the position of the individual with the best fitness value in the d-th dimension of the aircraft group in the (t + 1)-th iteration; A + represents the dimension pseudo-inverse matrix, and the elements are randomly assigned 1 or -1; L represents a vector with all elements being 1;
[0073] Step S47: Update the position of the observation machine; randomly select 10% of the individuals in the group as observation machines and update their positions; the formula used is as follows:
[0074] ;
[0075] In the formula, Indicates the position of the individual with the best fitness in the swarm in the tth iteration on dimension d; Indicates the position of the individual with the worst fitness in the tth iteration of the swarm on dimension d; represents a standard normal distribution random number with a mean of 0 and a variance of 1; K represents a uniformly distributed random number in the interval [−1,1]; It is the smallest constant that avoids the denominator being zero;
[0076] Step S48: Search judgment. A fitness threshold is set in advance. When there is an individual fitness value higher than the fitness threshold, the hyperparameter search is completed, and the individual position is the optimal parameter of the algorithm model. At this time, the anomaly detection model is established; if the maximum number of iterations is reached, the cluster position is reinitialized; otherwise, the position continues to be updated.
[0077] Furthermore, in step S5, the automated decision of the active-active switching management and control platform is based on the established anomaly detection model; real-time system status data, network data, active-active switching management and control platform log data and storage data are collected and input; based on the output result of the anomaly detection model, if the output result is abnormal, a fault alarm is issued for the current active-active switching management and control platform, and an active-active automatic switching operation is performed; otherwise, the active-active switching management and control platform continues to maintain its original state.
[0078] The beneficial effects achieved by the present invention using the above scheme are as follows:
[0079] (1) In view of the problems that traditional abnormal data detection models have inflexible structures and cannot process more complex data, resulting in low model resistance to abnormalities and weak robustness, this scheme uses mixed correlation entropy based on kernel space complexity to suppress the influence of outliers and non-Gaussian distributions. It also has a more flexible structure to process more complex data and enhance the detection model's resistance to abnormalities and robustness.
[0080] (2) In view of the problems of low initial group traversability and poor diversity in general parameter optimization algorithms, which lead to slow convergence and poor search ability and accuracy, this scheme uses the chaotic sequence generated by sinusoidal chaotic mapping and adaptive dynamic weight factors to balance the global and local search capabilities, accelerate the convergence speed of the search algorithm, and thus improve the search efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] Figure 1A schematic diagram of a process flow of an automated switching method based on a dual-active switching management and control platform provided by the present invention;
[0082] Figure 2 is a schematic diagram of the process of step S3;
[0083] Figure 3 is a schematic flow chart of step S4;
[0084] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0085] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0086] In the description of the present invention, it is necessary to understand that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred system or element must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as a limitation on the present invention.
[0087] Example 1, see Figure 1 The present invention provides an automatic switching method based on a dual-active switching management and control platform, the method comprising the following steps:
[0088] Step S1: data collection, collecting historical data;
[0089] Step S2: Data preprocessing, data cleaning, data conversion, standardization and data label selection for the collected data;
[0090] Step S3: Establish an anomaly detection model. Use the hybrid correlation entropy that is good at processing the complex characteristics of the kernel space to establish a hybrid correlation entropy anomaly detection model for the switching operation detection of the active-active switching control platform.
[0091] Step S4: Obtain the optimal hyperparameters of the model, and establish a parameter optimization algorithm using the chaotic sequence generated by the sinusoidal chaotic mapping and the adaptive dynamic weight factor;
[0092] Step S5: Automated decision-making of the active-active switching management and control platform. Based on the output result of the anomaly detection model, automated decision-making of the active-active switching management and control platform is performed.
[0093] Example 2, see Figure 1 This embodiment is based on the above embodiment. In step S1, the historical data includes system status data, network data, active-active switching management and control platform log data and storage data; the system status data includes CPU utilization, memory utilization and disk space usage; the network data includes network traffic, bandwidth utilization and network delay data; the active-active switching management and control platform log data includes real-time log data and historical log data; the storage data includes storage space utilization, storage device status and data backup status.
[0094] Example 3, see Figure 1 This embodiment is based on the above embodiment. In step S2, the data preprocessing performs data cleaning, data conversion, standardization and data label selection on the collected data; the data cleaning is to process missing values, abnormal values and duplicate values; the data conversion is to convert the data into a vector form; the standardization is to standardize the data based on the maximum and minimum normalization method; the data label selection is to select and label according to the log data of the active-active switching management and control platform, and divide the operation status of the active-active switching management and control platform into two labels, namely normal operation and abnormal operation.
[0095] Example 4, see Figure 1 and Figure 2 This embodiment is based on the above embodiment. In step S3, the abnormality detection model is established, which specifically includes the following steps:
[0096] Step S31: define the loss function; combine the mixed correlation entropy to obtain; the formula used is as follows:
[0097] ;
[0098] Where J represents the loss function; C represents the penalty parameter, which is used to control the scaling factor of the gradient of the loss function; N represents the number of samples; α represents the parameter that controls the weight distribution between the two kernel functions; σ 1 Indicates the width of the kernel function; represents the predicted output value of the i-th training sample; y i represents the target output value of the i-th training sample; V represents the parameter matrix used to linearly transform the hidden state;
[0099] Step S32: Initial model building; including the following steps:
[0100] Step S321: Initialize model parameters; set the number of model hidden units, input vector dimension, output vector dimension and number of training iterations;
[0101] Step S322: Forget gate calculation process; the formula used is as follows:
[0102] ;
[0103] In the formula, f t represents the output of the forget gate; X t Indicates input data; H t-1 Indicates the hidden state at the last moment; W xf and W hf represents the weight matrix corresponding to the forget gate; b f represents the bias parameter of the forget gate; σ represents the Sigmoid function;
[0104] Step S323: Input gate calculation process; the formula used is as follows:
[0105] ;
[0106] In the formula, i t represents the output of the input gate; W xi and W hi represents the corresponding input gate weight matrix; b i Represents the bias parameter of the input gate;
[0107] Step S324: Calculate new cell state candidate values , the formula used is as follows:
[0108] ;
[0109] Where W xc and W hc represents the corresponding cell unit state weight matrix; b c Bias parameter representing the cell unit state;
[0110] Step S325: Cell unit status update process; the formula used is as follows:
[0111] ;
[0112] In the formula, c t Indicates the cell state at the current moment; c t-1 Indicates the cell state at the previous moment;
[0113] Step S326: Output gate calculation process; the formula used is as follows:
[0114] ;
[0115] In the formula, o t Represents the output of the output gate; Wxo and W ho It represents the corresponding output gate weight matrix; b o Represents the bias parameter of the output gate;
[0116] Step S327: hidden state calculation process; the formula used is as follows:
[0117] ;
[0118] In the formula, tanh represents the hyperbolic tangent function; h t Indicates the hidden state at the current moment;
[0119] Step S328: Get the current prediction value ; The formula used is as follows:
[0120] ;
[0121] Where b v The bias parameter representing the predicted value;
[0122] Step S33: Gradient descent optimization; comprising the following steps:
[0123] Step S331: Calculate the gradient of the loss function with respect to the parameter matrix V; the formula used is as follows:
[0124] ;
[0125] In the formula, represents the gradient of the loss function J with respect to the parameter V; h T represents the transpose of the hidden state matrix; V T represents the transpose of the parameter matrix V;
[0126] Step S332: Calculate the loss function with respect to the bias term b v The gradient of ; the formula used is as follows:
[0127] ;
[0128] In the formula, Represents the loss function J for the bias term b v The gradient of
[0129] Step S333: Calculate the hidden state h t The gradient of ; the formula used is as follows:
[0130] ;
[0131] In the formula, Represents the loss function J for the hidden state h at the current moment t The gradient of ht+1 Represents the hidden state at the next moment; Represents the loss function J for the hidden state h at the next moment t+1 The gradient of
[0132] Step S334: Calculate the cell state c t The gradient of ; the formula used is as follows:
[0133] ;
[0134] In the formula, Represents the loss function J for the current cell state c t The gradient of t+1 Represents the output of the forget gate at the next time t+1;
[0135] Step S34: parameter update: based on the calculated gradients of the hidden state and the cell state, all weight matrices and bias items in the anomaly detection model are updated to obtain an optimized anomaly detection model;
[0136] Step S35: iterative determination; monitor the gradient change of the parameters. If the anomaly detection model converges, stop the iterative training, otherwise continue the iterative training.
[0137] By performing the above operations, the traditional abnormal data detection model has an inflexible structure and cannot process more complex data, resulting in low model resistance to abnormalities and weak robustness. This scheme uses mixed correlation entropy based on kernel space complexity to suppress the influence of outliers and non-Gaussian distributions, and has a more flexible structure to process more complex data, thereby enhancing the detection model's resistance to abnormalities and robustness.
[0138] Example 5, see Figure 1 and Figure 3 This embodiment is based on the above embodiment. In step S4, obtaining the optimal hyperparameters of the model specifically includes the following steps:
[0139] Step S41: Initialize parameters: cluster size N, search machine ratio P N , observation machine ratio S N ; Maximum number of iterations T; Search lower limit lb for dimension d d and upper limit d ; Warning value R 2 ;Safety threshold ST;
[0140] Step S42: Initialize the population; including the following steps:
[0141] Step S421: Generate N chaotic sequence values and initialize the random value z 0 ; The formula used is as follows:
[0142] ;
[0143] Wherein, represents the i-th chaotic sequence value in the d-th dimension; represents the (i + 1)-th chaotic sequence value in the d-th dimension;
[0144] Step S422: Conversion of chaotic sequence values to search individuals; the formula is as follows:
[0145] ;
[0146] Wherein, represents the initial position of the i-th individual in the d-th dimension;
[0147] Step S43: Population division: Calculate the fitness value f of individuals in the population i ; Take the performance of the anomaly detection model established based on the individual position as the fitness value of the individual; Sort the individuals from the best to the worst according to the fitness value, and divide the search aircraft and the wingman; Find the individual f with the best fitness b and its position X b , and the individual f with the worst fitness w and its position X w ;
[0148] Step S44: Obtain the dynamic adaptive weight; the formula used is as follows:
[0149] ;
[0150] Wherein, a(t) represents the dynamic adaptive weight parameter calculated according to the sine value; b(t) represents the dynamic adaptive weight parameter calculated according to the cosine value; t represents the number of iterations; α and β both represent random numbers in the range of [0, 1]; ω(t) represents the dynamic adaptive weight;
[0151] Step S45: Update the position of the search aircraft; the formula used is as follows:
[0152] ;
[0153] Wherein, represents the d-th dimension position of the i-th individual in the (t + 1)-th generation of the aircraft group; represents the d-th dimension position of the i-th individual in the t-th generation of the aircraft group; represents the corresponding position of the best fitness in the current iteration; α represents a randomness parameter in the range of [0, 1]; R 2 <ST indicates that there are no enemy aircraft nearby and it is in a safe position; R 2 ≥ST indicates that there are enemy aircraft nearby and it is necessary to land in another area; Q represents a random number subject to a normal distribution; represents the position of a random individual in the population; is a smoothing term;
[0154] Step S46: Update the wingman position; the formula used is as follows:
[0155] ;
[0156] In the formula, t represents the number of iterations; n represents the number of individuals; A represents the position of the individual with the best fitness value in the swarm in the t+1th iteration on dimension d; + express Dimension pseudo-inverse matrix, elements are randomly assigned 1 or -1; L represents a vector whose all elements are 1;
[0157] Step S47: Update the position of the observation machine; randomly select 10% of the individuals in the group as observation machines and update their positions; the formula used is as follows:
[0158] ;
[0159] In the formula, Indicates the position of the individual with the best fitness in the swarm in the tth iteration on dimension d; Indicates the position of the individual with the worst fitness in the tth iteration of the swarm on dimension d; represents a standard normal distribution random number with a mean of 0 and a variance of 1; K represents a uniformly distributed random number in the interval [−1,1]; It is the smallest constant that avoids the denominator being zero;
[0160] Step S48: Search judgment. A fitness threshold is set in advance. When there is an individual fitness value higher than the fitness threshold, the hyperparameter search is completed, and the individual position is the optimal parameter of the algorithm model. At this time, the anomaly detection model is established; if the maximum number of iterations is reached, the cluster position is reinitialized; otherwise, the position continues to be updated.
[0161] By performing the above operations, the general parameter optimization algorithm has the problems of low initial group ergodicity and poor diversity, resulting in slow convergence, poor search ability and accuracy. This scheme balances the global and local search capabilities by utilizing the chaotic sequence generated by the sinusoidal chaotic mapping and the adaptive dynamic weight factor, accelerates the convergence speed of the search algorithm, and thus improves the search efficiency and accuracy.
[0162] Example 6, see Figure 1This embodiment is based on the above embodiment. In step S5, the automated decision of the active-active switching control platform is based on the established anomaly detection model; real-time system status data, network data, active-active switching control platform log data and storage data are collected and input; based on the output result of the anomaly detection model, if the output result is abnormal, a fault alarm is issued for the current active-active switching control platform, and an active-active automatic switching operation is performed; otherwise, the active-active switching control platform continues to maintain its original state.
[0163] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0164] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.
[0165] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. An automated switching method based on a dual-active switching management and control platform, characterized in that: The method comprises the following steps: Step S1: data collection; Step S2: data preprocessing; Step S3: Establish an anomaly detection model. Use the hybrid correlation entropy that is good at processing the complex characteristics of the kernel space to establish a hybrid correlation entropy anomaly detection model for the switching operation detection of the active-active switching control platform. Step S4: Obtain the optimal hyperparameters of the model, and establish a parameter optimization algorithm using the chaotic sequence generated by the sinusoidal chaotic mapping and the adaptive dynamic weight factor; Step S5: Automated decision-making of the active-active switching management and control platform. Based on the output result of the anomaly detection model, automated decision-making of the active-active switching management and control platform is performed.
2. According to claim 1, an automatic switching method based on a dual-active switching management and control platform is characterized in that: In step S3, the abnormality detection model is established by specifically including the following steps: Step S31: define the loss function; combine the mixed correlation entropy to obtain; the formula used is as follows: ; In the formula, J represents the loss function; C represents the penalty parameter, which is used to control the scaling factor of the gradient of the loss function; N represents the number of samples; α represents the parameter that controls the weight distribution between the two kernel functions; σ1 represents the width of the kernel function; represents the predicted output value of the i-th training sample; y i Represents the target output value of the i-th training sample; V represents the parameter matrix used to linearly transform the hidden state; Step S32: Initial model building; including the following steps: Step S321: Initialize model parameters; set the number of model hidden units, input vector dimension, output vector dimension and number of training iterations; Step S322: Forget gate calculation process; the formula used is as follows: ; In the formula, f t represents the output of the forget gate; X t Indicates input data; H t-1 Indicates the hidden state at the last moment; W xf and W hf represents the weight matrix corresponding to the forget gate; b f represents the bias parameter of the forget gate; σ represents the Sigmoid function; Step S323: Input gate calculation process; the formula used is as follows: ; In the formula, i t represents the output of the input gate; W xi and W hi represents the corresponding input gate weight matrix; b i Represents the bias parameter of the input gate; Step S324: Calculate new cell state candidate values , the formula used is as follows: ; Where W xc and W hc represents the corresponding cell unit state weight matrix; b c Bias parameter representing the cell unit state; Step S325: Cell unit status update process; the formula used is as follows: ; In the formula, c t Indicates the cell state at the current moment; c t-1 Indicates the cell state at the previous moment; Step S326: Output gate calculation process; the formula used is as follows: ; In the formula, o t Represents the output of the output gate; W xo and W ho It represents the corresponding output gate weight matrix; b o Represents the bias parameter of the output gate; Step S327: hidden state calculation process; the formula used is as follows: ; Where tanh represents the hyperbolic tangent function; h t Indicates the hidden state at the current moment; Step S328: Get the current prediction value ; The formula used is as follows: ; Where b v The bias parameter representing the predicted value; Step S33: Gradient descent optimization; comprising the following steps: Step S331: Calculate the gradient of the loss function with respect to the parameter matrix V; the formula used is as follows: ; In the formula, represents the gradient of the loss function J with respect to the parameter V; h T represents the transpose of the hidden state matrix; V T represents the transpose of the parameter matrix V; Step S332: Calculate the loss function with respect to the bias term b v The gradient of ; the formula used is as follows: ; In the formula, Represents the loss function J for the bias term b v The gradient of Step S333: Calculate the hidden state h t The gradient of ; the formula used is as follows: ; In the formula, Represents the loss function J for the hidden state h at the current moment t The gradient of h t+1 Represents the hidden state at the next moment; Represents the loss function J for the hidden state h at the next moment t+1 The gradient of Step S334: Calculate the cell state c t The gradient of ; the formula used is as follows: ; In the formula, Represents the loss function J for the current cell state c t The gradient of t+1 Represents the output of the forget gate at the next time t+1; Step S34: parameter update: based on the calculated gradients of the hidden state and the cell state, all weight matrices and bias items in the anomaly detection model are updated to obtain an optimized anomaly detection model; Step S35: iterative determination; monitor the gradient change of the parameters. If the anomaly detection model converges, stop the iterative training, otherwise continue the iterative training.
3. According to claim 1, an automatic switching method based on a dual-active switching management and control platform is characterized in that: In step S4, obtaining the optimal hyperparameters of the model specifically includes the following steps: Step S41: Initialize parameters: cluster size N, search machine ratio P N , observation machine ratio S N ; Maximum number of iterations T; Search lower limit lb for dimension d d and upper limit d ; Warning value R2; Safety threshold ST; Step S42: Initialize the population; including the following steps: Step S421: Generate N chaotic sequence values and initialize the random value z0; the formula used is as follows: ; In the formula, represents the i-th chaotic sequence value of the d-th dimension; Represents the i+1th chaotic sequence value of the dth dimension; Step S422: Chaotic sequence value conversion search individual; the formula is as follows: ; In the formula, Represents the initialization position of the dth dimension of the i-th individual; Step S43: Population division: Calculate the fitness value f of individuals in the population i ; The performance of the anomaly detection model established based on the individual position is used as the individual fitness value; the individuals are sorted from best to worst according to the fitness value, and the search aircraft and wingman are divided; the individual with the best fitness f is found b and its position X b , and the individual f with the worst fitness w and its position X w ; Step S44: Obtain dynamic adaptive weight; the formula used is as follows: ; Where a(t) represents the dynamic adaptive weight parameter calculated according to the sine value; b(t) represents the dynamic adaptive weight parameter calculated according to the cosine value; t represents the number of iterations; α and β both represent random numbers in the range of [0,1]; ω(t) represents the dynamic adaptive weight; Step S45: Update the search machine position; the formula used is as follows: ; wherein represents the d-th dimensional position of the i-th individual in the (t + 1)-th generation swarm; represents the d-th dimensional position of the i-th individual in the t-th generation swarm; represents the corresponding position of the best fitness in the current iteration; α represents a randomness parameter within the range of [0, 1]; R2 < ST indicates that there are no enemy aircraft nearby and it is in a safe position; R2 ≥ ST indicates that there are enemy aircraft nearby and it is necessary to land in another area; Q represents a random number subject to a normal distribution; represents the position of a random individual in the population; is a smoothing term; Step S46: Update the wingman position; the formula used is as follows: ; In the formula, t represents the number of iterations; n represents the number of individuals; A represents the position of the individual with the best fitness value in the swarm in the t+1th iteration on dimension d; + express Dimension pseudo-inverse matrix, elements are randomly assigned 1 or -1; L represents a vector whose all elements are 1; Step S47: Update the position of the observation machine; randomly select 10% of the individuals in the group as observation machines and update their positions; the formula used is as follows: ; In the formula, Indicates the position of the individual with the best fitness in the swarm in the tth iteration on dimension d; Indicates the position of the individual with the worst fitness in the tth iteration of the swarm on dimension d; represents a standard normal distribution random number with a mean of 0 and a variance of 1; K represents a uniformly distributed random number in the interval [−1,1]; It is the smallest constant that avoids the denominator being zero; Step S48: Search judgment. A fitness threshold is set in advance. When there is an individual fitness value higher than the fitness threshold, the hyperparameter search is completed, and the individual position is the optimal parameter of the algorithm model. At this time, the anomaly detection model is established; if the maximum number of iterations is reached, the cluster position is reinitialized; otherwise, the position continues to be updated.
4. The automatic switching method based on the active-active switching management and control platform according to claim 1 is characterized in that: In step S2, the data preprocessing performs data cleaning, data conversion, standardization and data label selection on the collected data; the data cleaning is to process missing values, outliers and duplicate values; the data conversion is to convert the data into vector form; the standardization is to standardize the data based on the maximum and minimum normalization method; the data label selection is to select and label according to the log data of the active-active switching management and control platform, and divide the operation status of the active-active switching management and control platform into two labels, namely normal operation and abnormal operation.
5. The automatic switching method based on the active-active switching management and control platform according to claim 1 is characterized in that: In step S5, the automated decision-making of the active-active switching control platform is based on the established anomaly detection model; real-time system status data, network data, active-active switching control platform log data and storage data are collected and input; Based on the output result of the anomaly detection model, if the output result is abnormal, a fault alarm is issued to the current active-active switching control platform, and an active-active automatic switching operation is performed; otherwise, the active-active switching control platform continues to maintain the original state.
6. The automatic switching method based on the active-active switching management and control platform according to claim 1 is characterized in that: In step S1, the data collection is to collect historical data, and the historical data includes system status data, network data, active-active switching management and control platform log data and storage data; the system status data includes CPU utilization, memory utilization and disk space usage; the network data includes network traffic, bandwidth utilization and network delay data; the active-active switching management and control platform log data includes real-time log data and historical log data; the storage data includes storage space utilization, storage device status and data backup status.
Citation Information
Patent Citations
Service function chain migration method based on fault prediction
CN115145757A
Network security situation prediction method based on improved sparrow search algorithm
CN116996272A
Fault prediction method, device and equipment for off-site active-active architecture and storage medium
CN117648223A
Cited By
Medical material fine management method and system based on big data
CN119049679A
Medical supplies refined management method and system based on big data
CN119049679B
Esophageal cancer nuclear magnetic diagnosis enhancing system based on artificial intelligence
CN119724563A
Intelligent decision-making method for active-active switching management and control platform
CN120449051A
