Common spare part demand fuzzy prediction method, electronic equipment and readable storage medium

By constructing the A-FCM-FN model and the combined moving average model based on FCM and FN, the problems of insufficient interpretability and low forecast accuracy in spare parts demand forecasting in the existing technology are solved, and higher forecast accuracy and interpretability are achieved. Expanded application scope.

CN118734699APending Publication Date: 2024-10-01ARMY ENG UNIV OF PLA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410859470.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing technologies have problems with insufficient explanation, safety risks, and low prediction accuracy in forecasting demand for commonly used spare parts. The application scope and accuracy of a single model are limited, and there is a lack of combined forecasting methods with high forecast accuracy.

Method used

The A-FCM-FN model based on FCM and FN is used, combined with the moving average, weighted moving average, exponential weighted moving average and autoregressive moving average models, to form a combined prediction model by inducing an ordered average operator, using both expert knowledge and data. Driven by optimizing model parameters to improve prediction accuracy and interpretability.

Benefits of technology

It improves the accuracy and interpretability of spare parts demand forecast, expands the application scope of the model, reduces the impact of single model forecast deviation, and improves the overall forecast performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734699A_ABST
    Figure CN118734699A_ABST
Patent Text Reader

Abstract

The invention discloses a common spare part demand fuzzy prediction method, electronic equipment and a readable storage medium. The method comprises the following steps: S1, constructing an A-FCM-FN model; s2, combining the A-FCM-FN model, the moving average model, the weighted moving average model, the exponential weighted moving average model and the autoregressive moving average model, and fusing and inducing an ordered average operator to form a combined prediction model; and S3, predicting the spare part demand value at the subsequent time point by using the combined prediction model. According to the prediction method, an A-FCM-FN model is constructed on the basis of FCM and FN (Fuzzy Network), and then a combined prediction model is constructed on the basis of the A-FCM-FN model. According to the method, the prediction precision is improved while the model interpretability is kept, the application range of the model is expanded by combining the prediction model, and the prediction accuracy of the model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equipment maintenance spare parts supply guarantee, and mainly to a common spare parts demand fuzzy prediction method, electronic equipment and readable storage medium. Background Art

[0002] Various influencing factors directly related to the forecast of common spare parts demand have the characteristics of randomness, diversity, time-varying, and insufficient information. It is difficult to accurately describe the complex relationship between common spare parts consumption and influencing factors during the forecasting process. Fuzzy mathematics can be used to study the uncertainty of the extension of such concepts, and can realize logical reasoning and intelligent calculation of fuzzy information on common spare parts demand without a clear mathematical model. Specifically, it mainly adopts a set of if-then rules designed based on expert knowledge or data to carry out demand forecasting. Although the fuzzy model is independent of the precise mathematical model, it can perform logical reasoning, numerical calculation and nonlinear function approximation.

[0003] It is a classic method to establish a fuzzy prediction model for common spare parts demand based on expert knowledge. In recent years, with the development of artificial intelligence technology, spare parts demand prediction models based on demand data and artificial intelligence have also been widely used. The knowledge-driven model based on rules defined by domain experts is limited by factors such as the scarcity of expert knowledge and the small scope of application of deterministic logical reasoning methods, and is insufficient in describing complex problems such as spare parts demand prediction. The data-driven model has the advantages of big data processing and relatively accurate prediction capabilities, but its shortcomings are insufficient explanatory power and security risks.

[0004] The historical data of spare parts provides quantitative values ​​of spare parts quality attributes, while experts in the field of spare parts assurance use their experience to provide "fuzzy" information. The spare parts demand forecasting model driven by both data and knowledge can simultaneously utilize expert knowledge and numerical data, effectively integrating the advantages of the two methods, improving the interpretability of the model and improving the accuracy of the forecast. Various black box forecasting models (for example, ANN-based models) are difficult to identify structures and incorporate expert knowledge; in interpretable models, relevant personnel can use linguistic terms (LT) to make their own judgments on the values ​​of each input variable in the forecasting model.

[0005] A single spare parts demand forecasting model often has certain defects and deficiencies, which limits its scope of application and accuracy. In this context, there is a need to build a combined forecasting model. The combined forecasting model can integrate the advantages of other single models, reduce the impact of uncertainty on a single model, and to a certain extent eliminate the impact of large forecast deviations of a single forecasting model in some periods, thereby improving the overall forecasting performance of the combined model. The idea of ​​the combined forecasting model is to give different weights to the forecast results of each single model through a reasonable weighting method, thereby weightedly combining them into the final forecast result.

