Fault prediction method and apparatus based on feature fusion, and device and storage medium
Through the feature fusion prediction method, combined with time series and picture information, the faults of the tower and antenna feeder systems are predicted and maintenance tips are generated, which solves the problem of low fault detection efficiency of tower and antenna feeder systems in complex terrain environments, reduces maintenance costs and improves maintenance efficiency. Improve maintenance efficiency.
Patent Information
- Application Number
- PCT/CN2023/143211
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-12
- Filing Date
- 2023-12-29
- Publication Date
- 2024-09-06
AI Technical Summary
In complex terrain environments, towers and antenna feeder systems are prone to failures, leading to communication barriers and increased maintenance costs. The maintenance process is cumbersome and risky, making it difficult to improve maintenance efficiency.
A fault prediction method based on feature fusion is adopted, by collecting time series data and picture information of the tower and antenna feeder system, using a preset prediction model to process the data, generating a fusion feature vector, and optimizing multi-head attention through the Transformer Backbone module and ProbSparse The mechanism performs predictions, obtains fault prediction results, and generates maintenance tips.
It achieves accurate prediction of tower and antenna feeder system failures, reduces maintenance costs, improves maintenance efficiency, and reduces risk exposure to staff.
Smart Images

Figure CN2023143211_06092024_PF_FP
Abstract
Description
Fault prediction method, device, equipment and storage medium based on feature fusion Technical Field
[0001] The present application relates to the field of deep learning technology, and in particular to a fault prediction method, apparatus, computer equipment, and storage medium based on feature fusion. Background Art
[0002] Antenna and feeder systems and towers are critical components of information transmission for telecommunications companies and are often located in complex terrain, such as mountainous scenic areas. Due to weather, geographical, and environmental factors, tower and antenna systems are prone to unexpected problems. If not discovered and resolved promptly, these problems can lead to communication disruptions and reduced service quality. Furthermore, maintaining tower and antenna systems requires workers to travel across mountains and hills, a tedious and risky task that increases maintenance costs and reduces efficiency. Therefore, reducing maintenance costs and improving efficiency have become urgent challenges.
[0003] Summary of the Invention
[0004] The present application provides a fault prediction method, apparatus, computer equipment, and storage medium based on feature fusion to reduce maintenance costs and improve maintenance efficiency.
[0005] In a first aspect, the present application provides a fault prediction method based on feature fusion, the method comprising:
[0006] Collecting the time series data information and image information of the tower to be predicted and the antenna feeder system to be predicted;
[0007] Based on a preset prediction model, the time series data information to be predicted and the image information to be predicted are processed to obtain a fused feature vector;
[0008] Based on the prediction model, the fused feature vector is predicted to obtain fault prediction results of the tower to be predicted and the antenna feeder system to be predicted.
[0009] Furthermore, before the processing of the to-be-predicted time series data information and the to-be-predicted image information based on the preset prediction model to obtain the fused feature vector, the method further includes:
[0010] Acquiring historical time series data information, historical image information, and historical fault information of the tower and the antenna feeder system;
[0011] Preprocessing the historical time series data information, the historical image information, and the historical fault information to obtain a training data set and a test data set;
[0012] Based on the training data set, the pre-trained model is trained to obtain a model to be determined;
[0013] Based on the test data set, the model to be determined is tested to obtain a test result;
[0014] When the test result meets the preset model performance condition, the to-be-determined model is determined as the prediction model.
[0015] Furthermore, the processing of the to-be-predicted time series data information and the to-be-predicted image information based on a preset prediction model to obtain a fused feature vector includes:
[0016] Obtaining a time series vector space for the time series data information to be predicted;
[0017] Processing the image information to be predicted to obtain an image vector space;
[0018] Based on the time series vector space and the picture vector space, obtaining a time series feature vector and the image feature vector;
[0019] The fused feature vector is obtained based on the time series feature vector and the image feature vector.
[0020] Furthermore, obtaining a time series vector space for the time series data information to be predicted includes:
[0021] Processing the time series data information to be predicted, determining at least one time series feature, obtaining the number of the time series features, and importing the same number of univariate time series features as the number of the time series features;
[0022] Each of the univariate time series features is divided based on a preset sequence length to generate at least one time series vector space, so as to reduce the length of the time series.
[0023] Furthermore, obtaining the time series feature vector and the image feature vector based on the time series vector space and the picture vector space includes:
[0024] Performing filter sampling processing on the time series vector space to obtain a first vector space, and performing filter sampling processing on the picture vector space to obtain a second vector space;
[0025] Linear processing is performed on the first vector space and the second vector space respectively to obtain the time series feature vector and the image feature vector.
[0026] Furthermore, obtaining the fused feature vector based on the time series feature vector and the image feature vector includes:
[0027] Processing the time series feature vector and the image feature vector based on the Transformer Backbone module to obtain a target feature vector;
[0028] Optimize the multi-head attention mechanism in the tranformer model based on ProbSparse;
[0029] The target feature vector is optimized based on the optimized multi-head attention mechanism to obtain the fused feature vector.
[0030] Furthermore, after predicting the fused feature vector based on the prediction model to obtain the fault prediction results of the tower to be predicted and the antenna feeder system to be predicted, the method further includes:
[0031] Based on the prediction result, a maintenance reminder is generated to remind maintenance personnel to maintain the tower and the antenna feeder system.
[0032] In a second aspect, the present application further provides a fault prediction device based on feature fusion, the device comprising:
[0033] The module for collecting information to be predicted is used to collect the time series data information and image information of the tower to be predicted and the antenna feeder system to be predicted;
[0034] A fusion feature vector acquisition module is used to process the time series data information to be predicted and the image information to be predicted based on a preset prediction model to obtain a fusion feature vector;
[0035] The fault prediction result obtaining module is used to predict the fused feature vector based on the prediction model to obtain the fault prediction results of the tower to be predicted and the antenna feeder system to be predicted.
[0036] In a third aspect, the present application also provides a computer device, comprising a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement the above-mentioned feature fusion-based fault prediction method when executing the computer program.
[0037] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the above-mentioned fault prediction method based on feature fusion.
[0038] The present application discloses a fault prediction method, device, computer equipment and storage medium based on feature fusion, which collects time series data information and image information to be predicted of a tower to be predicted and an antenna feeder system to be predicted; processes the time series data information and image information to be predicted based on a preset prediction model to obtain a fused feature vector; and predicts the fused feature vector based on the prediction model to obtain a fault prediction result for the tower to be predicted and the antenna feeder system to be predicted. The present application obtains a fused feature vector by collecting time series data and image information of a tower to be predicted and an antenna feeder system to be predicted, and predicts the fused feature vector using a prediction model to obtain a fault prediction result. The time series features and image features are combined by feature fusion to obtain a fused feature vector. The method can accurately predict the faults of the tower and antenna feeder system based on regularly acquired data, eliminating the need for staff to perform fault inspections one by one, thereby improving fault detection efficiency, thereby improving maintenance efficiency and reducing maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0040] FIG1 is a schematic flow chart of a first embodiment of a fault prediction method based on feature fusion provided in an embodiment of the present application;
[0041] FIG2 is a diagram of a prediction model architecture of a fault prediction method based on feature fusion provided in an embodiment of the present application;
[0042] FIG3 is a schematic diagram of a fully connected layer of a fault prediction method based on feature fusion provided in an embodiment of the present application;
[0043] FIG4 is a schematic flow chart of a second embodiment of a fault prediction method based on feature fusion provided in an embodiment of the present application;
[0044] FIG5 is a flowchart of an attention mechanism calculation method based on feature fusion provided in an embodiment of the present application;
[0045] FIG6 is a flowchart of a self-attention mechanism calculation of a fault prediction method based on feature fusion provided in an embodiment of the present application;
[0046] FIG7 is a schematic block diagram of a fault prediction device based on feature fusion according to an embodiment of the present application;
[0047] FIG8 is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0049] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined, or partially merged, so the actual execution order may vary depending on the actual situation.
[0050] It should be understood that the terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0051] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0052] Embodiments of the present application provide a method, apparatus, computer device, and storage medium for fault prediction based on feature fusion. This method can be applied to a server. By fusing features of time series data and image information, and then using a prediction model to predict the fused feature vector, a fault prediction result is obtained. This prediction result can be used to prompt maintenance personnel to perform maintenance, thereby reducing maintenance costs and improving maintenance efficiency. The server can be a standalone server or a server cluster.
[0053] The following describes some embodiments of the present application in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features therein may be combined with each other.
[0054] Please refer to Figure 1, which is a schematic flow chart of a feature fusion-based fault prediction method provided in an embodiment of the present application. This feature fusion-based fault prediction method can be applied to a server to perform feature fusion on time series data and image information, and then predict the fused feature vector using a prediction model to obtain a fault prediction result. This fault prediction result can be used to prompt maintenance personnel to perform maintenance, thereby reducing maintenance costs and improving maintenance efficiency.
[0055] As shown in FIG1 , the fault prediction method based on feature fusion specifically includes steps S101 to S103 .
[0056] S101, collecting time series data information and image information of a tower to be predicted and an antenna feeder system to be predicted.
[0057] In one embodiment, historical data is analyzed to determine the types and causes of tower and antenna feeder system failures. For example, research has revealed that towers and their antenna feeders are typically built in mountainous areas, making them susceptible to weather, which can lead to loosening and falling screws on antenna feeder pipe interfaces, connectors, and towers. Although antenna feeder systems are typically installed within cable routing brackets, exposure to strong winds can cause repeated wear and tear between the antenna feeder and the tower. Over time, this can damage antenna feeder cables and other connecting devices, leading to communication failures. If damaged devices are not promptly repaired, water can enter the damaged devices during foggy or rainy weather, causing short circuits and degraded communication quality. Winter experiences more snow and ice, making antenna feeder cables harder and more brittle than usual. Therefore, they are easily damaged in windy conditions, which can severely disrupt network connectivity. Therefore, weather and geographic location can be considered as primary factors affecting tower and antenna feeder system performance. It is understood that other factors could also include temperature, humidity, precipitation, wind speed, and air pressure.
[0058] In one embodiment, time series information is obtained. Excluding human damage, the primary factors affecting towers and their antenna systems are weather and geographic location. Weather information can be obtained by crawling historical network information, and the geographic location of the towers and their antenna systems can be obtained internally. Based on the detailed geographic location (longitude and latitude) of the towers and their antenna systems, the temporal evolution of weather conditions at that location is obtained as a time series feature, with a time range of one year and an hourly interval.
[0059] In one embodiment, the image information can be obtained by taking pictures of the tower and its antenna feed system using a camera such as a drone as the image information feature.
[0060] S102: Based on a preset prediction model, the time series data information to be predicted and the image information to be predicted are processed to obtain a fusion feature vector.
[0061] Furthermore, the preset prediction model is based on which the time series data information to be predicted and the image information to be predicted are processed to obtain a fusion feature vector, and the method also includes: obtaining historical time series data information, historical image information and historical fault information of the tower and the antenna feeder system; preprocessing the historical time series data information, the historical image information and the historical fault information to obtain a training data set and a test data set; training the pre-trained model based on the training data set to obtain a model to be determined; testing the model to be determined based on the test data set to obtain a test result; when the test result meets the preset model performance condition, determining the model to be determined as the prediction model.
[0062] In one embodiment, as shown in FIG2 , FIG2 is a prediction model architecture diagram of a fault prediction method based on feature fusion provided by an embodiment of the present application. Through the prediction model shown in FIG2 , the time series features are first processed. Assuming that there are I time series features, in order to speed up the training efficiency, I channels can be set, each channel imports a single variable time series feature, the channels are independent of each other, and the time series shares the same Embedding and Transformer weights in all sequences. All single variable time series features constitute a vector space, denoted as R I*L , where I indicates that there are I univariate time series features, and L indicates the length of each time series feature.
[0063] In one embodiment, a patch_size is set and a short time sequence of the length of patch_size is regarded as a token. In this way, the sequence length is reduced and the computational efficiency is improved. The number of tokens is N = L / P. All tokens form a vector space, which is recorded as R. P*N .
[0064] In one embodiment, the temporal vector space and the picture vector space are processed simultaneously, where the temporal vector space is R P*N , the image vector space is Set the filter stride=S, kernel_size=K, padding_patch=D, and the time series vector space is sampled by the filter to obtain F1 K*K vector spaces, where F1=((P+2*DK) / S+1)*((N+2*DK) / S+1). The image vector space is sampled by the filter to obtain F2 K*K vector spaces, where F2=((P 2 +2*DK) / S+1)*((P 2+2*DK) / S+1); perform linear operations on each K*K vector space to obtain a vector of length K*K. After the above operations, a total of F vectors of length K*K are obtained, where F = F1+F2.
[0065] In one embodiment, the F feature vectors are imported into the Transformer Backbone (feature extraction), where the F1 time series vectors are added with position encoding.
[0066] In one embodiment, the time series feature vector and the image sequence feature vector are concatenated together and optimized through the optimized Multi-Head-Attention, and finally F feature vectors are obtained, where F=F1+F2, to obtain a fused feature vector.
[0067] In one embodiment, the same feature fusion operation as that of the time series data information to be predicted and the image information to be predicted is performed on the historical time series data information and the historical image information to obtain a feature fusion vector and obtain a training data set and a test data set.
[0068] In one embodiment, a vector is randomly initialized as a classification token, which can be categorized into: severe warning, moderate warning, mild warning, no warning, etc. The classification token vector is concatenated with F feature vectors. After training, the vector is fed into the MLP-head module (which predicts outcomes based on the extracted features) to generate the final result. The model parameters are continuously learned through the backpropagation algorithm until the model converges, resulting in a prediction model.
[0069] In one embodiment, as shown in Figure 3, Figure 3 is a schematic diagram of a fully connected layer for a fault prediction method based on feature fusion provided by an embodiment of the present application. The concatenated long vector is input into the fully connected layer, which performs a nonlinear transformation Y = f(Wx + b) on the input vector and outputs it. Where f is the node in Figure 3, is the activation function, W is the weight matrix, and b is the bias constant.
[0070] In one embodiment, the output of the fully connected layer is converted into the final probability of failure through the Softmax layer. The calculation method is as follows:
[0071] Among them, z j is the output of the fully connected layer, and W and b are the parameters to be trained for this layer.
[0072] In one embodiment, after obtaining the model to be determined through historical data training, the model to be determined is tested using a test data set. When the test results meet preset model performance conditions (such as prediction accuracy, prediction efficiency, etc.), the model to be determined is determined as the prediction model.
[0073] S103: Based on the prediction model, predict the fused feature vector to obtain fault prediction results of the tower to be predicted and the antenna feeder system to be predicted.
[0074] Furthermore, after predicting the fused feature vector based on the prediction model and obtaining the fault prediction results of the tower to be predicted and the antenna feed line system to be predicted, it also includes: generating a maintenance prompt based on the prediction results to remind maintenance personnel to maintain the tower and the antenna feed line system.
[0075] In one embodiment, the fused feature vector is input into a fully connected layer, which performs a nonlinear transformation Y=f(Wx+b) on the input vector and outputs the result.
[0076] In one embodiment, the output of the fully connected layer is converted into the final probability of a fault, i.e., the fault prediction result, through the Softmax layer. The calculation method is as follows:
[0077] Among them, z j is the output of the fully connected layer, and W and b are the parameters of this layer obtained through training.
[0078] In one embodiment, after obtaining the fault prediction results, a maintenance reminder is generated based on the fault prediction results, and the maintenance reminder is sent to the maintenance personnel to prompt the maintenance personnel to perform maintenance on potential faults in a timely manner, thereby assisting the staff to identify which specific towers and antenna feeder systems have faults and improve maintenance efficiency.
[0079] Please refer to Figure 4, which is a schematic flow chart of a feature fusion-based fault prediction method provided in an embodiment of the present application. This feature fusion-based fault prediction method can be applied to a server to perform feature fusion on time series data and image information, and then predict the fused feature vector using a prediction model to obtain a fault prediction result. This fault prediction result can be used to prompt maintenance personnel to perform maintenance, thereby reducing maintenance costs and improving maintenance efficiency.
[0080] As shown in FIG4 , the fault prediction method based on feature fusion specifically includes steps S201 to S204 .
[0081] S201, obtaining a time series vector space for the time series data information to be predicted;
[0082] Furthermore, obtaining a time series vector space for the time series data information to be predicted includes: processing the time series data information to be predicted, determining at least one time series feature, obtaining the number of the time series features, and importing the same number of univariate time series features as the number of the time series features; dividing each of the univariate time series features based on a preset sequence length to generate at least one time series vector space to reduce the length of the time series.
[0083] In one embodiment, time series features are processed. Assuming there are I time series features, in order to speed up training efficiency, I channels can be set. Each channel imports a single variable time series feature. The channels are independent of each other, and the time series shares the same Embedding and Transformer weights in all sequences. All single variable time series features form a vector space, denoted as R I*L , where I indicates that there are I univariate time series features, and L indicates the length of each time series feature.
[0084] In one embodiment, by observing the data, it is found that the general time series feature sequence has basically no change in a short time, so a patch_size can be set, that is, the preset sequence length, and the short time sequence of the length of patch_size is regarded as a token. In this way, the sequence length is reduced and the computational efficiency is improved. The number of tokens is N = L / P, and all tokens constitute a vector space, recorded as R P*N .
[0085] S202: Process the image information to be predicted to obtain an image vector space;
[0086] In one embodiment, picture features are extracted from the picture information to be predicted to generate a picture vector space.
[0087] S203, obtaining a time series feature vector and the image feature vector based on the time series vector space and the picture vector space;
[0088] Furthermore, obtaining the time series feature vector and the image feature vector based on the time series vector space and the picture vector space includes: performing filter sampling processing on the time series vector space to obtain a first vector space, and performing filter sampling processing on the picture vector space to obtain a second vector space; and performing linear processing on the first vector space and the second vector space respectively to obtain the time series feature vector and the image feature vector.
[0089] In one embodiment, a temporal vector space and a picture vector space are processed, where the temporal vector space is R P*N, the image vector space is Set the filter stride=S, kernel_size=K, padding_patch=D, and the time series vector space is sampled by the filter to obtain F1 K*K first vector spaces, where F1=((P+2*DK) / S+1)*((N+2*DK) / S+1). The image vector space is sampled by the filter to obtain F2 K*K second vector spaces, where F2=((P 2 +2*DK) / S+1)*((P 2 +2*DK) / S+1); perform linear operations on each K*K vector space to obtain a vector of length K*K. After the above operations, a total of F vectors of length K*K are obtained, where F=F1+F2, F1 is the time series feature vector, and F2 is the image feature vector.
[0090] S204: Obtain the fusion feature vector based on the time series feature vector and the image feature vector.
[0091] Furthermore, the obtaining of the fused feature vector based on the time series feature vector and the image feature vector includes: processing the time series feature vector and the image feature vector based on the Transformer Backbone module to obtain a target feature vector; optimizing the multi-head attention mechanism in the transformer model based on ProbSparse; and optimizing the target feature vector based on the optimized multi-head attention mechanism to obtain the fused feature vector.
[0092] In one embodiment, the above F feature vectors are imported into the Transformer Backbone, where the F1 time series vectors are added with position encoding.
[0093] In one embodiment, due to several shortcomings of the traditional Transformer model: 1. quadratic computation of the self-attention mechanism; 2. memory bottlenecks in long input stacks; and 3. a sharp drop in the speed of predicting long-term outputs, to further optimize the feature vectors and model, the Transformer's Multi-Head-Attention mechanism (a variant of the attention mechanism) was optimized using ProbSparse.
[0094] In one embodiment, features are optimized using an optimized multi-head attention mechanism. The specific operations are as follows:
[0095] 1. First, randomly sample some keys for each query and calculate the sparsity score of each query.
[0096] 2. Select the N queries with the highest sparsity scores, calculate only the dot product results of the N queries and all keys, and then get the attention results.
[0097] 3. The remaining FN queries are not calculated, and the mean of the input of the self-attention layer (mean(V)) is directly taken as the output, so that the input and output sequence lengths of each ProbSparse self-attention layer are both F.
[0098] The specific calculation formula for the sparsity score of each query is as follows: For the convenience of description, we introduce several symbols, and the i-th query is denoted as q i , the jth k, v is recorded as k j 、v j ; The calculation of self-attention is recorded as A:
[0099] Next, the sparsity of each query is defined: p(k j |q i ), and the KL divergence of the uniform distribution q.
[0100] Where M(q i ,K) has the following value ranges:
[0101] In summary, M(q i ,K) are as follows:
[0102] The target feature vector is subjected to the above operations to finally obtain a fused feature vector, where F=F1+F2.
[0103] As shown in FIG5 , FIG5 is a flow chart of the attention mechanism calculation of a fault prediction method based on feature fusion provided in an embodiment of the present application. The calculation steps of the attention mechanism can be summarized as follows:
[0104] 1. Randomly initialize the matrices Key, Query, and Value; calculate the similarity between all queries and keys and perform normalization;
[0105] 2. Perform weighted summation of the values according to the weight matrix. The similarity calculation methods include Cosine similarity, MLP neural network, and vector dot product. The specific calculation formulas of the three methods are as follows:
[0106] Cosine similarity:
[0107] MLP Network:
[0108] Simliary(Query,Key)=MLP(Query,Key)
[0109] Dot product: Simlilary(Query,Key)=Query*Key
[0110] When different calculation methods are used in the first stage, the range of the calculated results will also be different. To further process the values from the first stage, a calculation method similar to SoftMax is introduced in the second stage. This method can normalize the values generated in the first stage, organizing the original calculated scores into a probability distribution where the sum of the weights of all elements is 1. At the same time, the inherent mechanism of SoftMax is used to give greater weight to important elements. In general, the calculation formula is as follows:
[0111] The calculation result of the second stage is the weight coefficient corresponding to each value. The attention value can be obtained by weighting and summing the values according to these coefficients.
[0112] In another embodiment, the self-attention mechanism is a variant of the attention mechanism. Compared with the attention mechanism, it focuses more on capturing the correlation between data or features and reduces dependence on external information. In natural language processing, the self-attention mechanism solves the long-distance dependency problem by calculating the degree of interaction between words. As shown in Figure 6, Figure 6 is a calculation flow chart of the self-attention mechanism of a fault prediction method based on feature fusion provided by an embodiment of the present application, where X is the input matrix, W is the weight matrix, and H is the output matrix. The main calculation process of self-attention includes the following steps:
[0113] 1. Convert each input word into an embedding vector;
[0114] 2. Obtain three different vectors q, k, and v based on the embedded vector;
[0115] 3. Calculate a score for each vector (to measure importance);
[0116] 4. In order to keep the calculated score gradient stable, each score can be divided by To perform normalization;
[0117] 5. Apply the softmax activation function to the score, and the resulting value is recorded as w, which is the weight coefficient;
[0118] 6. Multiply value by w to get the weighted score v for each input vector; add them together to get the final output z: z = ∑v.
[0119] The following formula describes the above calculation process. First, define the input sequence as The output sequence is
[0120] By applying three different weight matrices W to the input sequence, we can obtain three different matrices Q, K, and V. The specific formula is as follows:
[0121] Calculate an output vector for each vector of the query matrix Q. The specific formula is as follows:
[0122] where a nj It refers to the weight coefficient of the n-th output considering the j-th input.
[0123] The above-mentioned embodiments provide a fault prediction method, apparatus, computer equipment and storage medium based on feature fusion, which can extract useful feature vectors, reduce the spatial and temporal complexity of the model, fuse image information and time series information to obtain a fused feature vector, and improve the accuracy of fault prediction and the efficiency of model prediction.
[0124] Please refer to Figure 7, which is a schematic block diagram of a feature fusion-based fault prediction device according to an embodiment of the present application. The feature fusion-based fault prediction device is used to perform the aforementioned feature fusion-based fault prediction method. The feature fusion-based fault prediction device can be configured on a server.
[0125] As shown in FIG7 , the fault prediction device 300 based on feature fusion includes:
[0126] The information collection module 301 is used to collect the time series data information and image information of the tower and antenna feeder system to be predicted;
[0127] A fusion feature vector obtaining module 302 is configured to process the time series data information to be predicted and the image information to be predicted based on a preset prediction model to obtain a fusion feature vector;
[0128] The fault prediction result obtaining module 303 is configured to predict the fused feature vector based on the prediction model to obtain fault prediction results of the tower to be predicted and the antenna feeder system to be predicted.
[0129] Furthermore, the feature fusion-based fault prediction device 300 further includes a model training module, which includes:
[0130] A historical information acquisition unit, configured to acquire historical time series data information, historical image information, and historical fault information of the tower and the antenna feeder system;
[0131] A data set obtaining unit, configured to pre-process the historical time series data information, the historical image information, and the historical fault information to obtain a training data set and a test data set;
[0132] A to-be-determined model obtaining unit, configured to train the pre-trained model based on the training data set to obtain the to-be-determined model;
[0133] A test result obtaining unit, configured to test the model to be determined based on the test data set to obtain a test result;
[0134] The prediction model determination unit is used to determine the to-be-determined model as the prediction model when the test result meets the preset model performance condition.
[0135] Furthermore, the fusion feature vector obtaining module 302 includes:
[0136] A time series vector space obtaining unit, configured to obtain a time series vector space for the time series data information to be predicted;
[0137] A picture vector space obtaining unit, configured to process the picture information to be predicted to obtain a picture vector space;
[0138] a feature vector obtaining unit, configured to obtain a time series feature vector and an image feature vector based on the time series vector space and the picture vector space;
[0139] The fused feature vector obtaining unit is configured to obtain the fused feature vector based on the time series feature vector and the image feature vector.
[0140] Furthermore, the time series vector space obtaining unit includes:
[0141] a univariate time series feature importing subunit, configured to process the time series data information to be predicted, determine at least one time series feature, obtain the number of the time series features, and import the same number of univariate time series features as the number of the time series features;
[0142] The time series vector space generating subunit is used to divide each of the single variable time series features based on a preset sequence length to generate at least one time series vector space to reduce the length of the time series.
[0143] Furthermore, the feature vector obtaining unit includes:
[0144] a vector space acquisition subunit, configured to perform filter sampling processing on the time series vector space to obtain a first vector space, and perform filter sampling processing on the image vector space to obtain a second vector space;
[0145] The feature vector obtaining subunit is used to perform linear processing on the first vector space and the second vector space respectively to obtain the time series feature vector and the image feature vector.
[0146] Furthermore, the fusion feature vector obtaining unit includes:
[0147] a target feature vector obtaining subunit, configured to process the time series feature vector and the image feature vector based on a Transformer Backbone module to obtain a target feature vector;
[0148] An attention mechanism optimization subunit, which is used to optimize the multi-head attention mechanism in the tranformer model based on ProbSparse;
[0149] The fused feature vector obtaining subunit is used to optimize the target feature vector based on the optimized multi-head attention mechanism to obtain the fused feature vector.
[0150] Furthermore, the fault prediction device 300 based on feature fusion further includes:
[0151] A maintenance reminder module is used to generate a maintenance reminder based on the prediction result to remind maintenance personnel to maintain the iron tower and the antenna feeder system.
[0152] It should be noted that those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0153] The above-mentioned apparatus may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in FIG8 .
[0154] Please refer to Figure 8, which is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application. The computer device may be a server.
[0155] 8 , the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
[0156] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any one of the fault prediction methods based on feature fusion.
[0157] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0158] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any fault prediction method based on feature fusion.
[0159] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that the structure shown in FIG8 is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. A specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0160] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0161] In one embodiment, the processor is configured to execute a computer program stored in the memory to implement the following steps:
[0162] Collecting the time series data information and image information of the tower to be predicted and the antenna feeder system to be predicted;
[0163] Based on a preset prediction model, the time series data information to be predicted and the image information to be predicted are processed to obtain a fused feature vector;
[0164] Based on the prediction model, the fused feature vector is predicted to obtain fault prediction results of the tower to be predicted and the antenna feeder system to be predicted.
[0165] In one embodiment, before the processor predicts the time series data information to be predicted and the image information to be predicted based on a preset prediction model and obtains the fault prediction results of the tower to be predicted and the antenna feeder system to be predicted, it is further configured to implement:
[0166] Acquiring historical time series data information, historical image information, and historical fault information of the tower and the antenna feeder system;
[0167] Preprocessing the historical time series data information, the historical image information, and the historical fault information to obtain a training data set and a test data set;
[0168] Based on the training data set, the pre-trained model is trained to obtain a model to be determined;
[0169] Based on the test data set, the model to be determined is tested to obtain a test result;
[0170] When the test result meets the preset model performance condition, the to-be-determined model is determined as the prediction model.
[0171] In one embodiment, when the processor processes the time series data information to be predicted and the image information to be predicted based on a preset prediction model to obtain a fused feature vector, the processor is configured to implement:
[0172] Obtaining a time series vector space for the time series data information to be predicted;
[0173] Processing the image information to be predicted to obtain an image vector space;
[0174] Based on the time series vector space and the picture vector space, obtaining a time series feature vector and the image feature vector;
[0175] The fused feature vector is obtained based on the time series feature vector and the image feature vector.
[0176] In one embodiment, when obtaining the time series vector space for the time series data information to be predicted, the processor is configured to implement:
[0177] Processing the time series data information to be predicted, determining at least one time series feature, obtaining the number of the time series features, and importing the same number of univariate time series features as the number of the time series features;
[0178] Each of the univariate time series features is divided based on a preset sequence length to generate at least one time series vector space, so as to reduce the length of the time series.
[0179] In one embodiment, when obtaining the time series feature vector and the image feature vector based on the time series vector space and the picture vector space, the processor is configured to implement:
[0180] Performing filter sampling processing on the time series vector space to obtain a first vector space, and performing filter sampling processing on the picture vector space to obtain a second vector space;
[0181] Linear processing is performed on the first vector space and the second vector space respectively to obtain the time series feature vector and the image feature vector.
[0182] In one embodiment, when obtaining the fused feature vector based on the time series feature vector and the image feature vector, the processor is configured to implement:
[0183] Processing the time series feature vector and the image feature vector based on the Transformer Backbone module to obtain a target feature vector;
[0184] Optimize the multi-head attention mechanism in the tranformer model based on ProbSparse;
[0185] The target feature vector is optimized based on the optimized multi-head attention mechanism to obtain the fused feature vector.
[0186] In one embodiment, after the processor predicts the time series data information to be predicted and the image information to be predicted based on a preset prediction model and obtains a prediction result, it is further configured to implement:
[0187] Based on the prediction result, a maintenance reminder is generated to remind maintenance personnel to maintain the tower and the antenna feeder system.
[0188] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and the computer program includes program instructions. The processor executes the program instructions to implement any one of the feature fusion-based fault prediction methods provided in the embodiments of the present application.
[0189] The computer-readable storage medium may be an internal storage unit of the computer device described in the aforementioned embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the computer device.
[0190] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A fault prediction method based on feature fusion, characterized in that: include: Collect the predicted time series data information and the predicted image information of the tower and the antenna feeder system to be predicted; Based on a preset prediction model, the time series data information to be predicted and the image information to be predicted are processed to obtain a fused feature vector; Based on the prediction model, the fused feature vector is predicted to obtain fault prediction results of the tower to be predicted and the antenna feeder system to be predicted.
2. The fault prediction method based on feature fusion according to claim 1, characterized in that: The method further includes: processing the time series data information to be predicted and the picture information to be predicted based on the preset prediction model to obtain a fused feature vector; Acquire historical time series data information, historical image information and historical fault information of the tower and the antenna feeder system; Preprocessing the historical time series data information, the historical image information, and the historical fault information to obtain a training data set and a test data set; Based on the training data set, the pre-trained model is trained to obtain a model to be determined; Based on the test data set, the model to be determined is tested to obtain a test result; When the test result meets the preset model performance condition, the to-be-determined model is determined as the prediction model.
3. The fault prediction method based on feature fusion according to claim 1, characterized in that: The method of processing the to-be-predicted time series data information and the to-be-predicted picture information based on a preset prediction model to obtain a fused feature vector includes: For the time series data information to be predicted, obtaining a time series vector space; Processing the to-be-predicted picture information to obtain a picture vector space; Based on the time series vector space and the picture vector space, a time series feature vector is obtained. and the image feature vector; The fused feature vector is obtained based on the time series feature vector and the image feature vector.
4. The fault prediction method based on feature fusion according to claim 3 is characterized in that: The step of obtaining a time series vector space for the time series data information to be predicted includes: Processing the time series data information to be predicted, determining at least one time series feature, obtaining the number of the time series features, and importing the same number of univariate time series features as the number of the time series features; Each of the univariate time series features is divided based on a preset sequence length to generate at least one time series vector space to reduce the length of the time series.
5. The fault prediction method based on feature fusion according to claim 3 is characterized in that: The obtaining of the time series feature vector and the image feature vector based on the time series vector space and the picture vector space includes: Performing filter sampling processing on the time series vector space to obtain a first vector space, and performing filter sampling processing on the picture vector space to obtain a second vector space; Linear processing is performed on the first vector space and the second vector space respectively to obtain the time series feature vector and the image feature vector.
6. The fault prediction method based on feature fusion according to claim 3 is characterized in that: The step of obtaining the fused feature vector based on the time series feature vector and the image feature vector includes: Processing the time series feature vector and the image feature vector based on the Transformer Backbone module to obtain a target feature vector; Optimize the multi-head attention mechanism in the tranformer model based on ProbSparse; The target feature vector is optimized based on the optimized multi-head attention mechanism to obtain the fused feature vector.
7. The fault prediction method based on feature fusion according to any one of claims 1 to 6, characterized in that: After predicting the fused feature vector based on the prediction model to obtain the fault prediction results of the iron tower to be predicted and the antenna feeder system to be predicted, the method further includes: Based on the prediction result, a maintenance reminder is generated to remind maintenance personnel to maintain the tower and the antenna feeder system.
8. A fault prediction device based on feature fusion, characterized in that: include: The module for collecting information to be predicted is used to collect the time series data information to be predicted and the image information to be predicted of the tower to be predicted and the antenna feeder system to be predicted; A fusion feature vector acquisition module is used to process the time series data information to be predicted and the image information to be predicted based on a preset prediction model to obtain a fusion feature vector; The fault prediction result acquisition module is used to predict the fused feature vector based on the prediction model to obtain the fault prediction results of the tower to be predicted and the antenna feeder system to be predicted.
9. A computer device, characterized in that: The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the fault prediction method based on feature fusion as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the fault prediction method based on feature fusion according to any one of claims 1 to 7.
Citation Information
Patent Citations
Time sequence prediction method and device, electronic equipment and medium
CN115423080A
Traffic flow prediction method of space-time attention graph convolutional network based on multi-feature fusion
CN116168548A
Method for determining fault of component in industrial equipment and related equipment
CN116933145A
Method and system for predicting price of agricultrual product based on transformer model
KR102599136B1
Cited By
Iron tower foundation winter intelligent maintenance method fused with environment perception algorithm
CN119379250A
Pole tower performance monitoring method, device and equipment of power transmission line and storage medium
CN119666874A
Timing sequence picture recognition method and device for hanging archive bulk materials and medium
CN120182730A
Ship power device water supply system fault detection method based on similar state retrieval
CN120578878A
Automatic feeder terminal processing method and device and electronic equipment
CN120675305A
