Equipment maintenance cost estimation method and device
Through the equipment maintenance cost estimation model based on machine learning and the use of multi-objective steady-state genetic algorithm and other technologies, the problems of low efficiency and poor accuracy of equipment maintenance cost estimation in the existing technology are solved, and more accurate maintenance cost prediction and more efficient are achieved. production management.
Patent Information
- Application Number
- CN202410939622.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-15
AI Technical Summary
The existing technology has problems in estimating equipment maintenance costs such as low efficiency, difficulty in ensuring accuracy, and inability to cope with complex equipment systems, resulting in inaccurate estimation results.
An equipment maintenance cost estimation model based on machine learning is adopted. By obtaining the operation logs and maintenance records of the equipment, the multi-objective steady-state genetic algorithm, adaptive fractal exploration optimization algorithm, autoencoder and support vector machine algorithm of kernel density estimation are used to perform feature analysis. Extraction and classifier training to build accurate prediction models.
It improves estimation accuracy, reduces human factor interference, saves manpower and time costs, can handle complex equipment systems, provides more accurate maintenance cost estimates, supports data-driven decision-making, and improves equipment reliability and production efficiency.
Smart Images

Figure CN118469158B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for estimating equipment maintenance costs. Background Art
[0002] As the scale of enterprises continues to expand and the complexity of equipment increases, accurately predicting equipment maintenance costs is crucial to the company's financial planning and production management.
[0003] At present, enterprises usually use traditional methods to estimate equipment maintenance costs, which mainly rely on manual experience and qualitative judgment. This method has the following problems:
[0004] First of all, the manual estimation process is time-consuming and labor-intensive, requiring a lot of manpower and time investment, and is inefficient.
[0005] Secondly, accuracy is difficult to guarantee because it relies on personal experience and subjective judgment and is easily affected by human factors.
[0006] In addition, as the types and quantity of equipment increase, the difficulty of maintenance cost estimation is also increasing. Traditional methods may not be able to cope with complex equipment systems and diverse maintenance needs, resulting in inaccurate estimation results. Summary of the invention
[0007] One or more embodiments of the present specification provide a method and device for estimating equipment maintenance costs, which are used to solve the technical problems raised by the background technology.
[0008] One or more embodiments of this specification adopt the following technical solutions:
[0009] One or more embodiments of this specification provide a method for estimating equipment maintenance costs, the method comprising:
[0010] Obtaining a pre-trained equipment maintenance cost estimation model, wherein the equipment maintenance cost estimation model is a training model based on machine learning;
[0011] Acquire relevant data of the current device, wherein the relevant data includes an operation log and a maintenance record of the current device;
[0012] The relevant data of the current equipment is input into the equipment maintenance cost estimation model to obtain the maintenance cost of the current equipment.
[0013] One or more embodiments of this specification provide a device for estimating equipment maintenance costs, including:
[0014] at least one processor; and,
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0017] Obtaining a pre-trained equipment maintenance cost estimation model, wherein the equipment maintenance cost estimation model is a training model based on machine learning;
[0018] Acquire relevant data of the current device, wherein the relevant data includes an operation log and a maintenance record of the current device;
[0019] The relevant data of the current equipment is input into the equipment maintenance cost estimation model to obtain the maintenance cost of the current equipment.
[0020] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:
[0021] Improved estimation accuracy: The machine learning-based training model can use big data and machine learning algorithms to more accurately predict equipment maintenance costs. Compared with traditional methods, it reduces the interference of human factors and improves the accuracy of estimation results.
[0022] Save manpower and time costs: By using pre-trained models, there is no need for time-consuming manual estimation processes, saving a lot of manpower and time resources. This enables companies to conduct financial planning and production management more efficiently.
[0023] Dealing with complex equipment systems: This approach can handle the complexity that comes with the increase in the types and number of equipment. The model can learn and adapt to the operation logs and maintenance records of different types of equipment, provide more accurate maintenance cost estimates, and help companies better cope with diverse maintenance needs.
[0024] Support data-driven decision-making: By acquiring equipment-related data in real time and making estimates, enterprises can make decisions based on accurate maintenance cost data, such as formulating reasonable maintenance budgets, optimizing equipment maintenance plans, etc., thereby improving equipment reliability and production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:
[0026] Figure 1A flowchart of a method for estimating equipment maintenance costs provided for one or more embodiments of this specification;
[0027] Figure 2 A schematic diagram of the structure of an equipment maintenance cost estimation device provided in one or more embodiments of this specification. DETAILED DESCRIPTION
[0028] The embodiments of this specification provide a method and device for estimating equipment maintenance costs.
[0029] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0030] Figure 1 This is a flow chart of a method for estimating equipment maintenance costs provided in one or more embodiments of this specification, and the process can be executed by an equipment maintenance cost estimation system. Certain input parameters or intermediate results in the process allow manual intervention and adjustment to help improve accuracy.
[0031] The method steps of the embodiment of this specification are as follows:
[0032] S102, obtaining a pre-trained equipment maintenance cost estimation model, wherein the equipment maintenance cost estimation model is a training model based on machine learning.
[0033] Furthermore, before obtaining the pre-trained equipment maintenance cost estimation model described in the embodiments of this specification, the operation logs and maintenance records of each device can be collected, and the operation logs and maintenance records of each device can be stored in a structured format as training data, wherein the operation logs of each device include the operation time, temperature, vibration frequency, current and pressure of each device model, and the maintenance records of each device include the number of failures, number of maintenance and the most recent maintenance cost of each device model; the training data is then labeled and divided into different maintenance cost levels; then, the labeled training data is expanded based on a generative adversarial network of a multi-objective steady-state genetic algorithm to obtain expanded labeled training data; thereafter, a pre-set adaptive fractal exploration optimization algorithm is used to extract features from the expanded labeled training data to obtain feature vector data; then, the feature vector data is subjected to feature dimensionality reduction by a pre-set autoencoder algorithm to obtain reduced dimensionality feature vector data; finally, the reduced dimensionality feature vector data is input into a support vector machine algorithm based on kernel density estimation to train a classifier to obtain an equipment maintenance cost estimation model.
[0034] It should be noted that the above contents of the embodiments of this specification can be implemented through the following specific implementation schemes:
[0035] Data collection and storage: Install sensors or monitoring systems to collect operation log data such as the operating time, temperature, vibration frequency, current, and pressure of each device. Establish a maintenance record database to record information such as the number of failures, maintenance times, and the cost of the most recent maintenance of each device. Clean and preprocess the collected data to remove noise and outliers, and store it in a structured format for subsequent processing.
[0036] Data labeling and classification: Label the training data according to the maintenance cost and classify them into different maintenance cost levels. This can be done manually or automatically with machine learning algorithms.
[0037] Data augmentation: Generative adversarial networks (GANs) based on multi-objective steady-state genetic algorithms are used to augment the labeled training data. GANs can generate new similar data, increase the diversity of training data, and thus improve the accuracy of the model.
[0038] Feature extraction: Use a pre-set adaptive fractal exploration optimization algorithm to extract features from the expanded and labeled training data. This algorithm can automatically discover characteristic patterns in the data and extract representative feature vector data.
[0039] Feature dimensionality reduction: The extracted feature vector data is subjected to feature dimensionality reduction through a pre-set autoencoder algorithm. Feature dimensionality reduction can reduce the dimension of the data, improve computational efficiency, and retain important feature information.
[0040] Model training: The reduced feature vector data is input into the support vector machine algorithm based on kernel density estimation for classifier training. The support vector machine algorithm can learn the classification boundaries between different maintenance cost levels based on the input feature vector data, thereby realizing the estimation of equipment maintenance costs.
[0041] Model evaluation and optimization: Use the test set to evaluate the trained equipment maintenance cost estimation model and calculate indicators such as accuracy and recall. Based on the evaluation results, optimize and adjust the model, such as adjusting the model parameters, improving the data preprocessing method, or trying other machine learning algorithms.
[0042] Model deployment and application: Deploy the trained equipment maintenance cost estimation model into the actual production environment to estimate the equipment maintenance cost in real time. The model can be integrated into the equipment management system or monitoring system to provide decision support, help enterprises rationally arrange maintenance resources, and reduce maintenance costs.
[0043] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0044] Data richness: By collecting the operation logs and maintenance records of each device, the source of training data is enriched, providing more comprehensive and accurate information for subsequent model training.
[0045] Data structuring and storage: The operation logs and maintenance records of each device are stored in a structured format to facilitate data management and use, and improve data operability and query efficiency.
[0046] Labeling and classification: Labeling the training data and classifying it into different repair cost levels helps the model better learn and understand the characteristics of the data, improving the accuracy of the model and the classification effect.
[0047] Data augmentation: The generative adversarial network based on the multi-objective steady-state genetic algorithm augments the labeled training data, which increases the diversity of the data, reduces the risk of overfitting, and improves the generalization ability of the model.
[0048] Feature extraction: Use the adaptive fractal exploration optimization algorithm to extract features from the expanded labeled training data to obtain more representative and discriminative feature vector data, which helps the model better capture the key features of the data.
[0049] Feature dimensionality reduction: The feature vector data is reduced in dimension through the autoencoder algorithm, which reduces the dimension of the data and the computational cost, while avoiding the dimensionality disaster and improving the training efficiency and performance of the model.
[0050] Training optimization: The reduced-dimensional feature vector data is input into the support vector machine algorithm based on kernel density estimation for classifier training to obtain the equipment maintenance cost estimation model. This classifier has good performance when processing small samples and high-dimensional data, and can improve the accuracy and stability of the model.
[0051] Cost estimation accuracy: Combining the above beneficial effects, the final equipment maintenance cost estimation model can more accurately predict the equipment maintenance cost, provide more reliable decision support for enterprises, and help enterprises optimize maintenance budgets, improve equipment reliability and production efficiency.
[0052] Adaptability and scalability: This method has good adaptability and scalability and can be applied to equipment of different types and sizes. With the addition of new data and continuous optimization of the model, the accuracy and reliability of cost estimation can be further improved.
[0053] Furthermore, when the generative adversarial network based on the multi-objective steady-state genetic algorithm described in the embodiments of this specification expands the labeled training data to obtain the expanded labeled training data, the following specific implementation scheme can be used:
[0054] Initializing the Generator and the discriminator The network parameters of the generator By learning the mapping function The random noise Transformed into a point in data space, the discriminator Through the function Evaluate data points Is it real data or data generated by the generator? The generator and discriminator are represented as:
[0055] ;
[0056] ;
[0057] in, and are the parameters of the generator and the discriminator respectively; and are the weights of their respective networks; and is the bias term; is the Sigmoid activation function, which is used to map the output to interval;
[0058] For each individual in the multi-objective steady-state genetic algorithm, define the hyperparameter vector , is the learning rate, is the training ratio of the generator to the discriminator, and the selection state of the hyperparameter is expressed as:
[0059] ,in, It is The hyperparameter vector of individuals, and are the learning rate and training ratio of the i-th individual respectively;
[0060] The generator and discriminator are trained alternately, including:
[0061] The generator generates realistic equipment maintenance data, and the discriminator distinguishes between real data and generated data. After each round of training, the accuracy of the discriminator and the quality of the generated data are used as feedback. The goal of adversarial training is to minimize the difference between the generated data and the real data. The cross entropy is used as the loss function, and the manifold regularization term is used. The generated data maintains an intrinsic structure similar to the real data in multidimensional space, and the loss function is expressed as:
[0062] ;
[0063] ;
[0064] in, and They are the loss functions of the discriminator and the generator respectively; is the batch size; It is real data; is the random noise of the input; is the discriminator's judgment result on the real data; is the discriminator's judgment result on the generated data; is the manifold regularization term; is a regularization coefficient, which is used to control the influence of the manifold regularization term;
[0065] Manifold Regularization Term The calculation method is expressed as:
[0066] ;
[0067] in, is the number of random noise samples; yes norm, used to calculate the Euclidean distance between generated data;
[0068] The calculation method of the term is expressed as:
[0069] ;
[0070] in, is the dimension of generated data; and Respectively represent and A random noise input is passed through the generator After that, corresponding to The value of the dimension output;
[0071] Using a multi-objective steady-state genetic algorithm and Optimize to find the minimize ,at the same time maximize Hyperparameters , the formula is:
[0072] ;
[0073] in, is the new hyperparameter after optimization by the multi-objective steady-state genetic algorithm; is the hyperparameter before optimization; It is the optimization function of the multi-objective steady-state genetic algorithm, which updates the hyperparameters through selection, crossover and mutation operations;
[0074] Steady-state genetic selection is performed during the iteration process to select the best performing individuals as the parents of the next generation based on the accuracy of the discriminator and the quality of the generated data, keeping the population size unchanged;
[0075] Repeat the above steps until the preset stop iteration condition is met to obtain the expanded labeled training data.
[0076] It should be noted that the above contents of the embodiments of this specification can be implemented through the following implementation schemes:
[0077] S1. Data preparation: Collect original equipment maintenance data, including operation logs and maintenance records. Preprocess and annotate the data, such as classifying maintenance costs into different levels.
[0078] S2. Initialize the generator G and discriminator D: Initialize the neural network structure that constructs the generator G and the discriminator D.
[0079] S3. Define the hyperparameter vector θ: determine the learning rate α and the training ratio β of the generator and the discriminator.
[0080] S4. Alternately train the generator and the discriminator: The generator generates realistic equipment maintenance data. The discriminator distinguishes between real data and generated data. The loss function is calculated based on the accuracy of the discriminator and the quality of the generated data. and The network parameters of the generator and discriminator can be updated using the back-propagation algorithm.
[0081] S5. Optimizing hyperparameter θ: Using a multi-objective steady-state genetic algorithm and Optimize. Update the hyperparameter vector θ through selection, crossover, and mutation operations. Update the network parameters of the generator and discriminator.
[0082] S6. Repeat iteration: Repeat S4 and S5 until a preset stop iteration condition is met. The stop iteration condition may be reaching the maximum number of iterations, the loss function converges, or the quality of the generated data meets the requirements.
[0083] S7. Expand and annotate training data: Use the trained generator to generate new equipment maintenance data and merge it with the original data. Annotate the newly generated data to expand the scale of annotated training data.
[0084] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0085] Improve data quality: By augmenting the labeled training data with generative adversarial networks (GANs), more realistic equipment maintenance data can be generated that have similar statistical characteristics to real data, helping to improve the quality and diversity of training data.
[0086] Enhance model generalization ability: Using expanded labeled training data for training can help the model better learn the different patterns and characteristics of equipment maintenance, thereby improving the generalization ability of the model and enabling it to more accurately predict the maintenance costs of unknown equipment.
[0087] Optimize hyperparameters: A multi-objective steady-state genetic algorithm is used to optimize the loss functions of the discriminator and generator to find the optimal hyperparameter settings and improve the performance and efficiency of the model.
[0088] Manifold regularization: Through the manifold regularization term R(G), the generated data maintains an intrinsic structure similar to the real data in multidimensional space, which helps to improve the quality and authenticity of the generated data.
[0089] Improve training efficiency: Steady-state genetic selection can keep the population size unchanged during the iteration process, reducing the amount of calculation and time cost and improving the efficiency of the algorithm.
[0090] Better adaptability: This method can adapt to equipment maintenance data of different sizes and types. By expanding the labeled training data, the adaptability and accuracy of the model in different scenarios can be improved.
[0091] Provide decision support: The expanded and labeled training data can be used to train a more accurate equipment maintenance cost estimation model, provide more reliable decision support for enterprises, optimize maintenance resource allocation and budget management, and improve production efficiency and economic benefits.
[0092] Furthermore, the learning rate described in the embodiments of this specification is The update method is expressed as: , It is the adjustment amount obtained based on the mutation operation in the multi-objective steady-state genetic algorithm. is the updated learning rate, is the learning rate before updating; δ is calculated as: , It is the preset coefficient of variation, which is used to control the amplitude of the learning rate change; Is generated A random number in the interval.
[0093] Furthermore, the embodiment of this specification uses a preset adaptive fractal exploration optimization algorithm to extract features from the expanded labeled training data to obtain feature vector data, including:
[0094] Set the initial parameter set to , including the weights of the neural network and bias , and initialize the search granularity and search radius ;
[0095] From the current parameter point , generating a set of self-similar exploration points ,in, Instructions exploration points, using sine and cosine functions to generate points distributed on the sphere of high-dimensional space, simulating the distribution of fractal structures in nature. The distribution of the exploration points is in the form of for:
[0096] ;
[0097] in, is the number of exploration points generated in the current iteration, is the current search granularity, is the current search radius;
[0098] The set of all exploration points in the current iteration is ,in, is the number of iterations, is the index of the exploration point. For each exploration point, the loss function value of each exploration point is calculated. , and normalize the loss function value of each exploration point so that the sum of the loss function values of each exploration point is 1. The normalization process is expressed as:
[0099] , Represents the exploration point The normalized weight of , n is an integer greater than 0, indicating the total number of exploration points;
[0100] Calculate the information entropy of the current exploration point set , expressed as:
[0101] ;
[0102] definition and Based on information entropy The adjustment functions are used to adjust the search granularity and search radius respectively. The calculation method is expressed as:
[0103] ;
[0104] ;
[0105] in, is the preset information entropy threshold;
[0106] According to the loss function value of the current exploration point, the search granularity is adaptively and dynamically adjusted. If the loss of multiple exploration points is low, the search granularity is reduced to refine the search; if the loss is high, the search granularity is increased to speed up the search, including:
[0107] According to the loss function At the Discovery Point Dynamically adjust the search granularity The way is expressed as:
[0108] ;
[0109] in, is the reduction factor, is the expansion factor, The parameter is The loss value when It is an indicator based on historical search efficiency;
[0110] Metrics based on historical search efficiency The calculation method is:
[0111] ;
[0112] in, represents the number of historical iterations, The initial value for the sum calculation;
[0113] Calculate the loss function value of all exploration points and select the point with the smallest loss as the new current point, expressed as:
[0114] ;
[0115] in, is the optimal parameter exploration point for the current iteration, is the transformation function;
[0116] Transformation function middle represents a point in the original parameter space, represents a set of transformation parameters, and the transformation function The purpose is to map the original parameter space to a new space so that the search can be performed in the new space. The transformation function is expressed as:
[0117]
[0118] in, is a point based on the current and a set of transformation parameters The dynamic adjustment function is used to control the local enlargement or reduction of the parameter space. The algorithm can improve the search efficiency and accuracy of the algorithm in different areas by dynamically adjusting the representation of the parameter space. The algorithm can more effectively adapt to the local characteristics of the loss function by dynamically transforming the parameter space.
[0119] Dynamically adjust functions The strength of the transformation is adjusted according to the loss value of the current search point and the loss value of its surrounding points. The calculation method is expressed as:
[0120] ;
[0121] in, is a regulating factor, It is the inverse of the loss gradient covariance matrix of the current exploration point set, which is used to measure the heterogeneity of the loss function changes in different directions in the parameter space. L(θ) is the loss value of θ.
[0122] According to the effect of the current iteration, the search radius is dynamically adjusted to optimize the breadth and depth of the search to more effectively explore the parameter space. The search radius is dynamically adjusted according to the degree of improvement of the loss function. The search radius adjustment method is expressed as:
[0123] ;
[0124] Among them, the improvement , is the adjusted search radius, is the expansion factor, is the reduction factor, It is a set threshold used to determine whether the loss function meets the preset improvement;
[0125] The above steps are iterated repeatedly until the preset stop iteration condition is met to obtain the feature vector data of the expanded labeled training data.
[0126] It should be noted that the above contents of the embodiments of this specification can be implemented through the following implementation schemes:
[0127] Initialization: Set the initial parameter set , including the weight w and bias b of the neural network. Initialize the search granularity and search radius .
[0128] Iteration process:
[0129] - From the current parameter point Generate a set of self-similar exploration points .
[0130] -Calculate the loss function value for each exploration point .
[0131] -Normalize the loss function value of the exploration point to get the weight of the exploration point .
[0132] -Calculate the information entropy H(S) of the current exploration point set based on the loss function value.
[0133] -Determine the adjustment value of the search granularity according to the information entropy H(S).
[0134] -Calculate the loss function value of all exploration points according to the new search granularity.
[0135] - Choose the exploration point with the least loss As the optimal parameter exploration point for the current iteration.
[0136] - Updated search radius .
[0137] Repeat iteration: Repeat the above steps until the stopping condition is met. The stopping condition can be reaching the maximum number of iterations, the loss function converges to a certain degree, or other set conditions.
[0138] Feature vector data extraction: During the iteration process, according to the current parameter point The feature vector data of the expanded labeled training data can be extracted by comparing with the previous optimal parameter exploration point. The feature vector data can be the output of the neural network, the change of parameters, or other data related to feature extraction.
[0139] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0140] Adaptive feature extraction: The adaptive fractal exploration optimization algorithm can automatically adjust the search granularity and search radius according to the characteristics of the expanded and labeled training data, so as to better adapt to different data characteristics and improve the accuracy and efficiency of feature extraction.
[0141] Improve feature quality: By dynamically adjusting the search granularity and search radius, the algorithm can explore the data space more carefully and find the optimal feature representation, thereby improving the quality and representativeness of the feature vector data.
[0142] Search efficiency optimization: The algorithm dynamically adjusts the search strategy based on the feedback of the loss function and information entropy. When the loss function value is low or the information entropy is high, the search granularity is reduced to refine the search; when the loss function value is high or the information entropy is low, the search granularity is increased to speed up the search. This adaptive adjustment can improve search efficiency and reduce unnecessary computational overhead.
[0143] Handling complex feature spaces: For high-dimensional data or data with complex feature distribution, the algorithm can effectively explore the feature space and discover potential patterns and features. Through the distribution of fractal structures and the generation of self-similar exploration points, the algorithm can adapt to data structures of different scales and complexities.
[0144] Fast convergence: By selecting the point with the smallest loss as the new current point and dynamically adjusting the search radius, the algorithm can accelerate the convergence process. This helps to find the optimal feature vector data in a shorter time and improve the performance and efficiency of the algorithm.
[0145] Furthermore, the search radius adjustment method described in the embodiment of this specification also adjusts the search radius through a nonlinear adjustment factor, and the search radius adjustment method is also expressed as:
[0146] ;
[0147] is the search radius before adjustment, is the nonlinear adjustment factor;
[0148] , is the preset threshold, Indicates the number of historical iterations.
[0149] Furthermore, the form distribution of the exploration points described in the embodiments of this specification is It can also be adjusted based on the fractal dimension D. The distribution of the exploration points is It is expressed as:
[0150] ;
[0151] Among them, the fractal dimension D is used to affect the distribution density of the exploration points in space and how to adjust the distribution of these points according to the fractal theory.
[0152] Furthermore, the embodiment of this specification performs feature dimension reduction on the feature vector data by a preset autoencoder algorithm to obtain reduced dimension feature vector data, including:
[0153] Initialize the parameters of the autoencoder model, including the weights and biases of the encoder and decoder;
[0154] The input feature vector data is converted into a low-dimensional quantum state representation through the encoder, and the quantum state is processed by the decoder to try to reconstruct the original feature vector. Specifically:
[0155] For the autoencoder, the forward propagation is expressed as:
[0156] ;
[0157] ;
[0158] ;
[0159] in, is the input feature vector, is the encoded low-dimensional feature, is the coding feature after quantum information conversion, is the feature vector reconstructed after decoding, They are the weight matrices of the encoder, quantum information conversion layer, and decoder respectively; are the bias vectors of the encoder, quantum information conversion layer, and decoder respectively, is the ReLU activation function;
[0160] After encoding and before decoding, the quantum state is processed by the quantum information conversion algorithm, and the quantum non-locality is used to optimize the representation of information, which is expressed as:
[0161] ;
[0162] ;
[0163] in, represents the tensor product of the encoded features and the quantum state, The unit operation that represents the quantum state conversion is the unitary transformation in quantum computing. represents the initial quantum state, represents the tensor product of quantum gate operations, represents the operation of the trace part on the environment state to extract classical information from the quantum state;
[0164] Quantum state conversion operations This is achieved by applying specific quantum gates, expressed as:
[0165] ;
[0166] in, represents the operation of quantum state conversion on the encoding feature, Indicates the first quantum gates on elements, wherein the quantum gates are designed according to a specific quantum algorithm, yes No. elements, is the dimension of the encoded feature vector; The tensor product representing the quantum gate operation ensures that each encoded feature element is transformed through a quantum gate;
[0167] Calculate the loss between the reconstructed feature vector and the original feature vector to evaluate the dimensionality reduction and reconstruction effect of the model. The loss function is used to evaluate the difference between the reconstructed feature vector and the original input. The loss function is calculated as follows:
[0168] ;
[0169] in, is the loss function; is the dimension of the feature vector; is the original eigenvector elements; is the first feature vector to be reconstructed elements;
[0170] Back propagation updates the model parameters by calculating the gradient of the loss function with respect to each parameter, expressed as:
[0171] , L is the loss function, the gradient calculation relies on the chain rule and is used for parameter update;
[0172] According to the result of the loss function, the gradient of the model parameters is calculated through the back propagation algorithm, and the model parameters are updated to optimize the performance of the encoder and decoder, which is expressed as:
[0173] ;
[0174] ;
[0175] ;
[0176] ;
[0177] ;
[0178] ;
[0179] in, , , Respectively represent the updated weight matrices of the encoder, quantum information conversion layer, and decoder, , , are the bias vectors of the updated encoder, quantum information conversion layer, and decoder respectively, represents the learning rate;
[0180] Repeat the above steps until the preset stop iteration condition is met to obtain the reduced dimension feature vector data.
[0181] It should be noted that the above contents of the embodiments of this specification can be implemented through the following implementation schemes:
[0182] S1. Initialize the parameters of the autoencoder model, including the weights and biases of the encoder, quantum information conversion layer, and decoder.
[0183] S2. Input the feature vector data into the encoder and obtain the encoded low-dimensional features through forward propagation calculation. .
[0184] S3. After encoding and before decoding, the quantum state is processed using a quantum information conversion algorithm, E(x) is subjected to a tensor product operation with the quantum state, and then converted through quantum gate operations.
[0185] S4. Input the coding feature C(E(x)) after quantum information conversion into the decoder, and obtain the reconstructed feature vector D(C(E(x))) through forward propagation calculation.
[0186] S5. Calculate the loss between the reconstructed feature vector D(C(E(x))) and the original feature vector, and use the loss function to evaluate the dimensionality reduction and reconstruction effects of the model.
[0187] S6. Calculate the gradient of the loss function with respect to each parameter, including the weights and biases of the encoder, quantum information conversion layer, and decoder, through the back-propagation algorithm.
[0188] S7. Use the learning rate based on the gradient of the loss function Update the model parameters, including the weights and biases of the encoder, quantum information conversion layer, and decoder.
[0189] S8. Repeat S2 to S7 for multiple iterations until a preset stop iteration condition is met.
[0190] The conditions for stopping the iteration can be: reaching a predetermined number of iterations, the value of the loss function converges to a stable level, or other conditions defined according to the specific problem.
[0191] In each iteration, the learning rate can be adjusted as needed The value of is used to control the speed of parameter update. Usually, some adaptive learning rate adjustment strategies, such as momentum-based methods or annealing strategies, can be used to improve the efficiency and stability of training.
[0192] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0193] Feature dimensionality reduction: By converting feature vector data into a low-dimensional quantum state representation, feature dimensionality reduction is achieved. This helps reduce the dimension of the data, lowers computational costs, and improves the efficiency of subsequent processing.
[0194] Quantum advantage: Using quantum information conversion algorithms to process quantum states and exploit quantum non-locality to optimize the representation of information. Quantum computing has characteristics such as parallel processing and quantum entanglement, which may provide faster and more efficient solutions than traditional computing in some cases.
[0195] Model optimization: The gradient of the loss function relative to the model parameters is calculated through the back-propagation algorithm, and the model parameters are updated. This helps to optimize the performance of the encoder and decoder and improve the effects of dimensionality reduction and reconstruction.
[0196] Automatic learning: This method does not require manual feature selection or feature engineering, but automatically learns the representation and relationship of features through the model. This helps to discover hidden patterns and features in the data and improve the generalization ability of the model.
[0197] Flexibility: The method can be applied to various types of feature vector data and can be adapted to different tasks and datasets by adjusting the parameters of the autoencoder model and the quantum information conversion algorithm.
[0198] Furthermore, in the embodiment of this specification, the dimension-reduced feature vector data is input into a support vector machine algorithm based on kernel density estimation to train a classifier to obtain an equipment maintenance cost estimation model, including:
[0199] The dimension-reduced feature vector data is used as input, and a kernel function is selected. It is a function used in support vector machines to map input data to a high-dimensional feature space. The kernel function is:
[0200] ;
[0201] in, and Represent two input feature vectors, is the width parameter of the Gaussian kernel function; express and The Euclidean distance between
[0202] The value of is determined by cross-validation to ensure that the kernel function can effectively handle the nonlinear relationship in the data. The calculation method is:
[0203] ;
[0204] in, is the sample size, is the feature dimension, It is samples, is the mean vector of all samples, express and The Euclidean distance between
[0205] According to the different levels of maintenance costs, different penalty weights are set for each category to deal with the data imbalance problem. Higher weights are given to high-cost maintenance cases. This is achieved by adjusting the loss function of the support vector machine, which is expressed as:
[0206] ;
[0207] in, It is The penalty weight for misclassification of samples is, for high-cost classes, Larger, It is The true category labels of samples, is the normal vector of the hyperplane, is the bias term, represents the hinge loss function;
[0208] Penalty Weight It is adjusted according to the inverse proportion of the frequency of the categories to pay more attention to the minority categories. It is calculated as:
[0209] ;
[0210] in, Indicates category Frequency of occurrence in the training dataset;
[0211] The selected kernel function and the set weights are used to train the support vector machine classifier using the training data set. During the training process, the model parameters are optimized by cross-validation. The model parameters include regularization parameters and kernel function parameters. In addition, the parameter optimization during the training process relies on the gradient descent method to minimize the loss function. , weight The update rule is:
[0212] ;
[0213] in, and Respectively represent the weights before and after the update, is the learning rate, controlling the update step size, is the loss function Relative to weight The gradient of
[0214] The calculation method is expressed as:
[0215] ;
[0216] Among them, the conditions represents samples that are misclassified or on one side of the decision boundary, is the gradient term corresponding to each such sample;
[0217] Repeat the above steps until the preset stop iteration condition is met to obtain the equipment maintenance cost estimation model.
[0218] It should be noted that the conditions It is used to identify which samples are support vectors, that is, those samples that are on the decision boundary or misclassified, for which the interval between the model's prediction and the actual label is less than 1. And, For all conditions that meet The samples are accumulated, that is, the contribution of all support vectors and misclassified samples to the loss function is calculated.
[0219] It should be noted that the above contents of the embodiments of this specification can be implemented through the following implementation schemes:
[0220] S1. Initialize model parameters: select appropriate kernel function and kernel function parameters, determine regularization parameters and learning rate.
[0221] S2. Input reduced dimension feature vector data: Use the reduced dimension feature vector data obtained by the autoencoder algorithm as input.
[0222] S3. Select kernel function and kernel function parameters: Select a suitable kernel function according to the characteristics of the data, and determine the width parameter σ of the kernel function through cross-validation.
[0223] S4. Set penalty weights: Set appropriate penalty weights for different categories based on the maintenance cost level , to deal with the problem of data imbalance.
[0224] S5. Train the support vector machine classifier: Use the selected kernel function, set weights and training dataset, optimize the model parameters through cross-validation, and update the weights using gradient descent.
[0225] S6. Calculate the gradient of the loss function: In each iteration, the gradient of the loss function with respect to the weights is calculated based on the samples that are misclassified or on one side of the decision boundary. .
[0226] S7. Update weights: Update the weights w according to the gradient and learning rate to iteratively optimize the model.
[0227] S8. Repeat iteration: Repeat S2 to S7 until the preset stop iteration condition is met.
[0228] S9. Obtaining an equipment maintenance cost estimation model: After completing the iteration, a trained equipment maintenance cost estimation model is obtained.
[0229] The conditions for stopping the iteration can be: reaching a preset maximum number of iterations, the loss function converges to a certain threshold, or other specific stopping conditions are met, such as the model performance meets the requirements or no longer has significant improvement.
[0230] In practical applications, the above scheme can be adjusted and optimized according to specific circumstances. For example, you can try different kernel functions and parameters, adjust the setting method of penalty weights, or use more complex optimization algorithms to improve the performance and training efficiency of the model. At the same time, proper preprocessing and feature engineering of the data can also further improve the effect of the model.
[0231] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0232] Improved estimation accuracy: By using kernel density estimation and support vector machine algorithms, nonlinear relationships in the data can be better captured, thereby improving the estimation accuracy of equipment maintenance costs.
[0233] Handling data imbalance: Setting penalty weights for different repair cost levels can handle data imbalance, making the model pay more attention to a small number of high-cost repair cases and improving the predictive ability for these cases.
[0234] Optimize model parameters: Optimizing model parameters, including regularization parameters and kernel function parameters, through cross-validation can improve the generalization ability and performance of the model.
[0235] Adapting to different data: Choosing a suitable kernel function can make the model adapt to different data characteristics and distributions, and improve the flexibility and robustness of the model.
[0236] Reduce overfitting: The introduction of regularization terms can reduce the risk of overfitting of the model, avoid overfitting of training data, and improve the model's predictive ability on new data.
[0237] Automated training: The entire training process can be automated, reducing manual intervention and subjectivity, and improving training efficiency and accuracy.
[0238] S104, obtaining relevant data of the current device, wherein the relevant data includes an operation log and a maintenance record of the current device.
[0239] S106, inputting the relevant data of the current equipment into the equipment maintenance cost estimation model to obtain the maintenance cost of the current equipment.
[0240] Furthermore, the relevant data of the current device in the embodiment of this specification may also include the operating environment data of the current device. The same type of devices can operate in different environments, that is, the operating environment data of the current device has a certain impact on the equipment maintenance cost estimation model.
[0241] It should be noted that the above content can be implemented through the following specific implementation plans:
[0242] Data collection and integration: In addition to collecting the operation logs and maintenance records of the current equipment, also obtain the operating environment data of the equipment, such as temperature, humidity, dust concentration, vibration level, etc. Ensure the accuracy and completeness of this data, and integrate it with the operation logs and maintenance records to form a comprehensive data set.
[0243] Model training: Use machine learning-based algorithms, such as decision trees, random forests, neural networks, etc., to train using the extracted features and corresponding maintenance cost data. During the training process, techniques such as cross-validation can be used to evaluate the performance of the model and select the optimal model parameters. Continuously optimize the model until satisfactory performance indicators are achieved.
[0244] Model fusion: Considering the impact of operating environment data on equipment maintenance costs, a model fusion method can be used. For example, a model based on operating environment data and a model based on the characteristics of the equipment can be trained separately. Then, the prediction results of the two models are fused to obtain the final maintenance cost estimate. The fusion method can be a simple weighted average or a more complex fusion strategy.
[0245] Real-time input and prediction: In actual applications, the operating environment data of the current equipment is obtained in real time and input into the trained equipment maintenance cost estimation model. The model will predict the maintenance cost of the current equipment in real time based on the input real-time data and the previously learned patterns.
[0246] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0247] Improved estimation accuracy: The machine learning-based training model can use big data and machine learning algorithms to more accurately predict equipment maintenance costs. Compared with traditional methods, it reduces the interference of human factors and improves the accuracy of estimation results.
[0248] Save manpower and time costs: By using pre-trained models, there is no need for time-consuming manual estimation processes, saving a lot of manpower and time resources. This enables companies to conduct financial planning and production management more efficiently.
[0249] Dealing with complex equipment systems: This approach can handle the complexity that comes with the increase in the types and number of equipment. The model can learn and adapt to the operation logs and maintenance records of different types of equipment, provide more accurate maintenance cost estimates, and help companies better cope with diverse maintenance needs.
[0250] Support data-driven decision-making: By acquiring equipment-related data in real time and making estimates, enterprises can make decisions based on accurate maintenance cost data, such as formulating reasonable maintenance budgets, optimizing equipment maintenance plans, etc., thereby improving equipment reliability and production efficiency.
[0251] It should be noted that in order to ensure the continuity and efficiency of production, enterprises need to monitor the operating status of equipment in real time and accurately predict maintenance costs in order to carry out effective financial and production planning. However, traditional equipment maintenance cost estimation methods often rely on manual experience and qualitative judgment, which is not only time-consuming and labor-intensive, but also difficult to guarantee accuracy and efficiency. In addition, with the increase in the types and number of equipment, the difficulty of maintenance cost estimation is also increasing. In this context, using machine learning technology to estimate equipment maintenance costs has become a feasible and efficient solution. Machine learning can learn the operating laws and failure modes of equipment from a large amount of equipment operation data. By building an accurate prediction model, it can realize the automation and intelligent estimation of maintenance costs, which can not only improve the accuracy of estimation and reduce maintenance costs, but also improve the operating efficiency of equipment and the overall benefits of production.
[0252] This specification embodiment proposes a method for estimating equipment maintenance costs based on machine learning, the content of which is as follows:
[0253] Data collection and annotation (S1): By collecting information such as equipment operation logs, maintenance records, operator reports, and sensor data, and storing them in a structured format (such as JSON), including attributes such as equipment model, operating time, temperature, vibration frequency, current, pressure, number of failures, number of repairs, and the cost of the most recent repair, the data is manually annotated and divided into different maintenance cost levels.
[0254] Data augmentation (S2): A generative adversarial network based on a multi-objective steady-state genetic algorithm is used to augment the training data. The generator generates realistic data and the discriminator distinguishes between real and generated data, and the hyperparameters are optimized to improve the algorithm stability and the diversity of generated data.
[0255] Feature extraction model training (S3): A neural network with an adaptive fractal exploration optimization algorithm is used for feature extraction. This algorithm does not rely on gradient information and optimizes the neural network parameters through a self-similar exploration pattern to improve the probability of escaping the local optimal solution and the efficiency of parameter optimization.
[0256] Feature dimension reduction model training (S4): The improved autoencoder algorithm is used for feature dimension reduction. This algorithm is based on the concept of quantum information conversion and reduces the data dimension through encoders and decoders while maintaining data features, reducing computational complexity and improving model generalization ability.
[0257] Classifier model training (S5): The support vector machine algorithm based on kernel density estimation is used for classifier training. The kernel function is optimized to process nonlinear separable data, and the data imbalance problem is handled by penalizing weights. The model parameters are optimized using cross-validation and gradient descent methods.
[0258] Equipment maintenance cost estimation (S6): The trained model is applied to new samples to predict the equipment maintenance cost level through feature extraction, dimension reduction and classifier model.
[0259] This specification embodiment proposes a method for estimating equipment maintenance costs based on machine learning, the main steps of which are as follows:
[0260] S1. Data collection and annotation
[0261] The data collected in the embodiments of this specification are derived from the operation logs, maintenance records, operator reports and sensor data of the equipment, and the data are stored in a structured format, preferably in JSON format.
[0262] In one embodiment, the attributes of the data include:
[0263] ax: device model, indicating the specific model and category of the device;
[0264] ay: operating time, in hours, indicating the total operating time of the equipment since the last maintenance;
[0265] az: temperature reading in degrees Celsius, indicating the ambient temperature when the device is running;
[0266] aa: vibration frequency, in Hz, indicating the vibration frequency of the equipment when it is running;
[0267] ab: Current reading in amperes, indicating the current when the device is running;
[0268] ac: pressure reading in Pascal, indicating the pressure value when the equipment is running;
[0269] ad: number of failures, indicating the number of times the device has failed since the last maintenance;
[0270] ae: Maintenance times, indicating the cumulative maintenance times of the equipment;
[0271] af: the cost of the most recent repair, in monetary units, indicating the cost of the most recent repair of the equipment;
[0272] ag: Maintenance cost level, marked as low, medium, and high, indicating the level of equipment maintenance cost.
[0273] It should be emphasized that this embodiment is only used to illustrate a data format and type of the present invention. In actual applications, the attributes of data are usually more than 10 attributes, and the number of data attributes may reach dozens or even hundreds.
[0274] Furthermore, the collected data is labeled. The labeling method in the embodiment of the specification may be manual labeling. In one embodiment, the labeled categories include the levels of maintenance costs: low, medium, and high, a total of 3 categories.
[0275] S2. Data expansion
[0276] It is understandable that in the embodiments of this specification, the collection, acquisition, labeling and preprocessing of training data are time-consuming and labor-intensive, and insufficient training samples can easily lead to poor generalization ability of the model, while affecting the accuracy of the model. The embodiments of this specification adopt a generative adversarial network based on a multi-objective steady-state genetic algorithm. The structure of the generative adversarial network based on the multi-objective steady-state genetic algorithm is based on a generative adversarial network. The generator included is responsible for generating realistic equipment maintenance data, and the discriminator attempts to distinguish between the generated data and the real data. The embodiments of this specification optimize the hyperparameters in the training process of the generative adversarial network based on the multi-objective steady-state genetic algorithm to find the optimal training strategy, improve the stability of the algorithm and the diversity of generated data.
[0277] Specifically, the training process of the generative adversarial network algorithm based on the multi-objective steady-state genetic algorithm is as follows:
[0278] S201, Initialize Generator and the discriminator The network parameters of the generator Aims to learn the mapping function The random noise Transformed into a point in data space, the discriminator Then through the function Evaluate data points Whether it is real data or data generated by the generator, the principle of the generator and the discriminator can be expressed as:
[0279] ;
[0280] ;
[0281] In the formula, and are the parameters of the generator and the discriminator respectively; and are the weights of their respective networks; and is the bias term; is the Sigmoid activation function, which is used to map the output to interval.
[0282] S202. In a multi-objective steady-state genetic algorithm, an initial population is set for each hyperparameter, including various possible learning rates and training ratios. Specifically, for each individual in the genetic algorithm, a hyperparameter vector is defined. ,in is the learning rate, is the training ratio of the generator to the discriminator, then the possible selection state of the hyperparameters can be expressed as:
[0283] ;
[0284] In the formula, It is The hyperparameter vector of individuals; and are the learning rate and training rate of the individual respectively.
[0285] Furthermore, the learning rate The update method can be expressed as:
[0286] ;
[0287] In the formula, It is the adjustment amount obtained based on the mutation operation in the genetic algorithm, and its calculation method is as follows:
[0288] ;
[0289] In the formula, It is the preset coefficient of variation, which is used to control the amplitude of the learning rate change; Is generated Random numbers in the interval; Is used to ensure It can be positive or negative, so as to increase or decrease the learning rate. Preferably, the learning rate The initial value of was set to 0.001, and the coefficient of variation is set to 0.05
[0290] S203, using the generator and the discriminator to alternately train, the generator tries to generate realistic equipment maintenance data, and the discriminator tries to distinguish between real data and generated data. After each round of training, the accuracy of the discriminator and the quality of the generated data are used as feedback. The goal of adversarial training is to minimize the difference between the generated data and the real data. Preferably, the embodiment of this specification uses cross entropy as the loss function, and uses the manifold regularization term In order to make the generated data keep the internal structure similar to the real data as much as possible in the multidimensional space, the loss function can be expressed as:
[0291] ;
[0292] ;
[0293] In the formula, and They are the loss functions of the discriminator and the generator respectively; is the batch size; It is real data; is the random noise of the input; is the discriminator's judgment result on the real data; is the discriminator's judgment result on the generated data; is the manifold regularization term; is the regularization coefficient, which controls the influence of the manifold regularization term. Preferably, the regularization coefficient is set to 10.
[0294] Furthermore, the manifold regularization term The calculation method can be expressed as:
[0295] ;
[0296] In the formula, is the number of random noise samples; yes Norm, used to calculate the Euclidean distance between generated data.
[0297] Further, The calculation method of the term can be expressed as:
[0298] ;
[0299] In the formula, is the dimension of generated data; and Respectively represent and A random noise input is passed through the generator After that, corresponding to Dimensional output value.
[0300] S204, using genetic algorithm and The goal of optimization is to find Minimize, while Hyperparameters to maximize , can be expressed as a formula:
[0301] ;
[0302] ;
[0303] In the formula, is the new hyperparameter optimized by genetic algorithm; is the hyperparameter before optimization; is the optimization function of the genetic algorithm, which updates the hyperparameters through selection, crossover, and mutation operations.
[0304] S205. Perform steady-state genetic selection during the iteration process, that is, select the individuals with the best performance as the parents of the next generation according to the objective function, that is, the accuracy of the discriminator and the quality of the generated data, and keep the population size unchanged.
[0305] S206, repeat the above steps until the preset stop iteration condition is met, which means that the model training is completed. In one embodiment, the preset stop iteration condition is reaching a preset maximum number of iterations, preferably, the preset maximum number of iterations is set to 1000 times.
[0306] S3. Feature extraction model training
[0307] The embodiments of this specification use a 3-layer fully connected neural network for feature extraction. In the formula, some existing solutions use neural networks for feature extraction. In some neural network structures, traditional neural network parameter optimization algorithms, such as gradient descent and its variants, mainly rely on calculating the gradient of the loss function with respect to each parameter to guide the direction of parameter update. However, such methods are prone to fall into local optimal solutions when faced with complex, non-convex loss surfaces.
[0308] The embodiments of this specification adopt a neural network feature extraction model based on an adaptive fractal exploration optimization algorithm, which is inspired by the self-similarity and ubiquitous characteristics of fractal structures in nature, as well as the complexity and self-organization in fractal theory. Fractal structures are widely present in nature, such as the shape of snowflakes, the outline of mountains, etc., which show similarities at different scales. The embodiments of this specification introduce this self-similarity principle into the parameter optimization process of the neural network, and explore the parameter space of the neural network by simulating the generation process of fractal structures in nature, thereby achieving efficient optimization of the weights and biases of the neural network.
[0309] The adaptive fractal exploration optimization algorithm proposed in the embodiments of this specification does not rely on gradient information, but uses a self-similar exploration mode to search in the parameter space, so that the algorithm has a higher probability of jumping out of the local optimal solution and exploring a wider parameter space. In addition, the adaptive fractal exploration optimization algorithm adopts an adaptive mechanism to dynamically adjust the granularity and direction of the search according to the current search state, so as to adapt to different task scenarios more flexibly, and can effectively improve the parameter optimization efficiency of the neural network.
[0310] Specifically, the training process of the neural network feature extraction model based on the adaptive fractal exploration optimization algorithm is as follows:
[0311] S301, select an initial parameter set, randomly generate a set of parameters as the starting point according to the structure of the neural network, and set the initial granularity and search radius of the exploration. Specifically, the initial parameter set is set to , including the weights of the neural network and bias At the same time, initialize the search granularity and search radius Preferably, the parameter is set to 0.1, is set to 1, the parameter set The initialization method is random initialization.
[0312] S302: In each iteration, a group of self-similar exploration points are generated according to the current parameter point to generate a fractal structure. The exploration points are distributed around the current point according to fractal rules to form a pattern similar to the fractal structure in nature. Specifically, from the current parameter point , generating a set of self-similar exploration points ,in Instructions exploration points, using sine and cosine functions to generate points distributed on a high-dimensional space sphere to simulate the distribution of fractal structures in nature. In one embodiment, the exploration points are distributed in the following form:
[0313] ;
[0314] In the formula, is the number of exploration points generated in the current iteration, is the current search granularity, is the current search radius.
[0315] Further, and The two terms actually define the position of a point on a unit circle in a high-dimensional parameter space. To make the adjustment, the distribution of the exploration points can be richer and more flexible. At the same time, the exploration points are not only distributed on the standard circular trajectory, but can be based on the fractal dimension. In another embodiment, the embodiment of this specification adopts fractal dimension To adjust the angle distribution, the calculation method can be expressed as:
[0316] ;
[0317] In the formula, Represents the fractal dimension, which affects the distribution density of the exploration points in space and how to adjust the distribution of these points according to fractal theory.
[0318] S303, using a dynamic information entropy feedback mechanism to optimize the search process of neural network parameters, by calculating the information entropy of the current exploration point set, dynamically adjusting the search strategy to respond to the complexity changes in the parameter space, dynamically adjusting the search granularity and direction, and enhancing the global search capability and adaptability of the algorithm, so as to more effectively explore the parameter space. Specifically, let the set of all exploration points in the current iteration be ,in is the number of iterations, is the index of the exploration point. Further, for each exploration point, calculate its loss function value , and normalize the loss function values so that their sum is 1. The normalization process can be expressed as:
[0319] , Represents the exploration point The normalized weight of n is an integer greater than 0, indicating the total number of exploration points.
[0320] Furthermore, the information entropy of the current exploration point set is calculated , which can be expressed as:
[0321] ;
[0322] Furthermore, define and Based on information entropy The adjustment functions are used to adjust the search granularity and search radius respectively. The calculation method can be expressed as:
[0323] ;
[0324] ;
[0325] In the formula, is a preset information entropy threshold. Preferably, the information entropy threshold Set to 0.8.
[0326] S304. Adaptively and dynamically adjust the search granularity according to the loss function value of the current exploration point. In one embodiment, if the loss of multiple exploration points is low, the search granularity is reduced to refine the search; if the loss is high, the search granularity is increased to speed up the search. Specifically, the adaptive and dynamic adjustment of the search granularity can ensure that the search granularity is refined when a better solution is found, and is increased when it is difficult to find a better solution to speed up the exploration. At the Discovery Point Dynamically adjust the search granularity can be expressed as:
[0327] ;
[0328] In the formula, is the reduction factor, is the expansion factor, The parameter is The loss value when is an indicator based on historical search efficiency. Preferably, the reduction factor is set to 0.9, the expansion factor is set to 1.1.
[0329] Furthermore, based on the historical search efficiency index The calculation method is as follows:
[0330] ;
[0331] In the formula, represents the number of historical iterations, The initial value for the sum calculation.
[0332] S305. Calculate the loss function values of all exploration points and select the point with the smallest loss as the new current point, which can be expressed as:
[0333] ;
[0334] In the formula, is the optimal parameter exploration point for the current iteration, is the transformation function.
[0335] Furthermore, dynamically adjusting the function By dynamically adjusting the representation of the parameter space, the algorithm's search efficiency and accuracy in different areas are improved. By dynamically transforming the parameter space, the algorithm can more effectively adapt to the local characteristics of the loss function. Specifically, the dynamic nonlinear transformation can be regarded as the use of an adaptive mirror in the parameter space. The adaptive mirror dynamically adjusts its shape according to the local characteristics of the loss function, thereby achieving local magnification or reduction of the search space and accelerating the algorithm to find the optimal solution. Furthermore, the transformation function middle represents a point in the original parameter space, represents a set of transformation parameters, and the transformation function The purpose is to map the original parameter space to a new space so that the search can be performed in the new space. The transformation function can be expressed as:
[0336] ;
[0337] In the formula, is a point based on the current and a set of transformation parameters A dynamic adjustment function is used to control the local enlargement or reduction of the parameter space.
[0338] Furthermore, dynamically adjusting the function The strength of the transformation is adjusted according to the loss value of the current search point and the loss value of its surrounding points. The calculation method can be expressed as:
[0339] ;
[0340] In the formula, is a regulating factor, It is the inverse of the loss gradient covariance matrix of the current exploration point set, which is used to measure the heterogeneity of the loss function changes in different directions in the parameter space.
[0341] S306. According to the effect of the current iteration, dynamically adjust the search radius to optimize the breadth and depth of the search to more effectively explore the parameter space. Specifically, the search radius is dynamically adjusted according to the degree of improvement of the loss function, and the adjustment method can be expressed as:
[0342] ;
[0343] In the formula, , is a threshold value set to determine whether the loss function has been significantly improved. Preferably, the expansion factor is set to 1.05, the reduction factor is set to 0.95, Set to 0.01.
[0344] In order to make the adjustment of the search radius more detailed, so that the search radius can be adaptively adjusted according to the actual improvement of the loss function, in another embodiment, a nonlinear adjustment factor is defined. Consider the improvement of loss function With threshold The relationship can be expressed as:
[0345] ;
[0346] The search radius is adjusted by the nonlinear adjustment factor, which can be expressed as:
[0347] ;
[0348] S307, repeat the above steps until the preset stop iteration condition is met, which means the model training is completed. In one embodiment, the preset stop iteration condition is reaching a preset maximum number of iterations, preferably, the preset maximum number of iterations is set to 1000 times.
[0349] S4. Feature dimensionality reduction model training
[0350] The data after feature extraction is input into the feature dimensionality reduction model to train the feature dimensionality reduction model. The embodiment of this specification adopts an improved autoencoder algorithm, which is based on the concept of quantum information conversion. It reduces the dimension of the data as much as possible while maintaining the data characteristics, thereby reducing the computational complexity of subsequent classifier training and improving the generalization ability of the model. The improved autoencoder algorithm includes two parts: an encoder and a decoder. The role of the encoder is to map the input high-dimensional feature vector data to a low-dimensional space, and the decoder attempts to reconstruct the original data from this low-dimensional space.
[0351] Specifically, the training process of the improved autoencoder algorithm is as follows:
[0352] S401, initialize the parameters of the autoencoder model, including the weights and biases of the encoder and decoder. Preferably, the embodiment of this specification adopts a random initialization method to set the parameters of the autoencoder model; and the network layers of the encoder and decoder are each composed of 3 fully connected layers, and the number of nodes in each layer is 256, 128, and 64 respectively.
[0353] S402, the input feature vector data is first converted into a low-dimensional quantum state representation by the encoder; then, the quantum state is processed by the decoder to try to reconstruct the original feature vector. Specifically, for the autoencoder, the forward propagation method can be expressed as:
[0354] ;
[0355] ;
[0356] ;
[0357] In the formula, is the input feature vector; Represents the encoded low-dimensional features; Indicates the coding characteristics after quantum information conversion; represents the reconstructed feature vector after decoding; They are the weight matrices of the encoder, quantum information conversion layer, and decoder respectively; are the bias vectors of the encoder, quantum information conversion layer, and decoder respectively; is the ReLU activation function.
[0358] S403, after encoding and before decoding, the quantum state is processed by a quantum information conversion algorithm, and the quantum non-locality is used to optimize the information representation, which can be expressed as:
[0359] ;
[0360] ;
[0361] In the formula, represents the tensor product of the encoded features and the quantum state; The unit operation that represents the quantum state conversion is the unitary transformation in quantum computing; represents the initial quantum state; Represents the tensor product of quantum gate operations; Represents the trace operation on the environment state to extract classical information from the quantum state.
[0362] In one embodiment, the quantum state conversion operation By applying specific quantum gates, it can be expressed as:
[0363] ;
[0364] In the formula, represents the operation of quantum state conversion on the encoding feature; Indicates the first a quantum gate on an element, wherein the quantum gate is designed according to a specific quantum algorithm, preferably using quantum Fourier transform; yes No. elements; is the dimension of the encoded feature vector; The tensor product representing the quantum gate operation ensures that each encoded feature element is transformed through a quantum gate.
[0365] S404, calculating the loss between the reconstructed feature vector and the original feature vector to evaluate the dimensionality reduction and reconstruction effect of the model. The loss function is used to evaluate the difference between the reconstructed feature vector and the original input. The loss function is calculated as follows:
[0366] ;
[0367] In the formula, is the loss function; is the dimension of the feature vector; is the original eigenvector elements; is the first feature vector to be reconstructed elements.
[0368] Furthermore, back propagation updates the model parameters by calculating the gradient of the loss function with respect to each parameter, which can be expressed as:
[0369] ;
[0370] The above gradient calculation relies on the chain rule and is used for parameter update.
[0371] In one embodiment, As an example, the loss function is relative to the encoder weights The gradient calculation can be expressed as:
[0372] ;
[0373] In the formula, is the input feature vector The encoded features obtained by the encoder; It is the feature vector after the encoding feature is converted by quantum information and reconstructed by the decoder; represents the partial derivative of the encoded feature with respect to the encoder weights.
[0374] S405. According to the result of the loss function, the gradient of the model parameters is calculated by the back propagation algorithm, and the model parameters are updated to optimize the performance of the encoder and decoder, which can be expressed as:
[0375] ;
[0376] ;
[0377] ;
[0378] ;
[0379] ;
[0380] ;
[0381] In the formula, , , Respectively represent the updated weight matrices of the encoder, quantum information conversion layer, and decoder, , , are the bias vectors of the updated encoder, quantum information conversion layer, and decoder respectively, represents the learning rate. Preferably, the learning rate Set to 0.01.
[0382] S406, repeat the above steps until the preset stop iteration condition is met, which means the model training is completed. In one embodiment, the preset stop iteration condition is reaching a preset maximum number of iterations, preferably, the preset maximum number of iterations is set to 1000 times.
[0383] S5. Classifier model training
[0384] The reduced-dimensional data is input into a classifier for classifier training. The embodiment of this specification adopts a support vector machine algorithm based on kernel density estimation. The support vector machine algorithm based on kernel density estimation is a supervised learning algorithm that relies on the working principle of the support vector machine to maximize the separation of data points of different categories by finding a hyperplane. Based on the kernel density estimation, the embodiment of this specification optimizes the kernel function of the support vector machine to better process nonlinearly separable data.
[0385] Specifically, the training process of the support vector machine algorithm based on kernel density estimation is as follows:
[0386] S501, taking the low-dimensional feature vector as input, selecting a kernel function, the kernel function is a function used in a support vector machine to map input data to a high-dimensional feature space. In one embodiment, the kernel function is as follows:
[0387] ;
[0388] In the formula, and Represent two input feature vectors respectively; is the width parameter of the Gaussian kernel function; express and The Euclidean distance between .
[0389] In this embodiment, The value of is determined by cross-validation to ensure that the kernel function can effectively handle the nonlinear relationship in the data. The calculation method is:
[0390] ;
[0391] In the formula, is the sample size; is the characteristic dimension; It is samples; is the mean vector of all samples; express and The Euclidean distance between .
[0392] S502: According to different levels of maintenance costs, different penalty weights are set for each category to handle the data imbalance problem. In one embodiment, a higher weight is given to high-cost maintenance cases, which is achieved by adjusting the loss function of the support vector machine, which can be expressed as:
[0393] ;
[0394] In the formula, It is The penalty weight for misclassification of samples is, for high-cost classes, Larger; It is The true category labels of samples; is the normal vector of the hyperplane, and is the bias term; Represents the hinge loss function (also known as hinge loss).
[0395] Furthermore, the penalty weight It is adjusted according to the inverse proportion of the frequency of the categories to pay more attention to the minority categories. It is calculated as:
[0396] ;
[0397] In the formula, Indicates category The frequency of occurrence in the training dataset.
[0398] S503, using the selected kernel function and the set weights, train the support vector machine classifier using the training data set. During the training process, the model parameters are optimized by cross-validation, and the model parameters include regularization parameters and kernel function parameters. Moreover, the parameter optimization during the training process relies on the gradient descent method to minimize the loss function , weight The update rule is:
[0399] ;
[0400] In the formula, and Respectively represent the weights before and after the update; is the learning rate, which controls the update step size; is the loss function Relative to weight The gradient of . Preferably, the learning rate is set to 0.01.
[0401] Further, The calculation method can be expressed as:
[0402] ;
[0403] In the formula, the condition Represents samples that are misclassified or on one side of the decision boundary; is the gradient term corresponding to each such sample.
[0404] S504, repeat the above steps until the preset stop iteration condition is met, which means that the model training is completed. In one embodiment, the preset stop iteration condition is reaching a preset maximum number of iterations, preferably, the preset maximum number of iterations is set to 1000 times.
[0405] S6. Equipment maintenance cost estimation
[0406] Use the trained model to process new samples to complete the task of estimating equipment maintenance costs. In one embodiment, for the newly collected equipment operation data, the trained feature extraction model is used to extract key feature vectors reflecting the equipment status from the original data. Furthermore, the extracted high-dimensional feature vectors are then processed by the trained feature dimension reduction model to obtain a more refined feature representation. Furthermore, the feature vectors that have undergone dimension reduction processing are input into the trained classifier model to predict the cost level of equipment maintenance. Furthermore, based on the classification results and the pre-defined cost level correspondence table, the enterprise can obtain the predicted value of the maintenance cost of the equipment, so as to carry out corresponding financial and production planning.
[0407] Figure 2 A schematic diagram of a device for estimating equipment maintenance costs provided for one or more embodiments of this specification includes:
[0408] at least one processor; and,
[0409] a memory communicatively connected to the at least one processor; wherein,
[0410] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0411] Obtaining a pre-trained equipment maintenance cost estimation model, wherein the equipment maintenance cost estimation model is a training model based on machine learning;
[0412] Acquire relevant data of the current device, wherein the relevant data includes an operation log and a maintenance record of the current device;
[0413] The relevant data of the current equipment is input into the equipment maintenance cost estimation model to obtain the maintenance cost of the current equipment.
[0414] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
Claims
1. A method for estimating equipment maintenance costs, characterized in that: include: Obtaining a pre-trained equipment maintenance cost estimation model, wherein the equipment maintenance cost estimation model is a training model based on machine learning; Acquire relevant data of the current device, wherein the relevant data includes an operation log and a maintenance record of the current device; Inputting relevant data of the current equipment into the equipment maintenance cost estimation model to obtain the maintenance cost of the current equipment; Before obtaining the pre-trained equipment maintenance cost estimation model, the method further includes: By collecting the operation log and maintenance record of each device, and storing the operation log and maintenance record of each device in a structured format as training data, the operation log of each device includes the operation time, temperature, vibration frequency, current and pressure of each device model, and the maintenance record of each device includes the number of failures, the number of maintenance and the most recent maintenance cost of each device model; Labeling the training data and dividing them into different maintenance cost levels; The labeled training data is expanded by a generative adversarial network based on a multi-objective steady-state genetic algorithm to obtain expanded labeled training data; Using a preset adaptive fractal exploration optimization algorithm to extract features from the expanded and labeled training data to obtain feature vector data; Performing feature dimension reduction on the feature vector data by using a preset autoencoder algorithm to obtain dimension-reduced feature vector data; Inputting the dimension-reduced feature vector data into a support vector machine algorithm based on kernel density estimation to train a classifier to obtain an equipment maintenance cost estimation model; The generative adversarial network based on the multi-objective steady-state genetic algorithm expands the labeled training data to obtain expanded labeled training data, including: Initializing the Generator and the discriminator The network parameters of the generator By learning the mapping function The random noise Transformed into a point in data space, the discriminator Through the function Evaluate data points Is it real data or data generated by the generator? The generator and discriminator are represented as: ; ; in, and are the parameters of the generator and the discriminator respectively; and are the weights of their respective networks; and is the bias term; is the Sigmoid activation function, which is used to map the output to interval; For each individual in the multi-objective steady-state genetic algorithm, define the hyperparameter vector , is the learning rate, is the training ratio of the generator to the discriminator, and the selection state of the hyperparameter is expressed as: ,in, It is The hyperparameter vector of individuals, and are the learning rate and training ratio of the i-th individual respectively; The generator and discriminator are trained alternately, including: The generator generates realistic equipment maintenance data, and the discriminator distinguishes between real data and generated data. After each round of training, the accuracy of the discriminator and the quality of the generated data are used as feedback. The goal of adversarial training is to minimize the difference between the generated data and the real data. The cross entropy is used as the loss function, and the manifold regularization term is used. The generated data maintains an intrinsic structure similar to the real data in multidimensional space, and the loss function is expressed as: ; ; in, and They are the loss functions of the discriminator and the generator respectively; is the batch size; It is real data; is the random noise of the input; is the discriminator's judgment result on the real data; is the discriminator's judgment result on the generated data; is the manifold regularization term; is a regularization coefficient, which is used to control the influence of the manifold regularization term; Manifold Regularization Term The calculation method is expressed as: ; in, is the number of random noise samples; yes norm, used to calculate the Euclidean distance between generated data; The calculation method of the term is expressed as: ; in, is the dimension of generated data; and Respectively represent and A random noise input is passed through the generator After that, corresponding to The value of the dimension output; Using a multi-objective steady-state genetic algorithm and Optimize to find the minimize ,at the same time maximize Hyperparameters , the formula is: ; in, is the new hyperparameter after optimization by the multi-objective steady-state genetic algorithm; is the hyperparameter before optimization; It is the optimization function of the multi-objective steady-state genetic algorithm, which updates the hyperparameters through selection, crossover and mutation operations; Steady-state genetic selection is performed during the iteration process to select the best performing individuals as the parents of the next generation based on the accuracy of the discriminator and the quality of the generated data, keeping the population size unchanged; Repeat the iteration until the preset stop iteration condition is met to obtain the expanded labeled training data; The method of using a preset adaptive fractal exploration optimization algorithm to extract features from the expanded labeled training data to obtain feature vector data includes: Set the initial parameter set to , including the weights of the neural network and bias , and initialize the search granularity and search radius ; From the current parameter point , generating a set of self-similar exploration points ,in, Instructions exploration points, using sine and cosine functions to generate points distributed on the sphere of high-dimensional space, simulating the distribution of fractal structures in nature. The distribution of the exploration points is in the form of for: ; in, is the number of exploration points generated in the current iteration, is the current search granularity, is the current search radius; The set of all exploration points in the current iteration is ,in, is the number of iterations, is the index of the exploration point. For each exploration point, the loss function value of each exploration point is calculated. , and normalize the loss function value of each exploration point so that the sum of the loss function values of each exploration point is 1. The normalization process is expressed as: , Represents the exploration point The normalized weight of , n is an integer greater than 0, indicating the total number of exploration points; Calculate the information entropy of the current exploration point set , expressed as: ; definition and Based on information entropy The adjustment functions are used to adjust the search granularity and search radius respectively. The calculation method is expressed as: ; ; in, is the preset information entropy threshold; According to the loss function value of the current exploration point, the search granularity is adaptively and dynamically adjusted. If the loss of multiple exploration points is low, the search granularity is reduced to refine the search; if the loss is high, the search granularity is increased to speed up the search, including: According to the loss function At the Discovery Point Dynamically adjust the search granularity The way is expressed as: ; in, is the reduction factor, is the expansion factor, The parameter is The loss value when It is an indicator based on historical search efficiency; Metrics based on historical search efficiency The calculation method is: ; in, Indicates the number of historical iterations; Calculate the loss function value of all exploration points and select the point with the smallest loss as the new current point, expressed as: ; in, is the optimal parameter exploration point for the current iteration, is the transformation function; Transformation function middle represents a point in the original parameter space, represents a set of transformation parameters, and the transformation function The purpose is to map the original parameter space to a new space so that the search can be performed in the new space. The transformation function is expressed as: in, is a point based on the current and a set of transformation parameters The dynamic adjustment function is used to control the local enlargement or reduction of the parameter space. The algorithm can improve the search efficiency and accuracy of the algorithm in different areas by dynamically adjusting the representation of the parameter space. The algorithm can more effectively adapt to the local characteristics of the loss function by dynamically transforming the parameter space. Dynamically adjust functions The strength of the transformation is adjusted according to the loss value of the current search point and the loss value of its surrounding points. The calculation method is expressed as: ; in, is a regulating factor, It is the inverse of the loss gradient covariance matrix of the current exploration point set, which is used to measure the heterogeneity of the loss function changes in different directions in the parameter space. L(θ) is the loss value of θ. According to the effect of the current iteration, the search radius is dynamically adjusted to optimize the breadth and depth of the search to more effectively explore the parameter space. The search radius is dynamically adjusted according to the degree of improvement of the loss function. The search radius adjustment method is expressed as: ; Among them, the improvement , is the adjusted search radius, is the expansion factor, is the reduction factor, It is a set threshold used to determine whether the loss function meets the preset improvement; Repeat the iteration until the preset stop iteration condition is met to obtain the corresponding feature vector data.
2. The method according to claim 1, characterized in that The learning rate The update method is expressed as: , It is the adjustment amount obtained based on the mutation operation in the multi-objective steady-state genetic algorithm. is the updated learning rate, is the learning rate before updating; δ is calculated as: , It is the preset coefficient of variation, which is used to control the amplitude of the learning rate change; Is generated A random number in the interval.
3. The method according to claim 1, characterized in that The search radius adjustment method further adjusts the search radius by a nonlinear adjustment factor, and the search radius adjustment method is also expressed as: ; is the search radius before adjustment, is the nonlinear adjustment factor; , is the preset threshold, Indicates the number of historical iterations.
4. The method according to claim 1, characterized in that: The form distribution of the exploration points It can also be adjusted based on the fractal dimension D. The distribution of the exploration points is It is expressed as: ; Among them, the fractal dimension D is used to affect the distribution density of the exploration points in space and how to adjust the distribution of these points according to the fractal theory.
5. The method according to claim 1, characterized in that The step of performing feature dimension reduction on the feature vector data by using a preset autoencoder algorithm to obtain dimension-reduced feature vector data includes: Initialize the parameters of the autoencoder model, including the weights and biases of the encoder and decoder; The input feature vector data is converted into a low-dimensional quantum state representation through the encoder, and the quantum state is processed by the decoder to try to reconstruct the original feature vector. Specifically: For the autoencoder, the forward propagation is expressed as: ; ; ; in, is the input feature vector, is the encoded low-dimensional feature, is the coding feature after quantum information conversion, is the feature vector reconstructed after decoding, They are the weight matrices of the encoder, quantum information conversion layer, and decoder respectively; are the bias vectors of the encoder, quantum information conversion layer, and decoder respectively, is the ReLU activation function; After encoding and before decoding, the quantum state is processed by the quantum information conversion algorithm, and the quantum non-locality is used to optimize the representation of information, which is expressed as: in, represents the tensor product of the encoded features and the quantum state, The unit operation that represents the quantum state conversion is the unitary transformation in quantum computing. represents the initial quantum state, represents the tensor product of quantum gate operations, represents the operation of the trace part on the environment state to extract classical information from the quantum state; Quantum state conversion operations This is achieved by applying specific quantum gates, expressed as: in, represents the operation of quantum state conversion on the encoding feature, Indicates the first quantum gates on elements, wherein the quantum gates are designed according to a specific quantum algorithm, yes No. elements, is the dimension of the encoded feature vector; The tensor product representing the quantum gate operation ensures that each encoded feature element is transformed through a quantum gate; Calculate the loss between the reconstructed feature vector and the original feature vector to evaluate the dimensionality reduction and reconstruction effect of the model. The loss function is used to evaluate the difference between the reconstructed feature vector and the original input. The loss function is calculated as follows: ; in, is the loss function; is the dimension of the feature vector; is the original eigenvector elements; is the first feature vector to be reconstructed elements; Back propagation updates the model parameters by calculating the gradient of the loss function with respect to each parameter, expressed as: , L is the loss function, the gradient calculation relies on the chain rule and is used for parameter update; According to the result of the loss function, the gradient of the model parameters is calculated through the back propagation algorithm, and the model parameters are updated to optimize the performance of the encoder and decoder, which is expressed as: ; ; ; ; ; ; in, , , , represent the updated weight matrices of the encoder, quantum information conversion layer, and decoder, respectively. , , are the bias vectors of the updated encoder, quantum information conversion layer, and decoder respectively, represents the learning rate; Repeat the iteration until the preset stop iteration condition is met to obtain the reduced dimension feature vector data.
6. The method according to claim 1, characterized in that The reduced dimension feature vector data is input into a support vector machine algorithm based on kernel density estimation to train a classifier to obtain an equipment maintenance cost estimation model, including: The dimension-reduced feature vector data is used as input, and a kernel function is selected. It is a function used in support vector machines to map input data to a high-dimensional feature space. The kernel function is: ; in, and Represent two input feature vectors, is the width parameter of the Gaussian kernel function; express and The Euclidean distance between The value of is determined by cross-validation to ensure that the kernel function can effectively handle the nonlinear relationship in the data. The calculation method is: ; in, is the sample size, is the feature dimension, It is samples, is the mean vector of all samples, express and The Euclidean distance between According to the different levels of maintenance costs, different penalty weights are set for each category to deal with the data imbalance problem. Higher weights are given to high-cost maintenance cases. This is achieved by adjusting the loss function of the support vector machine, which is expressed as: ; in, It is The penalty weight for misclassification of samples is, for high-cost classes, Larger, It is The true category labels of samples, is the normal vector of the hyperplane, is the bias term, represents the hinge loss function; Penalty Weight It is adjusted according to the inverse proportion of the frequency of the categories to pay more attention to the minority categories. It is calculated as: ; in, Indicates category Frequency of occurrence in the training dataset; The selected kernel function and the set weights are used to train the support vector machine classifier using the training data set. During the training process, the model parameters are optimized by cross-validation. The model parameters include regularization parameters and kernel function parameters. In addition, the parameter optimization during the training process relies on the gradient descent method to minimize the loss function. , weight The update rule is: ; in, and Respectively represent the weights before and after the update, is the learning rate, controlling the update step size, is the loss function Relative to weight The gradient of The calculation method is expressed as: ; in, represents samples that are misclassified or on one side of the decision boundary, is the gradient term corresponding to each such sample; Repeat the iteration until the preset stop iteration condition is met to obtain the equipment maintenance cost estimation model.
7. An equipment maintenance cost estimation device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Obtaining a pre-trained equipment maintenance cost estimation model, wherein the equipment maintenance cost estimation model is a training model based on machine learning; Acquire relevant data of the current device, wherein the relevant data includes an operation log and a maintenance record of the current device; Inputting relevant data of the current equipment into the equipment maintenance cost estimation model to obtain the maintenance cost of the current equipment; Before obtaining the pre-trained equipment maintenance cost estimation model, the method further includes: By collecting the operation log and maintenance record of each device, and storing the operation log and maintenance record of each device in a structured format as training data, the operation log of each device includes the operation time, temperature, vibration frequency, current and pressure of each device model, and the maintenance record of each device includes the number of failures, the number of maintenance and the most recent maintenance cost of each device model; Labeling the training data and dividing them into different maintenance cost levels; The labeled training data is expanded by a generative adversarial network based on a multi-objective steady-state genetic algorithm to obtain expanded labeled training data; Using a preset adaptive fractal exploration optimization algorithm to extract features from the expanded and labeled training data to obtain feature vector data; Performing feature dimension reduction on the feature vector data by using a preset autoencoder algorithm to obtain dimension-reduced feature vector data; Inputting the dimension-reduced feature vector data into a support vector machine algorithm based on kernel density estimation to train a classifier to obtain an equipment maintenance cost estimation model; The generative adversarial network based on the multi-objective steady-state genetic algorithm expands the labeled training data to obtain expanded labeled training data, including: Initializing the Generator and the discriminator The network parameters of the generator By learning the mapping function The random noise Transformed into a point in data space, the discriminator Through the function Evaluate data points Is it real data or data generated by the generator? The generator and discriminator are represented as: ; ; in, and are the parameters of the generator and the discriminator respectively; and are the weights of their respective networks; and is the bias term; is the Sigmoid activation function, which is used to map the output to interval; For each individual in the multi-objective steady-state genetic algorithm, define the hyperparameter vector , is the learning rate, is the training ratio of the generator to the discriminator, and the selection state of the hyperparameter is expressed as: ,in, It is The hyperparameter vector of individuals, and are the learning rate and training ratio of the i-th individual respectively; The generator and discriminator are trained alternately, including: The generator generates realistic equipment maintenance data, and the discriminator distinguishes between real data and generated data. After each round of training, the accuracy of the discriminator and the quality of the generated data are used as feedback. The goal of adversarial training is to minimize the difference between the generated data and the real data. The cross entropy is used as the loss function, and the manifold regularization term is used. The generated data maintains an intrinsic structure similar to the real data in multidimensional space, and the loss function is expressed as: ; ; in, and They are the loss functions of the discriminator and the generator respectively; is the batch size; It is real data; is the random noise of the input; is the discriminator's judgment result on the real data; is the discriminator's judgment result on the generated data; is the manifold regularization term; is a regularization coefficient, which is used to control the influence of the manifold regularization term; Manifold Regularization Term The calculation method is expressed as: ; in, is the number of random noise samples; yes norm, used to calculate the Euclidean distance between generated data; The calculation method of the term is expressed as: ; in, is the dimension of generated data; and Respectively represent and A random noise input is passed through the generator After that, corresponding to The value of the dimension output; Using a multi-objective steady-state genetic algorithm and Optimize to find the minimize ,at the same time maximize Hyperparameters , the formula is: ; in, is the new hyperparameter after optimization by the multi-objective steady-state genetic algorithm; is the hyperparameter before optimization; It is the optimization function of the multi-objective steady-state genetic algorithm, which updates the hyperparameters through selection, crossover and mutation operations; Steady-state genetic selection is performed during the iteration process to select the best performing individuals as the parents of the next generation based on the accuracy of the discriminator and the quality of the generated data, keeping the population size unchanged; Repeat the iteration until the preset stop iteration condition is met to obtain the expanded labeled training data; The method of using a preset adaptive fractal exploration optimization algorithm to extract features from the expanded labeled training data to obtain feature vector data includes: Set the initial parameter set to , including the weights of the neural network and bias , and initialize the search granularity and search radius ; From the current parameter point , generating a set of self-similar exploration points ,in, Instructions exploration points, using sine and cosine functions to generate points distributed on the sphere of high-dimensional space, simulating the distribution of fractal structures in nature. The distribution of the exploration points is in the form of for: ; in, is the number of exploration points generated in the current iteration, is the current search granularity, is the current search radius; The set of all exploration points in the current iteration is ,in, is the number of iterations, is the index of the exploration point. For each exploration point, the loss function value of each exploration point is calculated. , and normalize the loss function value of each exploration point so that the sum of the loss function values of each exploration point is 1. The normalization process is expressed as: , Represents the exploration point The normalized weight of , n is an integer greater than 0, indicating the total number of exploration points; Calculate the information entropy of the current exploration point set , expressed as: ; definition and Based on information entropy The adjustment functions are used to adjust the search granularity and search radius respectively. The calculation method is expressed as: ; ; in, is the preset information entropy threshold; According to the loss function value of the current exploration point, the search granularity is adaptively and dynamically adjusted. If the loss of multiple exploration points is low, the search granularity is reduced to refine the search; if the loss is high, the search granularity is increased to speed up the search, including: According to the loss function At the Discovery Point Dynamically adjust the search granularity The way is expressed as: ; in, is the reduction factor, is the expansion factor, The parameter is The loss value when It is an indicator based on historical search efficiency; Metrics based on historical search efficiency The calculation method is: ; in, Indicates the number of historical iterations; Calculate the loss function value of all exploration points and select the point with the smallest loss as the new current point, expressed as: ; in, is the optimal parameter exploration point for the current iteration, is the transformation function; Transformation function middle represents a point in the original parameter space, represents a set of transformation parameters, and the transformation function The purpose is to map the original parameter space to a new space so that the search can be performed in the new space. The transformation function is expressed as: in, is a point based on the current and a set of transformation parameters The dynamic adjustment function is used to control the local enlargement or reduction of the parameter space. The algorithm can improve the search efficiency and accuracy of the algorithm in different areas by dynamically adjusting the representation of the parameter space. The algorithm can more effectively adapt to the local characteristics of the loss function by dynamically transforming the parameter space. Dynamically adjust functions The strength of the transformation is adjusted according to the loss value of the current search point and the loss value of its surrounding points. The calculation method is expressed as: ; in, is a regulating factor, It is the inverse of the loss gradient covariance matrix of the current exploration point set, which is used to measure the heterogeneity of the loss function changes in different directions in the parameter space. L(θ) is the loss value of θ. According to the effect of the current iteration, the search radius is dynamically adjusted to optimize the breadth and depth of the search to more effectively explore the parameter space. The search radius is dynamically adjusted according to the degree of improvement of the loss function. The search radius adjustment method is expressed as: ; Among them, the improvement , is the adjusted search radius, is the expansion factor, is the reduction factor, It is a set threshold used to determine whether the loss function meets the preset improvement; Repeat the iteration until the preset stop iteration condition is met to obtain the corresponding feature vector data.