[0006] Therefore, in the combined prediction model, the weight of each single model determines the prediction performance of the combined model. There are two existing methods for determining the combined prediction weight: one is the relatively simple fixed weight coefficient method, and the other is the complex variable weight coefficient method. The weights in the variable weight combined prediction model change over time, which can make full use of the effective information of each single model at each moment and eliminate the problem of poor prediction results caused by sample differences.

[0007] At present, there is no fuzzy forecasting method for common spare parts demand based on multiple combination models with high forecasting accuracy. Summary of the invention

[0008] In view of the above technical problems, the present invention provides a fuzzy prediction method for common spare parts demand, an electronic device and a readable storage medium. The prediction method is based on FCM and FN (Fuzzy Network), constructs an A-FCM-FN model, and then constructs a combined prediction model A-FCM-FN based on the model. The A-FCM-FN model is an explanatory model of the Mamdani structure, which improves the prediction accuracy while maintaining the interpretability of the model. The combined prediction model expands the application scope of the model and improves the prediction accuracy of the model.

[0009] The technical solution provided by the present invention is as follows:

[0010] In a first aspect, the present invention provides a method for fuzzy prediction of common spare parts demand, comprising the following steps:

[0011] S1, constructing the A-FCM-FN model;

[0012] S2, combining the A-FCM-FN model, the moving average (MA) model, the weighted moving average (WMA) model, the exponentially weighted moving average (EWMA) model and the autoregressive moving average (ARMA) model, and integrating the induced ordered average operator (IOWA) to form a combined prediction model;

[0013] S3, using the combined prediction model to predict the spare parts demand value at subsequent time points.

[0014] Further, the step S1 includes the following sub-steps:

[0015] S11, selecting input variables based on existing common spare parts numerical data and equipment support expert knowledge;

[0016] S12, generating a spare parts prediction knowledge base: constructing a language rule base and its database DB1 based on expert knowledge; generating a prediction rule base and its database DB2 from existing common spare parts numerical data through the FCM algorithm, and then optimizing the parameters of DB2 using the PSO algorithm to obtain an optimized DB2; merging the database DB1 and the optimized DB2 to obtain a single database;

[0017] S13, merging the language rule base and the prediction rule base generated in S12 based on the fuzzy network FN method;

[0018] S14, optimizing the DB1 part in the single database based on the AMPSO algorithm to obtain an optimized database;

[0019] S15, combining the merged prediction rule base and the optimization database to form an A-FCM-FN model;

[0020] S16, convert the A-FCM-FN model into SFS form.

[0021] Furthermore, in step S11, the method of selecting the input variable includes: using the Pearson correlation coefficient r P and Spearman rank correlation coefficient r R Select the input variables for the statistical variables involved.

[0022] Further, the method for generating the spare parts prediction knowledge base in step S12 is as follows:

[0023] Generate rule base: Use FCM algorithm to cluster numerical input-output data pairs, divide the value space into K segments, generate K Mamdani rules to form a rule base; engineers express knowledge into K Mamdani-type rules;

[0024] Generate database: DB1 uses symmetrical triangular membership function parameters; DB2 uses Gaussian membership function parameters, and the initial parameter value of its Gaussian membership function is determined by FCM algorithm;

[0025] Function parameter optimization: The parameters of DB1 in a single database are optimized based on the AMPSO algorithm to obtain the optimized DB1; the Gaussian membership function parameter values ​​of DB2 are optimized based on numerical input-output data pairs using the PSO algorithm.

[0026] Further, in the step S13, the step of merging the language rule base and the prediction rule base generated in S12 based on the fuzzy network FN method includes:

[0027] Organize m numerical variables x 1 , … x m into node N 11 , and after conversion through the identity node, input it into node N 1,n ;

[0028] Organize two linguistic input variables (x m+1 and x m+2 ) into node N 21 , and other input variables x m+3 , … x m+n are sequentially added to the Hierarchical Fuzzy System (HFS) structure after conversion through the identity node; until all n semantic input variables are added when reaching node N 2,n-1 ; The identity node I 1j (j = 2, …, n - 1) is used to combine N 2,n-1 with N 11 ; N 1n is used to combine the numerical input variable with the semantic input variable;

[0029] Vertically and horizontally merge the rule bases of all nodes in sequence according to the merging operation rules: First, merge the rule bases of nodes N 11 , N 21 , I 31 , … and I n,1 , and name the merged result V 1 ; Use the same method to merge I 12 , N 22 , … with I n,2 , and name the merged result V 2 ; The result of the last vertical merge of I 1,n-1 and N 2,n-1 is V n-1 ; Next, horizontally merge all the vertically merged results V i (0 < i ≤ n - 1) from front to back in sequence; The merged result is a single rule base RB, which is also the rule base of the A - FCM - FN model, and the topological expression is shown as the following formula:

