A method for estimating parameters of software reliability model

By combining beetle search and artificial bee colony algorithm, the accuracy and efficiency problems of software reliability model parameter estimation in complex environments are solved, and more efficient software fault prediction is achieved.

CN114036057BActive Publication Date: 2024-08-27BEIJING WILFIX TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111374680.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-19
Publication Date
2024-08-27
Estimated Expiration
2041-11-19

AI Technical Summary

Technical Problem

Existing software reliability model parameter estimation methods are difficult to accurately estimate model parameters when dealing with complex and changeable software operating environments, resulting in low accuracy and low efficiency in software fault prediction.

Method used

Combining the beetle search algorithm and the artificial bee colony algorithm, the fitness value function is constructed through the maximum likelihood estimation formula, the beetle search algorithm is used to update the position, and the artificial bee colony algorithm is used to search around it, and the model parameters are iteratively optimized. Until the maximum number of iterations is reached to improve the accuracy and convergence speed of parameter estimation.

Benefits of technology

The accuracy and efficiency of software reliability model parameter estimation are improved, the number of iterations is reduced, the convergence speed of the algorithm is significantly accelerated, and the accuracy of software fault prediction is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114036057B
    Figure CN114036057B
Patent Text Reader

Abstract

The present invention discloses a method for estimating parameters of a software reliability model. The present invention belongs to the field of software reliability model parameter estimation. The present invention is mainly divided into three parts. The first part is to construct a fitness function using maximum likelihood estimation; the second part is to obtain the optimal fitness value and the optimal position using the BAS‑ABC algorithm; the third part is to calculate the parameters of the software reliability model using the optimal position; finally, the time when the next five failures will occur is predicted by the parameters, compared with the actual time, the mean square error MSE is calculated, and the model parameters are analyzed for errors. The present invention provides a new idea for software reliability model parameter estimation, and is also of great significance to software reliability research.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of software reliability model parameter estimation, and relates to a software reliability model parameter estimation method, in particular to a software reliability model parameter estimation method based on the fusion of a longicorn beard search algorithm and an artificial bee colony algorithm. Background Art

[0002] Reliability estimation is an important issue in determining software quality. This problem includes two main tasks: one is to determine the mathematical model that describes the occurrence of software errors, and the other is to estimate the model parameters that best suit a specific software fault data set. Software reliability prediction is to discover faults during the test execution process and the distribution of faults. By understanding the situation of these faults, the fault state and hidden faults of the software in actual operation can be predicted. Through modeling, the theoretical knowledge of reliability can be combined with practical engineering. By analyzing the situation in software testing, the probability of people generating faults when developing new software can be reduced, greatly improving the reliability of the software. In software reliability prediction, the environment in which the software runs is more changeable and complex, so it is necessary to make assumptions about the running environment. The classic and common software reliability models are GO model, JM model, and MO model. The GO model is a continuous-time non-homogeneous Poisson process model and a type of NHHP model. It has higher software reliability because the model is based on the fact that software defects are concentrated in uncommon code. The difference between the GO model and the JM model is that the former can describe the process of software failure more reasonably and is more in line with reality. Therefore, the GO model is also the first choice in the process of use. The GO model is selected as the research content of this method.

[0003] With the continuous development of intelligent optimization algorithms, many scholars have applied them to the problem of software reliability model parameter estimation, and intelligent bionic algorithms have also received more extensive attention. Intelligent bionic algorithms are an intelligent computing method that imitates the intelligent behavior of biological groups or the structure and function of organisms or ecological mechanisms. Its working mechanism is very close to the nature or ecological mechanism of natural organisms. In addition, the intelligent bionic algorithm is simple to calculate and easy to understand, and the effect is very amazing, reflecting the emergence. It has strong applicability and flexibility to changes in the environment, parameters and tasks. Longhorn beard search is an efficient intelligent optimization algorithm proposed in 2017. Similar to intelligent optimization algorithms such as genetic algorithms, particle swarm algorithms, and simulated annealing, longhorn beard search does not need to know the specific form of the function, does not require gradient information, and can achieve efficient optimization. Compared with the particle swarm algorithm, longhorn beetle search only requires one individual, that is, a longhorn beetle, and the amount of calculation is greatly reduced. The artificial bee colony algorithm is an optimization method proposed by imitating the behavior of bees. It is a specific application of the idea of ​​swarm intelligence. Its main feature is that it does not require special information about the problem, but only needs to compare the pros and cons of the problem. Through the local optimization behavior of each artificial bee individual, the global optimal value will eventually emerge in the group, and it has a fast convergence speed. In order to solve the multivariable function optimization problem, Karaboga proposed the ABC model of the artificial bee colony algorithm. The artificial bee colony algorithm is a type of swarm intelligence algorithm. It is inspired by the honey-seeking and honey-collecting process of bees. Compared with the common heuristic algorithm, its advantage is that it uses fewer control parameters and is highly robust. In each iteration process, it will search for global and local optimal solutions, so the probability of finding the optimal solution is greatly increased. Summary of the invention

