Model training method, network fault prediction method, device, equipment, storage medium and computer program product
By constructing and selecting an optimized set of prompts for model training, combining historical time series and text data, and combining user operation information to predict network faults, the problem of low fault prediction accuracy in the existing technology is solved and higher prediction accuracy is achieved. performance and operation and maintenance efficiency.
Patent Information
- Application Number
- CN202410346340.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-25
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-03-25
AI Technical Summary
In the existing technology, fault detection based on fixed thresholds cannot predict network faults in advance, and fault prediction based on artificial intelligence has low accuracy in random changing scenarios, resulting in inaccurate fault prediction results in the operation and maintenance of communication private networks.
By acquiring historical time series data and historical text data associated with the network, we build a collection of prompts, select target prompts for model training, use the target model to predict network faults, and combine user operation information and time series data for fusion processing to improve prediction accuracy. Rate.
It improves the accuracy of network fault prediction, can match the actual network conditions at different times, reduces the operation and maintenance cycle, and realizes intelligent and automated fault prediction of communication private networks.
Smart Images

Figure CN118802468A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a model training method, a network fault prediction method, an apparatus, a device, a storage medium, and a computer program product. Background Art
[0002] The network management platform is responsible for managing network configuration, faults, performance, security, accounts and other functions in the operation and maintenance of the communication private network. Among them, network fault detection is crucial in the operation and maintenance of the communication private network. The network management platform usually adopts the method of setting thresholds and alarm strategies. When the indicators exceed the thresholds and meet the alarm strategies, the alarm logs are pushed to prompt the network failure, or unsupervised machine learning algorithms are used to detect network anomalies.
[0003] However, in related technologies, fault detection technology based on fixed thresholds cannot predict network failures in advance, and technical solutions based on artificial intelligence cannot adapt to randomly changing scenarios when predicting faults, resulting in low accuracy of network fault prediction results. Summary of the invention
[0004] In view of this, the embodiments of the present application hope to provide a model training method, network fault prediction method, device, equipment, storage medium and computer program product, which can improve the accuracy of network fault prediction results.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a model training method, the method comprising:
[0007] Obtain historical time series data and historical text data associated with the network;
[0008] Based on the historical time series data, a prompt word set is constructed; a target prompt word is selected from the prompt word set, and the target prompt word is superior to the remaining prompt words in the prompt word set except the target prompt word;
[0009] Based on the target prompt, historical time series data and historical text data, the initial model is trained to obtain the target model, which is used to predict network failures.
[0010] In a second aspect, an embodiment of the present application provides a network fault prediction method, the method comprising:
[0011] Obtaining user operation information at a first moment and time series data associated with the network at the first moment;
[0012] The user operation information and time series data are integrated and processed to obtain the prompt words to be input;
[0013] The network fault prediction is performed based on the prompt words to be input and the target model, and the target model is trained using the model training method as described above.
[0014] In a third aspect, an embodiment of the present application provides a model training device, the model training device comprising:
[0015] A first acquisition unit, used to acquire historical time series data and historical text data associated with the network;
[0016] A selection unit is used to construct a prompt word set based on historical time series data; select a target prompt word from the prompt word set, and the target prompt word is superior to the remaining prompt words in the prompt word set except the target prompt word;
[0017] The training unit is used to train the initial model based on the target prompt, historical time series data and historical text data to obtain the target model, and the target model is used to predict network failures.
[0018] In a fourth aspect, an embodiment of the present application provides a network fault prediction device, the network fault prediction device comprising:
[0019] A second acquisition unit, used to acquire user operation information at a first moment and time series data associated with the network at the first moment;
[0020] A fusion unit, used for fusing the user operation information and the time series data to obtain the prompt words to be input;
[0021] The fault prediction unit is used to predict network faults based on the prompt words to be input and the target model, and the target model is trained using the model training method as described above.
[0022] In a fifth aspect, an embodiment of the present application provides a model training device, which includes: a first processor and a first memory; the above-mentioned model training method is implemented when the first processor executes the running program stored in the first memory.
[0023] In a sixth aspect, an embodiment of the present application provides a network fault prediction device, which includes: a second processor and a second memory; when the second processor executes a running program stored in the second memory, the above-mentioned network fault prediction method is implemented.
[0024] In a seventh aspect, an embodiment of the present application provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned model training method is implemented, or when the computer program is executed by a processor, the above-mentioned network fault prediction method is implemented.
[0025] In an eighth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the above-mentioned model training method when executed by a processor, or implements the above-mentioned network fault prediction method when executed by a processor.
[0026] The embodiments of the present application provide a model training method, a network fault prediction method, an apparatus, a device, a storage medium and a computer program product. The model training method includes: obtaining historical time series data and historical text data associated with a network; constructing a prompt word set based on the historical time series data; selecting a target prompt word from the prompt word set, wherein the target prompt word is superior to the remaining prompt words in the prompt word set except the target prompt word; training an initial model based on the target prompt word, the historical time series data and the historical text data to obtain a target model, and the target model is used to predict network faults; and the network fault prediction method includes: obtaining user operation information at a first moment and time series data associated with the network at the first moment; fusing the user operation information and the time series data to obtain a prompt word to be input; predicting a network fault based on the prompt word to be input and the target model, and the target model is trained using the above model training method. By adopting the above implementation scheme, after constructing a prompt set using historical time series data, the prompt with the best effect is selected from the prompt set as the target prompt. When training the initial model, the target prompt is used in combination with the historical time series data and the historical text data for training. Since the target prompt has the best performance, the prediction ability of the target model can be improved. When using the target model trained based on the historical time series data to predict network faults, network fault prediction is performed by inputting user operation information and time series data at different times. As the user operation information and time series data at different times change, the prediction results obtained can match the actual network conditions at different times, making the network fault prediction more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A schematic diagram of a model training method flow provided in an embodiment of the present application;
[0028] Figure 2 A schematic diagram of an exemplary use of a large language model (LLM) for reasoning provided in an embodiment of the present application;
[0029] Figure 3 A schematic diagram of the overall process of a model training method provided in an embodiment of the present application;
[0030] Figure 4 A schematic diagram of a network fault prediction method flow provided in an embodiment of the present application;
[0031] Figure 5A schematic diagram of an exemplary method of forming a prompt prefix provided in an embodiment of the present application;
[0032] Figure 6 An exemplary target model input and output interaction flow chart provided in an embodiment of the present application;
[0033] Figure 7 A schematic diagram of the overall process of a network fault prediction method provided in an embodiment of the present application;
[0034] Figure 8 A schematic diagram of the overall process of a model training method and a network fault prediction method provided in an embodiment of the present application;
[0035] Fig. 9 is a schematic diagram of a comparison result of an exemplary prediction of first screen delay;
[0036] Fig.10 A schematic diagram of the structure of a model training device provided in an embodiment of the present application;
[0037] Fig.11 A schematic diagram of the structure of a model training device provided in an embodiment of the present application;
[0038] Fig.12 A schematic diagram of the structure of a network fault prediction device provided in an embodiment of the present application;
[0039] Fig.13 A schematic diagram of the composition structure of a network fault prediction device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the technical solution of the present application is further elaborated in detail below in combination with the drawings and specific embodiments of the specification. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0041] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art to which the present application belongs. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0042] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. It should also be noted that the terms "first / second / third" involved in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first / second / third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0043] The network management platform (also known as the network management platform) is responsible for managing network configuration, network faults, network performance, network security, and network accounts in the operation and maintenance of the communication private network. Among them, network fault detection is crucial in the operation and maintenance of the communication private network. The network management platform usually sets thresholds and alarm strategies. When the indicators exceed the thresholds and meet the alarm strategies, the alarm log is pushed to prompt the network failure. In addition to the usual method of setting fixed thresholds to prompt alarms, the relevant technology also uses unsupervised machine learning algorithms for anomaly detection to provide threshold-free fault identification capabilities. At the same time, the trend forecast of each key operation and maintenance indicator is formed through the cubic exponential smoothing algorithm or regression algorithm, and the fault is predicted and analyzed and warned in advance in combination with the business call chain, abnormal causal relationship or expert rules, or by building a system log fault feature library, the system health portrait is made based on the classification algorithm, and the power system fault warning is carried out based on multimodal learning.
[0044] Based on the above technical solutions, the fault detection technology based on fixed thresholds cannot predict the occurrence of faults in advance, and the artificial intelligence (AI) technology generally uses historical experience data to train the model when predicting faults. The model cannot continuously update user operation information, that is, in the network fault prediction stage, it does not consider changes in non-prediction related indicators, such as changes in the number of terminals (for example, data isolation in private network parks makes it difficult to obtain corresponding training data), changes in terminal services (such as browsing and downloading services / video services, etc.), changes in computer room temperature and other external information.
[0045] In related technologies, the fault prediction capability of the industry network management platform is usually to contact the operation and maintenance engineers after the fault occurs, which takes a long time to solve. Therefore, it is of great significance to realize the intelligent and automated fault prediction of the communication private network.
[0046] To solve the above problems, the present application provides a model training method, such as Figure 1 As shown, the method may include:
[0047] S101. Acquire historical time series data and historical text data associated with the network.
[0048] In an embodiment of the present application, the model training method belongs to the data fine-tuning stage, historical time series data and historical text data are the data sources used in the data fine-tuning stage, and the historical time series data is stored in a historical time series data set (or historical time series data table).
[0049] In an embodiment of the present application, the historical text data includes text data in a historical communication private network knowledge base and text data in a historical communication private network operation and maintenance experience base.
[0050] In the embodiment of the present application, the text data in the historical communication private network knowledge base is the communication industry professional knowledge collected in text format.
[0051] In an embodiment of the present application, the text data in the historical communication private network operation and maintenance experience library includes the communication private network operation and maintenance experience in text format fed back by the operation and maintenance experts and an alarm record table in the form of a data table.
[0052] In an embodiment of the present application, the historical time series data stored in the historical time series data table used in the data fine-tuning stage includes field data to be predicted and field data related to the field to be predicted. For example, if the field data to be predicted is the first screen delay, the field data related to the first screen delay includes indicator data such as the number of terminals, TCP link establishment delay, and HTTP unresponsiveness, as shown in Table 1 below. Table 1 exemplarily shows a historical time series data table, in which the fields include time, business scenario, number of sessions, Transmission Control Protocol (TCP) link establishment delay, client round-trip time (RTT) delay, Hypertext Transfer Protocol (HTTP) unresponsiveness, first screen delay, etc.
[0053] Table 1
[0054]
[0055] S102: construct a prompt word set based on historical time series data; and select a target prompt word from the prompt word set.
[0056] Among them, the target prompt is better than the remaining prompts in the prompt set except the target prompt.
[0057] In the embodiment of the present application, by designing a processing module A, the processing module A is used to implement the process of constructing a prompt and selecting a target prompt.
[0058] It should be noted that the naming of the processing module A can be selected according to actual conditions and is not specifically limited in the embodiments of the present application.
[0059] In the embodiment of the present application, the prompts are initialized by the prompt initialization module of the processing module A, and the corresponding prompts are obtained by manually writing the historical time series data in the historical time series data table. Then, for the prompts initially written, the types of prompts can be further enriched by manually writing, and all the written prompts are composed into a prompt set. As shown in the following Table 2, examples of some prompts obtained after the prompts are initialized are listed.
[0060] Table 2
[0061]
[0062] In the embodiment of the present application, in addition to enriching the types of prompts by manually writing, the word order of the prompts can also be adjusted by re-wording through LLM based on the manually written prompts to obtain more types of prompts.
[0063] It should be noted that, in addition to the above-mentioned LLM, other adjustment methods may also be adopted, which are not specifically limited in the embodiments of the present application.
[0064] In the embodiment of the present application, after the prompt word set is obtained, the processing module A further selects an optimal prompt word from the prompt word set.
[0065] In the embodiment of the present application, selecting the best prompt from the prompt set may be performed based on the score of each prompt in the prompt set, and selecting the one with the highest score as the target prompt.
[0066] It should be noted that the target prompt can be understood as a template input into the target model during training. For example, when predicting the first screen delay, the historical first screen delay is used to replace the data related to the first screen delay in the target prompt.
[0067] S103: Based on the target prompt, historical time series data and historical text data, the initial model is trained to obtain a target model.
[0068] Among them, the target model is used to predict network failures.
[0069] In an embodiment of the present application, the initial model is trained based on the target prompt, historical time series data and historical text data, and obtaining the target model can be achieved in the following ways: constructing question-answer pairs based on historical text data; training the initial model based on the target prompt, historical time series data and question-answer pairs to obtain the target model.
[0070] In the embodiment of the present application, the initial model may be an initial LLM model.
[0071] In an embodiment of the present application, constructing question-answer pairs based on historical text data can be achieved through the designed processing module B.
[0072] It should be noted that the naming of the processing module B can be selected according to actual conditions and is not specifically limited in the embodiments of the present application.
[0073] In an embodiment of the present application, when processing module B processes historical text data to obtain question-answer pairs, question-answer pairs can be formed based on the communications industry in text format input into the historical communications private network knowledge base and / or the communications private network operation and maintenance experience in text format fed back by operation and maintenance experts in the historical communications private network operation and maintenance experience base and the alarm record table in the form of a data table.
[0074] In an embodiment of the present application, when training the initial model, the corresponding historical time series data in the historical time series data table is input into the target prompt, and combined with the question and answer pairs formed by using the historical text data, it is simultaneously input into the initial LLM model for training to obtain a target model for network fault prediction.
[0075] It can be understood that in a model training method provided in an embodiment of the present application, after constructing a prompt set using historical time series data, the prompt with the best effect is selected from the prompt set as the target prompt. When training the initial model, the target prompt is used in combination with the historical time series data and the historical text data for training. Since the target prompt has the best performance, the prediction ability of the trained target model can be improved. When the target model is used for prediction, the accuracy of the prediction result can be improved, thereby ensuring that when the trained target model is used to predict network faults for user operation information and time series data input at different times, the prediction results obtained as the user operation information and time series data at different times change match the actual network conditions at different times, thereby making the network fault prediction more accurate.
[0076] In one embodiment of the present application, a target prompt is selected from a prompt set. Specifically, each prompt in the prompt set can be scored; multiple prompt selections are made from the prompt set, and multiple prompts are selected from the prompt set each time; for each of the multiple prompts selected, a prompt with the highest score is selected from the multiple prompts selected each time, to obtain multiple prompts with the highest scores; and a target prompt is selected from the multiple prompts with the highest scores.
[0077] In the embodiment of the present application, each prompt includes historical time series data of n time points, where n is an integer greater than or equal to 1. When scoring each prompt in the prompt set, based on the historical time series data of n time points included in each prompt, the time series data of the n+1th time point is predicted to obtain predicted data; the predicted data and the historical time series data of the n+1th time point are processed to obtain a first value; and based on the historical time series data of the n time points and the historical time series data of the n+1th time point, a second value is determined; based on the first value and the second value, the score corresponding to each prompt in the prompt set is determined.
[0078] In the embodiment of the present application, the prompt set includes multiple prompts, and each prompt includes historical time series data of n time points.
[0079] In the embodiment of the present application, the first value may represent the error value E, and the second value may represent the absolute difference value H.
[0080] In the embodiment of the present application, scoring each prompt in the prompt set may be implemented by the evaluation module included in the processing module A.
[0081] In the embodiment of the present application, the evaluation module evaluates the set of prompts obtained by manually writing or further rewording the manually written prompts to obtain the set of prompts P 1...m , for each prompt P i The module was evaluated for effectiveness. 1...m The output is in the form of {[prompt 1, score]...[prompt m, score]}.
[0082] In the embodiment of the present application, the evaluation module first performs reasoning through LLM, that is, the process of obtaining prediction data.
[0083] In the embodiment of the present application, since each prompt contains historical time series data of n time points, the prompt included in the prediction instruction I is input into the LLM, that is, the indicator data (i.e., historical time series data) X of time points 1...n in the prompt included in the prediction instruction I is used to predict the indicator data (i.e., predicted data) corresponding to time point n+1, and the predicted data X corresponding to the output of time point n+1 is obtained. n ' +1 .
[0084] In the embodiment of the present application, the reasoning process of predicting data can be performed from a single dimension and multiple dimensions. For example, a single dimension can only predict the data at time point n+1 corresponding to the first screen delay, while a multiple dimension can predict the data at time n+1 corresponding to the first screen delay, and can also predict the data at time n+1 corresponding to the TCP link establishment delay. The following formula (1) shows the process of predicting reasoning in a single dimension, and formula (2) shows the process of predicting reasoning in multiple dimensions.
[0085] X=[x 1 ,x 2 ,x 3 ,x 4 ,...,x n ,x n+1 ],I(X'=[x 1 ,x 2 ,x 3 ,x 4 ,...,x n ])→LLM→x' n+1 (1)
[0086] X=[x 1 , x 2 , x 3 , x 4 , ..., x n , x n+1 ],Y=[y 1 ,y 2 ,y 3 ,y 4 , ..., y n ,y n+1 ],...,Z=[z 1 , z 2 , z 3 , z 4 , ..., z n , z n+1 ]
[0087] I(X 1 ' ...n ,Y 1 ' ...n , Z' 1...n )→LLM→x' n+1 (2)
[0089] In formula (1), the set X represents the historical time series data corresponding to the n+1 time points contained in the historical time series data, I represents the prediction instruction, the set X′ represents the historical time series data corresponding to the first n time points, and x′ n+1It represents the predicted data obtained from a single dimension, such as the predicted first screen delay.
[0090] In formula (2), the X set represents the historical time series data corresponding to the n+1 time points contained in the historical time series data of the first dimension, the Y set represents the historical time series data corresponding to the n+1 time points contained in the historical time series data of the second dimension, the Z set represents the historical time series data corresponding to the n+1 time points contained in the historical time series data of the third dimension, I represents the prediction instruction, the X′ set represents the historical time series data corresponding to the first n time points of the first dimension, the Y′ set represents the historical time series data corresponding to the first n time points of the second dimension, the Z′ set represents the historical time series data corresponding to the first n time points of the third dimension, and x′ n+1 It represents the predicted data obtained from multiple dimensions, such as the predicted first screen delay, TCP link establishment delay, server RTT delay, etc.
[0091] In an embodiment of the present application, after obtaining the predicted data corresponding to the n+1th time point, the error value E and the absolute error H are calculated in combination with the true value of the historical time series data corresponding to the n+1th time point.
[0092] In the embodiment of the present application, the predicted data x' at the n+1th time point is calculated. n+1 and the true value (i.e. the historical time series data at the n+1th time point) x n+1 The error value E between them can be calculated by the following formula (3).
[0093] E=|x' n+1 -x n+1 | (3)
[0094] In the embodiment of the present application, for each prompt, the absolute difference H can be calculated by using the average value of the indicator data (i.e., historical time series data) at time points 1...n in the prompt and the historical time series data at the n+1th time point using the following formula (4). The average value of the indicator data (i.e., historical time series data) at time points 1...n and x can be calculated by formula (4). n+1 The absolute difference H.
[0095]
[0096] It should be noted that, since the data used here is historical time series data, the historical time series data of the n+1th time point can be directly obtained.
[0097] In the embodiment of the present application, when determining the score of each prompt based on the error value E and the absolute difference value H, the score can be calculated as shown in the following formula (5). Wherein, if E is less than H, the score is 10+1 / MAE(x' n+1 , x n+1 ), if E is equal to H, the score is 5, if E is greater than H, the score is 0.
[0098]
[0099] Among them, MAE stands for Mean Absolute Error, which can be expressed in English as Mean Absolute Error, 1 / MAE(x' n+1 , x n+1 ) is equivalent to
[0100] In the embodiment of the present application, after obtaining the score corresponding to each prompt in the prompt set, the target prompt is further selected by the selection module included in the processing module A. Specifically, for the prompt set P 1...m , the corresponding error score Rank 1...m For the prompt set P 1...m Make h selections, each time from the prompt set P 1...m Randomly sample s prompts (with replacement), then select the prompt with the best score from the s prompts and put it into the list PARENTS 1...h That is, among the s prompts, only the prompt with a better error score than the other s-1 competitors can be selected. If the error scores are the same, the longer prompt is selected because the longer prompt stores more information and is considered better.
[0101] In the embodiment of the present application, since the highest-scoring prompt is selected from s individual prompts each time, and h selections are made, the selection module finally outputs the list PARENTS 1...h {[prompt 1, score]...[prompt h, score]}, that is, the h highest-scoring prompts obtained from h selections.
[0102] In the embodiment of the present application, the target prompt finally determined from the h prompts is the prompt with the highest score among the h prompts.
[0103] For example, if h is 3 and s is 5, the highest scoring prompts obtained from the three selections are scored 11.5, 10.8, and 11.9, respectively. The target prompt is the one with the highest score among the three, that is, the prompt corresponding to 11.9 is used as the target prompt. 11.5 is the highest scoring prompt among the five prompts selected each time, and so on. No further details are given here.
[0104] In one embodiment of the present application, for each selection of multiple prompts, a prompt with the highest score is selected from the multiple prompts selected each time. After obtaining the multiple prompts with the highest scores, the multiple prompts with the highest scores can be recombined to obtain M combined prompts, where M is an integer greater than or equal to 0; the M combined prompts are subjected to word order mutation processing to obtain M prompts with adjusted word order; based on the multiple prompts with the highest scores and the M prompts with adjusted word order, an updated prompt set is constructed, and the updated prompt set is used to select a target prompt from the updated prompt set.
[0105] In an embodiment of the present application, for each selection of multiple prompts, a prompt with the highest score is selected from the multiple prompts selected each time. After obtaining the multiple prompts with the highest scores, the evolution module included in the processing module A can be further used to further recombine and perform word order mutation processing on the multiple prompts with the highest scores.
[0106] In the embodiment of the present application, for the selected h prompts, namely PARENTS 1...h All the prompts in the further expansion can be guided by two evolution operators. The final output of the evolution module is PARENTS 1...h and OFFSPRING after word order mutation 1...m-h .
[0107] It should be noted that since there are initially m prompts in the prompt set, after the word order mutation, the output PARENTS 1...h and OFFSPRING after word order mutation 1...m-h The sum is also m.
[0108] In the embodiment of the present application, the h prompts are first recombined, and the recombining method can be implemented by a cross transformation method, that is, two prompts are randomly selected from the h prompts as context, and LLM is input to re-word to generate two new prompts, and the process is repeated until a total of M = mh new prompts are generated.
[0109] It should be noted that LLM is only an example model, and other models may also be used.
[0110] In the embodiment of the present application, the mh new prompts obtained after the cross transformation and the h prompts constitute a total of m prompts.
[0111] In the embodiment of the present application, word order mutation processing is performed on mh prompts to obtain mh prompts after word order adjustment. Specifically, a mutation method is randomly selected for each new prompt after the cross transformation to adjust the word order or content.
[0112] It should be noted that the word order mutation processing only adjusts the word order of the prompts, and does not increase the number of prompts.
[0113] In the embodiment of the present application, four ways of enriching word order are designed, which include a total of nine specific methods to provide mutation guidance for the diversification of prompts. Among them, the first way is multivariate numerical description, which makes the learning of the large model LLM independent of specific numbers by changing the numerical description of the problem. The specific methods include Chinese expression replacement, integer and decimal replacement, and front and back decimal point position change; the second way is numerical instruction adjustment, and the specific methods include time series advancement and prediction period change; the third way is prediction field adjustment, and the specific methods include related field adjustment and prediction target adjustment; the fourth way is context adjustment, and the specific methods include Few-shot addition and CoT addition. The four ways of enriching word order and the nine specific methods included are shown in Table 3 below.
[0114] Table 3
[0115]
[0116]
[0117] In the embodiment of the present application, the mh prompts output after the evolution module is reassembled and the word order mutation is processed and the selected h prompts with the highest scores are merged into a new prompt set P 1...m , re-enter the evaluation module for iterative evaluation. When the maximum number of iterations is reached, the selection module continues to select, and finally selects a prompt with the highest error score from the selected h prompts as an excellent recommendation text (i.e., the target prompt). The target prompt is used as a template to organize the historical time series data in the historical time series data table, and further input it into the LLM to retrain the LLM.
[0118] It should be noted that the maximum number of iterations can be selected according to actual conditions and is not specifically limited in the embodiments of the present application.
[0119] In an embodiment of the present application, during the training of LLM, the input of LLM includes: organizing historical time series data using target prompts, and using the organized prompts as LLM input. In addition, it also includes: question-answer pairs obtained after processing text data from a historical communication private network knowledge base and a historical communication private network operation and maintenance experience base as LLM input.
[0120] In an embodiment of the present application, the prompts and question-answer pairs after the historical time series data are sorted out using the target prompts are used to perform low-rank adaptive fine-tuning of the large language model (Low-Rank Adaptation of Large Language Models, LORA). A bypass is added next to the initial LLM to perform a dimensionality reduction and then dimensionality increase operation. During training, the parameters of the pre-trained initial LLM are fixed, and only the dimensionality reduction matrix and the dimensionality increase matrix are trained. The input and output dimensions of the initial LLM remain unchanged. When outputting, the two matrices are superimposed with the parameters of the pre-trained initial model, and the target model is finally obtained through parameter update and adjustment. The target model can be understood as a fault prediction model, which is a model for predicting network faults.
[0121] Based on the above embodiment, since LLM makes intelligent responses based on prompt input, different prompts will seriously affect the reasoning ability of LLM. Figure 2 As shown, Figure 2 The command entered is a simple subtask in the prediction task: sequence segmentation. Figure 2 The four different prompts for the task shown correspond to four different answers given by the same LLM. The LLM gave different responses to different descriptions of the same task. It can be seen that a high-quality fine-tuning dataset (i.e., multiple selected prompts with the highest scores) can improve the prediction accuracy of the LLM in the reasoning stage. Therefore, in order to select a diverse, high-quality, and large number of datasets in the data fine-tuning stage, a processing module A is designed in the embodiment of the present application. The processing module A redesigned the prompt screening based on the concept of the evolutionary algorithm. The overall process of the processing module A is as follows: Figure 3 As shown, because the basic LLM itself has only very weak prediction capabilities, such as realizing a data estimate based on simple calculations such as averages, but because the mathematical ability of the basic LLM is also very weak, even the simple average prediction method still frequently has calculation errors. In order to improve the prediction ability of the basic LLM, in the embodiment of the present application, in the fine-tuning stage, different processing modules are added to perform a multi-step selection method to optimize the prompt template input to the LLM to update the network parameters of the LLM. The processing module A mainly includes a prompt initialization module, an evaluation module, a selection module, and an evolution module. Finally, the target prompt (i.e., the recommended text) is obtained through the selection module, and the historical time series data is organized into training data based on the target prompt and input into the LLM to train the LLM, which can be understood as fine-tuning the model parameters of the LLM model.
[0122] It should be noted that each processing process of the above processing module A has been described in detail in the above embodiments and will not be repeated here.
[0123] The present application also provides a network fault prediction method. Figure 4 As shown, the method may include:
[0124] S401: Obtain user operation information at a first moment and time series data associated with a network at the first moment.
[0125] In the embodiment of the present application, the first moment is the moment when the user performs information operation. The first moment can also be understood as the current moment, which is a real-time acquisition process.
[0126] In the embodiment of the present application, network fault prediction can be understood as a stage of reasoning.
[0127] In an embodiment of the present application, the user operation information includes unstructured text information extracted from the user operation analysis module, and the unstructured text information does not correspond to the time series data table.
[0128] In the embodiment of the present application, the time series data associated with the network at the first moment can be understood as the time series data in the time series data table that is updated in real time.
[0129] S402: Fusing the user operation information and the time series data to obtain prompt words to be input.
[0130] In an embodiment of the present application, the user operation information and the time series data are fused to obtain the prompt words to be input, which can be achieved in the following ways: the user operation information is converted to form a first prompt word to be input; a prompt word template is obtained, and based on the prompt word template, a second prompt word to be input corresponding to the time series data is determined; the first prompt word to be input and the second prompt word to be input are fused to obtain the prompt word to be input.
[0131] In the embodiment of the present application, the first prompt word to be input can be understood as a prompt word prefix.
[0132] In an embodiment of the present application, after the target prompt is selected, the target prompt can be stored in a fixed location. When network fault prediction is required, the target prompt is obtained from the location where the target prompt is stored, and the target prompt is used to organize the time series data to be predicted in the real-time updated data table to obtain the time series data corresponding to the second prompt to be input. That is, it can be understood as organizing the time series data into the form of the target prompt, and inputting the second prompt to be input into the processing module C.
[0133] In the embodiment of the present application, when a user adds a new terminal or modifies the network protocol to adjust the terminal service, the network management platform requires the user to manually configure the relevant information. The user operation analysis module obtains the user's current intention by actively adding information through the user front end, and converts the text according to the user's current intention to form a prompt prefix.
[0134] In the embodiment of the present application, the prompt prefix can be added to the prompt context obtained in the inference stage, such as Figure 5 As shown, the fused prompt to be input can be used as the input of the target model, where free text input is an optional operation. Users can freely add prefixes to affect the fault prediction results, so that the target model can take into account real-time external environment change information during the reasoning stage. For example, if the air conditioner in the computer room fails, the range in which the temperature of the computer room may increase can be manually entered.
[0135] S403: Perform network fault prediction based on the prompt to be input and the target model.
[0136] Among them, the target model is trained using the above-mentioned model training method.
[0137] In an embodiment of the present application, processing module C is used to fuse the second prompt to be input corresponding to the time series data in the time series data table obtained in real time and the prompt prefix corresponding to the user operation information in the user operation analysis module to obtain a fused prompt to be input, and the prompt to be input is used as the input of the target model. The prompt to be input is input into the target model, and the target model performs inference based on the text content in the prompt to be input to predict network failures.
[0138] In the embodiment of the present application, when predicting network failures, prediction is made from the dimension of user operations, so that the prediction accuracy is higher.
[0139] For example, Figure 6 As shown, some input and output interaction flow charts of the target model (also called fault prediction model) are listed.
[0140] It can be understood that in a network fault prediction method provided in an embodiment of the present application, when using a target model trained based on historical time series data to predict network faults, since user operation information and time series data are input at different times to predict network faults, the prediction results obtained as the user operation information and time series data at different times change can match the actual network conditions at different times, thereby making the network fault prediction more accurate.
[0141] Based on this, due to the complexity of network operation and maintenance in the 2B (Business) scenario in the fifth generation mobile communication technology (5th Generation Fifth Generation, 5G), it is necessary to build an intelligent operation and maintenance capability system. The embodiment of the present application can be used as a fault prediction capability in the network operation and maintenance management platform of the communication private network, and can also be applied to other scenarios that require fault prediction capabilities.
[0142] In one embodiment of the present application, after network fault prediction is performed based on the prompt to be input and the target model, the prediction result, user operation information, and alarm information obtained after network fault prediction using the target model are fused and output.
[0143] In the embodiment of the present application, the target model is used to perform the reasoning stage of network faults, and finally the prediction results, user operation information, and potential alarm information are integrated through a preset template in the form of a fault prediction report and output to the network management platform.
[0144] It should be noted that the preset template can be selected according to actual conditions and is not specifically limited in the embodiments of the present application.
[0145] Based on the above embodiments, the overall flow diagram of the reasoning stage in the embodiments of the present application is as follows: Figure 7 As shown, continuously updated user operation information is added in the network communication private network fault prediction process. The specific processing process involved can refer to the implementation process in the above embodiment and will not be repeated here.
[0146] Based on the above embodiments, the present application also provides a schematic diagram of the overall process of a model training method and a network fault prediction method. Figure 8 As shown. By utilizing the sequence modeling and text processing capabilities of LLM, by learning historical time series data, text data in the historical communication private network knowledge base, and text data in the historical communication private network operation and maintenance experience base, the network failure of the communication private network is predicted based on the contextual learning capabilities of LLM and user operation information.
[0147] Specifically, in the embodiment of the present application, multiple modules including the offline phase (i.e., the data fine-tuning phase) and the reasoning phase are designed to work together to predict the failure of the communication private network. The overall implementation process is as follows: Figure 8As shown. Data fine-tuning is to train some or all parameters of the initial LLM. In the offline stage, historical time series data related to prediction, text data in the industry network knowledge base and operation and maintenance experience base are input, and two prompts are processed by processing modules A and B to form the initial LLM. The text data uses manually annotated data to improve the ability of the basic large model in the field of fault prediction through supervised fine tuning (Supervised Fine Tuning, SFT) in the form of question (Question, Q)-answer (Answer, A) combination. The processing module A integrates historical time series data and combines evolutionary algorithms to optimize the search for target prompts. Among them, the initial LLM can use open source ChatGLM2-6B, Qwen-7B, etc. In the reasoning stage, according to the real-time updated time series data related to the prediction and the user operation information collected by the user operation analysis module, it is processed by processing module C, and the continuously updated predicted time series data and unstructured user operation information are integrated to form the LLM (i.e., the target model) after fine-tuning the input prompt. The target model outputs a fault prediction report or feeds back to the network management platform in the form of an alarm. The specific implementation process involved can refer to the aforementioned embodiments and will not be described in detail here.
[0148] Based on the foregoing embodiments, the embodiments of the present application also provide a comparison between a schematic diagram of network fault prediction in an exemplary related art and a schematic diagram of network fault prediction in an embodiment of the present application combined with real-time updated user operation information, such as Fig. 9 As shown. Fig. 9 It can be seen that Day 1 shows the historical first screen delay obtained by using relevant technologies, and Day 2 includes the results of first screen delay prediction using relevant technologies and the results of first screen delay prediction by adding unstructured user operation information (or environmental information) in an embodiment of the present application.
[0149] In the embodiment of the present application, since the generalization ability of the large model (i.e., the LLM model) is stronger than other AI models, it can be used across domains in the reasoning stage. For example, during model training, the temperature dimension data is not considered when predicting the training data, such as the impact of the room temperature on the predicted network delay. However, during the reasoning stage, the user inputs the temperature information on the network management platform, and the LLM model can make a corresponding judgment. The training data of other AI models must have temperature information, and the reasoning stage can infer conclusions based on the temperature information, so the embodiment of the present application can be applied to changing scenarios.
[0150] Compared with the related art, the technical solution of the embodiment of the present application has the following technical advantages:
[0151] 1. Compared with the related technical solutions that use an unsupervised algorithm combined with a regression algorithm to perform fault detection and prediction, the embodiment of the present application adds external user operation information to the auxiliary target model through the processing module C in the reasoning stage of fault prediction to predict fault indicators, and the prediction result is more accurate.
[0152] 2. Compared with the fault prediction method of the related technical solution, the reasoning process of the embodiment of the present application is more flexible, and unstructured text information can be supplemented as the context content of the target model during the reasoning stage.
[0153] 3. The embodiment of the present application designs a multi-step evolutionary search method (i.e., processing module A) to improve the training efficiency of supervised fine-tuning of large models.
[0154] Based on the above embodiment, a model training device 1 is provided in another embodiment of the present application. Fig.10 As shown, the model training device 1 comprises:
[0155] The first acquisition unit 10 is used to acquire historical time series data and historical text data associated with the network.
[0156] The selection unit 11 is used to construct a prompt word set based on the historical time series data; and select a target prompt word from the prompt word set, wherein the target prompt word is superior to the remaining prompt words in the prompt word set except the target prompt word.
[0157] The training unit 12 is used to train the initial model based on the target prompt, historical time series data and historical text data to obtain a target model, and the target model is used to predict network failures.
[0158] In one embodiment, the model training device 1 may further include: a scoring unit.
[0159] The scoring unit is used to score each prompt in the prompt set.
[0160] The selection unit 11 is further used to select prompts from the prompt set multiple times, each time selecting multiple prompts from the prompt set; for the multiple prompts selected each time, selecting a prompt with the highest score from the multiple prompts selected each time to obtain multiple prompts with the highest scores; and selecting a target prompt from the multiple prompts with the highest scores.
[0161] In one embodiment, each prompt includes historical time series data of n time points, where n is an integer greater than or equal to 1.
[0162] In one embodiment, the model training device 1 may further include: a prediction unit and a processing unit.
[0163] The prediction unit is used to predict the time series data at the n+1th time point based on the historical time series data at the n time points contained in each prompt to obtain predicted data.
[0164] The processing unit is used to perform calculation processing on the predicted data and the historical time series data at the n+1th time point to obtain a first value; and determine a second value based on the historical time series data at n time points and the historical time series data at the n+1th time point.
[0165] The scoring unit is further configured to determine a score corresponding to each prompt word in the prompt word set based on the first value and the second value.
[0166] In one embodiment, the model training device 1 may further include: a combination unit and a construction unit.
[0167] The combining unit is used to recombine multiple prompts with the highest scores to obtain M combined prompts, where M is an integer greater than or equal to 0.
[0168] The processing unit is further used to perform word order mutation processing on the M combined prompts to obtain M prompts with adjusted word order.
[0169] The construction unit is used to construct an updated prompt word set based on multiple prompt words with the highest scores and the M prompt words with adjusted word orders, and the updated prompt word set is used to select a target prompt word from the updated prompt word set.
[0170] In one embodiment, the construction unit is further used to construct question-answer pairs based on historical text data.
[0171] The training unit 12 is also used to train the initial model based on the target prompt, historical time series data and question-answer pairs to obtain the target model.
[0172] The embodiment of the present application provides a model training device, which obtains historical time series data and historical text data associated with a network; constructs a prompt set based on the historical time series data; selects a target prompt from the prompt set, and the target prompt is better than the remaining prompts in the prompt set except the target prompt; trains an initial model based on the target prompt, the historical time series data and the historical text data to obtain a target model, and the target model is used to predict network failures. It can be seen that the model training device proposed in the embodiment of the present application uses historical time series data to construct a prompt set, and then selects the prompt with the best effect from the prompt set as the target prompt. When training the initial model, the target prompt is used in combination with the historical time series data and the historical text data for training. Since the target prompt has the best performance, the prediction ability of the trained target model can be improved. When the target model is used for prediction, the accuracy of the prediction result can be improved, thereby ensuring that when the trained target model is used to predict network failures for user operation information and time series data input at different times, the prediction results obtained as the user operation information and time series data at different times change match the actual network conditions at different times, so that the accuracy of network failure prediction is higher.
[0173] Fig.11 This is a schematic diagram of the structure of a model training device 2 provided in an embodiment of the present application. In practical applications, based on the same public concept of the above embodiments, Fig.11 As shown, the model training device 2 of the embodiment of the present application includes a first processor 20, a first memory 21 and a first communication bus 22.
[0174] In the specific implementation process, the first acquisition unit 10, the selection unit 11, the training unit 12, the scoring unit, the prediction unit, the processing unit, the combination unit, and the construction unit can be implemented by the first processor 20 located on the model training device 2, and the first processor 20 can be a specific application integrated circuit (ASIC, Application Specific Integrated Circuit), a digital signal processor (DSP, Digital Signal Processor), a digital signal processing image processing device (DSPD, Digital Signal Processing Device), a programmable logic image processing device (PLD, Programmable Logic Device), a field programmable gate array (FPGA, Field Programmable Gate Array), a CPU, a controller, a microcontroller, and at least one of a microprocessor. It can be understood that for different devices, the electronic device used to implement the above-mentioned processor function can also be other, and the embodiments of the present application are not specifically limited.
[0175] In the embodiment of the present application, the first communication bus 22 is used to realize the connection communication between the first processor 20 and the first memory 21; when the first processor 20 executes the running program stored in the first memory 21, the following model training method is implemented:
[0176] Acquire historical time series data and historical text data associated with the network; construct a prompt word set based on the historical time series data; select a target prompt word from the prompt word set, and the target prompt word is better than the remaining prompt words in the prompt word set except the target prompt word; train an initial model based on the target prompt word, historical time series data and historical text data to obtain a target model, and the target model is used to predict network failures.
[0177] In one embodiment, the first processor 20 is further configured to score each prompt in the prompt set; select prompts from the prompt set multiple times, each time selecting multiple prompts from the prompt set; for each of the multiple prompts selected, select a prompt with the highest score from the multiple prompts selected each time, to obtain multiple prompts with the highest scores; and select a target prompt from the multiple prompts with the highest scores.
[0178] In one embodiment, each prompt includes historical time series data of n time points, where n is an integer greater than or equal to 1.
[0179] In one embodiment, the first processor 20 is further used to predict the time series data at the n+1th time point based on the historical time series data at the n time points contained in each prompt to obtain predicted data; to perform calculations on the predicted data and the historical time series data at the n+1th time point to obtain a first value; and to determine a second value based on the historical time series data at the n time points and the historical time series data at the n+1th time point; and to determine a score corresponding to each prompt in the prompt set based on the first value and the second value.
[0180] In one embodiment, the first processor 20 is further used to recombine multiple prompts with the highest scores to obtain M combined prompts, where M is an integer greater than or equal to 0; perform word order mutation processing on the M combined prompts to obtain M prompts with adjusted word order; and construct an updated prompt set based on the multiple prompts with the highest scores and the M prompts with adjusted word order, and the updated prompt set is used to select a target prompt from the updated prompt set.
[0181] In one embodiment, the first processor 20 is further used to construct question-answer pairs based on historical text data; and to train the initial model based on the target prompt, historical time series data and question-answer pairs to obtain the target model.
[0182] Based on the above embodiment, in another embodiment of the present application, a network fault prediction device 3 is provided, such as Fig.12 As shown, the network fault prediction device 3 includes:
[0183] The second acquisition unit 30 is used to acquire user operation information at a first moment and time series data associated with the network at the first moment.
[0184] The fusion unit 31 is used to fuse the user operation information and the time series data to obtain the prompt words to be input.
[0185] The fault prediction unit 32 is used to predict network faults based on the prompt to be input and the target model, where the target model is trained using the above-mentioned model training method.
[0186] In one embodiment, the network fault prediction device 3 may further include: a conversion unit.
[0187] The conversion unit is used to convert the user operation information to form a first prompt word to be input.
[0188] The second acquisition unit 30 is further configured to acquire a prompt template, and determine a second prompt to be input corresponding to the time series data based on the prompt template.
[0189] The fusion unit 31 is further configured to fuse the first prompt word to be input and the second prompt word to be input to obtain the prompt word to be input.
[0190] In one embodiment, the fusion unit 31 is further used to fuse and output the prediction results, user operation information, and alarm information obtained after network fault prediction using the target model.
[0191] An embodiment of the present application provides a network fault prediction device, which obtains user operation information at a first moment and time series data associated with the network at the first moment; fuses the user operation information and the time series data to obtain a prompt to be input; and performs network fault prediction based on the prompt to be input and a target model, wherein the target model is trained using the above-mentioned model training method. It can be seen that a network fault prediction device provided by an embodiment of the present application performs network fault prediction using a target model trained based on historical time series data. Since user operation information and time series data are input at different moments to perform network fault prediction, the prediction results obtained as the user operation information and time series data at different moments change can match the actual network conditions at different moments, thereby making the network fault prediction more accurate.
[0192] Fig.13A schematic diagram of the composition structure of a network fault prediction device 4 provided in an embodiment of the present application. In practical applications, based on the same disclosure concept of the above embodiments, as Fig.13 As shown, the network fault prediction device 4 of the embodiment of the present application includes a second processor 40 , a second memory 41 and a second communication bus 42 .
[0193] In the specific implementation process, the second acquisition unit 30, the fusion unit 31, the fault prediction unit 32, and the conversion unit can be implemented by the second processor 40 located on the network fault prediction device 4, and the second processor 40 can be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor. It can be understood that for different devices, the electronic device used to implement the above processor function can also be other, and the embodiment of the present application does not make specific limitations.
[0194] In the embodiment of the present application, the second communication bus 42 is used to realize the connection communication between the second processor 40 and the second memory 41; when the second processor 40 executes the running program stored in the second memory 41, the following network fault prediction method is implemented:
[0195] Obtain user operation information at a first moment and time series data associated with the network at the first moment; fuse the user operation information and the time series data to obtain prompt words to be input; predict network faults based on the prompt words to be input and a target model, where the target model is trained using the above-mentioned model training method.
[0196] In one embodiment, the second processor 40 is further used to convert the user operation information to form a first prompt to be input; obtain a prompt template, and based on the prompt template, determine a second prompt to be input corresponding to the timing data; and merge the first prompt to be input with the second prompt to be input to obtain a prompt to be input.
[0197] In one embodiment, the second processor 40 is further used to fuse and output the prediction results, user operation information, and alarm information obtained after network fault prediction using the target model.
[0198] Based on the above embodiments, the embodiments of the present application provide a storage medium having a computer program stored thereon, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors and are applied to a model training device, where the computer program implements the model training method as described above, or are applied to a network fault prediction device, where the computer program implements the network fault prediction method as described above.
[0199] Based on the above embodiments, the embodiments of the present application provide a computer program product, including a computer program, which can be executed by one or more processors, and is applied to a model training device, and the computer program implements the model training method as described above, or is applied to a network fault prediction device, and the computer program implements the network fault prediction method as described above.
[0200] It should be noted that in the embodiments of the present application, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0201] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions for an image display device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the method described in each embodiment of the embodiment of the present application.
[0202] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A model training method, characterized in that: The method comprises: Obtain historical time series data and historical text data associated with the network; Based on the historical time series data, a prompt word set is constructed; a target prompt word is selected from the prompt word set, and the target prompt word is superior to the remaining prompt words in the prompt word set except the target prompt word; Based on the target prompt, the historical time series data and the historical text data, an initial model is trained to obtain a target model, and the target model is used to predict network failures.
2. The method according to claim 1, characterized in that: The step of selecting a target prompt from the prompt set includes: Scoring each prompt in the prompt set; Selecting multiple prompts from the prompt set, each time selecting multiple prompts from the prompt set; For each of the multiple prompts selected, a prompt with the highest score is selected from the multiple prompts selected each time, to obtain multiple prompts with the highest scores; A target prompt is selected from the plurality of highest-scoring prompts.
3. The method according to claim 2, characterized in that Each prompt includes historical time series data of n time points, where n is an integer greater than or equal to 1. Scoring each prompt in the prompt set includes: Based on the historical time series data of n time points contained in each prompt, the time series data of the n+1th time point is predicted to obtain predicted data; Performing calculation processing on the predicted data and the historical time series data at the n+1th time point to obtain a first value; and determining a second value based on the historical time series data at the nth time points and the historical time series data at the n+1th time point; Based on the first value and the second value, a score corresponding to each prompt in the prompt set is determined.
4. The method according to claim 2, characterized in that: For each of the multiple prompts selected, a prompt with the highest score is selected from the multiple prompts selected each time, and after obtaining the multiple prompts with the highest scores, the method further includes: Recombining the multiple prompts with the highest scores to obtain M combined prompts, where M is an integer greater than or equal to 0; Performing word order mutation processing on the M combined prompts to obtain M prompts with adjusted word order; An updated prompt word set is constructed based on the multiple prompt words with the highest scores and the M prompt words after word order adjustment, and the updated prompt word set is used to select a target prompt word from the updated prompt word set.
5. The method according to claim 1, characterized in that The training of the initial model based on the target prompt, the historical time series data and the historical text data to obtain the target model includes: Based on the historical text data, construct a question-answer pair; Based on the target prompt, the historical time series data and the question-answer pair, the initial model is trained to obtain the target model.
6. A network fault prediction method, characterized in that: The method comprises: Acquire user operation information at a first moment and time series data associated with the network at the first moment; The user operation information and the time series data are fused to obtain prompt words to be input; Network fault prediction is performed based on the prompt to be input and the target model, wherein the target model is trained using the method described in any one of claims 1 to 5.
7. The method according to claim 6, characterized in that The fusing the user operation information and the time series data to obtain the prompt to be input includes: Converting the user operation information to form a first prompt to be input; Acquire a prompt word template, and determine a second prompt word to be input corresponding to the time series data based on the prompt word template; The first prompt word to be input and the second prompt word to be input are merged to obtain the prompt word to be input.
8. The method according to claim 6, characterized in that After performing network fault prediction based on the prompt to be input and the target model, the method further includes: The prediction result obtained after network fault prediction using the target model, the user operation information, and the alarm information are fused and output.
9. A model training device, characterized in that: The model training device comprises: A first acquisition unit, used to acquire historical time series data and historical text data associated with the network; A selection unit is configured to construct a prompt word set based on the historical time series data; select a target prompt word from the prompt word set, wherein the target prompt word is superior to the remaining prompt words in the prompt word set except the target prompt word; The training unit is used to train the initial model based on the target prompt, the historical time series data and the historical text data to obtain a target model, and the target model is used to predict network failures.
10. A network fault prediction device, characterized in that: The network fault prediction device comprises: A second acquisition unit, configured to acquire user operation information at a first moment and time series data associated with the network at the first moment; A fusion unit, used for fusing the user operation information and the time series data to obtain a prompt to be input; A fault prediction unit is used to predict network faults based on the prompt to be input and a target model, wherein the target model is trained using the method described in any one of claims 1 to 5.
11. A model training device, characterized in that: The model training device includes: a first processor and a first memory; when the first processor executes the running program stored in the first memory, it implements the method according to any one of claims 1 to 5.
12. A network fault prediction device, characterized in that: The network fault prediction device comprises: a second processor and a second memory; when the second processor executes the running program stored in the second memory, the method according to any one of claims 6 to 8 is implemented.
13. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented; or, when the computer program is executed by a processor, the method according to any one of claims 6 to 8 is implemented.
14. A computer program product comprising a computer program, characterized in that The computer program implements the method according to any one of claims 1 to 5 when executed by a processor, or the computer program implements the method according to any one of claims 6 to 8 when executed by a processor.
Citation Information
Patent Citations
Instruction trend prediction model training method and apparatus, and trend prediction method and apparatus
CN117376169A
Bidirectional iteration method and device for pre-training model and downstream sequence task, and medium
CN117474084A
Tracing method and system for fault root cause of Internet of Things equipment, and storage medium
CN117743843A
Model training method and device, text detection method and device, storage medium and equipment
CN117744837A
Systems and methods for finetuning with learned hidden representations of parameter changes
US20240020486A1