[0030] [(N 11 +N 21 +I 31 +…+I n,1 )*(I 12 +N 22 +…+I n-1,2+I n,2 )*

[0031] …(I 1,n-2 +N 2,n-2 +I n,n-2 )*(I 1,n-1 +N 2,n-1 )*N 1,n ](x 1 ,…,x m+n |y),

[0032] Among them, “+” represents the vertical merge operation, “*” represents the horizontal merge operation; K represents the division of the value range space into K segments, and y represents the output value.

[0033] Further, in step S16, the method for converting the A-FCM-FN model into the SFS form is as follows: after merging the various rule bases in the A-FCM-FN model into a semantically equivalent single rule base, the A-FCM-FN model is converted into an SFS model containing m+n inputs, one output and one knowledge base RB.

[0034] Further, in step S2, the A-FCM-FN model, the moving average (MA) model, the weighted moving average (WMA) model, the exponentially weighted moving average (EWMA) model and the autoregressive moving average (ARMA) model are combined in parallel; wherein the moving average (MA) model, the weighted moving average (WMA) model, the exponentially weighted moving average (EWMA) model and the autoregressive moving average (ARMA) model are used to respectively predict the spare parts supply historical data, and the A-FCM-FN model predicts the spare parts supply historical data and equipment support expert knowledge.

[0035] Furthermore, in step S2, the prediction results of the five combined models are combined to obtain a combined prediction result through the induced ordered average operator (IOWA), and the calculation formula is as follows:

[0036]

[0037] in,( <r 1t ,x 1t >,〈r 2t ,x 2t 〉,…,〈r 5t ,x 5t 〉) is the prediction accuracy and prediction value of the five sub-models at the tth moment, r it is the prediction accuracy of the i-th seed model at the t-th time, x it represents the predicted value of the i-th seed model at time t, W = (w 1 ,w 2 ,…,w 5 ) Trepresents the weight coefficient vector of the five seed models in the combined model, and Represents r it The subscript of the i-th data is arranged in descending order.

[0038] In a second aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for fuzzy prediction of demand for common spare parts as described in the first aspect is implemented.

[0039] In a third aspect, the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the fuzzy prediction method for demand for common spare parts as described in the first aspect.

[0040] In a fourth aspect, the present invention provides a computer program product, comprising a computer program, which, when executed by a processor, implements the fuzzy prediction method for demand for common spare parts as described in the first aspect.

[0041] The beneficial effects of the present invention are as follows:

[0042] The method of the present invention uses the FCM method assisted by density peak to generate rules from data, and uses expert knowledge to generate rules; then, the two rules are synthesized by the FN method to obtain the initial structure of the A-FCM-FN model; and then the model parameters are optimized by AMPSO. The A-FCM-FN model provided by the present invention is a commonly used spare parts demand forecasting model, which improves the forecasting accuracy while maintaining the model's interpretability.

[0043] The method of the present invention is based on a combined prediction model of data clustering and IOWA operator, combines A-FCM-FN model, MA model, WMA model, EWMA model and ARMA model, expands the application scope of the combined model, and improves the prediction accuracy of the combined model. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 This is a flow chart for constructing the A-FCM-FN model described in this embodiment;

[0045] Figure 2 is the initial structure of the FN model described in this embodiment;

[0046] Figure 3 are symmetrical triangular membership function curves containing 3 and 5 language values ​​respectively in this embodiment;

[0047] Figure 4 A flow chart for constructing the combined prediction model described in this embodiment;

[0048] Figure 5 It is a simple A-FCM-FN model in this embodiment.

[0049] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0050] The present invention is further described below in conjunction with specific embodiments, but the content of the present invention is not limited thereto.

[0051] Description of the model in this application:

[0052] The moving average model MA predicts the demand value of the next one or several periods based on the demand value of the most recent periods in the time series. It is a simple and practical forecasting method that reflects future trends by calculating the average value of recent demand. The disadvantage is that it is not sensitive to changes in demand and cannot reflect the trend of changes.

[0053] The calculation formula is shown in formula (3.1).

[0054]

[0055] Among them, F t represents the predicted value of the next cycle, n represents the number of cycles involved in the calculation, A t-i represents the actual demand value of the ti-th period, and t represents the t-th period.

[0056] The weighted moving average model WMA is an improvement of the MA model, which assigns different weights to each data. When the weights are consistent, the WMA method degenerates into the MA method. The starting point of weighting is that some historical data or recent data have a great impact on the predicted value. The calculation formula is shown in formula (3.2).

[0057]