[0004] Purpose of the invention: The purpose of the present invention is to solve the problem of software reliability model parameter estimation, and on this basis, to provide a software reliability model parameter estimation method based on the fusion of longhorn beard search algorithm and artificial bee colony algorithm.

[0005] Technical solution: The software reliability model parameter estimation method described in the present invention has the following specific operation steps:

[0006] (1) Obtain the software failure time series required for training, and train the first part of the data to predict the failure time with five failures;

[0007] (2) Use the maximum likelihood estimation formula to construct a new fitness function to initialize model parameters;

[0008] (3) Use the beetle whisker search algorithm BAS for training, and use the beetle position update formula to update the beetle position x during training;

[0009] (4) Use the artificial bee colony algorithm ABC to search around the position x of the longhorn beetle, and use the optimal position obtained by the ABC algorithm as the new position x of the longhorn beetle. Repeat step (3) until the maximum number of iterations of the BAS algorithm is reached;

[0010] (5) According to the obtained optimal position and optimal fitness value, the model parameter a is calculated, where the optimal position is the parameter b;

[0011] (6) Calculate the error rate of the model parameters, and compare the failure time of the next five failures predicted by the parameters with the actual values, and calculate the mean square error (MSE), thereby forming a software reliability model parameter estimation method based on the fusion of the beetle whisker search algorithm and the artificial bee colony algorithm.

[0012] Furthermore, in step (1), there is a nonlinear relationship between the failure time series and the failure number, and its parameters need to be obtained by training a large amount of data.

[0013] Furthermore, in step (2), constructing the fitness function, i.e., the target optimization function, is the key to estimating the software reliability model using an intelligent optimization algorithm, and transforms the parameter estimation problem into a function optimization problem;

[0014] According to the characteristics of the software reliability model and referring to the principle of least squares method, the fitness function constructed is as follows:

[0015]

[0016] Among them, f it Represents the relative error distance between the actual measured software failure number and the failure number estimated by the model; m(t i ) means that in the test time period (0,t i The cumulative number of failures actually found in ]; m 0 (t i ) indicates that in the test time period (0,t i ) is the cumulative number of failures estimated by the model; t i is the time when the i-th failure occurs; i = 1, 2, ..., n, where n represents the total number of failures that occurred at the end of the test;

[0017] Before using the formula to control parameter optimization, in order to speed up the convergence of the algorithm, the fitness function of b is constructed according to the maximum likelihood estimation formula of the software reliability GO model parameters to initialize the parameter b; the maximum likelihood estimation formulas of a and b are as follows:

[0018]

[0019] Substitute the expression of the first term a into the second term and perform mathematical transformation to construct a formula that is only related to parameter b, as shown in the following formula:

[0020]

[0021] Among them; except b, all other parameters are known.

[0022] Furthermore, in step (3), the BAS algorithm used, compared with swarm intelligence optimization algorithms such as particle swarm, only requires one individual, namely, a longicorn beetle; for an optimization problem in an n-dimensional space, using x l represents the left whisker coordinate, x r represents the coordinates of the right whisker, x represents the coordinates of the center of mass, and d0 represents the distance between the two whiskers;

[0023] The ratio of the beetle's step length step to the distance d0 between its two whiskers is a fixed constant:

[0024] step=c*d0,