[0058] Among them, F t represents the predicted value of the next cycle, n represents the number of cycles involved in the calculation, A t-i represents the actual demand value in the ti period, w t-i In this example, let w t-i =n+1-i.

[0059] The exponentially weighted moving average model EWMA is an improvement of the WMA model. The weight of each data decreases exponentially over time, and the weight of the data farther away from the current cycle is smaller. The calculation formula is shown in formula (3.3).

[0060]

[0061] Among them, F trepresents the predicted value of the next cycle, t-1 is the number of cycles involved in the calculation, α∈(0,1] is the smoothing factor, A t-i represents the actual demand value of the ti period. From formula (0.3), we can see that (1-α) i The weight decreases exponentially. The closer the cycle number is to the predicted value, the larger the corresponding weight is. In this example, let α = 0.99.

[0062] The autoregressive moving average model ARMA integrates the autoregression (AR) method on the basis of the MA method. The forecast value is expressed by the linear function of the random error term of the historical period and the historical demand value, reflecting that the demand value of the tth period is not only related to the demand value of the previous t-1, ..., tp period, but also has a linear correlation with the deviation of the previous t-1, ..., tq period. The premise of using this method is that the given time series belongs to a stationary non-white noise series. The calculation formula of the ARMA method is shown in the formula.

[0063]

[0064] in, represents the estimated autoregressive coefficient, θ j (j=1,…,q) represents the moving average coefficient to be estimated. Formula (0.5) is called the (p,q)-order autoregressive moving average model, denoted as ARMA(p,q). The orders p and q can be determined by the autocorrelation coefficient and the partial correlation coefficient. In this example, p=2, q=2 are obtained.

[0065] like Figure 1 As shown, a common spare parts demand fuzzy prediction method provided by the present invention comprises the following steps:

[0066] S1, constructing the A-FCM-FN model;

[0067] The overall method is as follows: generate an FCM model, optimize the parameters through AMPSO, and transform it into FCM-AMPSO; after merging with the fuzzy network (FN) method and adjusting the parameters through AMPSO, it is further transformed into an A-FCM-FN model.

[0068] It should be noted that the fuzzy network (FN for short in the present invention) is an identity node introduced on the basis of the hierarchical fuzzy system (HFS). The identity node is used to convert the input variables. The input and output of the identity node are equal, which is used to assist the FN synthesis operation.

[0069] In order to clarify the performance advantages of the common spare parts fuzzy prediction model A-FCM-FN, the following Figure 5 The A-FCM-FN model shown contains 4 numerical input variables, 3 language input variables, and 1 output variable. Figure 5 The part in the dotted box is the FCM model structure.

[0070] It includes the following sub-steps:

[0071] S11, select input variable

[0072] In order to reduce the complexity of the forecasting model, only the indicators and attributes that have a greater impact on the forecast are selected. In practice, experts know that some indicators are more important than others. It is also possible to select important indicators through statistical methods, such as the Pearson correlation coefficient r P The calculation formula is shown in formula (3.5), the Spearman rank correlation coefficient r R The calculation formula is shown in formula (3.6). P With r R Both can be used to characterize the correlation between two statistical variables and can be used for the selection of input variables.

[0073]

[0074] Among them, x is the data set of the first variable, y is the data set of the second variable, and n is the sample size.

[0075]

[0076] Among them, d i is the difference in the levels of the two observed variables x and y, is the sum of squares of differences, and n is the sample size.

[0077] like Figure 2 As shown, the selected indicator x i (i=1,2,…,m+n) as input variables. These m+n input variables are divided into two categories: numerical input variables S1 and language input variables S2. S1 is composed of numerical input variables x i (i=1,2,…,m); S2 consists of semantic input variables x i (i=m+1,m+2,…,m+n). The values ​​of these variables are related to the numerical output variable z 1 (Here z 1 The values ​​of the predictor variables together constitute the input-output data pair.

[0078] The Pearson and Spearman correlation coefficients are used to show the strength of the linear relationship between each input variable and the output. The first four input variables with the highest correlation coefficients are selected as the numerical input variables x. 1 to x 4. Linguistic input variable x 5 to x 7 The selection of depends on the needs of the prediction target. The data of all 7 input variables and 1 output variable are dimensionless.

[0079] For example, a commonly used spare part in a warehouse is selected, and the weekly consumption data is taken as a sample, and the sampling time interval is 120 weeks. The spare parts index system is determined by expert knowledge combined with correlation coefficient analysis. 1 (times), running time x 2 (hours), ambient humidity x 3 (percent), ambient temperature x 4 (percentage), operator proficiency x 5 , Maintenance personnel proficiency x 6 , Repair organization maturity x 7 A total of 7 factors affecting spare parts demand are used as input variables of the A-FCM-FN model. The values ​​of the first 4 variables are derived from data records, and the values ​​of the last 3 variables are based on expert judgment. The spare parts shipment quantity y (pieces) is selected as the output variable. 118 input and output data pairs are obtained. The first 100 data pairs are taken as training data, and the last 18 data pairs are taken as test data.

[0080] S12, generate spare parts prediction knowledge base

[0081] A language rule base and its database DB1 are constructed based on expert knowledge. A prediction rule base and its database DB2 are generated from the existing common spare parts numerical data through the FCM algorithm (Fuzzy C-means clustering algorithm). Then, the parameters of DB2 are optimized using the Particle Swarm optimization (PSO) algorithm to obtain the optimized DB2. The database DB1 and the optimized DB2 are merged to obtain a single database.

[0082] As a specific embodiment, the steps of S12 are as follows:

[0083] Further, the steps of step S12 are as follows:

[0084] (1) Generate rule base

[0085] Suppose there is an input and output data pair as shown in formula (3.7), and data preprocessing such as deduplication and normalization is performed.

[0086] (x (p) ;y (p) ),p=1,2,…,N(0.8)where x (p) ∈R m ,y (p) ∈R.

[0087] The next goal is to extract rules from the data pairs described in equation (0.8) to describe the m input variables x = (x 1 ,...,x m ) T ∈R m The impact on the output variable y∈R. FCM, as a powerful unsupervised learning algorithm, can be used to extract the rules of the Mamdani structure. FCM clusters the sample data into multiple classes according to the similarity of the sample data. In the A-FCM-FN model proposed in this embodiment, the number of clusters K is a positive odd number. After clustering the sample data using the FCM algorithm, the value domain space of each numerical input variable is divided into K segments, and K Mamdani rules are generated. Figure 2 Middle Node N 11 The rule base consists of these K rules.

[0088] The semantic input and output values ​​in the linguistic input variable S2 are subjective product appraisals (SPA). For the simplicity and interpretability of the rules, the value space of these semantic input and output variables is also divided into K segments. For example, K = 3, and the semantic term set {Low, Nominal, High} is represented by positive integers 1-3. These rule bases are derived from the knowledge of experts and engineers. It is worth noting that the quality of the rule base affects the prediction accuracy of the output value to a certain extent. The nodes N associated with these semantic input variables are 1 n and N 2j (j=1,…,n-1), its rule base also belongs to the Mamdani type. And since each node has only two inputs, the number of rules in the rule base does not exceed K 2 . Identity Node I ij The rule base of (i=1,…,n; j=1,…,n-1) is also composed of K Mamdani type rules.

[0089] Each fuzzy rule has multiple antecedents, and AND implements the fuzzy "AND" operation. Because all input variables affect the output at the same time, the occurrence of the result means that the antecedents in the rule must be satisfied at the same time. For prediction problems, only the "AND" operation is required in the rules because the antecedents are different components of a single input vector.

[0090] (2) Generate database

[0091] The database is related to the type of membership function. This embodiment specifies the membership function by intuition, or it can be generated based on an algorithm. Based on the judgment of the probability density function, the node N 11The membership function of the input variable is in the shape of a Gaussian curve, and its parameter θ is the peak value of the Gaussian curve, and σ is the standard deviation. These two types of parameters can be determined by the FCM algorithm assisted by the density peak based on the sample data. In this embodiment, the model generated by the FCM algorithm is named FCM model, in which the knowledge base includes Gaussian membership functions and parameters.

[0092] For these linguistic input variables (database DB1), this embodiment uses symmetrical triangular membership function parameters (including a and α) specified by experts, such as Figure 3 There are two main reasons for this choice: one is the ease of designing such membership functions, and the other is the completeness of their semantics.

[0093] For the numerical input variables (database DB2), this embodiment uses Gaussian membership function parameters (including θ, σ) and determines the initial parameter values ​​of the Gaussian membership function through the FCM algorithm.

[0094] (3) Function parameter optimization

[0095] In this step, the parameters of the Gaussian membership function generated by the FCM algorithm are optimized. In order to improve the accuracy without affecting the interpretability of the model, the optimization does not change the structure of the FCM model, but only optimizes the parameters of the membership function of the input and output variables (θ and σ).

[0096] In this embodiment, the parameters of DB1 in a single database are optimized based on the AMPSO algorithm to obtain the optimized DB1; and the Gaussian membership function parameter values ​​of DB2 are optimized based on numerical input-output data pairs using the PSO algorithm.

[0097] It can be understood that each combination of the above input variable terms may correspond to a rule. That is, the number of rules of this A-FCM-FN model can reach K 4 Therefore, before establishing a rule base, it is necessary to limit the number of elements in the language term set to a reasonable value to avoid the exponential growth of the number of rules and the obvious deterioration of the model's interpretability.

[0098] For example, in the initial parameter setting of the A-FCM-FN model, the number of elements in all semantic term sets is specified as 3 (K=3), namely {bad, medium, good} or {small, average, big}. This also means that the number of FCM clusters is 3, x 1 、x 2 、x 3 、x 4 、z 1 , y each contain 3 Gaussian membership functions; x 5 、x 6 、x 7 、z 2 、z3 Each contains 3 symmetric triangular membership functions. 21 、N 22 、N 13 Each node contains 9 (=3 2 ) rules.

[0099] x 5 、x 6 、x 7 The three linguistic input variables are organized in a hierarchical structure. This hierarchical structure is often not easy to understand because 2 With z 3 It needs to have accurate connotation. 2 For personnel proficiency assessment, 3 To ensure force maturity assessment. As shown in Table 1, N 21 、N 22 With N 13 The rule base is derived from the knowledge of equipment support engineers and is given in the form of a Boolean matrix.

[0100] Table 1N 21 、N 22 With N 13 Rule base

[0101]

[0102] N 11 The knowledge base of the node is generated by the FCM algorithm, and its rule base contains 3 rules. The rule base of each identity node also contains 3 rules. After merging these rule bases based on the FN method, 81 rules are obtained in the rule base of the A-FCM-FN model.

[0103] S13, based on the fuzzy network FN method, the language rule base and the prediction rule base generated in S12 are merged.

[0104] As a specific embodiment, the step of merging the language rule base and the prediction rule base generated in S12 based on the FN method includes:

[0105] Set m numeric variables x 1 , …x m Organized into nodes N 11 , after conversion through the identity node, input node N 1,n ;

[0106] Two language-type input variables (x m+1 and x m+2 ) is organized into nodes N 21 , other input variables x m+3 , …x m+nAfter being transformed by the identity nodes, they are successively added to the Hierarchical Fuzzy System (HFS) structure; until node N 2,n-1 when all n semantic input variables are added; the identity node I 1j (j = 2, …, n - 1) is used to combine N 2,n-1 with N 11 ; N 1n is used to combine the numerical input variable with the semantic input variable;

[0107] Vertically and horizontally merge the rule bases of all nodes in sequence according to the merging operation rules: First, merge the rule bases of nodes N 11 , N 21 , I 31 , … and I n,1 , and name the merged result V 1 ; Use the same method to merge I 12 , N 22 , … with I n,2 , and name the merged result V 2 ; The result of the last vertical merge of I 1,n-1 and N 2,n-1 is V n-1 ; Next, horizontally merge all the vertically merged results V i (0 < i ≤ n - 1) from front to back in sequence; The merged result is a single rule base RB, which is also the rule base of the A - FCM - FN model, and the topological expression is shown as follows:

[0108] [(N 11 + N 21 + I 31 + … + I n,1 ) * (I 12 + N 22 + … + I n-1,2 + I n,2 ) *

[0109] ...(I 1,n-2 + N 2,n-2 + I n,n-2 ) * (I 1,n-1 + N 2,n-1 ) * N 1,n (x 1 , …, x m+n |y),

[0110] where, “+” represents the vertical merging operation, “*” represents the horizontal merging operation; K represents that the value range space is divided into K segments, and y represents the output value.

[0111] S14, optimizing the DB1 part in the single database based on the Adaptive Mutation Particle Swarm Optimization (AMPSO) algorithm to obtain an optimized database.

[0112] S15, combining the merged prediction rule base and the optimized database to form an A-FCM-FN model.

[0113] S16, convert the A-FCM-FN model into SFS form.

[0114] It should be noted that in step S12, DB1 and the optimized DB2 are first merged into a single database, and then the AMPSO algorithm is used to optimize the DB1 part of the single database in step S14. The reason is that the merged database has many parameters to be optimized. If AMPSO is used directly for the entire database, the calculation amount is too large and the optimization time is too long. However, by first optimizing the DB2 value through PSO, then merging the databases, and then using the AMPSO algorithm to optimize only DB1, the optimization calculation time can be reduced exponentially, and the optimization effect is not affected.

[0115] As a specific embodiment, in step S16, the method for converting the A-FCM-FN model into the SFS form is: after merging the various rule bases in the A-FCM-FN model into a semantically equivalent single rule base, the A-FCM-FN model is converted into an SFS model containing m+n inputs, one output and one knowledge base RB.

[0116] S2, build a combined prediction model

[0117] Specifically, Figure 4 As shown in the figure, the combined prediction model based on data clustering and induced ordered average operator consists of five sub-model prediction modules and a combined prediction module, including the A-FCM-FN model, the moving average (MA) model, the weighted moving average (WMA) model, the exponentially weighted moving average (EWMA) model and the autoregressive moving average (ARMA) model. It also integrates machine learning models, artificial intelligence optimization algorithms and induced ordered average operators (IOWA). The structure of the combined prediction model is shown in the figure. Figure 4 shown.

[0118] For a sample size of N {x t ,t=1,2,…,N} a time series, using Figure 4 The 5 seed models in the prediction are used to predict the data, x it It represents the predicted value of the ith seed model at time t. The prediction results of the 5-seed model are shown in formula (3.11).

[0119]

[0120] Where n = 1, 2, ..., N, i is an integer in [1-5], x in is the predicted value of the data at the nth moment by the i-th seed model. Let W = (w 1 ,w 2 ,...,w 5 ) T represents the weight coefficient vector of the five seed models in the combined model, and Let r it is the prediction accuracy of the i-th seed model at the t-th time, as shown in formula (3.12).

[0121]

[0122] Among them, x t is the actual value at time t, r it ∈[0,1]. The fitting accuracy r it Set as the sub-model prediction result x it Induced value, so that the prediction accuracy and prediction value of all five sub-models at time t constitute five two-dimensional arrays ( <r 1t ,x 1t >, <r 2t ,x 2t >,…, <r 5t ,x 5t >), the prediction accuracy r 1t ,r 2t ,…,r 5t Sorted from large to small, index(i) is used to represent the ranking number of the prediction accuracy of the i-th sub-model. According to formula (3.13), the IOWA operator combination prediction results obtained by the five sub-models at time t are calculated.

[0123]

[0124] in,( <r 1t ,x 1t >, <r 2t ,x 2t >,…, <r 5t ,x 5t >) are the prediction accuracy and prediction value of the five sub-models at the tth moment, r it is the prediction accuracy of the i-th seed model at the t-th time, x it represents the predicted value of the i-th seed model at time t, W = (w 1 ,w 2 ,...,w 5 ) Trepresents the weight coefficient vector of the five seed models in the combined model, and x r-index(it) Represents r it The subscript of the i-th data is arranged in descending order.

[0125] From the above formula, we can see that the weight of the IOWA operator combined prediction model is highly correlated with the prediction accuracy value of the sub-model at each moment. The combined prediction model based on minimizing the sum of squared prediction errors can be solved by the Lagrange multiplier method to obtain the weight coefficient W when the sum of squared prediction errors is minimized.

[0126] Specifically, 118 spare parts shipment values ​​are arranged in chronological order to form a time series, the first 100 data are taken as training data, and the last 18 data are taken as test data. They are used as input values ​​of the MA model, WMA model, EWMA model and ARMA model respectively, and the prediction values ​​corresponding to the last 18 data pairs of the four sub-models are obtained.

[0127] The 18 predicted values ​​of the MA model, WMA model, EWMA model, ARMA model and A-FCM-FN model, as well as the 18 actual data values, are used as the input of the IOWA operator to solve the weight coefficient W when the sum of squares of the prediction errors is minimized.

[0128] At this point, all the parameters of each sub-model and IOWA operator are obtained, and the combined prediction model is constructed, which can be used to predict the spare parts demand value at subsequent time points.

[0129] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the fuzzy prediction method for the demand of common spare parts.

[0130] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0131] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the fuzzy prediction method for common spare parts demand provided by the above methods.

[0132] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the common spare parts demand fuzzy prediction method provided by the above methods.

[0133] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0134] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0135] 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 common spare parts demand fuzzy forecasting method, It is characterized in that The following steps are involved: S1, constructing the A-FCM-FN model; S2, combining the A-FCM-FN model, the moving average model MA, the weighted moving average model WMA, the exponentially weighted moving average model EWMA and the autoregressive moving average model ARMA, and integrating the induced ordered average operator IOWA to form a combined prediction model; S3, using the combined prediction model to predict the spare parts demand value at subsequent time points.