[0025] Among them, c represents a constant, that is, the big longhorn beetle with a long distance between its two whiskers takes a big step, and the small longhorn beetle with a short distance between its two whiskers takes a small step; assuming that the direction of the longhorn beetle's head is random after it flies to the next step, the direction of the vector pointing from the right whisker to the left whisker of the longhorn beetle is also random; therefore, it is represented as a random vector:

[0026] dir=rands(n,1),

[0027] Normalize it:

[0028] dir = dir / norm (dir),

[0029] Then we get:

[0030] x l -x r =d0*dir.

[0031] Obviously, x l and x r It can also be expressed as the center of mass expression:

[0032] x l =x+d0*dir / 2,

[0033] x r =x-d0*dir / 2.

[0034] For the function f to be optimized, find the values ​​of the left and right whiskers:

[0035] f left =f(x l ),

[0036] f right =f(x r ),

[0037] Such as left <f right , in order to find the minimum value of f, the longhorn beetle moves a distance step in the left whisker direction,

[0038] Right now:

[0039] x=x+step*normal(x l -x r );

[0040] Such as left >f right , in order to find the minimum value of f, the longhorn beetle moves a distance step in the right whisker direction,

[0041] That is: x = x-step*normal(x l -x r );

[0042] If the symbolic function sign is used in both cases, it can be written uniformly as:

[0043] x=x-step*normal(x l -x r )*sign(f left -f right )=x-step*dir*

[0044] sign(f left -f right )Where normal represents the normalization function.

[0045] Furthermore, in step (4), the ABC algorithm used is highly robust, and global and local optimal solution searches are performed in each iteration process;

[0046] From step (3), we obtain the position x of the longhorn beetle and use the ABC algorithm to search around it. Assume that the solution space of the problem is D-dimensional, and the number of bees collecting and observing is S. N , the number of bees collecting honey or observing bees is equal to the number of nectar sources; the position of each nectar source represents a possible solution to the problem, the nectar amount of the nectar source corresponds to the fitness of the corresponding solution, and one bee collecting honey corresponds to one nectar source; the bee collecting honey corresponding to the i-th nectar source searches for a new nectar source according to the following formula:

[0047]

[0048] Where i = 1, 2, ..., S N, D=1,2,...,D, represents a random number in the interval [-1,1], k≠i; the standard ABC algorithm compares the newly generated possible solution with the original solution:

[0049] new:X i '={x i ′1,x i ′2,...,x i ' D}

[0050] old:X i ={x i1 ,x i2 ,...,x iD},

[0051] A greedy selection strategy is used to retain the better solution; each observer bee selects a nectar source based on probability, and the probability formula is:

[0052]

[0053] Among them, fit i Indicates possible solution X i fitness value; for the selected nectar source, the observer bee searches for new possible solutions according to the above probability formula; when all the honey bees and observer bees have searched the entire search space, if the fitness value of a nectar source has not been improved within a given step, the nectar source is discarded, and the honey bees corresponding to the nectar source become scout bees, and the scout bees search for new possible solutions according to the following formula; where,

[0054]

[0055] Where r represents a random number in the interval [0,1]. and Respectively represent the lower bound and upper bound of the dth dimension. Repeat the operation until the maximum number of iterations is reached to obtain the optimal position, which is used as the new position of the longhorn beetle. The position of the longhorn beetle is updated, and steps (3) and (4) are repeated until the BAS algorithm reaches the maximum number of iterations.

[0056] Furthermore, in step (5), the optimal position obtained is parameter b, where a can be calculated from b:

[0057]

[0058] Furthermore, in step (6), the software reliability refers to: the probability that the software will not fail within a specified time under specified conditions;

[0059] The software reliability model refers to a reliability block diagram and mathematical model established to predict or estimate the reliability of software, and its formula is:

[0060] m(t)=a(1-e -bt ),

[0061] Where m(t) represents the expected function of the cumulative number of failures up to time t. The time series of the last five failures are calculated by the formula, and then compared with the actual value to calculate the mean square error (MSE). The formula is:

[0062]

[0063] in, Represents the predicted value, y i Indicates actual value.