2. The fuzzy prediction method for common spare parts demand according to claim 1, It is characterized in that The step S1 comprises the following sub-steps: S11, selecting input variables based on existing common spare parts numerical data and equipment support expert knowledge; S12, generating a spare parts prediction knowledge base: constructing a language rule base and its database DB1 based on expert knowledge; generating a prediction rule base and its database DB2 from existing common spare parts numerical data through the FCM algorithm, and then optimizing the parameters of DB2 using the PSO algorithm to obtain an optimized DB2; merging the database DB1 and the optimized DB2 to obtain a single database; S13, merging the language rule base and the prediction rule base generated in S12 based on the fuzzy network FN method to obtain a merged prediction rule base; S14, optimizing the DB1 part in the single database based on the AMPSO algorithm to obtain an optimized database; S15, combining the merged prediction rule base and the optimized database to form an A-FCM-FN model; S16, convert the A-FCM-FN model into SFS form.

3. The fuzzy prediction method for common spare parts demand according to claim 2, It is characterized in that In step S11, the method of selecting input variables includes: using the Pearson correlation coefficient r P and Spearman rank correlation coefficient r R Select the input variables for the statistical variables involved.

4. The fuzzy prediction method for common spare parts demand according to claim 2, It is characterized in that The method for generating the spare parts prediction knowledge base in step S12 is as follows: Generate rule base: Use FCM algorithm to cluster numerical input-output data pairs, divide the value space into K segments, and generate K Mamdani rules to form a rule base; Generate database: DB1 uses symmetrical triangular membership function parameters; DB2 uses Gaussian membership function parameters, and the initial parameter value of its Gaussian membership function is determined by FCM algorithm; Function parameter optimization: The parameters of DB1 in a single database are optimized based on the AMPSO algorithm to obtain the optimized DB1; the Gaussian membership function parameter values ​​of DB2 are optimized based on numerical input-output data pairs using the PSO algorithm.

5. The fuzzy prediction method for common spare parts demand according to claim 1, It is characterized in that In step S13, the step of merging the language rule base and the prediction rule base generated in step S12 based on the fuzzy network FN method includes: Set m numeric variables x 1 , …x m Organized into nodes N 11 , after conversion through the identity node, input node N 1,n ; Enter two language types into the variable x m+1 and x m+2 Organized into nodes N 21 , other input variables x m+3 , …x m+n After the identity node conversion, they are added to the hierarchical fuzzy system structure in sequence; until node N 2,n-1 All n semantic input variables are added when the identity node I 1j For combination N 2,n-1 With N 11 ; N 1n Used to combine numerical input variables with semantic input variables; where j = 2,…,n-1; Vertically and horizontally merge the rule bases of all nodes in sequence according to the merging operation rules: First, merge the rule bases of nodes N 11 , N 21 , I 31 , … and I n,1 . Name the merged result V 1 ; then use the same method to merge I 12 , N 22 , … and I n,2 . Name the merged result V 2 ; the result of the last vertical merge of I 1,n-1 and N 2,n-1 is V n-1 ; next, horizontally merge all the vertically merged results V i in sequence from front to back, 0 < i ≤ n - 1; the merged result is the rule base of a single A-FCM-FN model, and the topological expression is shown as follows: [(N 11 +N 21 +I 31 +…+I n,1 )*(I 12 +N 22 +…+I n-1,2 +I n,2 )* …(I 1,n-2 +N 2,n-2 +I n,n-2 )*(I 1,n-1 +N 2,n-1 )*N 1,n ](x 1 ,…,x m+n |y), Among them, "+" represents the vertical merge operation, "*" represents the horizontal merge operation, K represents the value range space is divided into K segments, and y represents the output value.