[0064] Beneficial effects: Compared with the prior art, the present invention has the following features: 1. A new fitness function is constructed using the maximum likelihood estimation formula, which is only related to the parameter b. Compared with the fitness function before the improvement, the function improves the accuracy and convergence speed of the algorithm; 2. BAS is combined with ABC, and the ABC algorithm is added in the process of updating the position of the longhorn beetle. The ABC algorithm is then used to search around the position of the longhorn beetle. The optimal position obtained by ABC is used as the new position of the longhorn beetle, which can reduce the number of BAS iterations, improve accuracy, and accelerate the convergence speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 It is an operation flow chart of the present invention;

[0066] Figure 2 It is a flow chart of the BAS hybrid ABC algorithm in the present invention. DETAILED DESCRIPTION

[0067] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.

[0068] As shown in the figure, the software reliability model parameter estimation method described in the present invention has the following specific operation steps:

[0069] (1) Obtain the software failure time series required for training, and train the first part of the data to predict the failure time with five failures;

[0070] (2) Use the maximum likelihood estimation formula to construct a new fitness function to initialize model parameters;

[0071] (3) Use the beetle whisker search algorithm BAS for training, and use the beetle position update formula to update the beetle position x during training;

[0072] (4) Use the artificial bee colony algorithm ABC to search around the longhorn beetle position x, take the optimal position obtained by the ABC algorithm as the new longhorn beetle position, and repeat step (3) until the maximum number of iterations of the BAS algorithm is reached;

[0073] (5) According to the obtained optimal position and optimal fitness value, the optimal position is parameter b, and the model parameter a is obtained;

[0074] (6) Calculate the error rate of the model parameters, and compare the failure time of the next five failures predicted by the parameters with the actual values, and calculate the mean square error (MSE), thereby forming a software reliability model parameter estimation method based on the fusion of the beetle whisker search algorithm and the artificial bee colony algorithm.

[0075] Furthermore, in step (1), there is a nonlinear relationship between the failure time series and the failure number, and its parameters need to be obtained by training a large amount of data; the relationship between the software failure time series and the failure number is:

[0076] m(t)=a(1-e -bt ),

[0077] Among them, m(t) represents the expected function of the cumulative number of failures up to time t; a represents the total number of failures expected to be detected by the software after the test is completed; b represents the probability of the remaining failures being discovered, that is, the detection rate of failures generated at time t, which is a proportional constant with a range of (0,1). It can be seen that the parameters of the GO model are a and b, and their selection will affect the accuracy of the model prediction; the main purpose of this method is to estimate parameters a and b.

[0078] Furthermore, in step (2), constructing a suitable fitness function, i.e., a target optimization function, is the key to estimating the software reliability model using an intelligent optimization algorithm, and transforms the parameter estimation problem into a function optimization problem;

[0079] According to the characteristics of the software reliability model and referring to the principle of least squares method, the fitness function constructed is as follows:

[0080]

[0081] Among them, f it represents the relative error distance between the actual measured software failure number and the failure number estimated by the model, f it The smaller the value of is, the higher the accuracy of model fitting is, that is, the better the effect of parameter estimation is; m(t i ) means that in the test time period (0,t i The cumulative number of failures actually found in ]; m 0 (t i ) indicates that in the test time period (0,ti ) is the cumulative number of failures estimated by the model; t i is the time when the i-th failure occurs; i = 1, 2, ..., n, where n represents the total number of failures that occurred at the end of the test;

[0082] Before using the formula to control parameter optimization, in order to speed up the convergence of the algorithm, the fitness function of b is constructed according to the maximum likelihood estimation formula of the software reliability GO model parameters to initialize the parameter b; the maximum likelihood estimation formulas of a and b are as follows:

[0083]

[0084] Substitute the expression of the first term a into the second term and perform mathematical transformation to construct a formula that is only related to parameter b, as shown in the following formula:

[0085]

[0086] Among them; except b, all other parameters are known; therefore, the key to using intelligent optimization algorithm to estimate software reliability model is to optimize the constructed fitness function to obtain the optimal fitness value and optimal position. The optimal position is the parameter b of the software reliability model.

[0087] Furthermore, in step (3), the BAS algorithm used only requires one individual, i.e., a longhorn beetle, compared with swarm intelligence optimization algorithms such as particle swarms, and the amount of computation is greatly reduced. It is easy to implement and has a faster convergence speed and higher convergence quality. For an optimization problem in an n-dimensional space, using x l represents the left whisker coordinate, x r represents the coordinates of the right whisker, x represents the coordinates of the center of mass, and d0 represents the distance between the two whiskers;

[0088] The ratio of the beetle's step length step to the distance d0 between its two whiskers is a fixed constant:

[0089] step=c*d0,

[0090] Among them, c represents a constant, that is, the big longhorn beetle with a long distance between its two whiskers takes a big step, and the small longhorn beetle with a short distance between its two whiskers takes a small step; assuming that the direction of the longhorn beetle's head is random after it flies to the next step, the direction of the vector pointing from the right whisker to the left whisker of the longhorn beetle is also random; therefore, it is represented as a random vector:

[0091] dir=rands(n,1),

[0092] Normalize it:

[0093] dir = dir / norm (dir),

[0094] Then we can get:

[0095] x l -x r =d0*dir.

[0096] Obviously, x l and x r It can also be expressed as the center of mass expression:

[0097] x l =x+d0*dir / 2,

[0098] x r =x-d0*dir / 2.

[0099] For the function f to be optimized, find the values ​​of the left and right whiskers:

[0100] f left =f(x l ),

[0101] f right =f(x r ),

[0102] If f left <f right In order to find the minimum value of f, the longhorn beetle moves a distance step in the left whisker direction.

[0103] Right now:

[0104] x=x+step*normal(x l -x r );

[0105] If f left >f right , in order to find the minimum value of f, the longhorn beetle moves a distance step in the right direction,

[0106] That is: x = x-step*normal(x l -x r );

[0107] If the symbolic function sign is used in both cases, it can be written uniformly as:

[0108] x=x-step*normal(x l -x r )*sign(f left -f right )=x-step*dir*

[0109] sign(f left -f right)Where normal represents the normalization function.

[0110] Furthermore, in step (4), the ABC algorithm used uses fewer control parameters and has strong robustness, and performs global and local optimal solution searches in each iteration process, so the probability of finding the optimal solution is greatly increased;

[0111] The ABC algorithm is used to search around the beetle position x obtained from step (3). The main steps are:

[0112] (1) Set the parameter search interval to (0, x+1) and initialize the parameters of the ABC algorithm; assume that the solution space of the problem is D-dimensional, and the number of bees collecting and observing is S. N , the number of honey bees or observer bees is equal to the number of nectar sources;

[0113] (2) In which, the location of each nectar source represents a possible solution to the problem, the nectar volume of the nectar source corresponds to the fitness of the corresponding solution, and one honey bee corresponds to one nectar source; the honey bee corresponding to the i-th nectar source searches for a new nectar source according to the following formula:

[0114]

[0115] Where i = 1, 2, ..., S N , D=1,2,...,D, represents a random number in the interval [-1,1], k≠i; the standard ABC algorithm compares the newly generated possible solution with the original solution:

[0116] new:X i '={x i ′1,x i ′2,...,x i ' D}

[0117] old:X i ={x i1 ,x i2 ,...,x iD},

[0118] A greedy selection strategy is used to retain the better solution; each observer bee selects a nectar source based on probability, and the probability formula is:

[0119]

[0120] Among them, fit i Indicates possible solution X i The fitness value of

[0121] (3) For the selected nectar source, the observer bee searches for new possible solutions according to the above probability formula; when all the honey bees and observer bees have searched the entire search space, if the fitness value of a nectar source has not been improved within a given step, the nectar source is discarded, and the honey bees corresponding to the nectar source become scout bees, which search for new possible solutions according to the following formula; where,

[0122]

[0123] Where r represents a random number in the interval [0,1]. and Respectively represent the lower and upper bounds of the d-th dimension;

[0124] (4) Repeat the operation until the maximum number of iterations is reached, and the optimal position is obtained. This position is used as the new position of the longhorn beetle, and the position of the longhorn beetle is updated. Steps (3) and (4) are repeated until the BAS algorithm reaches the maximum number of iterations.