6. The fuzzy prediction method for common spare parts demand according to claim 1, It is characterized in that In step S2, the A-FCM-FN model, the moving average model MA, the weighted moving average model WMA, the exponentially weighted moving average model EWMA and the autoregressive moving average model ARMA are combined in parallel; wherein the moving average model MA, the weighted moving average model WMA, the exponentially weighted moving average model EWMA and the autoregressive moving average model ARMA are used to respectively predict the spare parts supply historical data, and the A-FCM-FN model predicts the spare parts supply historical data and equipment support expert knowledge.

7. The fuzzy prediction method for common spare parts demand according to claim 1, It is characterized in that In step S2, the prediction results of the five combined models are combined to obtain a combined prediction result through the induced ordered average operator (IOWA), and the calculation formula is as follows: in,( <r 1t ,x 1t >, <r 2t ,x 2t >,…, <r 5t ,x 5t >) are the prediction accuracy and prediction value of the five sub-models at the tth moment, r it is the prediction accuracy of the i-th seed model at the t-th time, x it represents the predicted value of the i-th seed model at time t, W = (w 1 ,w 2 ,…,w 5 ) T represents the weight coefficient vector of the five seed models in the combined model, and x r-index(it) Represents r it The subscript of the i-th data is arranged in descending order.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the method for fuzzy prediction of demand for common spare parts as described in any one of claims 1 to 7 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for fuzzy prediction of demand for common spare parts as claimed in any one of claims 1 to 7 is implemented.

10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the method for fuzzy prediction of demand for common spare parts as claimed in any one of claims 1 to 7 is implemented.