[0125] Furthermore, in step (5), the optimal position obtained after the optimization algorithm is run is parameter b, where a can be calculated from b:

[0126]

[0127] Among them, t n Indicates the time corresponding to the nth failure.

[0128] Furthermore, in step (6), the software reliability refers to: the probability that the software will not fail within a specified time under specified conditions;

[0129] The software reliability model refers to a reliability block diagram and mathematical model established to predict or estimate the reliability of software, and its formula is:

[0130] m(t)=a(1-e -bt ),

[0131] Where m(t) represents the expected function of the cumulative number of failures up to time t. The time series of the last five failures are calculated by the formula, and then compared with the actual value to calculate the mean square error (MSE). The formula is:

[0132]

[0133] in, Represents the predicted value, y i Indicates actual value.

[0134] The present invention discloses a method for estimating parameters of a software reliability model based on the fusion of a longhorn beetle whisker search algorithm and an artificial bee colony algorithm. The following takes the SYS1 data set as an example to provide specific steps of the implementation example:

[0135] Step 1: Set the parameters of the beetle beard search algorithm, dimension D = 1, number of iterations N = 100, step size step = 0.8, centroid coordinate x = 2*rand(D, 1); design the parameters of the artificial bee colony algorithm, the size of the bee colony, that is, the sum of the leading bees and the scout bees NP = 20, the number of nectar sources FoodNumber = 10, the maximum number of searches for a nectar source limit = 100, and the maximum number of iterations maxCycle = 10;

[0136] Step 2: Run the BAS-ABC hybrid algorithm to get the optimal position, which is parameter b, and then calculate parameter a; calculate the failure time of the last five failures using parameters a and b, and compare them with the actual failure time to calculate MSE. Output the curve of MSE, parameters a and b, and fitness value versus the number of iterations;

[0137] Step 3: Compare the predicted values ​​of parameters a and b with the true values, and calculate the error rate of the parameters; repeat the operation 20 times. Here, it can be compared with the software reliability model parameter estimation based on BAS and the software reliability model parameter estimation based on ABC. This method has a higher accuracy rate.

[0138] The above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.

Claims

1. A method for estimating parameters of a software reliability model, characterized in that: The specific steps are as follows: (1) Obtain the software failure time series required for training, and train the first part of the data to predict the failure time with five failures; (2) Use the maximum likelihood estimation formula to construct a new fitness function to initialize model parameters; In step (2), constructing the fitness function, i.e., the target optimization function, is the key to estimating the software reliability model using the intelligent optimization algorithm, transforming the parameter estimation problem into a function optimization problem; According to the characteristics of the software reliability model and referring to the principle of least squares method, the fitness function constructed is as follows: Among them, f it Represents the relative error distance between the actual measured software failure number and the failure number estimated by the model; m(t i ) means that in the test time period (0,t i The cumulative number of failures actually found in ]; m 0 (t i ) indicates that in the test time period (0,t i ) is the cumulative number of failures estimated by the model; t i is the time when the i-th failure occurs; i = 1, 2, ..., n, where n represents the total number of failures that occurred at the end of the test; Before using the formula to control parameter optimization, in order to speed up the convergence of the algorithm, the fitness function of b is constructed according to the maximum likelihood estimation formula of the software reliability GO model parameters to initialize the parameter b; the maximum likelihood estimation formulas of a and b are as follows: Substitute the expression of the first term a into the second term and perform mathematical transformation to construct a formula that is only related to parameter b, as shown in the following formula: Among them; except b, all other parameters are known; (3) Use the beetle whisker search algorithm BAS for training, and use the beetle position update formula to update the beetle position x during training; In step (3), the BAS algorithm used only requires one individual, namely, a longhorn beetle; for an optimization problem in an n-dimensional space, using x l Indicates the left whisker coordinate, x r represents the coordinates of the right whisker, x represents the coordinates of the center of mass, and d0 represents the distance between the two whiskers; The ratio of the beetle's step length step to the distance d0 between its two whiskers is a fixed constant: step=c*d0, Among them, c represents a constant, that is, the big longhorn beetle with a long distance between its two whiskers takes a big step, and the small longhorn beetle with a short distance between its two whiskers takes a small step; assuming that the direction of the longhorn beetle's head is random after it flies to the next step, the direction of the vector pointing from the right whisker to the left whisker of the longhorn beetle is also random; therefore, it is represented as a random vector: dir=rands(n,1), Normalize it: dir = dir / norm (dir), Then we get: x l -x r =d0*dir, x l and x r The expression for the center of mass is: x l =x+d0*dir / 2, x r =x-d0*dir / 2, For the function f to be optimized, find the values ​​of the left and right whiskers: f left =f(x l ), f right =f(x r ), Such as left <f right , in order to find the minimum value of f, the longhorn beetle moves a distance step in the left whisker direction, Right now: x=x+step*normal(x l -x r ); Such as left >f right , in order to find the minimum value of f, the longhorn beetle moves a distance step in the right whisker direction, That is: x = x - step * normal(x l -x r ); If the symbolic function sign is used in both cases, it can be written uniformly as: x=x-step*normal(x l -x r )*sign(f left -f right )=x-step*dir* sign(f left -f right ) Where normal represents the normalization function; (4) Use the artificial bee colony algorithm ABC to search around the position x of the longhorn beetle, and use the optimal position obtained by the ABC algorithm as the new position x of the longhorn beetle. Repeat step (3) until the maximum number of iterations of the BAS algorithm is reached; In step (4), the ABC algorithm used is highly robust, and global and local optimal solution searches are performed in each iteration process; From step (3), we obtain the position x of the longhorn beetle and use the ABC algorithm to search around it. Assume that the solution space of the problem is D-dimensional, and the number of bees collecting and observing is S. N , the number of bees collecting honey or observing bees is equal to the number of nectar sources; the position of each nectar source represents a possible solution to the problem, the nectar amount of the nectar source corresponds to the fitness of the corresponding solution, and one bee collecting honey corresponds to one nectar source; the bee collecting honey corresponding to the i-th nectar source searches for a new nectar source according to the following formula: Where i = 1, 2, ..., S N , D=1,2,...,D, represents a random number in the interval [-1,1], k≠i; the standard ABC algorithm compares the newly generated possible solution with the original solution: new:X’ i ={x′ i1 ,x′ i2 ,...,x′ iD } old:X i ={x i1 ,x i2 ,...,x iD }, A greedy selection strategy is used to retain the better solution; each observer bee selects a nectar source based on probability, and the probability formula is: Among them, fit i Indicates possible solution X i fitness value; for the selected nectar source, the observer bee searches for new possible solutions according to the above probability formula; when all the honey bees and observer bees have searched the entire search space, if the fitness value of a nectar source has not been improved within a given step, the nectar source is discarded, and the honey bees corresponding to the nectar source become scout bees, and the scout bees search for new possible solutions according to the following formula; where, Where r represents a random number in the interval [0,1]. and Respectively represent the lower and upper bounds of the dth dimension, repeat the operation until the maximum number of iterations is reached, get the optimal position, take it as the new position of the longhorn beetle, update the position of the longhorn beetle, repeat steps (3) and (4) until the BAS algorithm reaches the maximum number of iterations; (5) According to the obtained optimal position and optimal fitness value, the model parameter a is calculated, where the optimal position is the parameter b; In step (5), the optimal position obtained is parameter b, where a can be calculated from b: (6) Calculate the error rate of the model parameters, and predict the failure time of the next five failures based on the parameters, compare them with the actual values, and calculate the mean square error (MSE), thereby forming a software reliability model parameter estimation method based on the fusion of the beetle whisker search algorithm and the artificial bee colony algorithm; In step (6), the software reliability refers to: the probability that the software will not fail within a specified time under specified conditions; The software reliability model refers to a reliability block diagram and mathematical model established to predict or estimate the reliability of software, and its formula is: m(t)=a(1-e -bt ), Where m(t) represents the expected function of the cumulative number of failures up to time t. The time series of the last five failures are calculated by the formula, and then compared with the actual value to calculate the mean square error (MSE). The formula is: in, Represents the predicted value, y i Indicates actual value.